From b0ff1ddab37a23855016b54d4dec77c440e375de Mon Sep 17 00:00:00 2001 From: devartes Date: Thu, 9 Feb 2023 16:08:46 -0300 Subject: [PATCH] feat(category-menu.json): adicionando links do header --- store/blocks/header/category-menu.json | 123 +++++++++++++++++++++++-- 1 file changed, 116 insertions(+), 7 deletions(-) diff --git a/store/blocks/header/category-menu.json b/store/blocks/header/category-menu.json index 97185f6..16bc64b 100644 --- a/store/blocks/header/category-menu.json +++ b/store/blocks/header/category-menu.json @@ -1,14 +1,86 @@ { "vtex.menu@2.x:menu#category-menu": { "props": { - "experimentalOptimizeRendering": true + "experimentalOptimizeRendering": true, + "blockClass": "header-menu" }, "children": [ + "menu-item#novidades", + "menu-item#sapatos", "menu-item#category-apparel", "menu-item#category-home", - "menu-item#more" + "menu-item#more", + "menu-item#category-lojas", + "menu-item#category-seja-franqueado" ] }, + + "menu-item#novidades": { + "props": { + "id": "menu-item-novidades", + "type": "custom", + "iconId": null, + "highlight": false, + "itemProps": { + "type": "internal", + "href": "/novidades/", + "noFollow": false, + "tagTitle": "Novidades", + "text": "Novidades" + } + }, + "blocks": ["vtex.menu@2.x:submenu#novidades"] + }, + "vtex.menu@2.x:submenu#novidades": { + "props": { + "width": "auto" + }, + "children": ["vtex.menu@2.x:menu#novidades"] + }, + "vtex.menu@2.x:menu#novidades": { + "props": { + "orientation": "vertical" + }, + "children": [ + "menu-item#category-apparel-am3academy", + "menu-item#category-apparel-accessories", + "menu-item#category-apparel-eyeglasses" + ] + }, + + "menu-item#sapatos": { + "props": { + "id": "menu-item-sapatos", + "type": "custom", + "iconId": null, + "highlight": false, + "itemProps": { + "type": "internal", + "href": "/sapatos/", + "noFollow": false, + "tagTitle": "Sapatos", + "text": "Sapatos" + } + }, + "blocks": ["vtex.menu@2.x:submenu#sapatos"] + }, + "vtex.menu@2.x:submenu#sapatos": { + "props": { + "width": "auto" + }, + "children": ["vtex.menu@2.x:menu#sapatos"] + }, + "vtex.menu@2.x:menu#sapatos": { + "props": { + "orientation": "vertical" + }, + "children": [ + "menu-item#category-apparel-am3academy", + "menu-item#category-apparel-accessories", + "menu-item#category-apparel-eyeglasses" + ] + }, + "menu-item#category-apparel": { "props": { "id": "menu-item-category-apparel", @@ -20,7 +92,7 @@ "href": "/apparel---accessories/", "noFollow": false, "tagTitle": "Apparel & Accessories", - "text": "Apparel & Accessories" + "text": "Bolsas" } }, "blocks": ["vtex.menu@2.x:submenu#category-apparel"] @@ -41,6 +113,7 @@ "menu-item#category-apparel-eyeglasses" ] }, + "menu-item#category-apparel-am3academy": { "props": { "id": "menu-item-category-apparel-am3academy", @@ -86,6 +159,7 @@ } } }, + "menu-item#category-home": { "props": { "id": "menu-item-category-home", @@ -96,11 +170,12 @@ "type": "internal", "href": "/home---decor/", "noFollow": false, - "tagTitle": "Home & Decor", - "text": "Home & Decor" + "tagTitle": "Acessorios", + "text": "Acessorios" } } }, + "menu-item#more": { "props": { "id": "menu-item-custom-trocas-e-devolucoes", @@ -111,8 +186,8 @@ "type": "internal", "href": "#", "noFollow": true, - "tagTitle": "More", - "text": "More" + "tagTitle": "Outlet", + "text": "Outlet" } }, "blocks": ["vtex.menu@2.x:submenu#more"] @@ -182,5 +257,39 @@ "text": "Contact Us" } } + }, + + + "menu-item#category-lojas": { + "props": { + "id": "menu-item-category-lojas", + "type": "custom", + "iconId": null, + "highlight": false, + "itemProps": { + "type": "internal", + "href": "/lojas/", + "noFollow": false, + "tagTitle": "Lojas", + "text": "Lojas" + } + } + }, + + + "menu-item#category-seja-franqueado": { + "props": { + "id": "menu-item-category-seja-franqueado", + "type": "custom", + "iconId": null, + "highlight": false, + "itemProps": { + "type": "internal", + "href": "/Seja---Franqueado/", + "noFollow": false, + "tagTitle": "Seja Franqueado", + "text": "Seja Franqueado" + } + } } }