feat: adiciona o body e sua estilização

This commit is contained in:
Gabriel Gomes Fernandes 2023-01-20 19:19:30 -03:00
parent 935047244e
commit f54602f929
15 changed files with 566 additions and 0 deletions

View File

@ -0,0 +1,3 @@
<svg width="10" height="16" viewBox="0 0 10 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M8.94167 7.03685L2.22531 0.320703C1.79807 -0.106746 1.10537 -0.106746 0.678334 0.320703C0.251265 0.747771 0.251265 1.44043 0.678334 1.86747L6.62128 7.81023L0.678507 13.7528C0.251438 14.18 0.251438 14.8726 0.678507 15.2997C1.10558 15.7269 1.79824 15.7269 2.22548 15.2997L8.94185 8.58344C9.15538 8.3698 9.26203 8.0901 9.26203 7.81026C9.26203 7.53029 9.15517 7.25038 8.94167 7.03685Z" fill="#C4C4C4"/>
</svg>

After

Width:  |  Height:  |  Size: 511 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,158 @@
.body-container {
margin: 30px 100px 70px 100px;
@media screen and (min-width: 2500px) {
margin: 30px 100px 84px 100px;
height: 826px;
}
@media screen and (max-width: 1024px) {
margin: 30px 16px 80px 16px;
}
h1 {
font-family: "Roboto", sans-serif;
font-style: normal;
font-weight: 400;
font-size: 24px;
line-height: 28px;
letter-spacing: 0.1em;
text-transform: uppercase;
color: #292929;
text-align: center;
margin: 0 0 80px 0;
@media screen and (min-width: 2500px) {
font-size: 48px;
line-height: 56px;
}
@media screen and (max-width: 1024px) {
margin: 0 0 40px 0;
}
}
.menu-list-container {
display: flex;
@media screen and (max-width: 1024px) {
display: block;
}
.menu-list {
width: 100%;
max-width: 302px;
height: 285px;
list-style-type: none;
border-right: 1px solid black;
padding: unset;
@media screen and (min-width: 2500px) {
max-width: 590px;
height: 465px;
}
@media screen and (max-width: 1024px) {
max-width: unset;
border: none;
height: 224px;
}
li {
width: 100%;
max-width: 302px;
height: 39px;
padding: 10px 16px;
font-family: "Roboto", sans-serif;
font-weight: 400;
font-size: 16px;
line-height: 19px;
color: #7d7d7d;
cursor: pointer;
@media screen and (min-width: 2500px) {
max-width: 590px;
height: 58px;
font-size: 32px;
line-height: 38px;
margin-bottom: 10px;
}
@media screen and (max-width: 1024px) {
width: 100%;
}
}
li.active {
color: white;
background-color: black;
max-width: unset;
}
.menu-list-sobre {
color: white !important;
background-color: black;
}
}
.menu-list-container > div {
width: 100%;
}
.description-container {
padding-top: 10px;
margin: 0px 0px 0px 30px;
@media screen and (max-width: 1024px) {
padding: unset;
margin: unset;
}
h2 {
font-family: "Roboto", sans-serif;
font-weight: 700;
font-size: 24px;
line-height: 28px;
color: #292929;
margin-bottom: 12px;
@media screen and (min-width: 2500px) {
font-size: 48px;
line-height: 56px;
margin: unset;
margin-bottom: 12px;
}
@media screen and (max-width: 1024px) {
text-align: center;
margin-top: 30px;
margin-bottom: 12px;
}
}
p {
font-family: "Roboto", sans-serif;
font-size: 13px;
line-height: 15px;
color: #7d7d7d;
margin-bottom: 20px;
@media screen and (min-width: 2500px) {
font-size: 26px;
line-height: 30px;
}
@media screen and (max-width: 1024px) {
font-size: 12px;
line-height: 18px;
}
}
.description-parag {
@media screen and (max-width: 1024px) {
display: none;
}
}
}
}
}

View File

@ -0,0 +1,25 @@
import React from "react";
import styles from "./Body.module.scss";
import { BreadCrumb } from "./BreadCrumb/BreadCrumb";
import { TabDisposition } from "./Tabs/TabDisposition";
import { TabsContents } from "./Tabs/TabDispositionItems";
const Body = () => {
return (
<div className={styles["body-container"]}>
<BreadCrumb />
<h1>Institucional</h1>
<div className={styles["menu-list-container"]}>
<TabDisposition tabs={TabsContents} />
<section className={styles["description-container"]}>
<div className={styles["description"]}></div>
</section>
</div>
</div>
);
};
export { Body };

View File

@ -0,0 +1,50 @@
.breadcrumb-container {
display: flex;
align-items: center;
margin-bottom: 80px;
button {
display: inherit;
background-color: transparent;
align-items: center;
.breadcrumb-home {
width: 100%;
max-width: 16px;
height: 16px;
margin-right: 10px;
cursor: pointer;
@media screen and (min-width: 2500px) {
max-width: 31px;
height: 31px;
}
}
.arrow {
width: 100%;
max-width: 4px;
height: 8px;
margin-right: 10px;
@media screen and (min-width: 2500px) {
max-width: 9px;
height: 15px;
}
}
a {
font-family: "Roboto", sans-serif;
font-weight: 400;
font-size: 12px;
line-height: 14px;
color: #c4c4c4;
text-decoration: none;
text-transform: uppercase;
@media screen and (min-width: 2500px) {
font-size: 24px;
line-height: 28px;
}
}
}
}

