From 635a9a523e7acae3dd3c135199bebd5de17a00a6 Mon Sep 17 00:00:00 2001 From: Murilo Gabriel Date: Wed, 26 Jun 2024 18:03:25 -0300 Subject: [PATCH 1/3] fix: alterando footer utilizando o de Technos --- .deco/blocks/Footer%20-%2001.json | 210 ++++++- .deco/blocks/Footer%20-%2004.json | 32 +- .deco/blocks/Footer%20-%2006.json | 270 ++++++++ .deco/blocks/Footer%20Global.json | 3 + .deco/blocks/pages-home-c4bcbfb771e9.json | 2 +- .deco/metadata/blocks.json | 8 + .deco/metadata/spaces.json | 724 +++++++++++++++++++++- components/footer/ContactNetwork.tsx | 46 ++ components/footer/Footer.tsx | 320 +++------- components/footer/FooterItems.tsx | 160 ++--- components/footer/PaymentMethods.tsx | 43 +- sections/Footer/Footer.tsx | 2 +- 12 files changed, 1420 insertions(+), 400 deletions(-) create mode 100644 .deco/blocks/Footer%20-%2006.json create mode 100644 .deco/blocks/Footer%20Global.json create mode 100644 components/footer/ContactNetwork.tsx diff --git a/.deco/blocks/Footer%20-%2001.json b/.deco/blocks/Footer%20-%2001.json index b426628..37e8937 100644 --- a/.deco/blocks/Footer%20-%2001.json +++ b/.deco/blocks/Footer%20-%2001.json @@ -1 +1,209 @@ -{"logo":{"image":"https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/239/79a5eab5-4a2c-4bf5-a424-ff6f141a430c","description":"O estilo pensado para você"},"layout":{"hide":{"logo":false,"mobileApps":false,"newsletter":false,"socialLinks":false,"regionOptions":false},"variation":"Variation 1","backgroundColor":"Primary"},"social":{"items":[{"link":"http://deco.cx/","label":"Discord"},{"link":"http://deco.cx/","label":"Facebook"},{"link":"http://deco.cx/","label":"Instagram"},{"link":"http://deco.cx/","label":"Linkedin"},{"link":"http://deco.cx/","label":"Tiktok"},{"link":"http://deco.cx/","label":"Twitter"}],"title":"Siga-nos nas redes"},"payments":{"items":[{"label":"Elo"},{"label":"Mastercard"},{"label":"Pix"},{"label":"Visa"}],"title":"Formas de pagamento"},"sections":[{"items":[{"href":"/quem-somos","label":"Quem somos"},{"href":"/privacidade","label":"Privacidade e segurança"},{"href":"/termos-de-uso","label":"Termos de uso"},{"href":"/trabalhe-conosco","label":"Trabalhe conosco"}],"label":"Sobre","children":[{"href":"/quemsomos","label":"Quem somos"},{"href":"/privacidadeeseguranca","label":"Privacidade e segurança"},{"href":"/termosdeuso","label":"Termos de uso"},{"href":"/trabalheconosco","label":"Trabalhe conosco"}]},{"items":[{"href":"/central-de-atendimento","label":"Central de atendimento"},{"href":"/fale-whatsapp","label":"Fale conosco pelo Whatsapp"},{"href":"/troca-e-devolucao","label":"Troca e devolução"}],"label":"Atendimento","children":[{"href":"/centraldeatendimento","label":"Central de atendimento"},{"href":"/whatsapp","label":"Fale conosco pelo WhatsApp"},{"href":"/trocaedevolucao","label":"Troca e devolução"}]},{"items":[{"href":"/login","label":"Login e cadastro"},{"href":"/meus-pedidos","label":"Meus pedidos"}],"label":"Minha conta","children":[{"href":"/loginecadastro","label":"Login e cadastro"},{"href":"/meuspedidos","label":"Meus pedidos"}]}],"extraLinks":[{"href":"http://www.google.com","link":"http://www.google.com/","label":"Política de privacidade"},{"href":"http://www.google.com","link":"http://www.google.com","label":"Termos de serviço"}],"mobileApps":{"apple":"http://www.google.com","android":"http://www.google.com"},"newsletter":{"form":{"helpText":"

Ao se inscrever, você está aceitando nossa Política de Privacidade.

"},"title":"Assine nossa newsletter","description":"Participe e ganhe 10% de desconto na primeira compra"},"backToTheTop":{"text":"Voltar ao topo"},"__resolveType":"site/sections/Footer/Footer.tsx","regionOptions":{"currency":[{"href":"/","label":"Brasil BRL"},{"href":"/","label":"United Stated USD"}],"language":[{"href":"/","label":"PT"},{"href":"/","label":"EN"}]}} \ No newline at end of file +{ + "logo": { + "image": "https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/239/79a5eab5-4a2c-4bf5-a424-ff6f141a430c", + "description": "O estilo pensado para você" + }, + "layout": { + "hide": { + "logo": false, + "mobileApps": false, + "newsletter": false, + "socialLinks": false, + "regionOptions": false + }, + "variation": "Variation 1", + "backgroundColor": "Primary" + }, + "social": { + "items": [ + { + "link": "http://deco.cx/", + "label": "Discord" + }, + { + "link": "http://deco.cx/", + "label": "Facebook" + }, + { + "link": "http://deco.cx/", + "label": "Instagram" + }, + { + "link": "http://deco.cx/", + "label": "Linkedin" + }, + { + "link": "http://deco.cx/", + "label": "Tiktok" + }, + { + "link": "http://deco.cx/", + "label": "Twitter" + } + ], + "title": "Siga-nos nas redes" + }, + "payments": { + "items": [ + { + "label": "Elo" + }, + { + "label": "Mastercard" + }, + { + "label": "Pix" + }, + { + "label": "Visa" + } + ], + "title": "Formas de pagamento" + }, + "sections": [ + { + "items": [ + { + "href": "/quem-somos", + "label": "Quem somos" + }, + { + "href": "/privacidade", + "label": "Privacidade e segurança" + }, + { + "href": "/termos-de-uso", + "label": "Termos de uso" + }, + { + "href": "/trabalhe-conosco", + "label": "Trabalhe conosco" + } + ], + "label": "Sobre", + "children": [ + { + "href": "/quemsomos", + "label": "Quem somos" + }, + { + "href": "/privacidadeeseguranca", + "label": "Privacidade e segurança" + }, + { + "href": "/termosdeuso", + "label": "Termos de uso" + }, + { + "href": "/trabalheconosco", + "label": "Trabalhe conosco" + } + ] + }, + { + "items": [ + { + "href": "/central-de-atendimento", + "label": "Central de atendimento" + }, + { + "href": "/fale-whatsapp", + "label": "Fale conosco pelo Whatsapp" + }, + { + "href": "/troca-e-devolucao", + "label": "Troca e devolução" + } + ], + "label": "Atendimento", + "children": [ + { + "href": "/centraldeatendimento", + "label": "Central de atendimento" + }, + { + "href": "/whatsapp", + "label": "Fale conosco pelo WhatsApp" + }, + { + "href": "/trocaedevolucao", + "label": "Troca e devolução" + } + ] + }, + { + "items": [ + { + "href": "/login", + "label": "Login e cadastro" + }, + { + "href": "/meus-pedidos", + "label": "Meus pedidos" + } + ], + "label": "Minha conta", + "children": [ + { + "href": "/loginecadastro", + "label": "Login e cadastro" + }, + { + "href": "/meuspedidos", + "label": "Meus pedidos" + } + ] + } + ], + "extraLinks": [ + { + "href": "http://www.google.com", + "link": "http://www.google.com/", + "label": "Política de privacidade" + }, + { + "href": "http://www.google.com", + "link": "http://www.google.com", + "label": "Termos de serviço" + } + ], + "mobileApps": { + "apple": "http://www.google.com", + "android": "http://www.google.com" + }, + "newsletter": { + "form": { + "helpText": "

Ao se inscrever, você está aceitando nossa Política de Privacidade.

" + }, + "title": "Assine nossa newsletter", + "description": "Participe e ganhe 10% de desconto na primeira compra" + }, + "backToTheTop": { + "text": "Voltar ao topo" + }, + "__resolveType": "site/sections/Footer/Footer.tsx", + "regionOptions": { + "currency": [ + { + "href": "/", + "label": "Brasil BRL" + }, + { + "href": "/", + "label": "United Stated USD" + } + ], + "language": [ + { + "href": "/", + "label": "PT" + }, + { + "href": "/", + "label": "EN" + } + ] + }, + "selos": [], + "contactNetworks": [] +} \ No newline at end of file diff --git a/.deco/blocks/Footer%20-%2004.json b/.deco/blocks/Footer%20-%2004.json index 7ddce1e..e8c8aca 100644 --- a/.deco/blocks/Footer%20-%2004.json +++ b/.deco/blocks/Footer%20-%2004.json @@ -62,12 +62,16 @@ { "href": "https://www.fossilgroup.com/?&utmi_p=_&utmi_pc=Html&utmi_cp=menu", "label": "Grupo Fossil", - "icon": {} + "icon": { + "label": "Email" + } }, { "label": "Reluatory Compliance", "href": "https://www.fossilgroup.com/responsibility/regulatory-compliance/?&utmi_p=_&utmi_pc=Html&utmi_cp=menu", - "icon": {} + "icon": { + "label": "Email" + } } ], "children": [ @@ -97,23 +101,31 @@ "items": [ { "label": "Meus pedidos", - "icon": {}, + "icon": { + "label": "Email" + }, "href": "/login?ReturnUrl=%2f_secure%2faccount#/orders" }, { "href": "/nossas-lojas", "label": "Onde encontrar", - "icon": {} + "icon": { + "label": "Email" + } }, { "href": "/central", "label": "FAQ´s", - "icon": {} + "icon": { + "label": "Email" + } }, { "label": "Política de Devolução", "href": "/central", - "icon": {} + "icon": { + "label": "Email" + } } ], "children": [ @@ -139,7 +151,9 @@ "items": [ { "label": "atendimento@fossilstore.com.br", - "icon": {}, + "icon": { + "label": "Email" + }, "href": "/" } ], @@ -253,5 +267,7 @@ } } ] - } + }, + "selos": [], + "contactNetworks": [] } \ No newline at end of file diff --git a/.deco/blocks/Footer%20-%2006.json b/.deco/blocks/Footer%20-%2006.json new file mode 100644 index 0000000..aa01d79 --- /dev/null +++ b/.deco/blocks/Footer%20-%2006.json @@ -0,0 +1,270 @@ +{ + "__resolveType": "site/sections/Footer/Footer.tsx", + "sections": [ + { + "items": [ + { + "href": "/institucional", + "label": "Sobre Technos" + }, + { + "href": "/institucional/politica-de-seguranca", + "label": "Política de Segurança" + }, + { + "href": "/institucional/politica-de-privacidade", + "label": "Política de Privacidade" + }, + { + "href": "/institucional/termos-de-uso", + "label": "Termos de Uso" + }, + { + "href": "/institucional/formas-de-entrega", + "label": "Formas de Entrega" + }, + { + "href": "/institucional/formas-de-pagamento", + "label": "Formas de Pagamento" + }, + { + "href": "https://www.grupotechnos.com.br/pt", + "label": "RI" + }, + { + "href": "/onde-encontrar", + "label": "Onde Encontrar" + } + ], + "label": "Intitucional", + "children": [ + { + "href": "/quemsomos", + "label": "Quem somos" + }, + { + "href": "/privacidadeeseguranca", + "label": "Privacidade e segurança" + }, + { + "href": "/termosdeuso", + "label": "Termos de uso" + }, + { + "href": "/trabalheconosco", + "label": "Trabalhe conosco" + } + ] + }, + { + "items": [ + { + "href": "/ajuda", + "label": "Ajuda" + }, + { + "href": "/contato", + "label": "Fale Conosco" + }, + { + "href": "/institucional/cupons-e-promocoes", + "label": "Cupons e Promoções" + }, + { + "href": "/institucional/rastreie-seu-pedido", + "label": "Rastreie seu Pedido" + }, + { + "href": "/institucional/trocas-e-devolucoes", + "label": "Trocas e Devoluções" + }, + { + "href": "/ajuda", + "label": "Assistência Técnica" + }, + { + "href": "/seja-um-revendedor", + "label": "Seja um Revendedor" + } + ], + "label": "Atendimento", + "children": [ + { + "href": "/centraldeatendimento", + "label": "Central de atendimento" + }, + { + "href": "/whatsapp", + "label": "Fale conosco pelo WhatsApp" + }, + { + "href": "/trocaedevolucao", + "label": "Troca e devolução" + } + ] + }, + { + "items": [ + { + "href": "/account", + "label": "Meu Perfil" + } + ], + "label": "Minha conta", + "children": [ + { + "href": "/loginecadastro", + "label": "Login e cadastro" + }, + { + "href": "/meuspedidos", + "label": "Meus pedidos" + } + ] + } + ], + "payments": { + "items": [ + { + "image": "https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/3446/85b80dd0-e64c-42d6-9daa-bfee3f16267a", + "label": "Visa", + "width": 44 + }, + { + "image": "https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/3446/66e1b1ce-f579-410f-9e3a-b62504af9541", + "label": "Mastercard", + "width": 35 + }, + { + "image": "https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/3446/2ebfe2c6-8701-423e-8c98-e40cc3c08c1a", + "label": "Elo", + "width": 45 + }, + { + "image": "https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/3446/b18db9f1-efc8-413b-b003-b528fe3466f5", + "label": "American Express", + "width": 26 + }, + { + "image": "https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/3446/961e6417-bb62-40c6-8b84-7b77cb8c87a9", + "label": "Diners", + "width": 54 + }, + { + "image": "https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/3446/96deb744-b8f5-416a-8aca-f2bb9e4e3e8b", + "label": "Aura", + "width": 36 + }, + { + "image": "https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/3446/cab1d932-aa6e-4fb5-9443-88610448af68", + "label": "Hipercard", + "width": 46 + }, + { + "image": "https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/3446/70633ecd-0eae-42a2-9d63-b4a1048849ad", + "label": "PicPay", + "width": 52 + } + ] + }, + "selos": [ + { + "alt": "VTEX", + "href": "https://vtex.com/", + "image": "https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/3446/654136c7-bfc5-46ff-ad34-7182a95d3a03" + }, + { + "alt": "Agência N1", + "href": "https://www.n1.ag/", + "image": "https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/3446/0bca1293-167d-4c23-9f2c-371beb827fbd" + }, + { + "alt": "Loja confiável", + "image": "https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/3446/49f24b72-4f71-4fe2-80c3-0e2403823ed0" + }, + { + "alt": "Procon", + "href": "http://www.procononline.rj.gov.br/", + "image": "https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/3446/607f0502-d4fd-4989-abbc-adf1871080f5" + } + ], + "contactNetworks": [ + { + "label": "Canais Oficiais", + "links": [ + { + "href": "https://www.instagram.com/technosoficial/", + "image": "https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/3446/d538a760-c8f1-464b-8197-cf45b24c4f00", + "label": "Instagram" + }, + { + "href": "https://www.facebook.com/technosoficial/", + "image": "https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/3446/5013e2da-8cd6-487d-82e0-5e204410dd3d", + "label": "Facebook" + }, + { + "href": "https://www.youtube.com/channel/UCIXVPszLSczOiapSao5QDag", + "image": "https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/3446/49c5a7c0-5aa3-40d1-916e-0233346cd1d2", + "label": "Youtube" + } + ] + }, + { + "label": "Trocas e Devoluções", + "links": [ + { + "href": "https://technos.minhatroca.com.br/", + "image": "https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/3446/ae6ad9b9-8249-48d4-bc5c-c6aeff84b6db", + "label": "Trocas e devoluções" + } + ] + }, + { + "label": "Seja um revendedor", + "links": [ + { + "href": "/seja-um-revendedor", + "image": "https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/3446/18b89eaa-d618-4403-8806-1268d0d2972b", + "label": "Seja um revendedor" + } + ] + } + ], + "logo": { + "image": "https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/7424/c1c3df7f-51b6-48c1-9093-185f28f607ad" + }, + "extraLinks": [ + { + "href": "http://www.google.com", + "link": "http://www.google.com/", + "label": "Política de privacidade" + }, + { + "href": "http://www.google.com", + "link": "http://www.google.com", + "label": "Termos de serviço" + } + ], + "regionOptions": { + "currency": [ + { + "href": "/", + "label": "Brasil BRL" + }, + { + "href": "/", + "label": "United Stated USD" + } + ], + "language": [ + { + "href": "/", + "label": "PT" + }, + { + "href": "/", + "label": "EN" + } + ] + } +} \ No newline at end of file diff --git a/.deco/blocks/Footer%20Global.json b/.deco/blocks/Footer%20Global.json new file mode 100644 index 0000000..4aa1aeb --- /dev/null +++ b/.deco/blocks/Footer%20Global.json @@ -0,0 +1,3 @@ +{ + "__resolveType": "site/sections/Footer.tsx" +} \ No newline at end of file diff --git a/.deco/blocks/pages-home-c4bcbfb771e9.json b/.deco/blocks/pages-home-c4bcbfb771e9.json index f241852..138458f 100644 --- a/.deco/blocks/pages-home-c4bcbfb771e9.json +++ b/.deco/blocks/pages-home-c4bcbfb771e9.json @@ -232,7 +232,7 @@ "__resolveType": "site/sections/Content/YourViewstestimonial.tsx" }, { - "__resolveType": "Footer - 04" + "__resolveType": "Footer - 06" }, { "__resolveType": "My Theme" diff --git a/.deco/metadata/blocks.json b/.deco/metadata/blocks.json index b6228cf..645fd63 100644 --- a/.deco/metadata/blocks.json +++ b/.deco/metadata/blocks.json @@ -632,5 +632,13 @@ "/.deco/blocks/Preview%20site%2Fsections%2FProduct%2FSearchResult.tsx.json": { "blockType": "sections", "__resolveType": "site/sections/Product/SearchResult.tsx" + }, + "/.deco/blocks/Footer%20Global.json": { + "blockType": "sections", + "__resolveType": "site/sections/Footer.tsx" + }, + "/.deco/blocks/Footer%20-%2006.json": { + "blockType": "sections", + "__resolveType": "site/sections/Footer/Footer.tsx" } } \ No newline at end of file diff --git a/.deco/metadata/spaces.json b/.deco/metadata/spaces.json index 6ea2728..b110192 100644 --- a/.deco/metadata/spaces.json +++ b/.deco/metadata/spaces.json @@ -25,7 +25,73 @@ "name": "Pages", "pinned": true, "icon": "files", - "layout": [], + "layout": { + "settings": { + "hasHeaders": true, + "constrainDragToContainer": true, + "reorderEnabled": true, + "selectionEnabled": false, + "popoutWholeStack": false, + "blockedPopoutsThrowError": true, + "closePopoutsOnUnload": true, + "showPopoutIcon": false, + "showMaximiseIcon": false, + "showCloseIcon": false, + "responsiveMode": "onload" + }, + "dimensions": { + "borderWidth": 8, + "minItemHeight": 10, + "minItemWidth": 10, + "headerHeight": 40, + "dragProxyWidth": 300, + "dragProxyHeight": 200 + }, + "labels": { + "close": "close", + "maximise": "maximise", + "minimise": "minimise", + "popout": "open in new window", + "popin": "pop in", + "tabDropdown": "additional tabs" + }, + "content": [ + { + "type": "row", + "isClosable": true, + "reorderEnabled": true, + "title": "", + "content": [ + { + "type": "stack", + "width": 100, + "isClosable": true, + "reorderEnabled": true, + "title": "", + "activeItemIndex": 0, + "content": [ + { + "id": "pages::List::list::List::%7B%7D", + "title": "
", + "type": "component", + "componentName": "component", + "componentState": { + "id": "pages::List::list::List::%7B%7D" + }, + "isClosable": true, + "reorderEnabled": true + } + ] + } + ] + } + ], + "isClosable": true, + "reorderEnabled": true, + "title": "", + "openPopouts": [], + "maximisedItemId": null + }, "tabs": { "pages::List::list::List::%7B%7D": { "name": "List", @@ -45,7 +111,73 @@ "name": "Sections", "pinned": true, "icon": "block", - "layout": [], + "layout": { + "settings": { + "hasHeaders": true, + "constrainDragToContainer": true, + "reorderEnabled": true, + "selectionEnabled": false, + "popoutWholeStack": false, + "blockedPopoutsThrowError": true, + "closePopoutsOnUnload": true, + "showPopoutIcon": false, + "showMaximiseIcon": false, + "showCloseIcon": false, + "responsiveMode": "onload" + }, + "dimensions": { + "borderWidth": 8, + "minItemHeight": 10, + "minItemWidth": 10, + "headerHeight": 40, + "dragProxyWidth": 300, + "dragProxyHeight": 200 + }, + "labels": { + "close": "close", + "maximise": "maximise", + "minimise": "minimise", + "popout": "open in new window", + "popin": "pop in", + "tabDropdown": "additional tabs" + }, + "content": [ + { + "type": "row", + "isClosable": true, + "reorderEnabled": true, + "title": "", + "content": [ + { + "type": "stack", + "width": 100, + "isClosable": true, + "reorderEnabled": true, + "title": "", + "activeItemIndex": 0, + "content": [ + { + "id": "sections::List::list::List::%7B%7D", + "title": "
", + "type": "component", + "componentName": "component", + "componentState": { + "id": "sections::List::list::List::%7B%7D" + }, + "isClosable": true, + "reorderEnabled": true + } + ] + } + ] + } + ], + "isClosable": true, + "reorderEnabled": true, + "title": "", + "openPopouts": [], + "maximisedItemId": null + }, "tabs": { "sections::List::list::List::%7B%7D": { "name": "List", @@ -467,7 +599,7 @@ "content": [ { "type": "stack", - "width": 30, + "width": 24.390243902439025, "isClosable": true, "reorderEnabled": true, "title": "", @@ -489,7 +621,7 @@ }, { "type": "stack", - "width": 70, + "width": 51.21951219512194, "isClosable": true, "reorderEnabled": true, "title": "", @@ -508,6 +640,27 @@ "reorderEnabled": true } ] + }, + { + "type": "stack", + "width": 24.390243902439018, + "isClosable": true, + "reorderEnabled": true, + "title": "", + "activeItemIndex": 0, + "content": [ + { + "id": "%2F.deco%2Fblocks%2Fpages-home-c4bcbfb771e9.json::JSON%20Properties::braces::JSON%20Properties::%7B%7D", + "title": "
", + "type": "component", + "componentName": "component", + "componentState": { + "id": "%2F.deco%2Fblocks%2Fpages-home-c4bcbfb771e9.json::JSON%20Properties::braces::JSON%20Properties::%7B%7D" + }, + "isClosable": true, + "reorderEnabled": true + } + ] } ] } @@ -543,6 +696,17 @@ "state": { "__signal": null } + }, + "%2F.deco%2Fblocks%2Fpages-home-c4bcbfb771e9.json::JSON%20Properties::braces::JSON%20Properties::%7B%7D": { + "name": "JSON Properties", + "icon": "braces", + "accepts": "function", + "render": "function", + "viewId": "JSON Properties", + "id": "%2F.deco%2Fblocks%2Fpages-home-c4bcbfb771e9.json::JSON%20Properties::braces::JSON%20Properties::%7B%7D", + "state": { + "__signal": null + } } } }, @@ -1039,6 +1203,558 @@ } } } + }, + { + "id": "/.deco/blocks/Footer%20-%2004.json", + "name": "Footer - 04", + "pinned": false, + "icon": "package", + "layout": { + "settings": { + "hasHeaders": true, + "constrainDragToContainer": true, + "reorderEnabled": true, + "selectionEnabled": false, + "popoutWholeStack": false, + "blockedPopoutsThrowError": true, + "closePopoutsOnUnload": true, + "showPopoutIcon": false, + "showMaximiseIcon": false, + "showCloseIcon": false, + "responsiveMode": "onload" + }, + "dimensions": { + "borderWidth": 8, + "minItemHeight": 10, + "minItemWidth": 10, + "headerHeight": 40, + "dragProxyWidth": 300, + "dragProxyHeight": 200 + }, + "labels": { + "close": "close", + "maximise": "maximise", + "minimise": "minimise", + "popout": "open in new window", + "popin": "pop in", + "tabDropdown": "additional tabs" + }, + "content": [ + { + "type": "row", + "isClosable": true, + "reorderEnabled": true, + "title": "", + "content": [ + { + "type": "stack", + "width": 41.66666666666667, + "isClosable": true, + "reorderEnabled": true, + "title": "", + "activeItemIndex": 0, + "content": [ + { + "id": "%2F.deco%2Fblocks%2FFooter%2520-%252004.json::Properties::list::Properties::%7B%7D", + "title": "
", + "type": "component", + "componentName": "component", + "componentState": { + "id": "%2F.deco%2Fblocks%2FFooter%2520-%252004.json::Properties::list::Properties::%7B%7D" + }, + "width": 30, + "isClosable": true, + "reorderEnabled": true + } + ] + }, + { + "type": "stack", + "width": 58.333333333333336, + "isClosable": true, + "reorderEnabled": true, + "title": "", + "activeItemIndex": 0, + "content": [ + { + "id": "%2F.deco%2Fblocks%2FFooter%2520-%252004.json::Preview::world::Preview::%7B%7D", + "title": "
", + "type": "component", + "componentName": "component", + "componentState": { + "id": "%2F.deco%2Fblocks%2FFooter%2520-%252004.json::Preview::world::Preview::%7B%7D" + }, + "width": 70, + "isClosable": true, + "reorderEnabled": true + } + ] + } + ] + } + ], + "isClosable": true, + "reorderEnabled": true, + "title": "", + "openPopouts": [], + "maximisedItemId": null + }, + "tabs": { + "%2F.deco%2Fblocks%2FFooter%2520-%252004.json::Properties::list::Properties::%7B%7D": { + "name": "Properties", + "icon": "list", + "accepts": "function", + "render": "function", + "viewId": "Properties", + "width": 30, + "id": "%2F.deco%2Fblocks%2FFooter%2520-%252004.json::Properties::list::Properties::%7B%7D", + "state": { + "__signal": null + } + }, + "%2F.deco%2Fblocks%2FFooter%2520-%252004.json::Preview::world::Preview::%7B%7D": { + "name": "Preview", + "icon": "world", + "accepts": "function", + "render": "function", + "viewId": "Preview", + "width": 70, + "id": "%2F.deco%2Fblocks%2FFooter%2520-%252004.json::Preview::world::Preview::%7B%7D", + "state": { + "__signal": null + } + } + } + }, + { + "id": "/.deco/blocks/Footer%20-%2001.json", + "name": "Footer - 01", + "pinned": false, + "icon": "package", + "layout": { + "settings": { + "hasHeaders": true, + "constrainDragToContainer": true, + "reorderEnabled": true, + "selectionEnabled": false, + "popoutWholeStack": false, + "blockedPopoutsThrowError": true, + "closePopoutsOnUnload": true, + "showPopoutIcon": false, + "showMaximiseIcon": false, + "showCloseIcon": false, + "responsiveMode": "onload" + }, + "dimensions": { + "borderWidth": 8, + "minItemHeight": 10, + "minItemWidth": 10, + "headerHeight": 40, + "dragProxyWidth": 300, + "dragProxyHeight": 200 + }, + "labels": { + "close": "close", + "maximise": "maximise", + "minimise": "minimise", + "popout": "open in new window", + "popin": "pop in", + "tabDropdown": "additional tabs" + }, + "content": [ + { + "type": "row", + "isClosable": true, + "reorderEnabled": true, + "title": "", + "content": [ + { + "type": "stack", + "width": 21.186440677966107, + "isClosable": true, + "reorderEnabled": true, + "title": "", + "activeItemIndex": 0, + "content": [ + { + "id": "%2F.deco%2Fblocks%2FFooter%2520-%252001.json::Properties::list::Properties::%7B%7D", + "title": "
", + "type": "component", + "componentName": "component", + "componentState": { + "id": "%2F.deco%2Fblocks%2FFooter%2520-%252001.json::Properties::list::Properties::%7B%7D" + }, + "width": 30, + "isClosable": true, + "reorderEnabled": true + } + ] + }, + { + "type": "stack", + "width": 53.38983050847458, + "isClosable": true, + "reorderEnabled": true, + "title": "", + "activeItemIndex": 0, + "content": [ + { + "id": "%2F.deco%2Fblocks%2FFooter%2520-%252001.json::Preview::world::Preview::%7B%7D", + "title": "
", + "type": "component", + "componentName": "component", + "componentState": { + "id": "%2F.deco%2Fblocks%2FFooter%2520-%252001.json::Preview::world::Preview::%7B%7D" + }, + "width": 70, + "isClosable": true, + "reorderEnabled": true + } + ] + }, + { + "type": "stack", + "width": 25.423728813559315, + "isClosable": true, + "reorderEnabled": true, + "title": "", + "activeItemIndex": 0, + "content": [ + { + "id": "%2F.deco%2Fblocks%2FFooter%2520-%252001.json::JSON%20Properties::braces::JSON%20Properties::%7B%7D", + "title": "
", + "type": "component", + "componentName": "component", + "componentState": { + "id": "%2F.deco%2Fblocks%2FFooter%2520-%252001.json::JSON%20Properties::braces::JSON%20Properties::%7B%7D" + }, + "isClosable": true, + "reorderEnabled": true + } + ] + } + ] + } + ], + "isClosable": true, + "reorderEnabled": true, + "title": "", + "openPopouts": [], + "maximisedItemId": null + }, + "tabs": { + "%2F.deco%2Fblocks%2FFooter%2520-%252001.json::Properties::list::Properties::%7B%7D": { + "name": "Properties", + "icon": "list", + "accepts": "function", + "render": "function", + "viewId": "Properties", + "width": 30, + "id": "%2F.deco%2Fblocks%2FFooter%2520-%252001.json::Properties::list::Properties::%7B%7D", + "state": { + "__signal": null + } + }, + "%2F.deco%2Fblocks%2FFooter%2520-%252001.json::Preview::world::Preview::%7B%7D": { + "name": "Preview", + "icon": "world", + "accepts": "function", + "render": "function", + "viewId": "Preview", + "width": 70, + "id": "%2F.deco%2Fblocks%2FFooter%2520-%252001.json::Preview::world::Preview::%7B%7D", + "state": { + "__signal": null + } + }, + "%2F.deco%2Fblocks%2FFooter%2520-%252001.json::JSON%20Properties::braces::JSON%20Properties::%7B%7D": { + "name": "JSON Properties", + "icon": "braces", + "accepts": "function", + "render": "function", + "viewId": "JSON Properties", + "id": "%2F.deco%2Fblocks%2FFooter%2520-%252001.json::JSON%20Properties::braces::JSON%20Properties::%7B%7D", + "state": { + "__signal": null + } + } + } + }, + { + "id": "/.deco/blocks/Footer%20Global.json", + "name": "Footer Global", + "pinned": false, + "icon": "package", + "layout": { + "settings": { + "hasHeaders": true, + "constrainDragToContainer": true, + "reorderEnabled": true, + "selectionEnabled": false, + "popoutWholeStack": false, + "blockedPopoutsThrowError": true, + "closePopoutsOnUnload": true, + "showPopoutIcon": false, + "showMaximiseIcon": false, + "showCloseIcon": false, + "responsiveMode": "onload" + }, + "dimensions": { + "borderWidth": 8, + "minItemHeight": 10, + "minItemWidth": 10, + "headerHeight": 40, + "dragProxyWidth": 300, + "dragProxyHeight": 200 + }, + "labels": { + "close": "close", + "maximise": "maximise", + "minimise": "minimise", + "popout": "open in new window", + "popin": "pop in", + "tabDropdown": "additional tabs" + }, + "content": [ + { + "type": "row", + "isClosable": true, + "reorderEnabled": true, + "title": "", + "content": [ + { + "type": "stack", + "width": 41.66666666666667, + "isClosable": true, + "reorderEnabled": true, + "title": "", + "activeItemIndex": 0, + "content": [ + { + "id": "%2F.deco%2Fblocks%2FFooter%2520Global.json::Properties::list::Properties::%7B%7D", + "title": "
", + "type": "component", + "componentName": "component", + "componentState": { + "id": "%2F.deco%2Fblocks%2FFooter%2520Global.json::Properties::list::Properties::%7B%7D" + }, + "width": 30, + "isClosable": true, + "reorderEnabled": true + } + ] + }, + { + "type": "stack", + "width": 58.333333333333336, + "isClosable": true, + "reorderEnabled": true, + "title": "", + "activeItemIndex": 0, + "content": [ + { + "id": "%2F.deco%2Fblocks%2FFooter%2520Global.json::Preview::world::Preview::%7B%7D", + "title": "
", + "type": "component", + "componentName": "component", + "componentState": { + "id": "%2F.deco%2Fblocks%2FFooter%2520Global.json::Preview::world::Preview::%7B%7D" + }, + "width": 70, + "isClosable": true, + "reorderEnabled": true + } + ] + } + ] + } + ], + "isClosable": true, + "reorderEnabled": true, + "title": "", + "openPopouts": [], + "maximisedItemId": null + }, + "tabs": { + "%2F.deco%2Fblocks%2FFooter%2520Global.json::Properties::list::Properties::%7B%7D": { + "name": "Properties", + "icon": "list", + "accepts": "function", + "render": "function", + "viewId": "Properties", + "width": 30, + "id": "%2F.deco%2Fblocks%2FFooter%2520Global.json::Properties::list::Properties::%7B%7D", + "state": { + "__signal": null + } + }, + "%2F.deco%2Fblocks%2FFooter%2520Global.json::Preview::world::Preview::%7B%7D": { + "name": "Preview", + "icon": "world", + "accepts": "function", + "render": "function", + "viewId": "Preview", + "width": 70, + "id": "%2F.deco%2Fblocks%2FFooter%2520Global.json::Preview::world::Preview::%7B%7D", + "state": { + "__signal": null + } + } + } + }, + { + "id": "/.deco/blocks/Footer%20-%2006.json", + "name": "Footer - 06", + "pinned": false, + "icon": "package", + "layout": { + "settings": { + "hasHeaders": true, + "constrainDragToContainer": true, + "reorderEnabled": true, + "selectionEnabled": false, + "popoutWholeStack": false, + "blockedPopoutsThrowError": true, + "closePopoutsOnUnload": true, + "showPopoutIcon": false, + "showMaximiseIcon": false, + "showCloseIcon": false, + "responsiveMode": "onload" + }, + "dimensions": { + "borderWidth": 8, + "minItemHeight": 10, + "minItemWidth": 10, + "headerHeight": 40, + "dragProxyWidth": 300, + "dragProxyHeight": 200 + }, + "labels": { + "close": "close", + "maximise": "maximise", + "minimise": "minimise", + "popout": "open in new window", + "popin": "pop in", + "tabDropdown": "additional tabs" + }, + "content": [ + { + "type": "row", + "isClosable": true, + "reorderEnabled": true, + "title": "", + "content": [ + { + "type": "stack", + "width": 30.88756200993076, + "isClosable": true, + "reorderEnabled": true, + "title": "", + "activeItemIndex": 0, + "content": [ + { + "id": "%2F.deco%2Fblocks%2FFooter%2520-%252006.json::Properties::list::Properties::%7B%7D", + "title": "
", + "type": "component", + "componentName": "component", + "componentState": { + "id": "%2F.deco%2Fblocks%2FFooter%2520-%252006.json::Properties::list::Properties::%7B%7D" + }, + "width": 30, + "isClosable": true, + "reorderEnabled": true + } + ] + }, + { + "type": "stack", + "width": 35.18680693290022, + "isClosable": true, + "reorderEnabled": true, + "title": "", + "activeItemIndex": 0, + "content": [ + { + "id": "%2F.deco%2Fblocks%2FFooter%2520-%252006.json::Preview::world::Preview::%7B%7D", + "title": "
", + "type": "component", + "componentName": "component", + "componentState": { + "id": "%2F.deco%2Fblocks%2FFooter%2520-%252006.json::Preview::world::Preview::%7B%7D" + }, + "width": 70, + "isClosable": true, + "reorderEnabled": true + } + ] + }, + { + "type": "stack", + "width": 33.925631057169035, + "isClosable": true, + "reorderEnabled": true, + "title": "", + "activeItemIndex": 0, + "content": [ + { + "id": "%2F.deco%2Fblocks%2FFooter%2520-%252006.json::JSON%20Properties::braces::JSON%20Properties::%7B%7D", + "title": "
", + "type": "component", + "componentName": "component", + "componentState": { + "id": "%2F.deco%2Fblocks%2FFooter%2520-%252006.json::JSON%20Properties::braces::JSON%20Properties::%7B%7D" + }, + "isClosable": true, + "reorderEnabled": true + } + ] + } + ] + } + ], + "isClosable": true, + "reorderEnabled": true, + "title": "", + "openPopouts": [], + "maximisedItemId": null + }, + "tabs": { + "%2F.deco%2Fblocks%2FFooter%2520-%252006.json::Properties::list::Properties::%7B%7D": { + "name": "Properties", + "icon": "list", + "accepts": "function", + "render": "function", + "viewId": "Properties", + "width": 30, + "id": "%2F.deco%2Fblocks%2FFooter%2520-%252006.json::Properties::list::Properties::%7B%7D", + "state": { + "__signal": null + } + }, + "%2F.deco%2Fblocks%2FFooter%2520-%252006.json::Preview::world::Preview::%7B%7D": { + "name": "Preview", + "icon": "world", + "accepts": "function", + "render": "function", + "viewId": "Preview", + "width": 70, + "id": "%2F.deco%2Fblocks%2FFooter%2520-%252006.json::Preview::world::Preview::%7B%7D", + "state": { + "__signal": null + } + }, + "%2F.deco%2Fblocks%2FFooter%2520-%252006.json::JSON%20Properties::braces::JSON%20Properties::%7B%7D": { + "name": "JSON Properties", + "icon": "braces", + "accepts": "function", + "render": "function", + "viewId": "JSON Properties", + "id": "%2F.deco%2Fblocks%2FFooter%2520-%252006.json::JSON%20Properties::braces::JSON%20Properties::%7B%7D", + "state": { + "__signal": null + } + } + } } ] } \ No newline at end of file diff --git a/components/footer/ContactNetwork.tsx b/components/footer/ContactNetwork.tsx new file mode 100644 index 0000000..eb6b036 --- /dev/null +++ b/components/footer/ContactNetwork.tsx @@ -0,0 +1,46 @@ +import Image from "apps/website/components/Image.tsx"; +import { ImageWidget } from "apps/admin/widgets.ts"; + +export interface ContactNetworkLinks { + image: ImageWidget; + href: string; + label: string; +} +export interface ContactNetworkProps { + label: string; + links: ContactNetworkLinks[]; +} + +interface Props { + networks: ContactNetworkProps[]; +} + +export default function ContactNetwork({ networks }: Props) { + return ( +
+
+ {networks.map((network) => ( +
+ + {network.label} + + +
+ ))} +
+
+ ); +} diff --git a/components/footer/Footer.tsx b/components/footer/Footer.tsx index 5078260..3cc4e01 100644 --- a/components/footer/Footer.tsx +++ b/components/footer/Footer.tsx @@ -1,284 +1,116 @@ import BackToTop from "../../components/footer/BackToTop.tsx"; -import Divider from "../../components/footer/Divider.tsx"; -import ExtraLinks from "../../components/footer/ExtraLinks.tsx"; import FooterItems from "../../components/footer/FooterItems.tsx"; -import Logo from "../../components/footer/Logo.tsx"; -import MobileApps from "../../components/footer/MobileApps.tsx"; +import Image from "apps/website/components/Image.tsx"; import PaymentMethods from "../../components/footer/PaymentMethods.tsx"; -import Social from "../../components/footer/Social.tsx"; -import Newsletter from "../../islands/Newsletter.tsx"; -import { clx } from "../../sdk/clx.ts"; import type { ImageWidget } from "apps/admin/widgets.ts"; -import { AppContext } from "../../apps/site.ts"; +import ContactNetwork, { + ContactNetworkProps, +} from "../../components/footer/ContactNetwork.tsx"; export type Item = { label: string; href: string; - icon?: Icon; }; -export interface ExtraLinks { - content?: Item[]; - copyright?: string; -} -export type Icon = { - label?: "Email" | "Phone"; -}; export type Section = { label: string; items: Item[]; }; -export interface SocialItem { - label: - | "Discord" - | "Facebook" - | "Instagram" - | "Linkedin" - | "Tiktok" - | "Twitter" - | "YouTube" - | "Pinterest" - | "XMark"; - link: string; -} export interface PaymentItem { - label: "Diners" | "Elo" | "Mastercard" | "Pix" | "Visa"; -} - -export interface MobileApps { - /** @description Link to the app */ - apple?: string; - /** @description Link to the app */ - android?: string; -} - -export interface RegionOptions { - currency?: Item[]; - language?: Item[]; -} - -export interface NewsletterForm { - placeholder?: string; - buttonText?: string; - /** @format html */ - helpText?: string; + label: string; + image: ImageWidget; + width: number; } -export interface Layout { - backgroundColor?: - | "Primary" - | "Secondary" - | "Accent" - | "Base 100" - | "Base 100 inverted"; - variation?: "Variation 3"; - hide?: { - logo?: boolean; - newsletter?: boolean; - sectionLinks?: boolean; - socialLinks?: boolean; - paymentMethods?: boolean; - mobileApps?: boolean; - regionOptions?: boolean; - extraLinks?: boolean; - backToTheTop?: boolean; - }; +export interface Selos { + image: ImageWidget; + href?: string; + alt?: string; } export interface Props { logo?: { image: ImageWidget; - description?: string; - }; - newsletter?: { - title?: string; - /** @format textarea */ - description?: string; - form?: NewsletterForm; - }; - sections?: Section[]; - social?: { - title?: string; - items: SocialItem[]; }; + sections: Section[]; payments?: { title?: string; items: PaymentItem[]; }; - mobileApps?: MobileApps; - extraLinks: ExtraLinks; address?: string; - backToTheTop?: { - text?: string; - }; - layout?: Layout; + selos?: Selos[]; + contactNetworks?: ContactNetworkProps[]; } function Footer({ logo, - newsletter = { - title: "Newsletter", - description: "", - form: { placeholder: "", buttonText: "", helpText: "" }, - }, - sections = [{ - "label": "Sobre", - "items": [ - { - "href": "/quem-somos", - "label": "Quem somos", - }, - { - "href": "/termos-de-uso", - "label": "Termos de uso", - }, - { - "href": "/trabalhe-conosco", - "label": "Trabalhe conosco", - }, - ], - }, { - "label": "Atendimento", - "items": [ - { - "href": "/centraldeatendimento", - "label": "Central de atendimento", - }, - { - "href": "/whatsapp", - "label": "Fale conosco pelo WhatsApp", - }, - { - "href": "/trocaedevolucao", - "label": "Troca e devolução", - }, - ], - }], - social = { - title: "Redes sociais", - items: [{ label: "Instagram", link: "/" }, { label: "Tiktok", link: "/" }], - }, - payments = { - title: "Formas de pagamento", - items: [{ label: "Mastercard" }, { label: "Visa" }, { label: "Pix" }], - }, - mobileApps = { apple: "/", android: "/" }, - extraLinks = { copyright: "2019", content: [] }, - address = - "Endereço: Est. Luiz Lopes Neto, 21 - Galpão A - Modulo 4 Do Tenentes - Extrema - MG - Cep: 37.640-000 CNPJ: 28.778.134/0026-05", - layout = { - backgroundColor: "Primary", - hide: { - logo: false, - newsletter: false, - sectionLinks: false, - socialLinks: false, - paymentMethods: false, - mobileApps: false, - regionOptions: false, - extraLinks: false, - backToTheTop: false, - }, - }, - device, -}: Props & { device?: string }) { - const _logo = layout?.hide?.logo ? <> : ; - const _newsletter = layout?.hide?.newsletter ? <> : ( - - ); - const _sectionLinks = layout?.hide?.sectionLinks ? <> : ( - - ); - const _social = layout?.hide?.socialLinks - ? <> - : ; - const _payments = layout?.hide?.paymentMethods - ? <> - : ; - const _apps = layout?.hide?.mobileApps - ? <> - : ; - const _links = layout?.hide?.extraLinks ? <> : ( - - ); + sections, + payments, + address, + selos, + contactNetworks, +}: Props) { return ( -
- {/** Desktop */} - {device === "desktop" - ? ( - <> - - +
+ + + ); } export default Footer; - -export const loader = (props: Props, _req: Request, ctx: AppContext) => { - return { ...props, device: ctx.device }; -}; diff --git a/components/footer/FooterItems.tsx b/components/footer/FooterItems.tsx index 1840028..843a64a 100644 --- a/components/footer/FooterItems.tsx +++ b/components/footer/FooterItems.tsx @@ -1,10 +1,6 @@ -import Icon from "../../components/ui/Icon.tsx"; -import Divider from "./Divider.tsx"; - export type Item = { label: string; href: string; - icon?: Icon; }; export type Section = { @@ -12,52 +8,52 @@ export type Section = { items: Item[]; }; -export type Icon = { - /** @title Icon */ - label?: "Email" | "Phone"; -}; - export default function FooterItems( - { sections, justify = false, device }: { - sections: Section[]; - justify?: boolean; - device?: string; - }, + { sections, variant }: { sections: Section[]; variant: "mobile" | "desktop" }, ) { return ( <> {sections.length > 0 && ( <> {/* Tablet and Desktop view */} - {(device === "desktop") - ? ( -
    - {sections.map((section) => ( -
  • -
    - - {section.label} + {variant === "desktop" && ( + <> + {sections.map((section) => ( + + ))} + + )} + + {/* Mobile view */} + {variant === "mobile" && ( +
      + {sections.map((section) => ( +
    • +
      + +
      + {section.label} +
      +
      +
        + {section.items?.map((item) => ( +
      • {item.label} @@ -65,85 +61,11 @@ export default function FooterItems( ))}
      -
    • - ))} -
    - ) - : ( - <> -
      - {sections.map((section, index) => ( -
    • -
      - -
      -
      - {!(index === sections.length - 1) && ( - - )} - -
      -
        - {section.items?.map((item, idx) => ( -
      • - {item.icon?.label && ( - - )} - - {item.label} - -
      • - ))} -
      -
      -
      -
    • - ))} -
    - - )} - {/* Mobile view */} +
    +
  • + ))} +
+ )} )} diff --git a/components/footer/PaymentMethods.tsx b/components/footer/PaymentMethods.tsx index c3d1dfb..998ff81 100644 --- a/components/footer/PaymentMethods.tsx +++ b/components/footer/PaymentMethods.tsx @@ -1,34 +1,33 @@ -import Icon from "../../components/ui/Icon.tsx"; +import Image from "apps/website/components/Image.tsx"; export interface PaymentItem { - label: "Diners" | "Elo" | "Mastercard" | "Pix" | "Visa"; + label: string; + image: string; + width: number; } export default function PaymentMethods( - { content }: { content?: { title?: string; items?: PaymentItem[] } }, + { content }: { content?: { items?: PaymentItem[] } }, ) { return ( <> {content && content.items && content.items.length > 0 && ( -
- {content.title &&

{content.title}

} -
    - {content.items.map((item) => { - return ( -
  • - -
  • - ); - })} -
+
+
+
+ {content.items.map((item) => { + return ( +
+ +
+ ); + })} +
+
)} diff --git a/sections/Footer/Footer.tsx b/sections/Footer/Footer.tsx index 6225f06..6ef7e5f 100644 --- a/sections/Footer/Footer.tsx +++ b/sections/Footer/Footer.tsx @@ -1 +1 @@ -export { default, loader } from "../../components/footer/Footer.tsx"; +export { default } from "../../components/footer/Footer.tsx"; From 2555e13823413b031288b47805f9330568e0de62 Mon Sep 17 00:00:00 2001 From: Murilo Gabriel Date: Thu, 27 Jun 2024 10:16:31 -0300 Subject: [PATCH 2/3] fix: alterando cadastro do footer --- .deco/blocks/Footer%20-%2006.json | 16 ---- .deco/metadata/spaces.json | 143 ++---------------------------- 2 files changed, 7 insertions(+), 152 deletions(-) diff --git a/.deco/blocks/Footer%20-%2006.json b/.deco/blocks/Footer%20-%2006.json index aa01d79..45b8cab 100644 --- a/.deco/blocks/Footer%20-%2006.json +++ b/.deco/blocks/Footer%20-%2006.json @@ -3,10 +3,6 @@ "sections": [ { "items": [ - { - "href": "/institucional", - "label": "Sobre Technos" - }, { "href": "/institucional/politica-de-seguranca", "label": "Política de Segurança" @@ -26,14 +22,6 @@ { "href": "/institucional/formas-de-pagamento", "label": "Formas de Pagamento" - }, - { - "href": "https://www.grupotechnos.com.br/pt", - "label": "RI" - }, - { - "href": "/onde-encontrar", - "label": "Onde Encontrar" } ], "label": "Intitucional", @@ -81,10 +69,6 @@ { "href": "/ajuda", "label": "Assistência Técnica" - }, - { - "href": "/seja-um-revendedor", - "label": "Seja um Revendedor" } ], "label": "Atendimento", diff --git a/.deco/metadata/spaces.json b/.deco/metadata/spaces.json index b110192..d33f80a 100644 --- a/.deco/metadata/spaces.json +++ b/.deco/metadata/spaces.json @@ -111,73 +111,7 @@ "name": "Sections", "pinned": true, "icon": "block", - "layout": { - "settings": { - "hasHeaders": true, - "constrainDragToContainer": true, - "reorderEnabled": true, - "selectionEnabled": false, - "popoutWholeStack": false, - "blockedPopoutsThrowError": true, - "closePopoutsOnUnload": true, - "showPopoutIcon": false, - "showMaximiseIcon": false, - "showCloseIcon": false, - "responsiveMode": "onload" - }, - "dimensions": { - "borderWidth": 8, - "minItemHeight": 10, - "minItemWidth": 10, - "headerHeight": 40, - "dragProxyWidth": 300, - "dragProxyHeight": 200 - }, - "labels": { - "close": "close", - "maximise": "maximise", - "minimise": "minimise", - "popout": "open in new window", - "popin": "pop in", - "tabDropdown": "additional tabs" - }, - "content": [ - { - "type": "row", - "isClosable": true, - "reorderEnabled": true, - "title": "", - "content": [ - { - "type": "stack", - "width": 100, - "isClosable": true, - "reorderEnabled": true, - "title": "", - "activeItemIndex": 0, - "content": [ - { - "id": "sections::List::list::List::%7B%7D", - "title": "
", - "type": "component", - "componentName": "component", - "componentState": { - "id": "sections::List::list::List::%7B%7D" - }, - "isClosable": true, - "reorderEnabled": true - } - ] - } - ] - } - ], - "isClosable": true, - "reorderEnabled": true, - "title": "", - "openPopouts": [], - "maximisedItemId": null - }, + "layout": [], "tabs": { "sections::List::list::List::%7B%7D": { "name": "List", @@ -599,7 +533,7 @@ "content": [ { "type": "stack", - "width": 24.390243902439025, + "width": 34.324942791762005, "isClosable": true, "reorderEnabled": true, "title": "", @@ -621,7 +555,7 @@ }, { "type": "stack", - "width": 51.21951219512194, + "width": 65.67505720823799, "isClosable": true, "reorderEnabled": true, "title": "", @@ -640,27 +574,6 @@ "reorderEnabled": true } ] - }, - { - "type": "stack", - "width": 24.390243902439018, - "isClosable": true, - "reorderEnabled": true, - "title": "", - "activeItemIndex": 0, - "content": [ - { - "id": "%2F.deco%2Fblocks%2Fpages-home-c4bcbfb771e9.json::JSON%20Properties::braces::JSON%20Properties::%7B%7D", - "title": "
", - "type": "component", - "componentName": "component", - "componentState": { - "id": "%2F.deco%2Fblocks%2Fpages-home-c4bcbfb771e9.json::JSON%20Properties::braces::JSON%20Properties::%7B%7D" - }, - "isClosable": true, - "reorderEnabled": true - } - ] } ] } @@ -696,17 +609,6 @@ "state": { "__signal": null } - }, - "%2F.deco%2Fblocks%2Fpages-home-c4bcbfb771e9.json::JSON%20Properties::braces::JSON%20Properties::%7B%7D": { - "name": "JSON Properties", - "icon": "braces", - "accepts": "function", - "render": "function", - "viewId": "JSON Properties", - "id": "%2F.deco%2Fblocks%2Fpages-home-c4bcbfb771e9.json::JSON%20Properties::braces::JSON%20Properties::%7B%7D", - "state": { - "__signal": null - } } } }, @@ -1646,7 +1548,7 @@ "content": [ { "type": "stack", - "width": 30.88756200993076, + "width": 41.66666666666667, "isClosable": true, "reorderEnabled": true, "title": "", @@ -1668,7 +1570,7 @@ }, { "type": "stack", - "width": 35.18680693290022, + "width": 58.333333333333336, "isClosable": true, "reorderEnabled": true, "title": "", @@ -1687,27 +1589,6 @@ "reorderEnabled": true } ] - }, - { - "type": "stack", - "width": 33.925631057169035, - "isClosable": true, - "reorderEnabled": true, - "title": "", - "activeItemIndex": 0, - "content": [ - { - "id": "%2F.deco%2Fblocks%2FFooter%2520-%252006.json::JSON%20Properties::braces::JSON%20Properties::%7B%7D", - "title": "
", - "type": "component", - "componentName": "component", - "componentState": { - "id": "%2F.deco%2Fblocks%2FFooter%2520-%252006.json::JSON%20Properties::braces::JSON%20Properties::%7B%7D" - }, - "isClosable": true, - "reorderEnabled": true - } - ] } ] } @@ -1728,7 +1609,8 @@ "width": 30, "id": "%2F.deco%2Fblocks%2FFooter%2520-%252006.json::Properties::list::Properties::%7B%7D", "state": { - "__signal": null + "__signal": null, + "value": null } }, "%2F.deco%2Fblocks%2FFooter%2520-%252006.json::Preview::world::Preview::%7B%7D": { @@ -1742,17 +1624,6 @@ "state": { "__signal": null } - }, - "%2F.deco%2Fblocks%2FFooter%2520-%252006.json::JSON%20Properties::braces::JSON%20Properties::%7B%7D": { - "name": "JSON Properties", - "icon": "braces", - "accepts": "function", - "render": "function", - "viewId": "JSON Properties", - "id": "%2F.deco%2Fblocks%2FFooter%2520-%252006.json::JSON%20Properties::braces::JSON%20Properties::%7B%7D", - "state": { - "__signal": null - } } } } From e6047fcc87f112e19f4292bf2d2229aae2f1cc9d Mon Sep 17 00:00:00 2001 From: Murilo Gabriel Date: Thu, 27 Jun 2024 10:31:47 -0300 Subject: [PATCH 3/3] fix: alterando css footer para tema padrao da loja --- components/footer/Footer.tsx | 2 +- components/footer/FooterItems.tsx | 4 ++-- components/footer/PaymentMethods.tsx | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/footer/Footer.tsx b/components/footer/Footer.tsx index 3cc4e01..5744eae 100644 --- a/components/footer/Footer.tsx +++ b/components/footer/Footer.tsx @@ -55,7 +55,7 @@ function Footer({ <> {contactNetworks && }