From 48c523599a957c6600dc8e558e73268895671277 Mon Sep 17 00:00:00 2001 From: Emmanuel Vitor Date: Mon, 16 Jan 2023 12:10:48 -0300 Subject: [PATCH] feat: criar componente de paginas q serao renderizadas na rotas --- src/components/Layout/styles.module.scss | 12 ++ src/index.css | 1 + src/pages/Intitucional/Article.tsx | 19 +++ src/pages/Intitucional/Contact.module.scss | 67 +++++++++++ src/pages/Intitucional/Contato.tsx | 112 ++++++++++++++++++ src/pages/Intitucional/Entrega.tsx | 21 ++++ src/pages/Intitucional/FormaDePagamento.tsx | 21 ++++ .../Intitucional/Institucional.module.scss | 27 +++++ .../Intitucional/SegurancaEPrivacidade.tsx | 21 ++++ src/pages/Intitucional/Sobre.tsx | 21 ++++ src/pages/Intitucional/TrocaEDevolucao.tsx | 21 ++++ src/routes.tsx | 18 ++- 12 files changed, 355 insertions(+), 6 deletions(-) create mode 100644 src/pages/Intitucional/Article.tsx create mode 100644 src/pages/Intitucional/Contact.module.scss create mode 100644 src/pages/Intitucional/Contato.tsx create mode 100644 src/pages/Intitucional/Entrega.tsx create mode 100644 src/pages/Intitucional/FormaDePagamento.tsx create mode 100644 src/pages/Intitucional/SegurancaEPrivacidade.tsx create mode 100644 src/pages/Intitucional/Sobre.tsx create mode 100644 src/pages/Intitucional/TrocaEDevolucao.tsx diff --git a/src/components/Layout/styles.module.scss b/src/components/Layout/styles.module.scss index 26e74c0..b59b717 100644 --- a/src/components/Layout/styles.module.scss +++ b/src/components/Layout/styles.module.scss @@ -15,5 +15,17 @@ flex-direction: column; + h1 { + text-align: center; + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + font-size: 24px; + line-height: 28px; + letter-spacing: 0.1em; + text-transform: uppercase; + color: #292929; + + } } \ No newline at end of file diff --git a/src/index.css b/src/index.css index 9896224..683afd1 100644 --- a/src/index.css +++ b/src/index.css @@ -1,4 +1,5 @@ + body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', diff --git a/src/pages/Intitucional/Article.tsx b/src/pages/Intitucional/Article.tsx new file mode 100644 index 0000000..f662b05 --- /dev/null +++ b/src/pages/Intitucional/Article.tsx @@ -0,0 +1,19 @@ +import React, { ReactNode } from 'react'; + + + +interface ArticleProps { + title: string; + children: ReactNode; + +} +export const Article = ({ children, title }: ArticleProps) => { + return ( + <> +

{title}

+ {children} + + ) + +} + diff --git a/src/pages/Intitucional/Contact.module.scss b/src/pages/Intitucional/Contact.module.scss new file mode 100644 index 0000000..e8ef606 --- /dev/null +++ b/src/pages/Intitucional/Contact.module.scss @@ -0,0 +1,67 @@ +// @import "../components/Variables.scss"; + +.formulario { + display: flex; + flex-direction: column; + padding: 16px; + font-family: "Roboto"; + font-style: normal; + font-weight: 400; + font-size: 14px; + line-height: 16px; + + @media (min-width: 1025px) { + width: 100%; + padding: 12px 30px; + } + + input { + padding: 15px 20px; + margin: 12px 0; + border: 1px solid #000; + border-radius: 25px; + font-family: "Roboto"; + font-style: normal; + font-weight: 400; + font-size: 14px; + line-height: 16px; + color: #000; + + &::placeholder { + color: gray; + } + } + + button { + padding: 17px; + background: #000; + border-radius: 25px; + color: #fff; + } + + div { + display: flex; + justify-content: center; + align-items: center; + margin-bottom: 12px; + + label { + order: 2; + } + + input { + order: 3; + width: 18px; + height: 18px; + border: 1px solid #000; + border-radius: 3px; + margin: 0 4px; + } + } + + @media (max-width: 1024px) { + h2 { + text-align: center; + } + } +} \ No newline at end of file diff --git a/src/pages/Intitucional/Contato.tsx b/src/pages/Intitucional/Contato.tsx new file mode 100644 index 0000000..04cba7f --- /dev/null +++ b/src/pages/Intitucional/Contato.tsx @@ -0,0 +1,112 @@ +import React from 'react'; +import { Article } from './Article'; + +import { Formik, Form, Field, ErrorMessage } from "formik"; +import contactFormSchema from "../../schema/ContactFormSchema"; +import "./Contact.module.scss"; + + +interface IFormikValues { + name: string; + email: string; + cpf: string; + dateBirth: string; + phone: string; + instagram?: string; + checkbox: boolean; +} + +const initialValues = { + name: "", + email: "", + cpf: "", + dateBirth: "", + phone: "", + instagram: "", + checkbox: false, +}; + +const formSubmit = (values: IFormikValues) => { + console.log(values); +}; + +export const Contato = () => { + return ( +
+ + {({ errors, touched }) => ( +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + + )} +
+ +
+ ) + +} diff --git a/src/pages/Intitucional/Entrega.tsx b/src/pages/Intitucional/Entrega.tsx new file mode 100644 index 0000000..a96a3ca --- /dev/null +++ b/src/pages/Intitucional/Entrega.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import { Article } from './Article'; + + + +export const Entrega = () => { + return ( +
+

+ 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. +

+

+ 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. +

+

+ 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 ? +

+
+ ) + +} diff --git a/src/pages/Intitucional/FormaDePagamento.tsx b/src/pages/Intitucional/FormaDePagamento.tsx new file mode 100644 index 0000000..76d5649 --- /dev/null +++ b/src/pages/Intitucional/FormaDePagamento.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import { Article } from './Article'; + + + +export const FormaDePagamento = () => { + return ( +
+

+ 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. +

+

+ 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. +

+

+ 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 ? +

+
+ ) + +} diff --git a/src/pages/Intitucional/Institucional.module.scss b/src/pages/Intitucional/Institucional.module.scss index bfac74f..7da04fd 100644 --- a/src/pages/Intitucional/Institucional.module.scss +++ b/src/pages/Intitucional/Institucional.module.scss @@ -1,6 +1,19 @@ .batata { display: flex; gap: 30px; + height: 285px; + margin: 80px 0 70px; + + h2 { + margin: 0; + font-family: 'Roboto'; + font-style: normal; + font-weight: 700; + font-size: 24px; + line-height: 28px; + } + + .sideBar { display: flex; @@ -8,7 +21,9 @@ border-right: 1px solid #000; width: 100%; min-width: 302px; + height: 100%; padding: 0; + margin: 0; @media (min-width:2500px) {} @@ -42,5 +57,17 @@ .content-right { background-color: aquamarine; width: 100%; + + h2 {} + + p { + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + + color: #7D7D7D; + } } } \ No newline at end of file diff --git a/src/pages/Intitucional/SegurancaEPrivacidade.tsx b/src/pages/Intitucional/SegurancaEPrivacidade.tsx new file mode 100644 index 0000000..7ea5adc --- /dev/null +++ b/src/pages/Intitucional/SegurancaEPrivacidade.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import { Article } from './Article'; + + + +export const SegurancaEPrivacidade = () => { + return ( +
+

+ 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. +

+

+ 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. +

+

+ 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 ? +

+
+ ) + +} diff --git a/src/pages/Intitucional/Sobre.tsx b/src/pages/Intitucional/Sobre.tsx new file mode 100644 index 0000000..7c9659a --- /dev/null +++ b/src/pages/Intitucional/Sobre.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import { Article } from './Article'; + + + +export const Sobre = () => { + return ( +
+

+ 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. +

+

+ 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. +

+

+ 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 ? +

+
+ ) + +} diff --git a/src/pages/Intitucional/TrocaEDevolucao.tsx b/src/pages/Intitucional/TrocaEDevolucao.tsx new file mode 100644 index 0000000..5c3ace4 --- /dev/null +++ b/src/pages/Intitucional/TrocaEDevolucao.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import { Article } from './Article'; + + + +export const TrocaEDevolucao = () => { + return ( +
+

+ 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. +

+

+ 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. +

+

+ 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 ? +

+
+ ) + +} diff --git a/src/routes.tsx b/src/routes.tsx index 18bd827..9c3fb0c 100644 --- a/src/routes.tsx +++ b/src/routes.tsx @@ -1,6 +1,12 @@ import { Routes as ReactRouterRoutes, Route } from "react-router-dom" import { Layout } from "./components/Layout" +import { Contato } from "./pages/Intitucional/Contato" +import { Entrega } from "./pages/Intitucional/Entrega" +import { FormaDePagamento } from "./pages/Intitucional/FormaDePagamento" import { Instituicional } from "./pages/Intitucional/Instituicional" +import { SegurancaEPrivacidade } from "./pages/Intitucional/SegurancaEPrivacidade" +import { Sobre } from "./pages/Intitucional/Sobre" +import { TrocaEDevolucao } from "./pages/Intitucional/TrocaEDevolucao" @@ -10,12 +16,12 @@ export const Routes = () => { }> }> - Red} /> - batata2} /> - batata3} /> - batata4} /> - batata5} /> - batata6} /> + } index /> + } /> + } /> + } /> + } /> + } /> -- 2.34.1