diff --git a/client/app/App.css b/client/app/App.css index 1852faca..651ac9be 100644 --- a/client/app/App.css +++ b/client/app/App.css @@ -124,11 +124,7 @@ h2 { margin-top: var(--margin_top); } -p { - font-size: 1.25em; - letter-spacing: .05em; - margin: calc(var(--margin_top) / 2) 0 calc(var(--margin_bottom) * 2) -} + .explore-form-row { align-items: stretch; @@ -185,6 +181,72 @@ button.btn:hover { position: relative; } +.arrow-right, +.arrow-left { + background: var(--theme_color); + display: inline-flex; + height: 2px; + position: relative; + vertical-align: middle; + width: 24px; +} + +.arrow-right { + margin-left: 4px; +} + +.arrow-left { + margin-right: 4px; +} + + .arrow-right::before, + .arrow-right::after, + .arrow-left::before, + .arrow-left::after { + background: var(--theme_color); + content: ""; + height: 2px; + position: absolute; + transform-origin: 50% 50%; + width: 10px; + } + + .arrow-right::before, + .arrow-right::after { + right: -3px; + } + + .arrow-left::before, + .arrow-left::after { + left: -3px; + } + + .arrow-right::before, + .arrow-left::before { + top: -3px; + } + + .arrow-right::before { + transform: rotate(45deg); + } + + .arrow-left::before { + transform: rotate(-45deg); + } + + .arrow-right::after, + .arrow-left::after { + bottom: -3px; + } + + .arrow-right::after { + transform: rotate(-45deg); + } + + .arrow-left::after { + transform: rotate(45deg); + } + button.btn .arrow-right, button.btn .arrow-right::before, button.btn .arrow-right::after { @@ -225,6 +287,7 @@ button.btn:hover .arrow-right::after { padding-left: 40%; text-transform: uppercase; text-align: left; + margin: var(--margin_top) auto; } @media (min-width: 64em) { @@ -241,7 +304,7 @@ button.btn:hover .arrow-right::after { margin: 0; } -main.content-wrapper div.container { +main.content-wrapper div.welcome-container { min-width: 100vw; max-width: 100vw; margin: 0; diff --git a/client/app/components/checkbox.css b/client/app/components/checkbox.css new file mode 100644 index 00000000..6d1c92ac --- /dev/null +++ b/client/app/components/checkbox.css @@ -0,0 +1,35 @@ +.checkbox-control { + display: inline-block; + position: relative; +} + +.checkbox-input { + height: 16px; + left: 0; + margin: 0; + opacity: 0; + position: absolute; + top: 50%; + transform: translateY(-50%); + width: 16px; + z-index: 1; +} + +.checkbox-input:checked ~ label { + background-color: var(--secondary_a); +} + +.checkbox-input:focus-visible + .checkbox-label { + outline: 2px solid var(--secondary_a); + outline-offset: 2px; +} + +.checkbox-label { + background: var(--white); + border: 2px solid var(--secondary_a); + display: inline-block; + margin-bottom: 2px; + margin-right: 4px; + padding: 6px; + vertical-align: middle; +} \ No newline at end of file diff --git a/client/app/components/checkbox.tsx b/client/app/components/checkbox.tsx index ca3873dc..09241eda 100644 --- a/client/app/components/checkbox.tsx +++ b/client/app/components/checkbox.tsx @@ -1,3 +1,5 @@ +import './checkbox.css'; + const Checkbox = ({ label, onChange, @@ -8,15 +10,17 @@ const Checkbox = ({ checked: boolean; }) => { return ( -
Categories: