forked from M3-Academy/desafio-react-e-typescript
feat(footer): Adicionando footer-top mobile e desktop
This commit is contained in:
parent
9e4e29ce0f
commit
bb2b4cd7a5
@ -3,6 +3,7 @@ import { Header } from "./components/Header/Header";
|
||||
import { Breadcrumb } from "./components/Breadcrumb/Breadcrumb";
|
||||
import { Content } from "./components/Content/Content";
|
||||
import { Newsletter } from "./components/Newsletter/Newsletter";
|
||||
import { Footer } from "./components/Footer/Footer";
|
||||
import "./global.css";
|
||||
|
||||
function App() {
|
||||
@ -15,6 +16,7 @@ function App() {
|
||||
</div>
|
||||
<Content />
|
||||
<Newsletter />
|
||||
<Footer />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
175
src/components/Footer/Footer.scss
Normal file
175
src/components/Footer/Footer.scss
Normal file
@ -0,0 +1,175 @@
|
||||
footer {
|
||||
width: auto;
|
||||
padding: 50px 100px;
|
||||
|
||||
.footer-top {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
.menu-list {
|
||||
display: flex;
|
||||
width: 60%;
|
||||
justify-content: space-between;
|
||||
|
||||
.institucional,
|
||||
.duvidas,
|
||||
.fale-conosco {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.menu-list-title {
|
||||
margin: 0;
|
||||
margin-bottom: 12px;
|
||||
font-family: "Roboto";
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
text-transform: uppercase;
|
||||
color: #303030;
|
||||
}
|
||||
|
||||
.menu-list-items {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
.menu-list-item {
|
||||
margin-bottom: 12px;
|
||||
list-style-type: none;
|
||||
font-family: "Roboto";
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
text-transform: capitalize;
|
||||
color: #303030;
|
||||
}
|
||||
|
||||
.menu-list-item-bold {
|
||||
font-family: "Roboto";
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
text-transform: capitalize;
|
||||
|
||||
color: #303030;
|
||||
}
|
||||
|
||||
.underscore {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.social-medias {
|
||||
width: auto;
|
||||
.social-media-icons {
|
||||
display: flex;
|
||||
|
||||
.social-media-icon {
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.social-media-icon > figure {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
.site {
|
||||
margin: 0;
|
||||
margin-top: 12px;
|
||||
|
||||
font-family: "Roboto";
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
color: #303030;
|
||||
}
|
||||
}
|
||||
|
||||
// Menu mobile
|
||||
.menu-list-mobile {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
footer {
|
||||
padding: 24px 16px;
|
||||
|
||||
.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.footer-top {
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
|
||||
.menu-list {
|
||||
display: none;
|
||||
}
|
||||
|
||||
// Menu mobile
|
||||
.menu-list-mobile {
|
||||
display: block;
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
.menu-list-mobile-title {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 6px 0px;
|
||||
|
||||
font-family: "Roboto";
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
color: #303030;
|
||||
|
||||
.plus-icon::after {
|
||||
content: "+";
|
||||
}
|
||||
.minus-icon::after {
|
||||
content: "-";
|
||||
}
|
||||
}
|
||||
|
||||
.menu-list-mobile-items {
|
||||
display: none;
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
|
||||
ul {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.menu-list-mobile-items,
|
||||
.menu-list-mobile-item {
|
||||
margin-bottom: 12px;
|
||||
list-style-type: none;
|
||||
font-family: "Roboto";
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
text-transform: capitalize;
|
||||
color: #303030;
|
||||
}
|
||||
}
|
||||
|
||||
.social-medias {
|
||||
padding-top: 6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
167
src/components/Footer/Footer.tsx
Normal file
167
src/components/Footer/Footer.tsx
Normal file
@ -0,0 +1,167 @@
|
||||
import React from "react";
|
||||
import { useState } from "react";
|
||||
import "./Footer.scss";
|
||||
import facebook from "./assets/facebook-icon.svg";
|
||||
import instagram from "./assets/instagram-icon.svg";
|
||||
import twitter from "./assets/twitter-icon.svg";
|
||||
import youtube from "./assets/youtube-icon.svg";
|
||||
import linkedin from "./assets/linkedin-icon.svg";
|
||||
|
||||
const Footer = () => {
|
||||
const [institucionalAberto, setinstitucional] = useState(true);
|
||||
const [duvidasAberto, setDuvidas] = useState(true);
|
||||
const [sacAberto, setSac] = useState(true);
|
||||
|
||||
const ToggleInstitucional = () => {
|
||||
setinstitucional(!institucionalAberto);
|
||||
};
|
||||
|
||||
const ToggleDuvidas = () => {
|
||||
setDuvidas(!duvidasAberto);
|
||||
};
|
||||
|
||||
const ToggleSac = () => {
|
||||
setSac(!sacAberto);
|
||||
};
|
||||
|
||||
return (
|
||||
<footer className="footer">
|
||||
{/* Footer Top */}
|
||||
<div className="footer-top">
|
||||
{/* Menu List */}
|
||||
<div className="menu-list">
|
||||
<div className="institucional">
|
||||
<p className="menu-list-title">Institucional</p>
|
||||
<ul className="menu-list-items">
|
||||
<li className="menu-list-item">Quem Somos</li>
|
||||
<li className="menu-list-item">Política de Privacidade</li>
|
||||
<li className="menu-list-item">Segurança</li>
|
||||
<li className="menu-list-item underscore">Seja um Revendedor</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div className="duvidas">
|
||||
<p className="menu-list-title">Dúvidas</p>
|
||||
<ul className="menu-list-items">
|
||||
<li className="menu-list-item">Entrega</li>
|
||||
<li className="menu-list-item">Pagamento</li>
|
||||
<li className="menu-list-item">Trocas e Devoluções</li>
|
||||
<li className="menu-list-item underscore">Dúvidas Frequentes</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div className="fale-conosco">
|
||||
<p className="menu-list-title">Fale Conosco</p>
|
||||
<ul className="menu-list-items">
|
||||
<li className="menu-list-item menu-list-item-bold">
|
||||
Atendimento ao Consumidor
|
||||
</li>
|
||||
<li className="menu-list-item">(11) 4159-9504</li>
|
||||
<li className="menu-list-item menu-list-item-bold">
|
||||
Atendimento Online
|
||||
</li>
|
||||
<li className="menu-list-item underscore">(11) 99433-8825</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Formato Mobile */}
|
||||
|
||||
{/* Institucional */}
|
||||
<div className="menu-list-mobile">
|
||||
<div className="menu-list-mobile-title">
|
||||
<p>Institucional</p>
|
||||
<span
|
||||
onClick={ToggleInstitucional}
|
||||
className={institucionalAberto ? "plus-icon" : "minus-icon"}
|
||||
></span>
|
||||
</div>
|
||||
|
||||
<ul className={institucionalAberto ? "menu-list-mobile-items" : ""}>
|
||||
<li className="menu-list-mobile-item">Quem Somos</li>
|
||||
<li className="menu-list-mobile-item">Política de Privacidade</li>
|
||||
<li className="menu-list-mobile-item">Segurança</li>
|
||||
<li className="menu-list-mobile-item underscore">
|
||||
Seja um Revendedor
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
{/* Duvidas */}
|
||||
<div className="menu-list-mobile-title">
|
||||
<p>Dúvidas</p>
|
||||
<span
|
||||
onClick={ToggleDuvidas}
|
||||
className={duvidasAberto ? "plus-icon" : "minus-icon"}
|
||||
></span>
|
||||
</div>
|
||||
|
||||
<ul className={duvidasAberto ? "menu-list-mobile-items" : ""}>
|
||||
<li className="menu-list-mobile-item">Entrega</li>
|
||||
<li className="menu-list-mobile-item">Pagamento</li>
|
||||
<li className="menu-list-mobile-item">Trocas e Devoluções</li>
|
||||
<li className="menu-list-mobile-item underscore">
|
||||
Dúvidas Frequentes
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
{/* Fale Conosco */}
|
||||
<div className="menu-list-mobile-title">
|
||||
<p>Fale Conosco</p>
|
||||
<span
|
||||
onClick={ToggleSac}
|
||||
className={sacAberto ? "plus-icon" : "minus-icon"}
|
||||
></span>
|
||||
</div>
|
||||
|
||||
<ul className={sacAberto ? "menu-list-mobile-items" : ""}>
|
||||
<li className="menu-list-mobile-item">Atendimento ao Consumidor</li>
|
||||
<li className="menu-list-mobile-item">(11) 4159-9504</li>
|
||||
<li className="menu-list-mobile-item">Atendimento Online</li>
|
||||
<li className="menu-list-mobile-item underscore">
|
||||
(11) 99433-8825
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{/* Redes Sociais */}
|
||||
<div className="social-medias">
|
||||
<div className="social-media-icons">
|
||||
<a href="/" className="social-media-icon">
|
||||
<figure>
|
||||
<img src={facebook} alt="" />
|
||||
</figure>
|
||||
</a>
|
||||
|
||||
<a href="/" className="social-media-icon">
|
||||
<figure>
|
||||
<img src={instagram} alt="" />
|
||||
</figure>
|
||||
</a>
|
||||
|
||||
<a href="/" className="social-media-icon">
|
||||
<figure>
|
||||
<img src={twitter} alt="" />
|
||||
</figure>
|
||||
</a>
|
||||
|
||||
<a href="/" className="social-media-icon">
|
||||
<figure>
|
||||
<img src={youtube} alt="" />
|
||||
</figure>
|
||||
</a>
|
||||
|
||||
<a href="/" className="social-media-icon">
|
||||
<figure>
|
||||
<img src={linkedin} alt="" />
|
||||
</figure>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<p className="site">www.loremipsum.com</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Footer Bottom */}
|
||||
<div className="footer-bottom"></div>
|
||||
</footer>
|
||||
);
|
||||
};
|
||||
export { Footer };
|
16
src/components/Footer/assets/facebook-icon.svg
Normal file
16
src/components/Footer/assets/facebook-icon.svg
Normal file
@ -0,0 +1,16 @@
|
||||
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_6527_455)">
|
||||
<g clip-path="url(#clip1_6527_455)">
|
||||
<path d="M19.1779 27.4911V18.544H22.1735L22.6229 15.0561H19.1779V12.8296C19.1779 11.8201 19.4565 11.1321 20.9027 11.1321L22.7441 11.1314V8.01168C22.4257 7.97021 21.3325 7.87512 20.0602 7.87512C17.4035 7.87512 15.5846 9.50028 15.5846 12.4842V15.0561H12.58V18.544H15.5846V27.4911H19.1779Z" fill="#303030"/>
|
||||
</g>
|
||||
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_6527_455">
|
||||
<rect width="35" height="35" fill="white"/>
|
||||
</clipPath>
|
||||
<clipPath id="clip1_6527_455">
|
||||
<rect width="19.574" height="19.616" fill="white" transform="translate(7.875 7.87509)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 799 B |
18
src/components/Footer/assets/instagram-icon.svg
Normal file
18
src/components/Footer/assets/instagram-icon.svg
Normal file
@ -0,0 +1,18 @@
|
||||
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_6527_460)">
|
||||
<g clip-path="url(#clip1_6527_460)">
|
||||
<path d="M22.0996 7.87509H13.2966C10.3071 7.87509 7.875 10.3036 7.875 13.2884V22.0777C7.875 25.0626 10.3071 27.491 13.2966 27.491H22.0996C25.0893 27.491 27.5214 25.0625 27.5214 22.0777V13.2884C27.5215 10.3036 25.0893 7.87509 22.0996 7.87509ZM25.7784 22.0777C25.7784 24.103 24.1281 25.7506 22.0997 25.7506H13.2966C11.2683 25.7507 9.61813 24.103 9.61813 22.0777V13.2884C9.61813 11.2632 11.2683 9.61551 13.2966 9.61551H22.0996C24.128 9.61551 25.7783 11.2632 25.7783 13.2884V22.0777H25.7784Z" fill="#303030"/>
|
||||
<path d="M17.6983 12.6288C14.9068 12.6288 12.6359 14.8962 12.6359 17.6833C12.6359 20.4703 14.9068 22.7376 17.6983 22.7376C20.4897 22.7376 22.7606 20.4703 22.7606 17.6833C22.7606 14.8962 20.4897 12.6288 17.6983 12.6288ZM17.6983 20.9971C15.8681 20.9971 14.379 19.5105 14.379 17.6832C14.379 15.8558 15.868 14.3691 17.6983 14.3691C19.5285 14.3691 21.0175 15.8558 21.0175 17.6832C21.0175 19.5105 19.5284 20.9971 17.6983 20.9971Z" fill="#303030"/>
|
||||
<path d="M22.973 11.1531C22.6372 11.1531 22.3072 11.2889 22.0701 11.5267C21.8317 11.7634 21.6947 12.0929 21.6947 12.4294C21.6947 12.7648 21.8318 13.0943 22.0701 13.3321C22.3071 13.5688 22.6372 13.7057 22.973 13.7057C23.31 13.7057 23.6389 13.5688 23.8771 13.3321C24.1153 13.0943 24.2513 12.7647 24.2513 12.4294C24.2513 12.0929 24.1153 11.7634 23.8771 11.5267C23.64 11.2889 23.31 11.1531 22.973 11.1531Z" fill="#303030"/>
|
||||
</g>
|
||||
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_6527_460">
|
||||
<rect width="35" height="35" fill="white"/>
|
||||
</clipPath>
|
||||
<clipPath id="clip1_6527_460">
|
||||
<rect width="19.6465" height="19.616" fill="white" transform="translate(7.875 7.87509)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.8 KiB |
18
src/components/Footer/assets/linkedin-icon.svg
Normal file
18
src/components/Footer/assets/linkedin-icon.svg
Normal file
@ -0,0 +1,18 @@
|
||||
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_6527_475)">
|
||||
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
|
||||
<g clip-path="url(#clip1_6527_475)">
|
||||
<path d="M13.4447 13.8592H10.2981C10.1584 13.8592 10.0453 13.9724 10.0453 14.112V24.2205C10.0453 24.3602 10.1584 24.4733 10.2981 24.4733H13.4447C13.5843 24.4733 13.6975 24.3602 13.6975 24.2205V14.112C13.6975 13.9724 13.5843 13.8592 13.4447 13.8592Z" fill="#303030"/>
|
||||
<path d="M11.8725 8.83395C10.7276 8.83395 9.79614 9.76438 9.79614 10.908C9.79614 12.0522 10.7276 12.9829 11.8725 12.9829C13.0165 12.9829 13.9472 12.0521 13.9472 10.908C13.9472 9.76438 13.0165 8.83395 11.8725 8.83395Z" fill="#303030"/>
|
||||
<path d="M21.4482 13.6079C20.1844 13.6079 19.2502 14.1512 18.6835 14.7685V14.112C18.6835 13.9724 18.5704 13.8592 18.4307 13.8592H15.4174C15.2777 13.8592 15.1646 13.9724 15.1646 14.112V24.2206C15.1646 24.3602 15.2777 24.4734 15.4174 24.4734H18.557C18.6967 24.4734 18.8098 24.3602 18.8098 24.2206V19.2192C18.8098 17.5338 19.2676 16.8772 20.4425 16.8772C21.722 16.8772 21.8236 17.9298 21.8236 19.3059V24.2206C21.8236 24.3603 21.9368 24.4734 22.0764 24.4734H25.2173C25.3569 24.4734 25.4701 24.3603 25.4701 24.2206V18.6759C25.4701 16.1698 24.9922 13.6079 21.4482 13.6079Z" fill="#303030"/>
|
||||
</g>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_6527_475">
|
||||
<rect width="35" height="35" fill="white"/>
|
||||
</clipPath>
|
||||
<clipPath id="clip1_6527_475">
|
||||
<rect width="15.6739" height="15.6739" fill="white" transform="translate(9.79614 8.81671)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
11
src/components/Footer/assets/twitter-icon.svg
Normal file
11
src/components/Footer/assets/twitter-icon.svg
Normal file
@ -0,0 +1,11 @@
|
||||
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_6527_467)">
|
||||
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
|
||||
<path d="M29.9914 10.1563C29.0947 10.5497 28.1392 10.8104 27.143 10.937C28.1678 10.3251 28.95 9.36358 29.3177 8.20462C28.3622 8.7743 27.3072 9.1767 26.1829 9.40126C25.2757 8.43521 23.9826 7.83688 22.5719 7.83688C19.835 7.83688 17.6316 10.0584 17.6316 12.7817C17.6316 13.1735 17.6648 13.5503 17.7462 13.909C13.6363 13.7086 9.99962 11.7388 7.5566 8.73813C7.13009 9.47812 6.87991 10.3251 6.87991 11.2369C6.87991 12.949 7.76157 14.4666 9.07577 15.3453C8.28152 15.3302 7.50235 15.0996 6.84223 14.7364C6.84223 14.7515 6.84223 14.7711 6.84223 14.7907C6.84223 17.193 8.55581 19.1884 10.8029 19.6481C10.4005 19.7581 9.96195 19.8108 9.5068 19.8108C9.19031 19.8108 8.8708 19.7928 8.57089 19.7264C9.21141 21.6842 11.029 23.1235 13.1902 23.1702C11.5082 24.4859 9.37267 25.2786 7.06076 25.2786C6.65535 25.2786 6.26652 25.2605 5.87769 25.2108C8.06751 26.623 10.6628 27.4293 13.4614 27.4293C22.5583 27.4293 27.5318 19.8937 27.5318 13.3619C27.5318 13.1434 27.5243 12.9324 27.5137 12.7229C28.4948 12.0266 29.3192 11.157 29.9914 10.1563Z" fill="#303030"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_6527_467">
|
||||
<rect width="35" height="35" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.3 KiB |
11
src/components/Footer/assets/youtube-icon.svg
Normal file
11
src/components/Footer/assets/youtube-icon.svg
Normal file
@ -0,0 +1,11 @@
|
||||
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_6527_472)">
|
||||
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
|
||||
<path d="M27.8026 12.2486C27.5447 11.2896 26.7885 10.5336 25.8296 10.2754C24.0778 9.79605 17.0705 9.79605 17.0705 9.79605C17.0705 9.79605 10.0635 9.79605 8.3117 10.2572C7.37124 10.5152 6.59666 11.2897 6.33869 12.2486C5.87769 14.0003 5.87769 17.633 5.87769 17.633C5.87769 17.633 5.87769 21.284 6.33869 23.0174C6.59693 23.9763 7.35279 24.7323 8.31183 24.9905C10.0819 25.47 17.0708 25.47 17.0708 25.47C17.0708 25.47 24.0778 25.47 25.8296 25.0088C26.7887 24.7507 27.5447 23.9947 27.8029 23.0358C28.2638 21.284 28.2638 17.6515 28.2638 17.6515C28.2638 17.6515 28.2822 14.0003 27.8026 12.2486ZM14.8396 20.989V14.277L20.6665 17.633L14.8396 20.989Z" fill="#303030"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_6527_472">
|
||||
<rect width="35" height="35" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 978 B |
Loading…
Reference in New Issue
Block a user