feat(shelf): created shelf

This commit is contained in:
Marcello Rodrigues Martins 2023-02-10 22:15:06 -03:00
parent 64fc2a938b
commit 594c240fe7
12 changed files with 188 additions and 61 deletions

View File

@ -7,10 +7,42 @@
"tab-layout#description",
// "flex-layout.row#specifications-title",
// "product-specification-group#table",
"shelf.relatedProducts",
// "shelf.relatedProducts",
"rich-text#carrouselText",
"list-context.product-list#carousel",
"product-questions-and-answers"
]
},
"rich-text#carrouselText": {
"props": {
"text": "Você também pode gostar:",
"textPosition": "CENTER"
}
},
"slider-layout#carouselSLider": {
"props": {
"itemsPerPage": {
"desktop": 4
}
}
},
"list-context.product-list#carousel": {
"children": ["slider-layout#carouselSLider"],
"blocks": ["product-summary.shelf#productShelf"]
},
"product-summary.shelf#productShelf": {
"children": [
"product-summary-image",
"product-summary-name",
"product-summary-space",
"product-summary-price"
]
},
"tab-layout#description": {
"children": ["tab-list#description", "tab-content#description"]
},
@ -127,6 +159,7 @@
},
"flex-layout.row#description": {
"props": {
"blockClass": "containerFlexRow",
"marginBottom": 7
},
"children": ["product-images#description", "flex-layout.col#description"]

View File

@ -7,6 +7,6 @@
*/
/* Media Query M3 */
/* Grid breakpoints */
.flexRow {
.flexRow--containerFlexRow {
margin: 32px 72px 16px;
}

View File

@ -0,0 +1,12 @@
/*
0 - 600PX: Phone
600 - 900px: Table portrait
900 - 1200px: Tablet landscape
[1200 - 1800] is where our nortal styles apply
1800px + : Big desktop
*/
/* Media Query M3 */
/* Grid breakpoints */
.discountInsideContainer {
display: none;
}

View File

@ -1,42 +1,55 @@
.skuSelectorContainer--quickview .skuSelectorItemImage .frameAround, .skuSelectorContainer--quickview .skuSelectorItemImage .skuSelectorInternalBox {
border-radius: 50%;
/*
0 - 600PX: Phone
600 - 900px: Table portrait
900 - 1200px: Tablet landscape
[1200 - 1800] is where our nortal styles apply
1800px + : Big desktop
*/
/* Media Query M3 */
/* Grid breakpoints */
.imageNormal {
width: 100vw;
height: 100vw;
}
.container :global(.vtex-modal-layout-0-x-triggerContainer) {
opacity: 0;
transition: opacity 200ms ease-in-out;
.productBrand {
font-weight: 400;
font-size: 18px;
line-height: 25px;
text-align: center;
color: #000000;
}
.container:hover :global(.vtex-modal-layout-0-x-triggerContainer) {
opacity: 1;
.installmentContainer {
display: none;
}
@media screen and (max-width: 40em) {
.container :global(.vtex-modal-layout-0-x-triggerContainer) {
display: none;
}
.listPriceContainer {
font-weight: 400;
font-size: 14px;
line-height: 19px;
text-align: center;
text-decoration-line: line-through;
color: #bababa;
}
.sellingPrice {
font-weight: 700;
font-size: 24px;
line-height: 33px;
text-align: center;
color: #000000;
}
.sellingPriceLabel {
display: none;
}
.nameContainer {
justify-content: start;
padding-top: 1rem;
padding-bottom: 1rem;
padding: 16px 16px 8px;
}
.brandName {
font-weight: 600;
font-size: 18px;
color: #2E2E2E;
}
.container {
text-align: start;
}
.imageContainer {
text-align: center;
}
.image {
border-radius: 0.25rem;
}
.priceContainer {
margin: unset;
padding: unset;
}

View File

@ -6,4 +6,11 @@
1800px + : Big desktop
*/
/* Media Query M3 */
/* Grid breakpoints */
/* Grid breakpoints */
.container {
font-weight: 400;
font-size: 24px;
line-height: 38px;
text-align: center;
color: #575757;
}

View File

@ -1,31 +1,21 @@
.sliderLayoutContainer {
justify-content: center;
/*
0 - 600PX: Phone
600 - 900px: Table portrait
900 - 1200px: Tablet landscape
[1200 - 1800] is where our nortal styles apply
1800px + : Big desktop
*/
/* Media Query M3 */
/* Grid breakpoints */
.paginationDot {
background: #000000;
}
.sliderLayoutContainer--carousel {
background-color: #F0F0F0;
min-height: 450px;
}
.sliderTrackContainer {
max-width: 100%;
.paginationDot--isActive {
border: 0.5px solid #000000;
background: white;
}
.paginationDotsContainer {
margin-top: .5rem;
margin-bottom: .5rem;
}
.layoutContainer--shelf {
margin-top: 20px;
margin-bottom: 20px;
max-width: 96rem;
min-height: 550px;
}
.slide--shelf {
margin-bottom: 25px;
padding-left: .5rem;
padding-right: .5rem;
min-height: 550px;
}
margin-top: 36px;
}

View File

@ -68,4 +68,8 @@
font-size: 16px;
line-height: 22px;
color: #929292;
}
.discountInsideContainer {
display: none;
}

View File

@ -1,3 +1,3 @@
.flexRow {
.flexRow--containerFlexRow {
margin: 32px 72px 16px;
}

View File

@ -0,0 +1,45 @@
.imageNormal {
width: 100vw;
height: 100vw;
}
.productBrand {
font-weight: 400;
font-size: 18px;
line-height: 25px;
text-align: center;
color: #000000;
}
.installmentContainer {
display: none;
}
.listPriceContainer {
font-weight: 400;
font-size: 14px;
line-height: 19px;
text-align: center;
text-decoration-line: line-through;
color: #bababa;
}
.sellingPrice {
font-weight: 700;
font-size: 24px;
line-height: 33px;
text-align: center;
color: #000000;
}
.sellingPriceLabel {
display: none;
}
.nameContainer {
padding: 16px 16px 8px;
}
.priceContainer {
margin: unset;
padding: unset;
}

View File

@ -0,0 +1,7 @@
.container {
font-weight: 400;
font-size: 24px;
line-height: 38px;
text-align: center;
color: #575757;
}

View File

@ -0,0 +1,12 @@
.paginationDot {
background: #000000;
}
.paginationDot--isActive {
border: 0.5px solid #000000;
background: white;
}
.paginationDotsContainer {
margin-top: 36px;
}

View File

@ -62,3 +62,7 @@
line-height: 22px;
color: #929292;
}
.discountInsideContainer {
display: none;
}