Entrega do Desafio #1

Merged
anacarolinaduartecavalcante merged 93 commits from feature/challenge-vtex-io into develop 2023-02-03 17:14:03 +00:00
Showing only changes of commit 471d282ac3 - Show all commits

View File

@ -67,11 +67,11 @@
"props": {
"itemsPerPage": {
"desktop": 4,
"tablet": 1,
"phone": 1
"tablet": 3,
"phone": 2
},
"infinite": true,
"showNavigationArrows": "desktopOnly",
"showNavigationArrows": "always",
"blockClass": "carousel"
}
},
@ -100,21 +100,15 @@
"subject": "isProductAvailable"
}
],
"Then": "flex-layout.row#product-main",
"Else": "flex-layout.row#product-availability"
"Then": "html#product-main",
"Else": "html#product-availability"
}
},
"flex-layout.row#product-main": {
"html#product-main": {
"props": {
"blockClass": "product-main-content",
"colGap": 7,
"rowGap": 7,
"marginTop": 4,
"marginBottom": 7,
"paddingTop": 7,
"paddingBottom": 7
"blockClass": "product-main-content"
},
"children": ["flex-layout.col#stack", "html#right-col"]
"children": ["html#flex-layout.col#stack", "html#right-col"]
},
"stack-layout": {
@ -137,7 +131,7 @@
}
},
"flex-layout.col#stack": {
"html#flex-layout.col#stack": {
"children": ["stack-layout"],
"props": {
"blockClass": "stack-layout-content",
@ -261,8 +255,7 @@
"rowGap": 0
},
"children": [
"flex-layout.row#product-name",
"product-identifier.product",
"html#identification-product",
// "product-rating-summary",
"flex-layout.row#selling-price",
"installment-product-component",
@ -280,6 +273,12 @@
// "share#default"
]
},
"html#identification-product": {
"props": {
"blockClass": "identification-product-content"
},
"children": ["html#product-name", "product-identifier.product"]
},
"html#cart-content": {
"props": {
"blockClass": "cart-content"
@ -304,12 +303,13 @@
},
"children": ["pix-component"]
},
"flex-layout.row#product-name": {
"html#product-name": {
"props": {
"marginBottom": 3
},
"children": ["vtex.store-components:product-name"]
},
"html#sku-selector": {
"props": {
"testId": "sku-selector"
@ -332,14 +332,11 @@
"children": ["add-to-cart-button"]
},
"flex-layout.row#product-availability": {
"html#product-availability": {
"props": {
"colGap": 7,
"marginTop": 4,
"marginBottom": 7,
"paddingTop": 7
"blockClass": "product-availability-block"
},
"children": ["flex-layout.col#stack", "html#right-col-availability"]
"children": ["html#flex-layout.col#stack", "html#right-col-availability"]
},
"html#right-col-availability": {
"props": {
@ -348,12 +345,17 @@
"blockClass": "info-availability"
},
"children": [
"flex-layout.row#product-name",
"product-identifier.product",
"html#sku-selector",
"flex-layout.row#availability"
"html#identification-product-availability",
"flex-layout.row#availability",
"html#sku-selector"
]
},
"html#identification-product-availability": {
"props": {
"blockClass": "identification-product-availability"
},
"children": ["html#product-name", "product-identifier.product"]
},
"flex-layout.row#availability": {
"props": {
"blockClass": "message-availability"