Compare commits

..

12 Commits

Author SHA1 Message Date
0377e6d0f3 Merge pull request 'develop' (#11) from develop into main
Reviewed-on: #11
2023-01-12 21:32:51 +00:00
291161a98c Merge pull request 'feat: Adiciona z-index nos icons fixed' (#10) from feature/footer into develop
Reviewed-on: #10
2023-01-12 21:32:13 +00:00
f756910644 feat: Adiciona z-index nos icons fixed 2023-01-12 18:31:03 -03:00
b64324d5d8 Merge pull request 'develop' (#9) from develop into main
Reviewed-on: #9
2023-01-12 15:24:52 +00:00
38cf21d8cb Merge pull request 'feat: Adiciona settimeout na mensagem de sucesso' (#8) from feature/footer into develop
Reviewed-on: #8
2023-01-12 15:24:22 +00:00
eb01d373a1 feat: Adiciona settimeout na mensagem de sucesso 2023-01-12 12:22:35 -03:00
0e7c2db1e5 Merge pull request 'develop' (#7) from develop into main
Reviewed-on: #7
2023-01-12 14:40:36 +00:00
91df2c1afc Merge pull request 'feature/footer' (#6) from feature/footer into develop
Reviewed-on: #6
2023-01-12 14:39:08 +00:00
0d79a59d4a feat: Importa icones de pagamento como png 2023-01-12 11:34:40 -03:00
1169893527 feat: Adiciona logica para aparecer botao backtotop no scroll 2023-01-12 09:41:35 -03:00
21a8cae899 feat: Adiciona icone de menos no accordion aberto 2023-01-11 19:57:52 -03:00
a89b3ba94d Merge pull request 'feat: Adiciona componentes de links no menu' (#5) from feature/header into develop
Reviewed-on: #5
2023-01-11 19:32:44 +00:00
27 changed files with 112 additions and 113 deletions

View File

@ -1,9 +1,20 @@
import { useState, useEffect } from "react";
import icons from "./assets/modules/FixedIcons.module.scss";
import whats from "./assets/svgs/whatsapp.svg";
import arrow from "./assets/svgs/arrow.svg";
const FixedIcons = () => {
const [scrollTop, setScrollTop] = useState(0);
useEffect(() => {
const handleScroll = () => {
setScrollTop(window.scrollY);
};
window.addEventListener("scroll", handleScroll);
});
return (
<div className={icons["icons"]}>
<a
@ -15,14 +26,16 @@ const FixedIcons = () => {
<img src={whats} alt="Ícone WhatsApp" />
</figure>
</a>
<div
onClick={() => window.scrollTo({ top: 0, behavior: "smooth" })}
className={icons["icons__arrow"]}
>
<figure>
<img src={arrow} alt="Ícone subir ao topo" />
</figure>
</div>
{scrollTop > 0 ? (
<div
onClick={() => window.scrollTo({ top: 0, behavior: "smooth" })}
className={icons["icons__arrow"]}
>
<figure>
<img src={arrow} alt="Ícone subir ao topo" />
</figure>
</div>
) : undefined}
</div>
);
};

View File

@ -2,6 +2,7 @@
position: fixed;
bottom: 200px;
right: 16px;
z-index: 1;
@media screen and (min-width: 2500px) {
bottom: 215px;

View File

@ -3,14 +3,14 @@ import footer from "./assets/modules/FooterBottom.module.scss";
import { Payments } from "./Payments";
import { Developed } from "./Developed";
import master from "./assets/svgs/master.svg";
import visa from "./assets/svgs/visa.svg";
import diners from "./assets/svgs/diners.svg";
import elo from "./assets/svgs/elo.svg";
import hiper from "./assets/svgs/hiper.svg";
import paypal from "./assets/svgs/paypal.svg";
import boleto from "./assets/svgs/boleto.svg";
import vtexPci from "./assets/svgs/vtex-pci.svg";
import master from "./assets/svgs/master.png";
import visa from "./assets/svgs/visa.png";
import diners from "./assets/svgs/diners.png";
import elo from "./assets/svgs/elo.png";
import hiper from "./assets/svgs/hiper.png";
import paypal from "./assets/svgs/paypal.png";
import boleto from "./assets/svgs/boleto.png";
import vtexPci from "./assets/svgs/vtex-pci.png";
const FooterBottom = () => {
return (

View File

@ -1,7 +1,7 @@
import newsletter from "./assets/modules/Newsletter.module.scss";
import { Formik, Form, Field, ErrorMessage } from "formik";
import { useState } from "react";
import newsletter from "./assets/modules/Newsletter.module.scss";
import NewsletterSchema from "./assets/schemas/NewsletterSchema";
interface IEmailType {
@ -9,30 +9,44 @@ interface IEmailType {
}
const Newsletter = () => {
const [feedback, setFeedback] = useState(false);
const Feedback = () => {
setFeedback(!feedback);
};
return (
<div className={newsletter["newsletter"]}>
<div className={newsletter["newsletter__wrapper"]}>
<h3>ASSINE NOSSA NEWSLETTER</h3>
<Formik
onSubmit={(values: IEmailType, actions) => {
Feedback();
actions.resetForm();
const sent = document.querySelector(
"#emailsent"
) as HTMLSpanElement;
sent.innerHTML = "Email cadastrado com sucesso!";
}}
initialValues={{ email: "" }}
validationSchema={NewsletterSchema}
>
<Form>
<Field placeholder="E-mail" id="email" name="email" />
<Field
placeholder="E-mail"
id="email"
name="email"
onBlur={() => {
setFeedback(false);
}}
/>
<ErrorMessage
component="span"
name="email"
className={newsletter["invalid"]}
/>
<button type="submit">ENVIAR</button>
<span id="emailsent" className={newsletter["success"]}></span>
{feedback ? (
<span className={newsletter["success"]}>
Email cadastrado com sucesso!
</span>
) : undefined}
</Form>
</Formik>
</div>

View File

@ -4,6 +4,7 @@ import {
AccordionHeader,
AccordionItem,
} from "react-headless-accordion";
import { useState } from "react";
import { Link } from "./Link";
import links from "./assets/modules/SitemapAccordion.module.scss";
@ -11,12 +12,26 @@ import links from "./assets/modules/SitemapAccordion.module.scss";
import more from "./assets/svgs/more.svg";
const SitemapAccordion = () => {
const [institucional, setInstitucional] = useState(false);
const [duvidas, setDuvidas] = useState(false);
const [faleConosco, setFaleConosco] = useState(false);
const changeIcon1 = () => {
setInstitucional(!institucional);
};
const changeIcon2 = () => {
setDuvidas(!duvidas);
};
const changeIcon3 = () => {
setFaleConosco(!faleConosco);
};
return (
<Accordion className={links["accordion"]} alwaysOpen={true}>
<AccordionItem>
<AccordionHeader>
<AccordionHeader onClick={changeIcon1}>
<h4>Institucional</h4>
<img src={more} alt="Icone de +" />
{institucional ? <span>-</span> : <img src={more} alt="Icone de +" />}
</AccordionHeader>
<AccordionBody>
@ -30,9 +45,9 @@ const SitemapAccordion = () => {
</AccordionItem>
<AccordionItem>
<AccordionHeader>
<AccordionHeader onClick={changeIcon2}>
<h4>Dúvidas</h4>
<img src={more} alt="Icone de +" />
{duvidas ? <span>-</span> : <img src={more} alt="Icone de +" />}
</AccordionHeader>
<AccordionBody>
@ -46,9 +61,9 @@ const SitemapAccordion = () => {
</AccordionItem>
<AccordionItem>
<AccordionHeader>
<AccordionHeader onClick={changeIcon3}>
<h4>Fale Conosco</h4>
<img src={more} alt="Icone de +" />
{faleConosco ? <span>-</span> : <img src={more} alt="Icone de +" />}
</AccordionHeader>
<AccordionBody>

View File

@ -20,6 +20,12 @@
line-height: 16px;
color: var(--black-200);
}
span {
font-size: 21px;
font-weight: bold;
color: var(--black-200);
}
}
ul {

Binary file not shown.

After

Width:  |  Height:  |  Size: 816 B

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 92 KiB

View File

@ -1,3 +0,0 @@
<svg width="2" height="24" viewBox="0 0 2 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<line x1="0.908936" y1="2.18557e-08" x2="0.908934" y2="24" stroke="#C4C4C4"/>
</svg>

Before

Width:  |  Height:  |  Size: 179 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 888 B

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 745 B

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 739 B

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 888 B

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1000 B

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -1,9 +0,0 @@
<svg width="56" height="34" viewBox="0 0 56 34" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<rect x="0.408936" width="54.6061" height="34" fill="url(#pattern0)"/>
<defs>
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image0_6214_933" transform="translate(0 -0.00590909) scale(0.005 0.0080303)"/>
</pattern>
<image id="image0_6214_933" width="200" height="126" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAAB+CAMAAABWFa7EAAACr1BMVEUAAAAiP3MiP3MiP3MiP3MiP3MiP3MiP3MiP3MiP3MiP3MiP3MiP3P///8iP3P2GWMNa3F6jKvi5ezEzNry9Pd9jq34Q4AObHL+4usAYWj9xdhdcpgAY2n2HmYddXr3NXYJaW8FZmwbrz/T2eP4UooOaHEHZ273J2z5b50xTHwLanAAYGb//v7w8/fX5uj2HGU/WYYgQ3MhQXP2I2r/+fv/8fb+2eURYnECZWv2IGinssf5Z5hOZY8eR3P3LHAYrT3+5O390uD9w9agxcd3rLD4TIYTX3IXVnIaUHIPZXH//P3/9vn+7fP+6PD+3+mawcNUlpr5ZJb5YJT5WY4Ub3UUXHIcSnIAV14mskkjsUbz/PP91OL9zd38sMmZpr/7l7l/sbSJmbR8r7L6jLH6ha36fadsf6JHX4sfsEP7/v34+/rx9vfn8PHc6evg9uP9ydrH7NC1v9Cpy82kyMr7krVtpqn6gKn5cJ5keZ2G1ZlQlJj3OXgnRHf3MHMVWXIbTXIeRXISUW8wtlEps0v0+fjp7fL+7PLj7e/m9+n+3OfS4+X8qMT7nr36daJbm59LkZVGjJP5XJH4RoL4QH1hyHobcnkYU3IQY3FTw24stU7u9fbq8vPf6+zW8ty61te30tX8u9GvztCvucyUvsCPur2h3rCa3Ktzhac9iI34VYsygob4SYP4SIMlen9Kv2YAXWP+5u7a8uDI1N/9z9+/x9b8vtP8vdL8t86ewMj8qsW15cGSorqDtLdxp6xkoaX6eKOM1p75aZo5goc1T4AuW333PHohUXZYxHIKXG0FW2REvWI8u1sOqjXc4enE29zC2tux0NG86MahrsSy5byr5LV/kK59kK36eqRkl6KN2Z1YdZdWbJRUa5N70JFRaJF0zooxb4M8VoMfY3gXX3QMY285bkN9A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SwQeYhGZE77VnkayPAyXETmyvzXBD566DhuLSNjX2mwb5IpkGm5WuPoiA6LI8bGxl8klllk+STruBDkR3cIqEUG1Kzz/cfgewF+2lsGAyHpov7Vk+qeJSDtHCaybszIXEDG5EJ641XF1WmzF3d7Ek9rko36AvxV7HWrbpEi9asWO+UFEOhiB1EWpMXIWyewbHSF10xqP828v/xxwAiar/VbVWXIyo1EVaN1+M9wfIecIi8tCNCn1jUkHffdgdy3eWLMpfrbpE4hkH4im3AMRGxpA6wMxg+ODz5fswQsimzDl4WR19VhLwuudvYQW+ETq2hVYo8AVRX7DBUSUX1EKM8CyrJH6g9XIsu5YuHaKT3tXrj1OeaeGPkMOG10aAVNW8GTPvzRaQE2RqJnKgzNebXnCpxPxeCLeiu8mGqBcxOnK8zD7B+5dfpVOpONp/utwA2iBchEI5FjUBD1OgAZ6gU/FU4Mt10EblIt41u2tUE3QARJdTd2Dc3Pzz+6CNigXAb+8FK7ePgdkKKFbWi/RXaAVykWCFMYfiDogm4b6dxc1LBDlIo6Q65jHAUXHf/6zQhGiixQbukixoYsUG/+myG7YuuxcL7Idtiw7tmWxB7Yo+G9ys9m1fUuyc5uOjo6Ojo4K/AbFAa9esd0XkgAAAABJRU5ErkJggg=="/>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -11,7 +11,7 @@
.content {
position: absolute;
background-color: var(--white);
width: 97.4609%;
width: 96.4845%;
height: 585px;
@media screen and (max-width: 599px) {
@ -69,4 +69,5 @@
bottom: 0;
left: 0;
background: rgba(69, 69, 69, 0.7);
z-index: 2;
}

View File

@ -1,5 +1,6 @@
import { Formik, Form, Field, ErrorMessage } from "formik";
import MaskedInput from "react-text-mask";
import { useState } from "react";
import FormSchema from "./assets/schemas/FormSchema";
@ -23,10 +24,20 @@ const initialValues = {
telefone: "",
instagram: "",
terms: false,
/*sent: false,*/
};
const dateMask = [/\d/, /\d/, ".", /\d/, /\d/, ".", /\d/, /\d/, /\d/, /\d/];
const dateMask = [
/[0-3]/,
/\d/,
".",
/[0-1]/,
/\d/,
".",
/[1-2]/,
/\d/,
/\d/,
/\d/,
];
const cpfMask = [
/\d/,
/\d/,
@ -62,16 +73,22 @@ const phoneNumberMask = [
];
const Contato = () => {
const [feedback, setFeedback] = useState(false);
const Feedback = () => {
setFeedback(true);
setTimeout(() => {
setFeedback(false);
}, 14000);
};
return (
<div className={contato["forms"]}>
<h2>Preencha o formulário</h2>
<Formik
onSubmit={(values: IFormikValues, actions) => {
console.log(values);
Feedback();
actions.resetForm();
const sent = document.querySelector("#sent") as HTMLSpanElement;
sent.innerHTML = "*Formulário enviado com sucesso!";
}}
initialValues={initialValues}
validationSchema={FormSchema}
@ -183,7 +200,12 @@ const Contato = () => {
</div>
<button type="submit">CADASTRE-SE</button>
<span id="sent" className={contato["forms__success"]}></span>
{feedback ? (
<span className={contato["forms__success"]}>
*Formulário enviado com sucesso!
</span>
) : undefined}
</Form>
)}
</Formik>

View File

@ -17,7 +17,7 @@
.home {
@media screen and (min-width: 2500px) {
width: 31.25px;
width: 31.22px;
height: 31.25px;
}
}

View File

@ -50,6 +50,7 @@
padding: 15px 20px;
@media screen and (min-width: 2500px) {
height: 63px;
font-size: 28px;
line-height: 33px;
}
@ -110,6 +111,7 @@
width: 36.4px;
height: 35.15px;
right: -50px;
top: 1px;
}
}
}