feat: adiciona layout de descrição e imagem

This commit is contained in:
Vitor Soares 2023-01-27 20:21:52 -03:00
parent 57ae2ef075
commit b52ac38836
6 changed files with 154 additions and 13 deletions

View File

@ -3,9 +3,10 @@
"children": [ "children": [
"html#breadcrumb", "html#breadcrumb",
"condition-layout.product#availability", "condition-layout.product#availability",
"flex-layout.row#description", "tab-layout#product",
"flex-layout.row#specifications-title", // "flex-layout.row#description",
"product-specification-group#table", // "flex-layout.row#specifications-title",
// "product-specification-group#table",
"shelf.relatedProducts", "shelf.relatedProducts",
"product-questions-and-answers", "product-questions-and-answers",
"newsletter" "newsletter"
@ -27,12 +28,7 @@
"text": "##### Product Specifications" "text": "##### Product Specifications"
} }
}, },
"flex-layout.row#description": {
"props": {
"marginBottom": 7
},
"children": ["product-description"]
},
"condition-layout.product#availability": { "condition-layout.product#availability": {
"props": { "props": {
"conditions": [ "conditions": [
@ -136,16 +132,151 @@
] ]
}, },
"flex-layout.row#quantity-buy-button": { // DESCRIÇÃO DE PRODUTOS
"tab-layout#product": {
"props": { "props": {
"blockClass": "quantity-buy-button" "blockClass": "structure",
"defaultActiveTabId": "product1"
},
"children": ["tab-list#product", "tab-content#product"]
},
"tab-list#product": {
"props": {
"blockClass": "tab"
}, },
"children": [ "children": [
"product-quantity", "tab-list.item#product1",
"flex-layout.row#buy-button" "tab-list.item#product2",
"tab-list.item#product3",
"tab-list.item#product4",
"tab-list.item#product5"
] ]
}, },
"tab-list.item#product1": {
"props": {
"blockClass": "tab-render",
"tabId": "product1",
"label": "Drescrição",
"defaultActiveTab": true
}
},
"tab-list.item#product2": {
"props": {
"blockClass": "tab-render",
"tabId": "product2",
"label": "Descrição"
}
},
"tab-list.item#product3": {
"props": {
"blockClass": "tab-render",
"tabId": "product3",
"label": "Descrição"
}
},
"tab-list.item#product4": {
"props": {
"blockClass": "tab-render",
"tabId": "product4",
"label": "Descrição"
}
},
"tab-list.item#product5": {
"props": {
"blockClass": "tab-render",
"tabId": "product5",
"label": "Descrição"
}
},
"tab-content#product": {
"props": {
"blockClass": "content"
},
"children": [
"tab-content.item#product1",
"tab-content.item#product2",
"tab-content.item#product3",
"tab-content.item#product4",
"tab-content.item#product5"
]
},
"tab-content.item#product1": {
"props": {
"tabId": "product1",
"blockClass": "content-render"
},
"children": ["flex-layout.row#description"]
},
"tab-content.item#product2": {
"props": {
"tabId": "product2",
"blockClass": "content-render"
},
"children": ["flex-layout.row#description"]
},
"tab-content.item#product3": {
"props": {
"tabId": "product3",
"blockClass": "content-render"
},
"children": ["flex-layout.row#description"]
},
"tab-content.item#product4": {
"props": {
"tabId": "product4",
"blockClass": "content-render"
},
"children": ["flex-layout.row#description"]
},
"tab-content.item#product5": {
"props": {
"tabId": "product5",
"blockClass": "content-render"
},
"children": ["flex-layout.row#description"]
},
"flex-layout.col#imageDescriptionContainer": {
"props": {
"blockClass": "image-description",
"width": "50%"
},
"children": ["product-images#imageDescription"]
},
"product-images#imageDescription": {
"props": {
"displayMode": "first-image",
"blockClass": "img-description"
}
},
"flex-layout.row#description": {
"props": {
"marginBottom": 7
},
"children": ["flex-layout.col#imageDescriptionContainer", "product-description"]
},
// "flex-layout.row#quantity-buy-button": {
// "props": {
// "blockClass": "quantity-buy-button"
// },
// "children": [
// "product-quantity",
// "flex-layout.row#buy-button"
// ]
// },
"flex-layout.row#product-name": { "flex-layout.row#product-name": {
"props": { "props": {
"marginBottom": 3 "marginBottom": 3

View File

@ -6,6 +6,8 @@
1800px + : Big desktop 1800px + : Big desktop
*/ */
/* Media Query M3 */ /* Media Query M3 */
/* Fontes */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap");
/* Cores */ /* Cores */
/* Grid breakpoints */ /* Grid breakpoints */
.html { .html {

View File

@ -6,6 +6,8 @@
1800px + : Big desktop 1800px + : Big desktop
*/ */
/* Media Query M3 */ /* Media Query M3 */
/* Fontes */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap");
/* Cores */ /* Cores */
/* Grid breakpoints */ /* Grid breakpoints */
.container { .container {

View File

@ -6,6 +6,8 @@
1800px + : Big desktop 1800px + : Big desktop
*/ */
/* Media Query M3 */ /* Media Query M3 */
/* Fontes */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap");
/* Cores */ /* Cores */
/* Grid breakpoints */ /* Grid breakpoints */
.flexRowContent--buy-button-row :global(.vtex-button) { .flexRowContent--buy-button-row :global(.vtex-button) {

View File

@ -6,6 +6,8 @@
1800px + : Big desktop 1800px + : Big desktop
*/ */
/* Media Query M3 */ /* Media Query M3 */
/* Fontes */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap");
/* Cores */ /* Cores */
/* Grid breakpoints */ /* Grid breakpoints */
.product-identifier__label { .product-identifier__label {

View File

@ -6,5 +6,7 @@
1800px + : Big desktop 1800px + : Big desktop
*/ */
/* Media Query M3 */ /* Media Query M3 */
/* Fontes */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap");
/* Cores */ /* Cores */
/* Grid breakpoints */ /* Grid breakpoints */