Merge branch 'feature/main' into develop

This commit is contained in:
Sabrina Miranda 2023-01-16 17:55:57 -03:00
commit 94b1d64fb2
26 changed files with 1009 additions and 57 deletions

61
package-lock.json generated
View File

@ -18,6 +18,7 @@
"formik": "^2.2.9",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.6.2",
"react-scripts": "5.0.1",
"typescript": "^4.9.4",
"web-vitals": "^2.1.4",
@ -3080,6 +3081,14 @@
}
}
},
"node_modules/@remix-run/router": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.2.1.tgz",
"integrity": "sha512-XiY0IsyHR+DXYS5vBxpoBe/8veTeoRpMHP+vDosLZxL5bnpetzI0igkxkLZS235ldLzyfkxF+2divEwWHP3vMQ==",
"engines": {
"node": ">=14"
}
},
"node_modules/@rollup/plugin-babel": {
"version": "5.3.1",
"resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz",
@ -14093,6 +14102,36 @@
"node": ">=0.10.0"
}
},
"node_modules/react-router": {
"version": "6.6.2",
"resolved": "https://registry.npmjs.org/react-router/-/react-router-6.6.2.tgz",
"integrity": "sha512-uJPG55Pek3orClbURDvfljhqFvMgJRo59Pktywkk8hUUkTY2aRfza8Yhl/vZQXs+TNQyr6tu+uqz/fLxPICOGQ==",
"dependencies": {
"@remix-run/router": "1.2.1"
},
"engines": {
"node": ">=14"
},
"peerDependencies": {
"react": ">=16.8"
}
},
"node_modules/react-router-dom": {
"version": "6.6.2",
"resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.6.2.tgz",
"integrity": "sha512-6SCDXxRQqW5af8ImOqKza7icmQ47/EMbz572uFjzvcArg3lZ+04PxSPp8qGs+p2Y+q+b+S/AjXv8m8dyLndIIA==",
"dependencies": {
"@remix-run/router": "1.2.1",
"react-router": "6.6.2"
},
"engines": {
"node": ">=14"
},
"peerDependencies": {
"react": ">=16.8",
"react-dom": ">=16.8"
}
},
"node_modules/react-scripts": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-5.0.1.tgz",
@ -19043,6 +19082,11 @@
"source-map": "^0.7.3"
}
},
"@remix-run/router": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.2.1.tgz",
"integrity": "sha512-XiY0IsyHR+DXYS5vBxpoBe/8veTeoRpMHP+vDosLZxL5bnpetzI0igkxkLZS235ldLzyfkxF+2divEwWHP3vMQ=="
},
"@rollup/plugin-babel": {
"version": "5.3.1",
"resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz",
@ -26897,6 +26941,23 @@
"resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.11.0.tgz",
"integrity": "sha512-F27qZr8uUqwhWZboondsPx8tnC3Ct3SxZA3V5WyEvujRyyNv0VYPhoBg1gZ8/MV5tubQp76Trw8lTv9hzRBa+A=="
},
"react-router": {
"version": "6.6.2",
"resolved": "https://registry.npmjs.org/react-router/-/react-router-6.6.2.tgz",
"integrity": "sha512-uJPG55Pek3orClbURDvfljhqFvMgJRo59Pktywkk8hUUkTY2aRfza8Yhl/vZQXs+TNQyr6tu+uqz/fLxPICOGQ==",
"requires": {
"@remix-run/router": "1.2.1"
}
},
"react-router-dom": {
"version": "6.6.2",
"resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.6.2.tgz",
"integrity": "sha512-6SCDXxRQqW5af8ImOqKza7icmQ47/EMbz572uFjzvcArg3lZ+04PxSPp8qGs+p2Y+q+b+S/AjXv8m8dyLndIIA==",
"requires": {
"@remix-run/router": "1.2.1",
"react-router": "6.6.2"
}
},
"react-scripts": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-5.0.1.tgz",

View File

@ -13,6 +13,7 @@
"formik": "^2.2.9",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.6.2",
"react-scripts": "5.0.1",
"typescript": "^4.9.4",
"web-vitals": "^2.1.4",

View File

