challenge-vtex-io-Adilson-F.../store/blocks/pdp/product.jsonc

403 lines
8.8 KiB
Plaintext
Raw Normal View History

{
"store.product": {
"children": [
"html#pageProduct",
"newsletter"
]
},
"html#pageProduct": {
"props": {
"blockClass":"page-product"
},
"children": [
2023-01-20 14:59:33 +00:00
"html#breadcrumb",
"condition-layout.product#availability",
2023-01-24 23:50:16 +00:00
"tab-layout#product",
2023-01-24 23:50:16 +00:00
// "flex-layout.row#description",
// "flex-layout.row#specifications-title",
// "product-specification-group#table",
// "shelf.relatedProducts",
// "product-questions-and-answers",
"rich-text#titleSlick",
"list-context.product-list#demo"
]
},
"html#breadcrumb": {
"props": {
"tag": "section",
"testId": "breadcrumbs",
"blockClass": "pdp-breadcrumb"
},
"children": ["breadcrumb"]
},
"flex-layout.row#specifications-title": {
"children": ["rich-text#specifications"]
},
"rich-text#specifications": {
"props": {
"text": "##### Product Specifications"
}
},
"condition-layout.product#availability": {
"props": {
"conditions": [
{
"subject": "isProductAvailable"
}
],
"Then": "flex-layout.row#product-main",
"Else": "flex-layout.row#product-availability"
}
},
"flex-layout.row#product-main": {
"props": {
"blockClass": "divProduct",
"colGap": 7,
"rowGap": 7,
"marginTop": 4,
"marginBottom": 7,
"paddingTop": 7,
"paddingBottom": 7
},
2023-01-24 23:50:16 +00:00
"children": ["flex-layout.col#stack", "flex-layout.col#right-col"]
},
2023-01-25 04:01:38 +00:00
"stack-layout": {
"props": {
"blockClass": "product"
},
"children": [
"flex-layout.row#product-image",
"product-bookmark",
"product-specification-badges"
]
},
"product-specification-badges": {
"props": {
"specificationGroupName": "Group",
"specificationName": "On Sale",
"visibleWhen": "True",
"displayValue": "SPECIFICATION_NAME"
}
},
2023-01-25 04:01:38 +00:00
"flex-layout.col#stack": {
"children": ["stack-layout"],
"props": {
2023-01-25 04:01:38 +00:00
"width": "50%",
"rowGap": 0
}
},
2023-01-25 04:01:38 +00:00
"flex-layout.row#product-image": {
2023-01-24 23:50:16 +00:00
"props": {},
"children": ["product-images"]
},
2023-01-25 04:01:38 +00:00
"product-images": {
"props": {
2023-01-24 23:50:16 +00:00
"blockClass": "divImagens",
"aspectRatio": {
"desktop": "auto",
"phone": "16:9"
},
"thumbnailsOrientation": "horizontal",
"displayThumbnailsArrows": false,
"showNavigationArrows": false,
"showPaginationDots": false
}
},
2023-01-25 04:01:38 +00:00
"flex-layout.col#right-col": {
"props": {
2023-01-24 23:50:16 +00:00
"blockClass": "divInfoProduct",
"preventVerticalStretch": true,
"rowGap": 0
},
"children": [
"flex-layout.row#product-name",
"flex-layout.row#product-modelo",
"product-rating-summary",
"flex-layout.row#selling-price",
2023-01-24 23:50:16 +00:00
"flex-layout.row#list-price-savings",
"product-installments",
// "product-separator",
"sku-selector",
"product-quantity",
"product-assembly-options",
"product-gifts",
"flex-layout.row#buy-button",
"availability-subscriber",
"shipping-simulator",
"share#default"
]
},
2023-01-25 04:01:38 +00:00
"flex-layout.row#product-modelo": {
"props": {
2023-01-24 23:50:16 +00:00
"blockClass": "divNomeProductModelo"
},
"children": ["product-identifier.product"]
},
"flex-layout.row#product-name": {
"props": {
2023-01-24 23:50:16 +00:00
"blockClass": "divNomeProduct",
"marginBottom": 3
},
"children": ["vtex.store-components:product-name"]
},
"sku-selector": {
"props": {
"variationsSpacing": 3,
"showValueNameForImageVariation": true
}
},
2023-01-25 04:01:38 +00:00
"flex-layout.row#buy-button": {
"props": {
"marginTop": 4,
"marginBottom": 7
},
"children": ["add-to-cart-button"]
},
2023-01-25 04:01:38 +00:00
"flex-layout.row#product-availability": {
"props": {
"colGap": 7,
"marginTop": 4,
"marginBottom": 7,
"paddingTop": 7
},
"children": [
"flex-layout.col#stack",
"flex-layout.col#right-col-availability"
]
},
"flex-layout.col#right-col-availability": {
"props": {
"preventVerticalStretch": true,
"rowGap": 0,
"blockClass": "info-availability"
},
"children": [
"flex-layout.row#product-name",
"product-identifier.product",
"sku-selector",
"flex-layout.row#availability"
]
},
"flex-layout.row#availability": {
"props": {
"blockClass": "message-availability"
},
"children": ["availability-subscriber"]
},
2023-01-25 04:01:38 +00:00
"share#default": {
"props": {
"social": {
"Facebook": true,
"WhatsApp": true,
"Twitter": false,
"Pinterest": true
}
}
2023-01-24 23:50:16 +00:00
},
2023-01-25 04:01:38 +00:00
2023-01-24 23:50:16 +00:00
"tab-layout#product": {
"children": ["tab-list#product", "tab-content#product"],
"props": {
2023-01-25 04:01:38 +00:00
"blockClass": "estrutura",
2023-01-24 23:50:16 +00:00
"defaultActiveTabId": "product1"
}
},
"tab-list#product": {
2023-01-25 04:01:38 +00:00
"props": {
"blockClass": "Guias"
},
"children": [
"tab-list.item#product1",
"tab-list.item#product2",
"tab-list.item#product3",
"tab-list.item#product4",
"tab-list.item#product5"
]
2023-01-24 23:50:16 +00:00
},
"tab-list.item#product1": {
"props": {
2023-01-25 04:01:38 +00:00
"blockClass": "renderGuia",
2023-01-24 23:50:16 +00:00
"tabId": "product1",
"label": "Descrição",
2023-01-24 23:50:16 +00:00
"defaultActiveTab": true
}
},
"tab-list.item#product2": {
"props": {
2023-01-25 04:01:38 +00:00
"blockClass": "renderGuia",
2023-01-24 23:50:16 +00:00
"tabId": "product2",
"label": "Descrição"
2023-01-24 23:50:16 +00:00
}
},
"tab-list.item#product3": {
"props": {
2023-01-25 04:01:38 +00:00
"blockClass": "renderGuia",
2023-01-24 23:50:16 +00:00
"tabId": "product3",
"label": "Descrição"
2023-01-24 23:50:16 +00:00
}
},
"tab-list.item#product4": {
"props": {
2023-01-25 04:01:38 +00:00
"blockClass": "renderGuia",
2023-01-24 23:50:16 +00:00
"tabId": "product4",
"label": "Descrição"
2023-01-24 23:50:16 +00:00
}
},
2023-01-25 04:01:38 +00:00
"tab-list.item#product5": {
"props": {
"blockClass": "renderGuia",
"tabId": "product5",
"label": "Descrição"
2023-01-25 04:01:38 +00:00
}
},
2023-01-24 23:50:16 +00:00
"tab-content#product": {
2023-01-25 04:01:38 +00:00
"props": {
"blockClass": "listRender"
},
"children": [
"tab-content.item#product1",
"tab-content.item#product2",
"tab-content.item#product3",
"tab-content.item#product4",
"tab-content.item#product5"
]
2023-01-24 23:50:16 +00:00
},
"tab-content.item#product1": {
"children": ["flex-layout.row#description"],
"props": {
2023-01-25 04:01:38 +00:00
"tabId": "product1",
"blockClass": "renderConteudo"
2023-01-24 23:50:16 +00:00
}
},
"tab-content.item#product2": {
"children": ["flex-layout.row#description"],
"props": {
2023-01-25 04:01:38 +00:00
"tabId": "product2",
"blockClass": "renderConteudo"
2023-01-24 23:50:16 +00:00
}
},
"tab-content.item#product3": {
"children": ["flex-layout.row#description"],
"props": {
2023-01-25 04:01:38 +00:00
"tabId": "product3",
"blockClass": "renderConteudo"
2023-01-24 23:50:16 +00:00
}
},
"tab-content.item#product4": {
"children": ["flex-layout.row#description"],
"props": {
2023-01-25 04:01:38 +00:00
"tabId": "product4",
"blockClass": "renderConteudo"
}
},
"tab-content.item#product5": {
"children": ["flex-layout.row#description"],
"props": {
"tabId": "product5",
"blockClass": "renderConteudo"
2023-01-24 23:50:16 +00:00
}
},
2023-01-25 04:01:38 +00:00
"flex-layout.col#divImgDescription": {
"props": {
"blockClass": "divImgDescription",
"width": "50%"
2023-01-24 23:50:16 +00:00
},
"children": ["product-images#imgDescription"]
2023-01-24 23:50:16 +00:00
},
"product-images#imgDescription": {
2023-01-24 23:50:16 +00:00
"props": {
"displayMode": "first-image",
2023-01-25 04:01:38 +00:00
"blockClass": "imgDescription"
2023-01-24 23:50:16 +00:00
}
},
2023-01-25 23:46:25 +00:00
2023-01-24 23:50:16 +00:00
"flex-layout.row#description": {
"props": {
"blockClass":"divDescription",
2023-01-24 23:50:16 +00:00
"marginBottom": 7
},
2023-01-25 04:01:38 +00:00
"children": ["flex-layout.col#divImgDescription", "product-description"]
2023-01-25 01:44:07 +00:00
},
"rich-text#titleSlick": {
"props": {
"textAlignment": "CENTER",
"textPosition": "CENTER",
"text": "Você também pode gostar:",
"blockClass": "tituloSlick"
}
},
"list-context.product-list#demo": {
2023-01-25 23:46:25 +00:00
"props":{
// "collection":"/m3-academy---desafio/sandalias"
},
"blocks": ["product-summary.shelf#demo"],
"children": ["slider-layout#demo-product"]
},
"product-summary.shelf#demo": {
"children": [
"product-summary-image",
"product-summary-name",
// "product-summary-description",
"product-summary-price"
// "product-summary-sku-selector",
// "product-summary-buy-button"
]
},
"slider-layout#demo-product": {
"props": {
"itemsPerPage": {
"desktop": 4,
"tablet": 3,
"phone": 2
},
"infinite": true,
"showNavigationArrows": "desktopOnly",
"blockClass": "carousel"
}
// ,
// "children": ["shelf.relatedProducts"]
},
// "rich-text#1": {
// "props": {
// "text": "Test1"
// }
// },
// "rich-text#2": {
// "props": {
// "text": "Test2"
// }
// },
// "rich-text#3": {
// "props": {
// "text": "Test3"
// }
// },
2023-01-25 01:44:07 +00:00
"newsletter": {
"props": {
"blockClass": "newsletter",
"label": "Assine nossa newsletter",
2023-01-25 04:01:38 +00:00
"placeholder": "Digite Seu e-mail"
2023-01-25 01:44:07 +00:00
}
}
}