diff --git a/src/assets/icons/scroll-top.svg b/src/assets/icons/scroll-top.svg new file mode 100644 index 0000000..e158908 --- /dev/null +++ b/src/assets/icons/scroll-top.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/pages/Institutional/Contact/fragments/Input.tsx b/src/pages/Institutional/Contact/fragments/Input.tsx index 2d7ca1f..d14acdf 100644 --- a/src/pages/Institutional/Contact/fragments/Input.tsx +++ b/src/pages/Institutional/Contact/fragments/Input.tsx @@ -9,10 +9,12 @@ interface InputProps extends InputHTMLAttributes { export function Input({ label, name, error, ...props }: InputProps) { return ( -
- +
+ -
+
diff --git a/src/pages/Institutional/Contact/index.module.scss b/src/pages/Institutional/Contact/index.module.scss index 10c8e6a..114b801 100644 --- a/src/pages/Institutional/Contact/index.module.scss +++ b/src/pages/Institutional/Contact/index.module.scss @@ -3,21 +3,21 @@ height: 100%; margin-bottom: 69.56px; -} -.form { - fieldset { - width: 100%; - border: none; + &__form { + .form__container { + width: 100%; + border: none; + } } } .form :global { - .form-group { + .form__group { margin-bottom: 12px; } - label { + .form__label { display: flex; align-items: center; justify-content: space-between; @@ -32,7 +32,7 @@ } } - .form-group-content { + .form__content { position: relative; width: 100%; @@ -56,7 +56,7 @@ } } - .form-input { + .form__input { display: block; width: 100%; @@ -133,6 +133,13 @@ text-transform: uppercase; + transition: 200ms ease-in-out; + + &:hover { + color: var(--clr-common-black); + background-color: var(--clr-primary-blue-500); + } + @media screen and (min-width: 2500px) { height: 71px; } diff --git a/src/pages/Institutional/Contact/index.tsx b/src/pages/Institutional/Contact/index.tsx index da402f2..4a64bda 100644 --- a/src/pages/Institutional/Contact/index.tsx +++ b/src/pages/Institutional/Contact/index.tsx @@ -4,7 +4,7 @@ import { Input } from './fragments/Input' import validadeShema from './schema/FormSchema' -import css from './index.module.scss' +import styles from './index.module.scss' export function Contact() { const initialValues = useMemo(() => { @@ -20,14 +20,12 @@ export function Contact() { }, []) return ( -
+

Preencha o formulário

{ - e.validateField('email') - e.resetForm({ isSubmitting: true, }) @@ -37,8 +35,8 @@ export function Contact() { > {({ errors, touched }) => { return ( -
-
+ +
- diff --git a/src/routes/index.module.scss b/src/routes/index.module.scss index 4f3abb9..0827312 100644 --- a/src/routes/index.module.scss +++ b/src/routes/index.module.scss @@ -70,6 +70,9 @@ main :global { } &-top { + display: flex; + align-items: center; + justify-content: center; background-color: var(--clr-gray-400); border-radius: 100%; } diff --git a/src/routes/index.tsx b/src/routes/index.tsx index 847088c..fbe85b9 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -30,7 +30,7 @@ export function ScrollFixed() { - + TOP
) @@ -74,10 +74,22 @@ export function Router() { > } /> } /> - Formas de pagamentos} /> - Troca e Devolução} /> - Privacidade} /> - Entrega} /> + Formas de pagamentos} + /> + Troca e Devolução} + /> + Privacidade} + /> + Entrega} + />