@ -1,19 +0,0 @@
import React from "react";
interface Btn {
text: string;
type: "button" | "submit" | "reset";
className: string;
}
const Button = ( props: Btn ) => {
const { text, type, className } = props;
return (
<button type={type} className={className}>
{text}
</button>
);
};
export { Button };

View File

@ -0,0 +1,183 @@
@use '../../variables';
.form {
&__container {
width: 100%;
}
form {
width: 100%;
}
&__inputs-container {
display: flex;
flex-direction: column;
label {
font-size: 14px;
line-height: 16px;
color: variables.$black-100;
margin-left: 15px;
@media (min-width: 2500px) {
font-size: 28px;
line-height: 33px;
}
}
input {
height: 46px;
background: variables.$white;
border: 1px solid variables.$black-100;
font-size: 14px;
line-height: 16px;
color: variables.$gray-200;
border-radius: 25px;
margin-top: 12px;
margin-bottom: 12px;
padding: 15px 20px;
@media (min-width: 2500px) {
height: 63px;
font-size: 28px;
line-height: 33px;
}
&::placeholder {
font-size: 14px;
line-height: 16px;
color: variables.$gray-200;
@media (min-width: 2500px) {
font-size: 28px;
line-height: 33px;
}
}
}
}
&__checkbox-container {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 12px;
position: relative;
input {
width: 18px;
height: 18px;
margin-left: 4px;
@media (min-width: 2500px) {
width: 36px;
height: 35px;
}
@media (max-width: 289px) {
margin-left: 2px;
}
}
}
&__checkbox,
&__checkbox-alert {
font-size: 14px;
line-height: 16px;
@media (min-width: 2500px) {
font-size: 28px;
line-height: 33px;
}
}
&__checkbox {
color: variables.$black-100;
text-decoration: underline;
}
&__checkbox-alert {
color: variables.$red;
text-decoration: none;
}
&__invalid-feedback,
&__invalid-feedback-terms {
font-size: 12px;
line-height: 14px;
color: variables.$red;
@media (min-width: 2500px) {
font-size: 24px;
line-height: 28px;
}
}
&__invalid-feedback {
right: 120px;
margin-top: 12px;
position: absolute;
@media (max-width: 1024px) {
right: 32px;
}
}
&__invalid-feedback-terms {
margin-left: 5px;
@media (min-width: 2500px) {
margin-left: 7px;
}
@media (max-width: 289px) {
font-size: 11px;
margin-left: 2px;
}
}
&__btn {
width: 100%;
height: 52px;
background-color: variables.$black;
border-radius: 25px;
border: none;
font-size: 16px;
line-height: 19px;
letter-spacing: 0.05em;
color: variables.$white;
padding: 17px 0;
display: flex;
align-items: center;
justify-content: center;
&:hover {
filter: opacity(.85);
}
&:active {
filter: opacity(1);
}
@media (min-width: 2500px) {
height: 71px;
font-size: 32px;
line-height: 38px;
}
}
&__msg-submit {
font-size: 12px;
line-height: 14px;
color: variables.$green;
margin-top: 12px;
@media (min-width: 2500px) {
font-size: 24px;
line-height: 28px;
}
}
}

View File