View File

@ -0,0 +1,26 @@
import React from "react";
import breadcrumb from "../../../assets/images/breadcrumbicon.svg";
import arrow from "../../../assets/images/arrowicon.svg";
import styles from "./BreadCrumb.module.scss";
const BreadCrumb = () => {
return (
<>
<div className={styles["breadcrumb-container"]}>
<button className={styles["breadcrumb"]}>
<img
src={breadcrumb}
alt="breadcrumb-home"
className={styles["breadcrumb-home"]}
/>
<img src={arrow} alt="breadcrumb-arrow" className={styles["arrow"]} />
<a href="/">Institucional</a>
</button>
</div>
</>
);
};
export { BreadCrumb };

View File

@ -0,0 +1,7 @@
import React from "react";
const Contato = () => {
return <div className=""></div>;
};
export { Contato };

View File

@ -0,0 +1,42 @@
import React from "react";
import styles from "../Body.module.scss";
const Entrega = () => {
return (
<section className={styles["description-container"]}>
<div className={styles["description"]}>
<h2>Entrega</h2>
<p>
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>
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["description-parag"]}>
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>
</div>
</section>
);
};
export { Entrega };

View File

@ -0,0 +1,42 @@
import React from "react";
import styles from "../Body.module.scss";
const Pagamento = () => {
return (
<section className={styles["description-container"]}>
<div className={styles["description"]}>
<h2>Forma de Pagamento</h2>
<p>
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>
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["description-parag"]}>
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>
</div>
</section>
);
};
export { Pagamento };

View File

@ -0,0 +1,42 @@
import React from "react";
import styles from "../Body.module.scss";
const Seguranca = () => {
return (
<section className={styles["description-container"]}>
<div className={styles["description"]}>
<h2>Segurança e Privacidade</h2>
<p>
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>
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["description-parag"]}>
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>
</div>
</section>
);
};
export { Seguranca };

View File

@ -0,0 +1,43 @@
import React from "react";
import styles from "../Body.module.scss";
const Sobre = () => {
return (
<section className={styles["description-container"]}>
<div className={styles["description"]}>
<h2>Sobre</h2>
<p>
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>
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["description-parag"]}>
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>
</div>
</section>
);
};
export { Sobre };

View File

@ -0,0 +1,46 @@
import React, { useEffect, useState } from "react";
import styles from "../Body.module.scss";
interface MenuValue {
title: string;
component: JSX.Element;
}
export interface TabDispositionProps {
tabs: MenuValue[];
}
const TabDisposition: React.FC<TabDispositionProps> = ({ tabs }) => {
const [selectecTab, setselectedTab] = useState<MenuValue>();
useEffect(() => {
setselectedTab(tabs[0]);
}, [tabs]);
const handleClick = (tab: MenuValue) => {
setselectedTab(tab);
};
return (
<>
<ul className={styles["menu-list"]}>
{tabs.map((tab, index) => {
return (
<li
key={tab.title}
onClick={() => {
handleClick(tab);
}}
className={
tabs.indexOf(selectecTab!) === index ? styles["active"] : ""
}
>
{tab.title}
</li>
);
})}
</ul>
<div className={styles["wrapper-text"]}>{selectecTab?.component}</div>
</>
);
};
export { TabDisposition };

View File

@ -0,0 +1,35 @@
import { Sobre } from "./Sobre";
import { Pagamento } from "./FormaDePagamento";
import { Entrega } from "./Entrega";
import { Troca } from "./TrocaEDevolucao";
import { Seguranca } from "./SegurancaEPrivacidade";
import { Contato } from "./Contato";
const TabsContents = [
{
title: "Sobre",
component: <Sobre />,
},
{
title: "Forma de Pagamento",
component: <Pagamento />,
},
{
title: "Entrega",
component: <Entrega />,
},
{
title: "Troca e Devolução",
component: <Troca />,
},
{
title: "Segurança e Privacidade",
component: <Seguranca />,
},
{
title: "Contato",
component: <Contato />,
},
];
export { TabsContents };

View File

@ -0,0 +1,42 @@
import React from "react";
import styles from "../Body.module.scss";
const Troca = () => {
return (
<section className={styles["description-container"]}>
<div className={styles["description"]}>
<h2>Troca e Devolução</h2>
<p>
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>
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["description-parag"]}>
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>
</div>
</section>
);
};
export { Troca };

View File

@ -1,12 +1,14 @@
import React from "react";
import { Header } from "../components/Header/Header";
import { Body } from "../components/Body/Body";
import { Footer } from "../components/Footer/Footer";
const Home = () => {
return (
<div>
<Header />
<Body />
<Footer />
</div>
);