From 79116036b78749e0287071491117fdf2452c029a Mon Sep 17 00:00:00 2001 From: Sabrina Miranda Date: Wed, 11 Jan 2023 14:46:05 -0300 Subject: [PATCH] =?UTF-8?q?refactor:=20Aplica=20mudan=C3=A7as=20no=20c?= =?UTF-8?q?=C3=B3digo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FooterBottom/FooterBottom.module.scss | 84 +++++------ src/components/FooterBottom/FooterBottom.tsx | 132 +++++++++++++----- src/components/IconList/IconList.tsx | 11 +- src/components/ItemList/ItemList.tsx | 14 ++ .../ItemNavBar/ItemNavBar.module.scss | 29 ---- src/components/ItemNavBar/ItemNavBar.tsx | 10 -- .../Newsletter/Newsletter.module.scss | 2 +- 7 files changed, 152 insertions(+), 130 deletions(-) create mode 100644 src/components/ItemList/ItemList.tsx delete mode 100644 src/components/ItemNavBar/ItemNavBar.module.scss delete mode 100644 src/components/ItemNavBar/ItemNavBar.tsx diff --git a/src/components/FooterBottom/FooterBottom.module.scss b/src/components/FooterBottom/FooterBottom.module.scss index 2391691..b448d1b 100644 --- a/src/components/FooterBottom/FooterBottom.module.scss +++ b/src/components/FooterBottom/FooterBottom.module.scss @@ -51,11 +51,11 @@ flex-wrap: wrap; } - li { + .li-card { display: flex; } - .li-card { + .card { width: auto; height: 20px; @@ -92,59 +92,49 @@ } &__developedby { - ul { + display: flex; + align-items: center; + gap: 13px; + + @media (min-width: 2500px) { + gap: 12px; + } + + @media ((min-width: 1025px) and (max-width: 1150px)) { + gap: 7px; + } + + &__li, + &__text { display: flex; align-items: center; - gap: 13px; - + } + + &__text { + font-size: 10px; + line-height: 12px; + text-transform: capitalize; + color: variables.$white; + @media (min-width: 2500px) { - gap: 12px; + font-size: 20px; + line-height: 23px; } + } - @media ((min-width: 1025px) and (max-width: 1150px)) { - gap: 7px; + &__logo-vtex { + width: 44px; + + @media (min-width: 2500px) { + width: 84px; } - - li { - display: flex; - align-items: center; - gap: 13px; + } - @media (min-width: 2500px) { - gap: 12px; - } + &__logo-m3 { + width: 28px; - @media ((min-width: 1025px) and (max-width: 1150px)) { - gap: 7px; - } - - p { - font-size: 10px; - line-height: 12px; - text-transform: capitalize; - color: variables.$white; - - @media (min-width: 2500px) { - font-size: 20px; - line-height: 23px; - } - } - - .logo-vtex { - width: 44px; - - @media (min-width: 2500px) { - width: 84px; - } - } - - .logo-m3 { - width: 28px; - - @media (min-width: 2500px) { - width: 54px; - } - } + @media (min-width: 2500px) { + width: 54px; } } } diff --git a/src/components/FooterBottom/FooterBottom.tsx b/src/components/FooterBottom/FooterBottom.tsx index 8d9e862..a17402b 100644 --- a/src/components/FooterBottom/FooterBottom.tsx +++ b/src/components/FooterBottom/FooterBottom.tsx @@ -14,45 +14,103 @@ import imgLogoBoleto from "./assets/Boleto.png"; import imgLogoVtexPCI from "./assets/vtex-pci-200.png"; import { IconList } from "../IconList/IconList"; +import { ItemList } from "../ItemList/ItemList"; const FooterBottom = () => { + return ( +
+
- return ( -
-
-
-

Lorem ipsum dolor sit amet, consectetur adipiscing

-

Elit, sed do eiusmod tempor

-
- -
    - - - - - - - - -
  • - - -
- -
- -
-
+
+

Lorem ipsum dolor sit amet, consectetur adipiscing

+

Elit, sed do eiusmod tempor

- ); -} -export {FooterBottom}; +
    + + + + + + + + +
  • + + +
+ + + +
+
+ ); +}; + +export { FooterBottom }; diff --git a/src/components/IconList/IconList.tsx b/src/components/IconList/IconList.tsx index 9cbfb3f..db73f22 100644 --- a/src/components/IconList/IconList.tsx +++ b/src/components/IconList/IconList.tsx @@ -3,17 +3,16 @@ import React from "react"; interface Icon { src: string; alt: string; - className: string; - text?: string; + imgClassName?: string; + liClassName?: string; } const IconList = ( props: Icon ) => { - const { src, alt, className, text } = props; + const { src, alt, imgClassName, liClassName } = props; return ( -
  • -

    {text}

    - {alt} +
  • + {alt}
  • ); }; diff --git a/src/components/ItemList/ItemList.tsx b/src/components/ItemList/ItemList.tsx new file mode 100644 index 0000000..0ec46da --- /dev/null +++ b/src/components/ItemList/ItemList.tsx @@ -0,0 +1,14 @@ +import React from "react"; + +interface Icon { + text: string; + textClassName?: string; +} + +const ItemList = ( props: Icon) => { + const { text, textClassName } = props; + + return
  • { text }
  • ; +}; + +export { ItemList }; diff --git a/src/components/ItemNavBar/ItemNavBar.module.scss b/src/components/ItemNavBar/ItemNavBar.module.scss deleted file mode 100644 index 1f5b977..0000000 --- a/src/components/ItemNavBar/ItemNavBar.module.scss +++ /dev/null @@ -1,29 +0,0 @@ -@use '../../variables'; - -.nav-bar__item { - font-weight: 500; - font-size: 14px; - line-height: 16px; - text-transform: uppercase; - color: variables.$white; - cursor: pointer; - - @media (min-width: 3600px) { - font-size: 32px; - line-height: 38px; - } - - @media ((min-width: 2500px) and (max-width: 3599px)) { - font-size: 28px; - line-height: 33px; - } - - @media (max-width: 1024px) { - color: variables.$gray-400; - margin-bottom: 12px; - } - - &:hover { - filter: brightness(80%); - } -} diff --git a/src/components/ItemNavBar/ItemNavBar.tsx b/src/components/ItemNavBar/ItemNavBar.tsx deleted file mode 100644 index 7d37cf7..0000000 --- a/src/components/ItemNavBar/ItemNavBar.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import React from 'react'; - -import styles from "./ItemNavBar.module.scss"; - -const ItemNavBar = ( props:any) => { - const { text } = props; - return
  • { text }
  • ; -}; - -export { ItemNavBar }; diff --git a/src/components/Newsletter/Newsletter.module.scss b/src/components/Newsletter/Newsletter.module.scss index 86b8e4b..c436dd7 100644 --- a/src/components/Newsletter/Newsletter.module.scss +++ b/src/components/Newsletter/Newsletter.module.scss @@ -168,7 +168,7 @@ } } -span{ +span { font-size: 12px; line-height: 14px; color: variables.$red;