forked from M3-Academy/challenge-vtex-io
feat: adiciona prateleira
This commit is contained in:
parent
4058a2b0b9
commit
236fabddf6
@ -4,11 +4,9 @@ import styles from "./styles.module.css";
|
|||||||
|
|
||||||
const PixPrice = () => {
|
const PixPrice = () => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const inputCep = document.querySelectorAll(".vtex-address-form-4-x-input");
|
const inputCep = document.querySelector(".vtex-address-form-4-x-input");
|
||||||
|
|
||||||
// inputCep.setAttribute('placeholder', 'Digite seu CEP');
|
inputCep?.setAttribute("placeholder", "Digite seu CEP");
|
||||||
|
|
||||||
console.log(inputCep);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const productContextValue = useProduct();
|
const productContextValue = useProduct();
|
||||||
|
@ -7,7 +7,9 @@
|
|||||||
"html#productDescription",
|
"html#productDescription",
|
||||||
// "flex-layout.row#specifications-title",
|
// "flex-layout.row#specifications-title",
|
||||||
// "product-specification-group#table",
|
// "product-specification-group#table",
|
||||||
"shelf.relatedProducts",
|
// "shelf.relatedProducts",
|
||||||
|
"rich-text#shelfTitle",
|
||||||
|
"list-context.product-list#shelfProducts",
|
||||||
"product-questions-and-answers"
|
"product-questions-and-answers"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -223,5 +225,27 @@
|
|||||||
"Pinterest": false
|
"Pinterest": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
"rich-text#shelfTitle": {
|
||||||
|
"props": {
|
||||||
|
"textAlignment": "CENTER",
|
||||||
|
"textPosition": "CENTER",
|
||||||
|
"text": "# Você também pode gostar:",
|
||||||
|
"blockClass": "shelfTitleText"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
"product-summary.shelf#shelfProducts": {
|
||||||
|
"children": [
|
||||||
|
"product-summary-image",
|
||||||
|
"product-summary-name",
|
||||||
|
"product-price"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
"list-context.product-list#shelfProducts": {
|
||||||
|
"blocks": ["product-summary.shelf#shelfProducts"],
|
||||||
|
"children": ["slider-layout#demo-products"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,42 +1,16 @@
|
|||||||
.skuSelectorContainer--quickview .skuSelectorItemImage .frameAround, .skuSelectorContainer--quickview .skuSelectorItemImage .skuSelectorInternalBox {
|
/*
|
||||||
border-radius: 50%;
|
0 - 600PX: Phone
|
||||||
}
|
600 - 900px: Table portrait
|
||||||
|
900 - 1200px: Tablet landscape
|
||||||
.container :global(.vtex-modal-layout-0-x-triggerContainer) {
|
[1200 - 1800] is where our nortal styles apply
|
||||||
opacity: 0;
|
1800px + : Big desktop
|
||||||
transition: opacity 200ms ease-in-out;
|
*/
|
||||||
}
|
/* Media Query M3 */
|
||||||
|
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap%27");
|
||||||
.container:hover :global(.vtex-modal-layout-0-x-triggerContainer) {
|
/* Grid breakpoints */
|
||||||
opacity: 1;
|
.imageWrapper {
|
||||||
}
|
height: 314px;
|
||||||
|
display: flex;
|
||||||
@media screen and (max-width: 40em) {
|
justify-content: center;
|
||||||
.container :global(.vtex-modal-layout-0-x-triggerContainer) {
|
align-items: center;
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.nameContainer {
|
|
||||||
justify-content: start;
|
|
||||||
padding-top: 1rem;
|
|
||||||
padding-bottom: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.brandName {
|
|
||||||
font-weight: 600;
|
|
||||||
font-size: 18px;
|
|
||||||
color: #2E2E2E;
|
|
||||||
}
|
|
||||||
|
|
||||||
.container {
|
|
||||||
text-align: start;
|
|
||||||
}
|
|
||||||
|
|
||||||
.imageContainer {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.image {
|
|
||||||
border-radius: 0.25rem;
|
|
||||||
}
|
}
|
@ -6,7 +6,11 @@
|
|||||||
1800px + : Big desktop
|
1800px + : Big desktop
|
||||||
*/
|
*/
|
||||||
/* Media Query M3 */
|
/* Media Query M3 */
|
||||||
|
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap%27");
|
||||||
/* Grid breakpoints */
|
/* Grid breakpoints */
|
||||||
.paragraph--product-installments {
|
.headingLevel1--shelfTitleText {
|
||||||
margin: 0;
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24px;
|
||||||
|
line-height: 38px;
|
||||||
}
|
}
|
@ -1,31 +1,28 @@
|
|||||||
.sliderLayoutContainer {
|
/*
|
||||||
|
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 */
|
||||||
|
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap%27");
|
||||||
|
/* Grid breakpoints */
|
||||||
|
.paginationDotsContainer--shelf {
|
||||||
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sliderLayoutContainer--carousel {
|
.paginationDot--shelf {
|
||||||
background-color: #F0F0F0;
|
background: #292929;
|
||||||
min-height: 450px;
|
width: 10px !important;
|
||||||
|
height: 10px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sliderTrackContainer {
|
.paginationDot--shelf--isActive {
|
||||||
max-width: 100%;
|
width: 17px !important;
|
||||||
}
|
height: 17px !important;
|
||||||
|
border: 0.5px solid #292929;
|
||||||
.paginationDotsContainer {
|
background: transparent;
|
||||||
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;
|
|
||||||
}
|
}
|
6
styles/sass/pages/product/vtex.product-summary.scss
Normal file
6
styles/sass/pages/product/vtex.product-summary.scss
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
.imageWrapper {
|
||||||
|
height: 314px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
6
styles/sass/pages/product/vtex.rich-text.scss
Normal file
6
styles/sass/pages/product/vtex.rich-text.scss
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
.headingLevel1--shelfTitleText {
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24px;
|
||||||
|
line-height: 38px;
|
||||||
|
}
|
18
styles/sass/pages/product/vtex.slider-layout.scss
Normal file
18
styles/sass/pages/product/vtex.slider-layout.scss
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
.paginationDotsContainer--shelf {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.paginationDot--shelf {
|
||||||
|
background: $color-black;
|
||||||
|
width: 10px !important;
|
||||||
|
height: 10px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.paginationDot--shelf--isActive {
|
||||||
|
width: 17px !important;
|
||||||
|
height: 17px !important;
|
||||||
|
border: 0.5px solid $color-black;
|
||||||
|
background: transparent;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user