diff --git a/adilson-fernando/package-lock.json b/adilson-fernando/package-lock.json index d058086..b7c604c 100644 --- a/adilson-fernando/package-lock.json +++ b/adilson-fernando/package-lock.json @@ -15,12 +15,14 @@ "@types/node": "^16.18.11", "@types/react": "^18.0.26", "@types/react-dom": "^18.0.10", + "accordion": "^3.0.2", "cpf": "^2.0.1", "date-fns": "^2.28.0", "formik": "^2.2.9", "module-name": "^0.0.1-security", "react": "^18.2.0", "react-dom": "^18.2.0", + "react-headless-accordion": "^1.0.2", "react-modal": "^3.16.1", "react-router-dom": "^6.6.1", "react-scripts": "5.0.1", @@ -4376,6 +4378,11 @@ "node": ">= 0.6" } }, + "node_modules/accordion": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/accordion/-/accordion-3.0.2.tgz", + "integrity": "sha512-jbQfFaw+57OBwPt7qSNHuW+RA8smmRwkWRS1Ozh6K/QxUspBgBV/LpdSzlY7vee8TomS6j3D33B9rIeH1qMwsA==" + }, "node_modules/acorn": { "version": "8.8.1", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz", @@ -14297,6 +14304,14 @@ "resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-2.0.4.tgz", "integrity": "sha512-suNP+J1VU1MWFKcyt7RtjiSWUjvidmQSlqu+eHslq+342xCbGTYmC0mEhPCOHxlW0CywylOC1u2DFAT+bv4dBw==" }, + "node_modules/react-headless-accordion": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/react-headless-accordion/-/react-headless-accordion-1.0.2.tgz", + "integrity": "sha512-wKBTB/+aAr9MGX5RYi3sdmKOSzevKdmbGRw9JTe7XONiHlTo+pC1OiggL9NUxp5QeQcTnX0rryhuySeGsqBfBg==", + "peerDependencies": { + "react": "^18.2.0" + } + }, "node_modules/react-is": { "version": "17.0.2", "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", @@ -20410,6 +20425,11 @@ "negotiator": "0.6.3" } }, + "accordion": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/accordion/-/accordion-3.0.2.tgz", + "integrity": "sha512-jbQfFaw+57OBwPt7qSNHuW+RA8smmRwkWRS1Ozh6K/QxUspBgBV/LpdSzlY7vee8TomS6j3D33B9rIeH1qMwsA==" + }, "acorn": { "version": "8.8.1", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz", @@ -27426,6 +27446,12 @@ "resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-2.0.4.tgz", "integrity": "sha512-suNP+J1VU1MWFKcyt7RtjiSWUjvidmQSlqu+eHslq+342xCbGTYmC0mEhPCOHxlW0CywylOC1u2DFAT+bv4dBw==" }, + "react-headless-accordion": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/react-headless-accordion/-/react-headless-accordion-1.0.2.tgz", + "integrity": "sha512-wKBTB/+aAr9MGX5RYi3sdmKOSzevKdmbGRw9JTe7XONiHlTo+pC1OiggL9NUxp5QeQcTnX0rryhuySeGsqBfBg==", + "requires": {} + }, "react-is": { "version": "17.0.2", "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", diff --git a/adilson-fernando/package.json b/adilson-fernando/package.json index 09197a3..34f69cf 100644 --- a/adilson-fernando/package.json +++ b/adilson-fernando/package.json @@ -10,12 +10,14 @@ "@types/node": "^16.18.11", "@types/react": "^18.0.26", "@types/react-dom": "^18.0.10", + "accordion": "^3.0.2", "cpf": "^2.0.1", "date-fns": "^2.28.0", "formik": "^2.2.9", "module-name": "^0.0.1-security", "react": "^18.2.0", "react-dom": "^18.2.0", + "react-headless-accordion": "^1.0.2", "react-modal": "^3.16.1", "react-router-dom": "^6.6.1", "react-scripts": "5.0.1", diff --git a/adilson-fernando/src/components/Footer/MenuFooter.tsx b/adilson-fernando/src/components/Footer/MenuFooter.tsx index 1f6502d..2c6fa43 100644 --- a/adilson-fernando/src/components/Footer/MenuFooter.tsx +++ b/adilson-fernando/src/components/Footer/MenuFooter.tsx @@ -1,4 +1,5 @@ -import React, { useState } from "react"; +import React from "react"; +import {Accordion, AccordionBody, AccordionHeader, AccordionItem} from "react-headless-accordion"; import "../../styles/Global.scss"; import "../../styles/Variaveis.scss"; @@ -18,20 +19,81 @@ const MenuFooter = () => {
-
- - abrir Menu -
-
- - abrir Menu -
-
- - abrir Menu + + + + +

Institucional

+ Abrir menu +
+ + +
+

Quem Somos

+

Política de Privacidade

+

Segurança

+ Seja um Revendedor +
+
+
+ + + +

Dúvidas

+ Abrir menu +
+ + +
+

Entrega

+

Pagamento

+

Trocas e Devoluções

+ Dúvidas Frequentes +
+
+
+ + + +

Fale Conosco

+ Abrir menu +
+ + +
+

Atendimento Ao Consumidor

+

(11)4159 9504

+

Atendimento Online

+ (11) 99433-8825 +
+
+
+
+ +
+
+ + + facebook + + + instagran + + + twitter + + + youtube + + + linkedin + +
+
+
@@ -83,9 +145,9 @@ const MenuFooter = () => { linkedin -
+
-

www.loremipsum.com

+

www.loremipsum.com

diff --git a/adilson-fernando/src/styles/MenuFooter.module.scss b/adilson-fernando/src/styles/MenuFooter.module.scss index eee5433..a655194 100644 --- a/adilson-fernando/src/styles/MenuFooter.module.scss +++ b/adilson-fernando/src/styles/MenuFooter.module.scss @@ -4,6 +4,69 @@ display: none; @media (max-width: 1024px) { display: block; + margin-top: 24px; + margin-bottom: 24px; + margin-left: 16px; + } + .accordion-button{ + display: flex; + align-items: center; + background-color: white; + margin-bottom:12px ; + .accordion-title{ + font-family: 'Roboto',sans-serif; + font-style: normal; + font-weight: 500; + font-size: 14px; + line-height: 16px; + color: #303030; + + } + .accordion-img{ + width:7.8px ; + height: 8.28px; + right: 16px; + position: absolute; + } + } + .conteiner-icons{ + display: flex; + gap: 10px; + .icons{ + width: 35px; + height: 35px; + } + } + .accordion-aberto{ + margin-bottom:12px ; + .text-h2{ + font-family: 'Roboto',sans-serif; + font-style: normal; + font-weight: 400; + font-size: 12px; + line-height: 14px; + color: #303030; + margin-bottom: 12px; + } + .text-negrito{ + font-family: 'Roboto',sans-serif; + font-style: normal; + font-weight: 500; + font-size: 12px; + line-height: 14px; + text-transform: capitalize; + color: #303030; + margin-bottom: 12px; + } + .text-link{ + font-family: 'Roboto',sans-serif; + font-style: normal; + font-weight: 400; + font-size: 12px; + line-height: 14px; + text-decoration-line: underline; + color: #303030; + } } } .menuFooter-desktop{