@ -0,0 +1,188 @@
import {useState} from "react";
import { Formik, Form, Field, ErrorMessage, FormikHelpers} from "formik";
import styles from "./InstitucionalForm.module.scss";
import FormSchema from "./Schema/InstitucionalFormSchema";
interface FormValue {
name: string;
email: string;
cpf: string;
birthDate: string;
phone: string;
instagram: string;
acceptTerms: boolean;
}
const initialValue = {
name: "",
email: "",
cpf: "",
birthDate: "",
phone: "",
instagram: "",
acceptTerms: false,
}
let listClient: Array<FormValue> = [];
const InstitucionalForm = () => {
const [successMessage, setSuccessMessage] = useState(false);
const handleSubmit = async (values: FormValue, actions: FormikHelpers<FormValue>) => {
listClient.push(values);
console.log(listClient);
actions.resetForm();
setSuccessMessage(true);
setTimeout(() => setSuccessMessage(false), 3000);
};
return (
<div className={styles["form__container"]}>
<Formik
onSubmit={handleSubmit}
initialValues={initialValue}
validationSchema={FormSchema} >
{({errors, touched}) => (
<Form>
<div className={styles["form__inputs-container"]}>
<label htmlFor="name">Nome</label>
<Field
type="text"
id="name"
name="name"
placeholder="Seu nome completo"
className={errors.name && touched.name && "invalid"}
/>
<ErrorMessage
component="span"
name="name"
className={styles["form__invalid-feedback"]}
/>
</div>
<div className={styles["form__inputs-container"]}>
<label htmlFor="email">E-mail</label>
<Field
type="text"
id="email"
name="email"
placeholder="Seu e-mail"
className={errors.email && touched.email && "invalid"}
/>
<ErrorMessage
component="span"
name="email"
className={styles["form__invalid-feedback"]}
/>
</div>
<div className={styles["form__inputs-container"]}>
<label htmlFor="cpf">CPF</label>
<Field
type="text"
id="cpf"
name="cpf"
placeholder="000.000.000-00"
className={errors.cpf && touched.cpf && "invalid"}
/>
<ErrorMessage
component="span"
name="cpf"
className={styles["form__invalid-feedback"]}
/>
</div>
<div className={styles["form__inputs-container"]}>
<label htmlFor="birthDate">Data de Nascimento</label>
<Field
type="text"
id="birthDate"
name="birthDate"
placeholder="00.00.0000"
className={errors.birthDate && touched.birthDate && "invalid"}
/>
<ErrorMessage
component="span"
name="birthDate"
className={styles["form__invalid-feedback"]}
/>
</div>
<div className={styles["form__inputs-container"]}>
<label htmlFor="phone">Telefone</label>
<Field
type="text"
id="phone"
name="phone"
placeholder="(00) 00000-0000"
className={errors.phone && touched.phone && "invalid"}
/>
<ErrorMessage
component="span"
name="phone"
className={styles["form__invalid-feedback"]}
/>
</div>
<div className={styles["form__inputs-container"]}>
<label htmlFor="instagram">Instagram</label>
<Field
type="text"
id="instagram"
name="instagram"
placeholder="@seuuser"
className={errors.instagram && touched.instagram && "invalid"}
/>
<ErrorMessage
component="span"
name="instagram"
className={styles["form__invalid-feedback"]}
/>
</div>
<div className={styles["form__checkbox-container"]}>
<label htmlFor="acceptTerms">
<span className={styles["form__checkbox-alert"]}>* </span>
<a href="/" className={styles["form__checkbox"]}>
Declaro que li e aceito
</a>
</label>
<Field
id="acceptTerms"
name="acceptTerms"
type="checkbox"
className={
errors.acceptTerms && touched.acceptTerms && "invalid"
}
/>
<ErrorMessage
component="span"
name="acceptTerms"
className={styles["form__invalid-feedback-terms"]}
/>
</div>
<div>
<button type="submit" className={styles["form__btn"]}>
CADASTRE-SE
</button>
{successMessage
? (<span className={styles["form__msg-submit"]}>*Formulário enviado com sucesso!</span> )
: ("")
}
</div>
</Form>
)}
</Formik>
</div>
);
};
export { InstitucionalForm };

View File

