feat(development): add news letter and header

This commit is contained in:
Marcello Rodrigues Martins 2023-01-11 16:56:05 -03:00
commit 99a72e6899
5 changed files with 129 additions and 19 deletions

View File

@ -2,7 +2,8 @@ import React from "react";
import "./App.css";
import { createBrowserRouter, RouterProvider } from "react-router-dom";
import Header from "./components/Header";
import Footer from "./components/Footer";
// import Footer from "./components/Footer";
import NewsLetter from "./components/newsLetter";
import Home from "./pages/Home";
import Institutional from "./pages/Institutional";
@ -22,7 +23,7 @@ function App() {
<div className="App">
<Header />
<RouterProvider router={router} />
<Footer />
<NewsLetter />
</div>
);
}

View File

@ -1,11 +0,0 @@
import styles from "./styles.module.scss";
export default function Footer() {
return (
<>
<footer className={styles.footer}>
<div className={styles.jorgin}>assine essa bosta</div>
</footer>
</>
);
}

View File

@ -1,6 +0,0 @@
.footer {
background: green;
}
.jorgin {
color: blue;
}

View File

@ -0,0 +1,23 @@
import styles from "./styles.module.scss";
export default function newsLetter() {
return (
<>
<footer className={styles.newsLetter}>
<div className={styles.firstDivNews}>
{/* <div className={styles.containerNews}> */}
<h2 className={styles.firstH2}>assine nossa newsletter</h2>
<div className={styles.secondDivNews}>
<input
type="email"
placeholder="E-mail"
className={styles.newsInput}
/>
<button className={styles.newsButton}>enviar</button>
</div>
{/* </div> */}
</div>
</footer>
</>
);
}

View File

@ -0,0 +1,103 @@
.newsLetter {
// background-color: black;
border-width: 1px 0px;
border-style: solid;
border-color: #000000;
width: 100%;
display: flex;
justify-content: center;
.firstDivNews {
width: 37.03%;
display: flex;
flex-direction: column;
.firstH2 {
padding: 16px 0 8px;
display: flex;
justify-content: center;
margin: auto;
text-transform: uppercase;
font-weight: 500;
font-size: 18px;
letter-spacing: 0.05em;
color: #303030;
margin-left: 0;
}
.secondDivNews {
display: flex;
justify-content: center;
gap: 8px;
padding-bottom: 16px;
.newsInput {
width: 71.73%;
font-weight: 400;
font-size: 14px;
padding: 11px 16px;
max-height: 42px;
border: 1px solid #e5e5e5;
border-radius: 4px;
&::placeholder {
color: #c4c4c4;
}
}
.newsButton {
width: 26.58%;
min-height: 42px;
background: #000000;
text-transform: uppercase;
color: white;
font-weight: 700;
font-size: 12px;
border: 0;
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
border-radius: 4px;
cursor: pointer;
}
}
}
}
@media screen and (max-width: 1024px) {
.firstDivNews {
width: 96.88% !important;
.firstH2 {
font-size: 14px;
}
.secondDivNews {
flex-direction: column;
width: 100%;
.newsInput {
width: 100% !important;
}
.newsButton {
width: 100% !important;
}
}
}
}
@media screen and (min-width: 2500px) {
.firstH2 {
font-size: 36px !important;
}
.newsInput {
max-height: unset !important;
height: 59px;
font-size: 28px !important;
}
.newsButton {
height: 59px;
font-size: 24px !important;
}
}