From cb827ef0def7f568d340c5d17ede46f69d93c15b Mon Sep 17 00:00:00 2001 From: Rallenson Date: Mon, 9 Jan 2023 04:58:09 -0300 Subject: [PATCH] feat(institucional):estruturas dos conteiners conteiners estruturados com css aplicado --- .../src/components/modules/home.module.scss | 51 +++++++++++++++++++ desafio-5/src/components/scripts/header.tsx | 2 +- desafio-5/src/components/utils/Variables.scss | 1 + desafio-5/src/pages/Institucional.tsx | 30 ++++++++++- 4 files changed, 81 insertions(+), 3 deletions(-) diff --git a/desafio-5/src/components/modules/home.module.scss b/desafio-5/src/components/modules/home.module.scss index a11b09d..50b41be 100644 --- a/desafio-5/src/components/modules/home.module.scss +++ b/desafio-5/src/components/modules/home.module.scss @@ -38,6 +38,7 @@ display: flex; flex-direction: column; align-items: center; + &_title{ text-align: center; font-family: 'Roboto',sans-serif; @@ -48,6 +49,56 @@ letter-spacing: 0.1em; margin-bottom: 80px; } + + &-main{ + // background: pink; + width: 100%; + display: flex; + gap: 30px; + &-departaments{ + border-right: 2px solid $-black; + background: $-white; + display: flex; + flex-direction: column; + button{ + width: 302px; + height: 39px; + text-align: start; + padding-left: 10px; + font-family: 'Roboto',sans-serif; + font-style: normal; + font-weight: 400; + font-size: 16px; + line-height: 19px; + color: $-gray-bold; + + &:hover{ + background: $-black; + color: $-white; + font-weight: 700; + } + } + } + &-section{ + width: 100%; + #title{ + font-family: 'Roboto',sans-serif; + font-style: normal; + font-weight: 700; + font-size: 24px; + line-height: 28px; + margin-bottom: 12px; + } + p{ + font-family: 'Roboto',sans-serif; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + color: $-gray-bold; + } + } + } } } diff --git a/desafio-5/src/components/scripts/header.tsx b/desafio-5/src/components/scripts/header.tsx index e550aee..a4f9e4a 100644 --- a/desafio-5/src/components/scripts/header.tsx +++ b/desafio-5/src/components/scripts/header.tsx @@ -1,4 +1,4 @@ -import React, { useState, useEffect, useRef, useMemo, useCallback,useContext} from "react" +import React, {useContext} from "react" import { Formik,Form, Field, FormikHelpers } from 'formik'; import { Submenu } from "../../Modal/submenuModal"; diff --git a/desafio-5/src/components/utils/Variables.scss b/desafio-5/src/components/utils/Variables.scss index 672f9df..7af2bbe 100644 --- a/desafio-5/src/components/utils/Variables.scss +++ b/desafio-5/src/components/utils/Variables.scss @@ -8,6 +8,7 @@ $-gray-200: #F2F2F2; $-gray-300:#C4C4C4; $-gray-400:#C6C6C6; $-gray-500:#858585; +$-gray-bold:#7D7D7D;; $-gray-600:#333333; $-prisma: #FF5A5F; $-crimson: rgb(156, 4, 34); diff --git a/desafio-5/src/pages/Institucional.tsx b/desafio-5/src/pages/Institucional.tsx index 6625816..ee40503 100644 --- a/desafio-5/src/pages/Institucional.tsx +++ b/desafio-5/src/pages/Institucional.tsx @@ -25,8 +25,34 @@ const Home = () =>{
- - conteudo da main + <Title className={MainStyles.main_wrapper_contend_title} nameTitle={title} /> + + <div className={MainStyles["main_wrapper_contend-main"]}> + <div className={MainStyles["main_wrapper_contend-main-departaments"]}> + <button>Sobre</button> + <button>Forma de Pagamento</button> + <button>Entrega</button> + <button>Troca e Devolução</button> + <button>Segurança e Privacidade</button> + <button>Contato</button> + </div> + <div className={MainStyles["main_wrapper_contend-main-section"]}> + <section> + <h2 id={MainStyles["title"]}>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> + <br /> + <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> + <br /> + <p> + 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> + </div> + </div> </div> </div> )