From b2b7f25ae8602c09f36472ff587412dfa75800fc Mon Sep 17 00:00:00 2001 From: devartes Date: Thu, 12 Jan 2023 16:08:17 -0300 Subject: [PATCH] =?UTF-8?q?refactor(footer):=20substitui=C3=A7=C3=A3o=20do?= =?UTF-8?q?=20nome=20BackToTopButton=20por=20SubListContent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Footer/FooterTop.tsx | 104 +++++++++++++----- ...BackToTopButton.tsx => SubListContent.tsx} | 5 +- .../Footer/styles/Footer.module.scss | 8 +- 3 files changed, 81 insertions(+), 36 deletions(-) rename src/components/Footer/{BackToTopButton.tsx => SubListContent.tsx} (94%) diff --git a/src/components/Footer/FooterTop.tsx b/src/components/Footer/FooterTop.tsx index 34bd6f2..f5f3b9f 100644 --- a/src/components/Footer/FooterTop.tsx +++ b/src/components/Footer/FooterTop.tsx @@ -5,59 +5,105 @@ import TwitterIcon from "./assets/icons/TwitterIcon.svg"; import YoutubeIcon from "./assets/icons/YoutubeIcon.svg"; import LinkedInIcon from "./assets/icons/LinkedInIcon.svg"; import PlusIcon from "./assets/icons/PlusIcon.svg"; -import { BackToTopButton } from "./BackToTopButton"; +import { SubListContent } from "./SubListContent"; const FooterTop = () => { return (
diff --git a/src/components/Footer/BackToTopButton.tsx b/src/components/Footer/SubListContent.tsx similarity index 94% rename from src/components/Footer/BackToTopButton.tsx rename to src/components/Footer/SubListContent.tsx index fd34a4f..7b1493d 100644 --- a/src/components/Footer/BackToTopButton.tsx +++ b/src/components/Footer/SubListContent.tsx @@ -2,7 +2,7 @@ import { useEffect, useState } from "react"; import ArrowIcon from "./assets/icons/ArrowIcon.svg"; import WhatsAppIcon from "./assets/icons/WhatsAppIcon.svg"; -const BackToTopButton = () => { +const SubListContent = () => { const [backToToButton, setBackToToButton] = useState(false); useEffect(() => { window.addEventListener("scroll", () => { @@ -17,7 +17,6 @@ const BackToTopButton = () => { window.scrollTo({ top: 0, behavior: "smooth", - }); }; return ( @@ -50,4 +49,4 @@ const BackToTopButton = () => { ); }; -export { BackToTopButton }; +export { SubListContent }; diff --git a/src/components/Footer/styles/Footer.module.scss b/src/components/Footer/styles/Footer.module.scss index a8794b2..9fb34b3 100644 --- a/src/components/Footer/styles/Footer.module.scss +++ b/src/components/Footer/styles/Footer.module.scss @@ -174,7 +174,7 @@ footer { } & img { height: 20.14px; - @media (min-width: 2500px) { + @media (min-width: 2500px) { height: 40.25px; } @media (max-width: 376px) { @@ -515,7 +515,7 @@ footer { width: 100%; column-gap: 0px; } - &__Lista { + &__List { position: relative; list-style: none; padding-left: 0; @@ -568,7 +568,7 @@ footer { } } } - &__SubLista { + &__SubList { padding-left: 0; position: fixed; right: 16px; @@ -633,7 +633,7 @@ footer { margin: 0; padding: 0; @media (min-width: 2500px) { - height: 139.49px; + height: 139.49px; } @media (max-width: 1025px) { height: 180.49px;