challenge-vtex-io-amanda-al.../store/blocks/pdp/slider-layout.jsonc

71 lines
1.5 KiB
Plaintext
Raw Normal View History

{
"rich-text#prateleira": {
"props": {
"text": "Você também pode gostar:",
"blockClass": "title-prateleira"
}
},
"html#product-summary.shelf": {
"props": {
"testId": "vtex-product-summary",
"blockClass": "produto-prateleira"
},
"children": ["product-summary-image", "product-summary-name", "html#price"]
},
"html#price": {
"props": {
"blockClass": "price"
},
"children": [
"product-list-price#prateleira",
"product-selling-price#prateleira"
]
},
"product-list-price#prateleira": {
"props": {
"blockClass": "prateleira",
"message": "de {listPriceValue} por "
}
},
"product-selling-price#prateleira": {
"props": {
"blockClass": "prateleira"
}
},
"product-summary.shelf#slider": {
"props": {
"blockClass": "produto-prateleira"
},
"children": ["html#product-summary.shelf"]
},
"list-context.product-list#prateleira": {
"blocks": ["product-summary.shelf#slider"],
"children": ["slider-layout#prateleira"]
},
"html#list-context.product-list#prateleira": {
"props": {
"testId": "product-summary-list",
"blockClass": "prateleira"
},
"children": ["rich-text#prateleira", "list-context.product-list#prateleira"]
},
"slider-layout#prateleira": {
"props": {
"itemsPerPage": {
"desktop": 4,
"tablet": 3,
"phone": 2
},
"infinite": true,
"blockClass": "prateleira"
}
}
}