@ -0,0 +1,17 @@
import * as Yup from "yup";
export default Yup.object().shape({
name: Yup.string().required("*Campo Obrigatório").matches(/^([a-zA-Z\u00C0-\u017F´]{3,}?[+\s+]?[+a-zA-Z\u00C0-\u017F´]{0,})+$/, "*Nome Inválido"),
email: Yup.string().required("*Campo Obrigatório").email("*E-mail Inválido"),
cpf: Yup.string().required("*Campo Obrigatório").matches(/^([0-9]{3}\.?[0-9]{3}\.?[0-9]{3}\-?[0-9]{2})$/, "*CPF Inválido"),
birthDate: Yup.string().required("*Campo Obrigatório").matches(/^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[13-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$/, "*Data Inválida"),
phone: Yup.string().required("*Campo Obrigatório").matches(/^[\+]?[(]?[0-9]{2}[)]?[\s]?[0-9]{4,5}[-\s\.]?[0-9]{4}$/, "*Número Inválido"),
instagram: Yup.string().matches(/^(?:@)([A-Za-z0-9_](?:(?:[A-Za-z0-9_]|(?:\.(?!\.))){0,28}(?:[A-Za-z0-9_]))?)$/, "*Instagram Inválido"),
acceptTerms: Yup.bool().oneOf([true], "*Aceitar termos"),
});

View File

@ -0,0 +1,94 @@
@use '../../variables';
.institucional {
&__home-container {
display: flex;
align-items: center;
gap: 9px;
@media (min-width: 2500px) {
gap: 12px;
}
&__home-icon {
width: 16px;
@media (min-width: 2500px) {
width: 31px;
}
&:hover {
filter: brightness(80%);
}
&:active {
filter: brightness(100%);
}
}
&__arrow-icon {
width: 8px;
height: 8px;
@media (min-width: 2500px) {
width: 15px;
height: 15px;
}
&:hover {
filter: brightness(80%);
}
&:active {
filter: brightness(100%);
}
}
&__text {
font-size: 12px;
line-height: 14px;
color: variables.$gray-400;
@media (min-width: 2500px) {
font-size: 24px;
line-height: 28px;
}
&:hover {
filter: brightness(80%);
}
&:active {
filter: brightness(100%);
}
}
}
&__title-principal {
font-size: 24px;
line-height: 28px;
letter-spacing: 0.1em;
text-transform: uppercase;
color: variables.$black-200;
margin: 81px 0 80px 0;
text-align: center;
@media (min-width: 2500px) {
font-size: 48px;
line-height: 56px;
margin: 82px 0 80px 0;
}
@media (max-width: 1024px) {
margin: 81px 0 40px 0;
}
}
&__principal-content {
display: flex;
@media (max-width: 1024px) {
flex-direction: column;
}
}
}

View File

@ -0,0 +1,50 @@
import React from "react";
import styles from "./Main.module.scss";
import imgHome from "./assets/home-icon.svg";
import imgArrowToRight from "./assets/arrow-point-to-right.svg";
import { IconList } from "../IconList/IconList";
import { ItemList } from "../ItemList/ItemList";
import { TitlePrincipal } from "../TitlePrincipal/TitlePrincipal";
import { InstitucionalRoutes } from "../Routes/InstitucionalRoutes";
const Main = () => {
return (
<>
<ul className={styles["institucional__home-container"]}>
<a href="/">
<IconList
src={imgHome}
alt="Ícone Home"
imgClassName={styles["institucional__home-container__home-icon"]}
/>
</a>
<a href="/">
<IconList
src={imgArrowToRight}
alt="Ícone Seta para Esquerda"
imgClassName={styles["institucional__home-container__arrow-icon"]}
/>
</a>
<a href="/">
<ItemList text="Institucional" textClassName={styles["institucional__home-container__text"]} />
</a>
</ul>
<TitlePrincipal text="Institucional" titleClassName={styles["institucional__title-principal"]}/>
<div className={styles["institucional__principal-content"]}>
<InstitucionalRoutes />
</div>
</>
);
}
export { Main };

View File

@ -0,0 +1,10 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_3751_560)">
<path d="M11.9417 7.03685L5.22531 0.320703C4.79807 -0.106746 4.10537 -0.106746 3.67833 0.320703C3.25126 0.747771 3.25126 1.44043 3.67833 1.86747L9.62128 7.81023L3.67851 13.7528C3.25144 14.18 3.25144 14.8726 3.67851 15.2997C4.10558 15.7269 4.79824 15.7269 5.22548 15.2997L11.9418 8.58344C12.1554 8.3698 12.262 8.0901 12.262 7.81026C12.262 7.53029 12.1552 7.25038 11.9417 7.03685Z" fill="#C4C4C4"/>
</g>
<defs>
<clipPath id="clip0_3751_560">
<rect width="15.62" height="15.62" fill="white" transform="matrix(1 0 0 -1 0 15.6201)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 689 B

View File

