diff --git a/src/components/Footer/index.tsx b/src/components/Footer/index.tsx index abaef8c..8290575 100644 --- a/src/components/Footer/index.tsx +++ b/src/components/Footer/index.tsx @@ -3,11 +3,15 @@ import { FooterBottom } from "../FooterBottom"; import { FooterTop } from "../FooterTop"; import { NewsLetter } from "../NewsLetter"; -const Footer = () => { +interface FooterProps { + windowWidth: number; +} + +const Footer = ({ windowWidth }: FooterProps) => { return ( ); diff --git a/src/components/FooterTop/index.tsx b/src/components/FooterTop/index.tsx index 6df76c7..2201761 100644 --- a/src/components/FooterTop/index.tsx +++ b/src/components/FooterTop/index.tsx @@ -1,4 +1,4 @@ -import React from "react"; +import React, { useEffect, useState } from "react"; import styles from "./styles.module.scss"; import facebook from "../../assets/images/facebook.png"; import instagram from "../../assets/images/instagram.png"; @@ -6,66 +6,110 @@ import twitter from "../../assets/images/twitter.png"; import youTube from "../../assets/images/youTube.png"; import linkedIn from "../../assets/images/linkedIn.png"; -const FooterTop = () => { +interface FooterTopProps { + windowWidth: number; +} + +interface AccordionProps extends FooterTopProps { + title: string; + content: string[]; +} + +const Accordion = ({ title, content, windowWidth }: AccordionProps) => { + const [isActive, setIsActive] = useState(false); + + useEffect(() => { + if (windowWidth > 1024) { + setIsActive(true); + } else if (windowWidth <= 1024) { + setIsActive(false); + } + }, [windowWidth]); + + return ( +
(11) 4159 9504
-(11) 99433-8825
-(11) 4159 9504
+(11) 99433-8825
+