From 594211063c9cad3df9d583d7638012aa5cebf258 Mon Sep 17 00:00:00 2001 From: Bernardo Waldhelm Date: Sun, 1 Jan 2023 18:25:33 -0300 Subject: [PATCH] feat(home): ajustando footer top mobile, adicionando funcionalidade de ul fechadas e abrindo com click --- .../{FooterTop.module.scss => FooterTop.scss} | 30 +++++ src/components/Footer/FooterTop/FooterTop.tsx | 114 +++++++++++------- 2 files changed, 99 insertions(+), 45 deletions(-) rename src/components/Footer/FooterTop/{FooterTop.module.scss => FooterTop.scss} (80%) diff --git a/src/components/Footer/FooterTop/FooterTop.module.scss b/src/components/Footer/FooterTop/FooterTop.scss similarity index 80% rename from src/components/Footer/FooterTop/FooterTop.module.scss rename to src/components/Footer/FooterTop/FooterTop.scss index dea2650..300deb7 100644 --- a/src/components/Footer/FooterTop/FooterTop.module.scss +++ b/src/components/Footer/FooterTop/FooterTop.scss @@ -32,6 +32,8 @@ @media #{$mq-tablet}, #{$mq-mobile} { margin: 0; + width: 100%; + align-items: flex-start; } &__title { @@ -49,7 +51,35 @@ @media #{$mq-desktop}, #{$mq-tablet}, #{$mq-mobile} { font-size: 14px; line-height: 16px; + } + @media #{$mq-tablet}, #{$mq-mobile} { + display: flex; + align-items: center; + justify-content: space-between; + + &::after { + content: '+'; + font-family: $font-family; + font-style: normal; + font-weight: 500; + font-size: 14px; + line-height: 16px; + text-transform: uppercase; + color: $color-black-500; + + } + } + + &.opened { + &::after { + content: '-'; + } + } + + &.opened ~ .footer__top__block__item-list{ + display: flex; + margin-bottom: 12px; } } diff --git a/src/components/Footer/FooterTop/FooterTop.tsx b/src/components/Footer/FooterTop/FooterTop.tsx index c0ba663..b46572a 100644 --- a/src/components/Footer/FooterTop/FooterTop.tsx +++ b/src/components/Footer/FooterTop/FooterTop.tsx @@ -1,4 +1,6 @@ -import styles from './FooterTop.module.scss' +import { useState } from 'react'; + +import './FooterTop.scss' import facebook from '../../../assets/imgs/logo-facebook.png'; import instagram from '../../../assets/imgs/logo-instagram.png'; @@ -7,118 +9,140 @@ import youtube from '../../../assets/imgs/logo-youtube.png'; import linkedin from '../../../assets/imgs/logo-linkedin.png'; const FooterTop = () => { - return ( -
-
-
-

INSTITUCIONAL

-