feat(footer-top): Torna footer top responsivo para mobile com menu estilo acordeon #8

Merged
ManuelaLuanaSchumackerTavares merged 1 commits from feature/footer-top-responsive-mobile into develop 2023-01-14 18:28:28 +00:00
3 changed files with 138 additions and 0 deletions

View File

@ -1,6 +1,7 @@
import React from "react";
import { DropDownItem } from "../atomo/DropDownItem";
import { SocialMediaItem } from "../atomo/SocialMediaItem";
import { FooterTopMobile } from "./FooterTopMobile";
import style from "../components/footer-top.module.scss";
import facebook from "../assets/svgs/facebookicon.svg";
@ -13,6 +14,7 @@ const FooterTop = () => {
return (
<footer className={style["footer-container"]}>
<div className={style["footer-wrapper"]}>
<FooterTopMobile />
<section className={style["footer-list-wrapper"]}>
<ul className={style["footer-list"]}>
<h3>Institucional</h3>

View File

@ -0,0 +1,62 @@
import React from "react";
import {
Accordion,
AccordionBody,
AccordionHeader,
AccordionItem,
} from "react-headless-accordion";
import style from "../components/footer-top.module.scss";
// import { DropDownItem } from "../atomo/DropDownItem";
const FooterTopMobile = () => {
return (
<Accordion className={style["footer-accordion"]}>
<AccordionItem>
<AccordionHeader className={style["footer-button"]}>
<h3>Institucional</h3>
</AccordionHeader>
<AccordionBody className={style["footer-list-accordion"]}>
<div className={style["footer-list-item"]}>
<a href="/">Quem Somos</a>
<a href="/">Política de Privacidade</a>
<a href="/">Segurança</a>
<a href="/">Seja um Revendedor</a>
</div>
</AccordionBody>
</AccordionItem>
<AccordionItem>
<AccordionHeader className={style["footer-button"]}>
<h3>Dúvidas</h3>
</AccordionHeader>
<AccordionBody className={style["footer-list-accordion"]}>
<div className={style["footer-list-item"]}>
<a href="/">Entrega</a>
<a href="/">Pagamento</a>
<a href="/">Trocas e Devoluções</a>
<a href="/">Dúvidas Frequentes</a>
</div>
</AccordionBody>
</AccordionItem>
<AccordionItem>
<AccordionHeader className={style["footer-button"]}>
<h3>Fale Conosco</h3>
</AccordionHeader>
<AccordionBody className={style["footer-list-accordion"]}>
<div className={style["footer-list-item"]}>
<h4>Atendimento ao Consumidor</h4>
<a href="/">(11) 4159-9504</a>
<h4>Atendimento Online</h4>
<a href="/">(11) 99433-8825</a>
</div>
</AccordionBody>
</AccordionItem>
</Accordion>
);
};
export { FooterTopMobile };

View File

@ -7,6 +7,7 @@
border-top: 1px solid variables.$color-black;
display: flex;
position: relative;
.footer-wrapper {
display: flex;
@ -15,10 +16,80 @@
margin: 0 auto;
width: 80.46875%;
//mobile
@media screen and (max-width: 1024px) {
width: 100%;
flex-direction: column;
padding: 24px 16px;
}
.footer-accordion {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: space-between;
z-index: 5;
width: 100%;
.footer-button {
outline: 0;
border: 0;
background: variables.$color-white;
width: 100%;
padding: 12px 0;
display: flex;
justify-content: space-between;
&::after {
content: "+";
font-weight: 500;
font-size: 14px;
line-height: 16px;
color: variables.$color-black3;
}
h3 {
font-weight: 500;
font-size: 14px;
line-height: 16px;
text-transform: capitalize;
color: variables.$color-black3;
}
}
.footer-list-accordion {
width: 100%;
}
.footer-list-item {
display: flex;
flex-direction: column;
background: variables.$color-white;
width: 100%;
a {
text-decoration: none;
font-weight: 400;
font-size: 14px;
line-height: 16px;
text-transform: capitalize;
margin-top: 6px;
color: variables.$color-grey;
}
}
}
//desktop
.footer-list-wrapper {
display: flex;
gap: 121px;
@media screen and (max-width: 1024px) {
display: none;
}
.footer-list {
display: flex;
flex-direction: column;
@ -56,6 +127,9 @@
display: flex;
flex-direction: column;
gap: 12px;
position: absolute;
bottom: 20px;
z-index: 1;
.footer-social-media-wrapper {
display: flex;