From 91cb35e36e762be9709a9163a09b876d795c73b9 Mon Sep 17 00:00:00 2001 From: Eleonora Otz Date: Wed, 4 Jan 2023 22:19:51 -0300 Subject: [PATCH] feat: Cria footer mobile --- src/assets/svgs/up-arrow.svg | 3 - src/assets/svgs/whatsapp.svg | 8 +- src/components/footer/index.tsx | 124 +++++++++++++----------- src/components/footer/style.module.scss | 70 +++++++++++-- 4 files changed, 133 insertions(+), 72 deletions(-) delete mode 100644 src/assets/svgs/up-arrow.svg diff --git a/src/assets/svgs/up-arrow.svg b/src/assets/svgs/up-arrow.svg deleted file mode 100644 index e158908..0000000 --- a/src/assets/svgs/up-arrow.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/src/assets/svgs/whatsapp.svg b/src/assets/svgs/whatsapp.svg index 004a23d..c332214 100644 --- a/src/assets/svgs/whatsapp.svg +++ b/src/assets/svgs/whatsapp.svg @@ -1,10 +1,12 @@ - - + + + + - + diff --git a/src/components/footer/index.tsx b/src/components/footer/index.tsx index a248415..b7039d6 100644 --- a/src/components/footer/index.tsx +++ b/src/components/footer/index.tsx @@ -22,6 +22,10 @@ import Boleto from "../../assets/svgs/boleto.svg"; import PCIVtex from "../../assets/svgs/vtex-pci-200.svg"; +// Botão flutuante + +import Whatsapp from "../../assets/svgs/whatsapp.svg"; + // Vtex e M3 logo import Vtex from "../../assets/svgs/vtex-logo.svg"; @@ -87,13 +91,13 @@ const Footer = () => { @@ -138,61 +142,69 @@ const Footer = () => {
-
-

- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do - eiusmod tempor -

-
-
    -
  • - Mastercard -
  • -
  • - Visa -
  • -
  • - American Express -
  • -
  • - Elo -
  • -
  • - Hipercard -
  • -
  • - PayPal -
  • -
  • - Boleto -
  • -
  • - -
  • -
  • - PCI VTEX -
  • -
- +
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do + eiusmod tempor +

+
+
    +
  • + Mastercard +
  • +
  • + Visa +
  • +
  • + American Express +
  • +
  • + Elo +
  • +
  • + Hipercard +
  • +
  • + PayPal +
  • +
  • + Boleto +
  • +
  • + +
  • +
  • + PCI VTEX +
  • +
+
+ +
+ Fale conosco pelo Whatsapp +
); }; diff --git a/src/components/footer/style.module.scss b/src/components/footer/style.module.scss index 5ee4d05..22f2a03 100644 --- a/src/components/footer/style.module.scss +++ b/src/components/footer/style.module.scss @@ -109,6 +109,11 @@ } .footer-top { + + @media (max-width: 1024px) { + width: 100%; + } + &__menu-list { display: flex; margin: 38px 100px 38px; @@ -117,6 +122,12 @@ @media (min-width: 2500px) { } + @media (max-width: 1024px) { + flex-direction: column; + justify-content: flex-start; + margin: 24px 16px 18px 16px; + } + .menu { h3 { font-weight: 500; @@ -130,6 +141,18 @@ font-size: 28px; line-height: 33px; } + + @media (max-width: 1024px) { + text-transform: capitalize; + margin: 0 0 12px; + display: flex; + justify-content: space-between; + + &::after { + content: "+"; + cursor: pointer; + } + } } ul { @@ -164,6 +187,10 @@ text-decoration: underline; } } + + @media (max-width: 1024px) { + display: none; + } } } } @@ -198,6 +225,10 @@ font-size: 28px; line-height: 33px; } + + @media (max-width: 1024px) { + display: none; + } } } } @@ -256,7 +287,7 @@ @media (max-width: 1024px) { order: 2; margin: 0 0 17px 16px; - width: 27.083%; + width: 234px; } } @@ -282,14 +313,14 @@ @media (min-width: 376px) and (max-width: 767px) { width: 87%; - margin: 22px 0 23px 8px; + margin: 22px 0 23px 16px; } @media (max-width: 375px) { width: 91.2%; order: 1; gap: 4px; - margin: 22px 0 23px 8px; + margin: 22px 0 23px 16px; } .creditcard { @@ -322,6 +353,7 @@ } .developedBy { + width: 226.58px; align-items: center; display: flex; list-style-type: none; @@ -330,7 +362,6 @@ padding: 0; @media (max-width: 1024px) { - width: 26.2%; order: 3; margin: 0; margin: 0 0 17px 16px; @@ -372,13 +403,13 @@ gap: 13px; } - li:last-child { - margin-left: 13px; + // li:last-child { + // margin-left: 13px; - @media (max-width: 1024px) { - margin: 0; - } - } + // @media (max-width: 1024px) { + // margin: 0; + // } + // } a { align-items: center; @@ -404,3 +435,22 @@ } } } + +.whatsapp-button { + position: fixed; + bottom: 229px; + right: 16px; + z-index: 9999; + + img { + @media (max-width: 1024px) { + width: 34px; + } + } + + @media (max-width: 1024px) { + bottom: 27px; + right: 17px; + } + +}