diff --git a/src/components/FooterMenu/FooterMenu.module.scss b/src/components/FooterMenu/FooterMenu.module.scss index 25a979c..9facceb 100644 --- a/src/components/FooterMenu/FooterMenu.module.scss +++ b/src/components/FooterMenu/FooterMenu.module.scss @@ -8,14 +8,30 @@ gap: 293px; } - &__items { + @media ((min-width: 1025px) and (max-width: 1170px)) { + gap: 75px; + } + @media (max-width: 1024px) { + flex-direction: column; + gap: 0; + } + + &__top { + &__title, &__item, &__item-title { color: variables.$black-300; margin-bottom: 12px; } + + &__title-wrapper { + @media (max-width: 1024px) { + display: flex; + justify-content: space-between; + } + } &__title { font-weight: 500; @@ -23,26 +39,73 @@ line-height: 16px; text-transform: uppercase; + @media (max-width: 1024px) { + cursor: pointer; + + &:hover { + filter: contrast(60%); + } + } + @media (min-width: 2500px) { font-size: 28px; line-height: 33px; } } + &__plus-sign { + font-weight: 500; + color: variables.$black-300; + cursor: pointer; + + &:hover { + filter: contrast(60%); + } + + @media (min-width: 1025px) { + display: none; + } + } + + &__items { + @media (max-width: 1024px) { + visibility: visible; + opacity: 1; + padding-bottom: 12px; + transition: .3s ease; + transform: translateY(0); + } + } + + &__items-inactive { + @media (max-width: 1024px) { + visibility: hidden; + opacity: 0; + height: 0; + transform: translateY(-20%); + } + } + &__item, &__item-title { font-size: 12px; line-height: 14px; text-transform: capitalize; - + @media (min-width: 2500px) { font-size: 24px; line-height: 28px; } } + &__item { + &:hover { + filter:contrast(60%); + } + } + &__item-title { font-weight: 500; } } -} \ No newline at end of file +} diff --git a/src/components/FooterMenu/FooterMenu.tsx b/src/components/FooterMenu/FooterMenu.tsx index 793600b..1bbb5c5 100644 --- a/src/components/FooterMenu/FooterMenu.tsx +++ b/src/components/FooterMenu/FooterMenu.tsx @@ -1,4 +1,4 @@ -import React from "react"; +import {useState} from "react"; import styles from "./FooterMenu.module.scss"; @@ -6,73 +6,107 @@ import { ItemList } from "../ItemList/ItemList"; const FooterMenu = () => { + const [isActive, setIsActive] = useState(false); + const [isActive2, setIsActive2] = useState(false); + const [isActive3, setIsActive3] = useState(false); + return (
-
-

- INSTITUCIONAL -

+
-
    +
    setIsActive(!isActive)}> +

    + INSTITUCIONAL +

    + +
    + {isActive ? "-" : "+"} +
    +
    + +
-
-

- DÚVIDAS -

+
+ +
setIsActive2(!isActive2)}> +

+ DÚVIDAS +

+ +
+ {isActive2 ? "-" : "+"} +
+
+ +
-
-

- FALE CONOSCO -

+
-
    - +
    setIsActive3(!isActive3)}> +

    + FALE CONOSCO +

    + +
    + {isActive3 ? "-" : "+"} +
    +
    + +
diff --git a/src/components/FooterTop/FooterTop.module.scss b/src/components/FooterTop/FooterTop.module.scss index 4cc5cf6..b1fd4bf 100644 --- a/src/components/FooterTop/FooterTop.module.scss +++ b/src/components/FooterTop/FooterTop.module.scss @@ -5,4 +5,11 @@ justify-content: space-between; margin: 50px 0; padding: 0 100px; + + @media (max-width: 1024px) { + flex-direction: column; + justify-content: flex-start; + margin: 24px 0; + padding: 0 16px; + } }