feature/body #4
3
desafio5/src/assets/img/house.svg
Normal file
3
desafio5/src/assets/img/house.svg
Normal 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 |
3
desafio5/src/assets/img/seta.svg
Normal file
3
desafio5/src/assets/img/seta.svg
Normal 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 |
56
desafio5/src/components/Body/Body.tsx
Normal file
56
desafio5/src/components/Body/Body.tsx
Normal file
@ -0,0 +1,56 @@
|
||||
import React from "react";
|
||||
import home from "../../assets/img/house.svg";
|
||||
import seta from "../../assets/img/seta.svg";
|
||||
import TabLayout from "./Tabs/TabLayout";
|
||||
import Sobre from "./Tabs/Sobre";
|
||||
import FormaDePagamento from "./Tabs/FormaDePagamento";
|
||||
import Entrega from "./Tabs/Entrega";
|
||||
import TrocaEDevolucao from "./Tabs/TrocaEDevolucao";
|
||||
import SegurancaEPrivacidade from "./Tabs/SegurancaEPrivacidade";
|
||||
import Contato from "./Tabs/Contato";
|
||||
import style from "./body.module.scss";
|
||||
|
||||
const Body = () => {
|
||||
const TabsItems = [
|
||||
{
|
||||
title: "Sobre",
|
||||
component: <Sobre />,
|
||||
},
|
||||
{
|
||||
title: "Forma de Pagamento",
|
||||
component: <FormaDePagamento />,
|
||||
},
|
||||
{
|
||||
title: "Entrega",
|
||||
component: <Entrega />,
|
||||
},
|
||||
{
|
||||
title: "Troca e Devolução",
|
||||
component: <TrocaEDevolucao />,
|
||||
},
|
||||
{
|
||||
title: "Segurança e Privacidade",
|
||||
component: <SegurancaEPrivacidade />,
|
||||
},
|
||||
{
|
||||
title: "Contato",
|
||||
component: <Contato />,
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<div className={style["body"]}>
|
||||
<div className={style["breadcrumb"]}>
|
||||
<img className={style["home"]} src={home} alt="home" />
|
||||
<img className={style["seta"]} src={seta} alt="seta" />
|
||||
<p className={style["breadcrumb-text"]}>INSTITUCIONAL</p>
|
||||
</div>
|
||||
<h1 className={style["title-body"]}>INSTITUCIONAL</h1>
|
||||
<div className={style["container"]}>
|
||||
<TabLayout tabs={TabsItems} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Body;
|
7
desafio5/src/components/Body/Tabs/Contato.tsx
Normal file
7
desafio5/src/components/Body/Tabs/Contato.tsx
Normal file
@ -0,0 +1,7 @@
|
||||
import React from "react";
|
||||
|
||||
const Contato = () => {
|
||||
return <></>;
|
||||
};
|
||||
|
||||
export default Contato;
|
41
desafio5/src/components/Body/Tabs/Entrega.tsx
Normal file
41
desafio5/src/components/Body/Tabs/Entrega.tsx
Normal file
@ -0,0 +1,41 @@
|
||||
import React from "react";
|
||||
import style from "../body.module.scss";
|
||||
|
||||
const Entrega = () => {
|
||||
return (
|
||||
<div>
|
||||
<h2 className={style["title-text"]}>Entrega</h2>
|
||||
<p className={style["text"]}>
|
||||
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>
|
||||
<br />
|
||||
<p className={style["text"]}>
|
||||
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>
|
||||
<br />
|
||||
<p className={style["text"]}>
|
||||
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>
|
||||
);
|
||||
};
|
||||
|
||||
export default Entrega;
|
41
desafio5/src/components/Body/Tabs/FormaDePagamento.tsx
Normal file
41
desafio5/src/components/Body/Tabs/FormaDePagamento.tsx
Normal file
@ -0,0 +1,41 @@
|
||||
import React from "react";
|
||||
import style from "../body.module.scss";
|
||||
|
||||
const FormaDePagamento = () => {
|
||||
return (
|
||||
<div>
|
||||
<h2 className={style["title-text"]}>Forma de Pagamento</h2>
|
||||
<p className={style["text"]}>
|
||||
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>
|
||||
<br />
|
||||
<p className={style["text"]}>
|
||||
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>
|
||||
<br />
|
||||
<p className={style["text"]}>
|
||||
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>
|
||||
);
|
||||
};
|
||||
|
||||
export default FormaDePagamento;
|
41
desafio5/src/components/Body/Tabs/SegurancaEPrivacidade.tsx
Normal file
41
desafio5/src/components/Body/Tabs/SegurancaEPrivacidade.tsx
Normal file
@ -0,0 +1,41 @@
|
||||
import React from "react";
|
||||
import style from "../body.module.scss";
|
||||
|
||||
const SegurancaEPrivacidade = () => {
|
||||
return (
|
||||
<div>
|
||||
<h2 className={style["title-text"]}>Segurança e Privacidade</h2>
|
||||
<p className={style["text"]}>
|
||||
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>
|
||||
<br />
|
||||
<p className={style["text"]}>
|
||||
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>
|
||||
<br />
|
||||
<p className={style["text"]}>
|
||||
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>
|
||||
);
|
||||
};
|
||||
|
||||
export default SegurancaEPrivacidade;
|
41
desafio5/src/components/Body/Tabs/Sobre.tsx
Normal file
41
desafio5/src/components/Body/Tabs/Sobre.tsx
Normal file
@ -0,0 +1,41 @@
|
||||
import React from "react";
|
||||
import style from "../body.module.scss";
|
||||
|
||||
const Sobre = () => {
|
||||
return (
|
||||
<div>
|
||||
<h2 className={style["title-text"]}>Sobre</h2>
|
||||
<p className={style["text"]}>
|
||||
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>
|
||||
<br />
|
||||
<p className={style["text"]}>
|
||||
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>
|
||||
<br />
|
||||
<p className={style["text"]}>
|
||||
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>
|
||||
);
|
||||
};
|
||||
|
||||
export default Sobre;
|
43
desafio5/src/components/Body/Tabs/TabLayout.tsx
Normal file
43
desafio5/src/components/Body/Tabs/TabLayout.tsx
Normal file
@ -0,0 +1,43 @@
|
||||
import React, { useState, useEffect } from "react";
|
||||
import style from "../body.module.scss";
|
||||
|
||||
interface MenuValue {
|
||||
title: string;
|
||||
component: JSX.Element;
|
||||
}
|
||||
|
||||
export interface TabLayoutProps {
|
||||
tabs: MenuValue[];
|
||||
}
|
||||
|
||||
const TabLayout: React.FC<TabLayoutProps> = ({ tabs }) => {
|
||||
const [selectedTab, setselectedTab] = useState<MenuValue>();
|
||||
useEffect(() => {
|
||||
setselectedTab(tabs[0]);
|
||||
}, [tabs]);
|
||||
const handleClick = (tab: MenuValue) => {
|
||||
setselectedTab(tab);
|
||||
};
|
||||
return (
|
||||
<>
|
||||
<ul className={style["list"]}>
|
||||
{tabs.map((tab, index) => {
|
||||
return (
|
||||
<li
|
||||
onClick={() => {
|
||||
handleClick(tab);
|
||||
}}
|
||||
className={
|
||||
tabs.indexOf(selectedTab!) === index ? style["active"] : ""
|
||||
}>
|
||||
{tab.title}
|
||||
</li>
|
||||
);
|
||||
})}
|
||||
</ul>
|
||||
<div className={style["wrapper-text"]}>{selectedTab?.component}</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default TabLayout;
|
41
desafio5/src/components/Body/Tabs/TrocaEDevolucao.tsx
Normal file
41
desafio5/src/components/Body/Tabs/TrocaEDevolucao.tsx
Normal file
@ -0,0 +1,41 @@
|
||||
import React from "react";
|
||||
import style from "../body.module.scss";
|
||||
|
||||
const TrocaEDevolucao = () => {
|
||||
return (
|
||||
<div>
|
||||
<h2 className={style["title-text"]}>Troca e Devolução</h2>
|
||||
<p className={style["text"]}>
|
||||
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>
|
||||
<br />
|
||||
<p className={style["text"]}>
|
||||
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>
|
||||
<br />
|
||||
<p className={style["text"]}>
|
||||
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>
|
||||
);
|
||||
};
|
||||
|
||||
export default TrocaEDevolucao;
|
96
desafio5/src/components/Body/body.module.scss
Normal file
96
desafio5/src/components/Body/body.module.scss
Normal file
@ -0,0 +1,96 @@
|
||||
.body {
|
||||
margin: 30px 100px 70px;
|
||||
.breadcrumb {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.home {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
.seta {
|
||||
width: 5px;
|
||||
height: 8px;
|
||||
margin: 0 10px;
|
||||
}
|
||||
.breadcrumb-text {
|
||||
font-family: "Roboto", sans-serif;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
color: #c4c4c4;
|
||||
}
|
||||
}
|
||||
.title-body {
|
||||
font-family: "Roboto", sans-serif;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
letter-spacing: 0.1em;
|
||||
color: #292929;
|
||||
margin: 80px 0;
|
||||
text-align: center;
|
||||
}
|
||||
.container {
|
||||
display: flex;
|
||||
text-align: justify;
|
||||
min-height: 285px;
|
||||
|
||||
.list {
|
||||
border-right: 1px solid #000000;
|
||||
max-height: 285px;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
|
||||
li {
|
||||
font-family: "Roboto", sans-serif;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 16px;
|
||||
line-height: 19px;
|
||||
color: #7d7d7d;
|
||||
width: 302px;
|
||||
padding: 10px 0px 10px 16px;
|
||||
cursor: pointer;
|
||||
}
|
||||
li.active {
|
||||
background-color: #000000;
|
||||
font-weight: 700;
|
||||
font-size: 16px;
|
||||
line-height: 19px;
|
||||
color: #ffffff;
|
||||
}
|
||||
}
|
||||
|
||||
.wrapper-text {
|
||||
margin-left: 30px;
|
||||
|
||||
.title-text {
|
||||
font-family: "Roboto", sans-serif;
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
color: #292929;
|
||||
margin-bottom: 12px;
|
||||
margin-top: 10px;
|
||||
text-transform: unset;
|
||||
}
|
||||
|
||||
.text {
|
||||
font-family: "Roboto", sans-serif;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 13px;
|
||||
line-height: 15px;
|
||||
color: #7d7d7d;
|
||||
}
|
||||
|
||||
.last {
|
||||
padding-bottom: 50px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -109,10 +109,10 @@ const Footer = () => {
|
||||
className={style["button-whats"]}
|
||||
target="blank"
|
||||
href="https://wa.me/+55022997886109">
|
||||
.
|
||||
{" "}
|
||||
</a>
|
||||
<a href="#header" className={style["up-button"]}>
|
||||
.
|
||||
{" "}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -156,10 +156,10 @@ const FooterMobile = () => {
|
||||
className={style["button-whats"]}
|
||||
target="blank"
|
||||
href="https://wa.me/+55022997886109">
|
||||
.
|
||||
{" "}
|
||||
</a>
|
||||
<a href="#header-mobile" className={style["up-button"]}>
|
||||
.
|
||||
{" "}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -130,6 +130,7 @@ p {
|
||||
|
||||
.last-link {
|
||||
text-decoration: underline;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.float-buttons {
|
||||
|
@ -1,6 +1,7 @@
|
||||
import React from "react";
|
||||
import Header from "../components/Header/Header";
|
||||
import HeaderMobile from "../components/Header/HeaderMobile";
|
||||
import Body from "../components/Body/Body";
|
||||
import Newsletter from "../components/Newsletter/Newsletter";
|
||||
import Footer from "../components/Footer/Footer";
|
||||
import FooterMobile from "../components/Footer/FooterMobile";
|
||||
@ -12,7 +13,9 @@ const Home = () => {
|
||||
<Header />
|
||||
<HeaderMobile />
|
||||
</header>
|
||||
<main></main>
|
||||
<main>
|
||||
<Body />
|
||||
</main>
|
||||
<footer>
|
||||
<Newsletter />
|
||||
<Footer />
|
||||
|
Loading…
Reference in New Issue
Block a user