@ -0,0 +1,3 @@
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M30.9231 14.8352L28.692 12.6041L16.4147 0.326808C15.9789 -0.108936 15.2723 -0.108936 14.8365 0.326808L2.55915 12.6041L0.326936 14.8364C-0.101287 15.2798 -0.089058 15.9863 0.354338 16.4146C0.786878 16.8323 1.47257 16.8323 1.90511 16.4146L2.23099 16.0864V30.1339C2.23099 30.7503 2.73069 31.25 3.34713 31.25H27.9018C28.5182 31.25 29.0179 30.7503 29.0179 30.1339V16.0864L29.3449 16.4134C29.7883 16.8417 30.4949 16.8294 30.9231 16.386C31.3408 15.9535 31.3408 15.2677 30.9231 14.8352ZM18.9728 29.0178H12.2761V20.0888H18.9728V29.0178ZM26.7856 29.0178H21.2051V18.9727C21.2051 18.3563 20.7054 17.8566 20.0889 17.8566H11.16C10.5436 17.8566 10.0438 18.3563 10.0438 18.9727V29.0178H4.46327V13.8542L15.6244 2.69296L26.7856 13.8542V29.0178Z" fill="#C4C4C4"/>
</svg>

After

Width:  |  Height:  |  Size: 857 B

View File

@ -0,0 +1,43 @@
@use '../../variables';
.menu-sidebar {
border-right: 1px solid variables.$black;
width: 27.97%;
min-width: 302px;
height: 285px;
@media (min-width: 2500px) {
min-width: 590px;
height: 485px;
}
@media (max-width: 1024px) {
border: none;
height: 224px;
width: 100%;
min-width: 100%;
}
&__container {
display: flex;
flex-direction: column;
}
&__item {
a {
display: flex;
align-items: center;
font-size: 16px;
line-height: 19px;
color: variables.$gray-100;
padding-left: 16px;
height: 39px;
@media (min-width: 2500px) {
font-size: 32px;
line-height: 38px;
height: 58px;
}
}
}
}

View File

@ -0,0 +1,61 @@
import { useState } from "react";
import styles from "./MenuSideBar.module.scss";
import { NavLink } from "react-router-dom";
const MenuSideBar = () => {
return (
<nav className={styles["menu-sidebar"]}>
<ul className={styles["menu-sidebar__container"]}>
<li className={styles["menu-sidebar__item"]}>
<NavLink to={"/"}
style={({ isActive }) => isActive ? {background:"#000000", color:"#FFFFFF", fontWeight: "700"} : {}} >
Sobre
</NavLink>
</li>
<li className={styles["menu-sidebar__item"]}>
<NavLink to={"/formadepagamento"}
style={({ isActive }) => isActive ? {background:"#000000", color:"#FFFFFF", fontWeight: "700"} : {}} >
Forma de Pagamento
</NavLink>
</li>
<li className={styles["menu-sidebar__item"]}>
<NavLink to={"/entrega"}
style={({ isActive }) => isActive ? {background:"#000000", color:"#FFFFFF", fontWeight: "700"} : {}} >
Entrega
</NavLink>
</li>
<li className={styles["menu-sidebar__item"]}>
<NavLink to={"/segurancaeprivacidade"}
style={({ isActive }) => isActive ? {background:"#000000", color:"#FFFFFF", fontWeight: "700"} : {}} >
Segurança e Privacidade
</NavLink>
</li>
<li className={styles["menu-sidebar__item"]}>
<NavLink to={"/trocaedevolucao"}
style={({ isActive }) => isActive ? {background:"#000000", color:"#FFFFFF", fontWeight: "700"} : {}} >
Troca e Devolução
</NavLink>
</li>
<li className={styles["menu-sidebar__item"]}>
<NavLink to={"/contato"}
style={({ isActive }) => isActive ? {background:"#000000", color:"#FFFFFF", fontWeight: "700"} : {}} >
Contato
</NavLink>
</li>
</ul>
</nav>
);
}
export { MenuSideBar };

View File

@ -136,7 +136,7 @@
text-transform: uppercase;
&:hover {
filter: opacity(.9);
filter: opacity(.85);
}
&:active {
@ -166,35 +166,35 @@
}
}
}
}
span {
font-size: 12px;
line-height: 14px;
color: variables.$red;
position: absolute;
right: 0;
top: 14px;
@media (min-width: 3600px) {
font-size: 26px;
line-height: 30px;
top: 20px;
}
@media ((min-width: 2500px) and (max-width: 3599px)) {
font-size: 24px;
line-height: 28px;
top: 20px;
}
@media (min-width: 350px) and (max-width: 1024px) {
right: 16px;
}
@media (max-width: 349px) {
font-size: 11px;
top: 18px;
right: 16px;
&__invalid-feedback {
font-size: 12px;
line-height: 14px;
color: variables.$red;
position: absolute;
right: 0;
top: 14px;
@media (min-width: 3600px) {
font-size: 26px;
line-height: 30px;
top: 20px;
}
@media ((min-width: 2500px) and (max-width: 3599px)) {
font-size: 24px;
line-height: 28px;
top: 20px;
}
@media (min-width: 350px) and (max-width: 1024px) {
right: 16px;
}
@media (max-width: 349px) {
font-size: 11px;
top: 18px;
right: 16px;
}
}
}

View File

@ -5,7 +5,6 @@ import { Formik, Form, Field, ErrorMessage, FormikHelpers} from "formik";
import styles from "./Newsletter.module.scss";
import NewsletterSchema from "./Schema/NewsletterSchema";
import { Button } from "../Button/Buttom";
interface NewsletterValue {
email: string;
@ -40,10 +39,12 @@ const Newsletter = () => {
<div className={styles["newsletter__form__items__email"]}>
<Field id="email" name="email" placeholder="E-mail" className={errors.email && touched.email && "invalid"}
/>
<ErrorMessage component="span" name="email" className={styles["newsletter-invalid-feedback"]}/>
<ErrorMessage component="span" name="email" className={styles["newsletter__invalid-feedback"]}/>
</div>
<Button type="submit" text="Enviar" className={styles["newsletter__form__items__btn"]} />
<button type="submit" className={styles["newsletter__form__items__btn"]}>
Enviar
</button>
</div>
</Form>
)}

View File

@ -16,7 +16,7 @@
width: 35px;
&:hover {
filter: contrast(30%);
filter: contrast(60%);
}
&:active {

View File

@ -0,0 +1,32 @@
import React from "react";
import { BrowserRouter ,Routes, Route } from "react-router-dom";
import { MenuSideBar } from "../MenuSideBar/MenuSideBar";
import { Contato } from "./RoutesPages/Contato";
import { Entrega } from "./RoutesPages/Entrega";
import { FormaDePagamento } from "./RoutesPages/FormaDePagamento";
import { SegurancaEPrivacidade } from "./RoutesPages/SegurancaEPrivacidade";
import { Sobre } from "./RoutesPages/Sobre";
import { TrocaEDevolucao } from "./RoutesPages/TrocaEDevolucao";
const InstitucionalRoutes = () => {
return (
<BrowserRouter>
<MenuSideBar />
<Routes>
<Route path="/" element={<Sobre/>} />
<Route path="/formadepagamento" element={<FormaDePagamento/>} />
<Route path="/entrega" element={<Entrega/>} />
<Route path="/trocaedevolucao" element={<TrocaEDevolucao/>} />
<Route path="/segurancaeprivacidade" element={<SegurancaEPrivacidade/>} />
<Route path="/contato" element={<Contato/>} />
</Routes>
</BrowserRouter>
);
}
export { InstitucionalRoutes };

View File

@ -0,0 +1,18 @@
import React from "react";
import { InstitucionalForm } from "../../InstitucionalForm/InstitucionalForm";
import styles from "./RoutesPages.module.scss";
const Contato = () => {
return (
<section className={styles["institucional__content"]}>
<h2 className={styles["institucional__content__title"]}>Preencha o Formulário </h2>
<InstitucionalForm />
</section>
);
}
export { Contato };

View File

@ -0,0 +1,26 @@
import React from "react";
import styles from "./RoutesPages.module.scss";
const Entrega = () => {
return (
<section className={styles["institucional__content"]}>
<h2 className={styles["institucional__content__title"]}>Entrega</h2>
<p className={styles["institucional__content__paragraph"]}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p className={styles["institucional__content__paragraph"]}>
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.
</p>
<p className={styles["institucional__content__paragraph"]}>
Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
</p>
</section>
);
}
export { Entrega };

View File

@ -0,0 +1,26 @@
import React from "react";
import styles from "./RoutesPages.module.scss";
const FormaDePagamento = () => {
return (
<section className={styles["institucional__content"]}>
<h2 className={styles["institucional__content__title"]}>Forma de Pagamento</h2>
<p className={styles["institucional__content__paragraph"]}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p className={styles["institucional__content__paragraph"]}>
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.
</p>
<p className={styles["institucional__content__paragraph"]}>
Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
</p>
</section>
);
}
export { FormaDePagamento };

View File

@ -0,0 +1,48 @@
@use '../../../variables';
.institucional__content {
width: 100%;
margin-left: 30px;
@media (max-width: 1024px) {
margin-left: 0;
}
&__title {
font-weight: 700;
font-size: 24px;
line-height: 28px;
color: variables.$black-200;
margin: 10px 0 12px 0;
@media (min-width: 2500px) {
font-size: 48px;
line-height: 56px;
}
@media (max-width: 1024px) {
margin-top: 30px;
text-align: center;
}
}
&__paragraph {
font-size: 13px;
line-height: 15px;
color: variables.$gray-100;
margin-bottom: 20px;
&:last-child {
margin-bottom: 0;
}
@media (min-width: 2500px) {
font-size: 26px;
line-height: 30px;
}
@media (max-width: 1024px) {
text-align: justify;
}
}
}

View File

@ -0,0 +1,26 @@
import React from "react";
import styles from "./RoutesPages.module.scss";
const SegurancaEPrivacidade = () => {
return (
<section className={styles["institucional__content"]}>
<h2 className={styles["institucional__content__title"]}>Segurança e Privacidade</h2>
<p className={styles["institucional__content__paragraph"]}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p className={styles["institucional__content__paragraph"]}>
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.
</p>
<p className={styles["institucional__content__paragraph"]}>
Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
</p>
</section>
);
}
export { SegurancaEPrivacidade };

View File

@ -0,0 +1,26 @@
import React from "react";
import styles from "./RoutesPages.module.scss";
const Sobre = () => {
return (
<section className={styles["institucional__content"]}>
<h2 className={styles["institucional__content__title"]}>Sobre</h2>
<p className={styles["institucional__content__paragraph"]}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p className={styles["institucional__content__paragraph"]}>
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.
</p>
<p className={styles["institucional__content__paragraph"]}>
Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
</p>
</section>
);
}
export { Sobre };

View File

@ -0,0 +1,26 @@
import React from "react";
import styles from "./RoutesPages.module.scss";
const TrocaEDevolucao = () => {
return (
<section className={styles["institucional__content"]}>
<h2 className={styles["institucional__content__title"]}>Troca e Devolução</h2>
<p className={styles["institucional__content__paragraph"]}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p className={styles["institucional__content__paragraph"]}>
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.
</p>
<p className={styles["institucional__content__paragraph"]}>
Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
</p>
</section>
);
}
export { TrocaEDevolucao };

View File

@ -0,0 +1,14 @@
import React from "react";
interface Title {
text: string;
titleClassName?: string;
}
const TitlePrincipal = ( props: Title) => {
const { text, titleClassName } = props;
return <h1 className={titleClassName}> { text } </h1>;
};
export { TitlePrincipal };

View File

@ -15,4 +15,18 @@
@media (max-width: 1024px) {
height: 139px;
}
}
}
.institucional {
padding: 0 100px;
margin: 29px 0 70px;
@media (min-width: 2500px) {
margin-bottom: 84px;
}
@media (max-width: 1024px) {
padding: 0 16px;
margin-bottom: 81px ;
}
}

View File

@ -4,9 +4,10 @@ import styles from "./Home.module.scss";
import { HeaderTop } from "../components/HeaderTop/HeaderTop";
import { HeaderBottom } from "../components/HeaderBottom/HeaderBottom";
import { Main } from "../components/Main/Main";
import { Newsletter } from "../components/Newsletter/Newsletter";
import { FooterBottom } from "../components/FooterBottom/FooterBottom";
import { FooterTop } from "../components/FooterTop/FooterTop";
import { FooterBottom } from "../components/FooterBottom/FooterBottom";
import { WhatsAppAndScrollTop } from "../components/WhatsAppAndScrollTop/WhatsAppAndScrollTop";
const Home = () => {
@ -18,7 +19,9 @@ const Home = () => {
<HeaderBottom />
</header>
<main></main>
<main className={styles["institucional"]}>
<Main />
</main>
<footer>
<Newsletter />