feat: Estilização pix

This commit is contained in:
Izabela Balizardo 2023-02-09 22:54:10 -03:00
parent a1be360e7f
commit fce79c0d46
12 changed files with 783 additions and 441 deletions

View File

@ -143,7 +143,7 @@ button[class*="vtex-numeric-stepperminus-button numeric-stepperminus-button br2
display: none; display: none;
} }
/*Description*/ /*Descr*/
[class*="vtex-tab-layout-0-x-listItem"] { [class*="vtex-tab-layout-0-x-listItem"] {
margin: 0; margin: 0;
padding: 0; padding: 0;
@ -178,3 +178,33 @@ button[class*="vtex-numeric-stepperminus-button numeric-stepperminus-button br2
border-bottom: 4px solid black; border-bottom: 4px solid black;
color: black; color: black;
} }
[class*="vtex-store-components-3-x-productImageTag--main"] {
width: 904px;
height: 904px;
max-height: 900px !important;
}
[class*="pix-container"] {
display: flex;
}
[class*="pix-img"] {
margin-top: 18px;
}
[class*="pix-preco"] {
font-family: "Open Sans";
margin-top: 8px;
font-size: 18px;
font-weight: 700;
line-height: 25px;
letter-spacing: 0em;
text-align: left;
color: rgba(0, 0, 0, 0.58);
}
[class*="pix-container"] p {
display: flex;
color: red;
}

View File

@ -7,18 +7,20 @@ const Pix = () => {
return ( return (
<> <>
<div> <div className="pix-container">
<img src="https://agenciamagma.vtexassets.com/arquivos/pix_izabela.svg" alt="Pix" /> <div className="pix-img">
<img
src="https://agenciamagma.vtexassets.com/arquivos/pix_izabela.svg"
alt="Pix"
/>
</div>
<div className="pix-preco">
{`R$ ${(productContextValue! - productContextValue! * 0.1) {`R$ ${(productContextValue! - productContextValue! * 0.1)
.toFixed(2) .toFixed(2)
.replace(".", ",")}` .replace(".", ",")}`}
}
<p>
10% de desconto
</p>
</div> </div>
</div>
<p>10% de desconto</p>
</> </>
); );
}; };

View File

@ -113,19 +113,25 @@
} }
}, },
"rich-text#prat-titulo":{
"props": {
"textAlignment": "CENTER",
"textPosition":"CENTER",
"text": "Você também pode gostar:",
"blockClass":"shelfTitleText"
}
},
"list-context.product-list#list": { "list-context.product-list#list": {
"blocks": ["product-summary.shelf#carrosselprodutos"], "blocks": ["product-summary.shelf#carrosselprodutos"],
"children": ["slider-layout#carrosselatualizado"] "children": [ "rich-text#prat-titulo","slider-layout#carrosselatualizado"]
}, },
"product-summary.shelf#carrosselprodutos": { "product-summary.shelf#carrosselprodutos": {
"children": [ "children": [
"product-summary-name",
"product-summary-description",
"product-summary-image", "product-summary-image",
"product-summary-price", "product-summary-name",
"product-summary-sku-selector", "product-summary-price"
"product-summary-buy-button"
] ]
}, },
@ -238,10 +244,10 @@
"flex-layout.row#product-name", "flex-layout.row#product-name",
"product-identifier.product", "product-identifier.product",
"product-rating-summary", "product-rating-summary",
"Pix",
"flex-layout.row#list-price-savings", "flex-layout.row#list-price-savings",
"flex-layout.row#selling-price", "flex-layout.row#selling-price",
"product-installments", "product-installments",
"Pix",
"sku-selector", "sku-selector",
"product-quantity", "product-quantity",
"product-assembly-options", "product-assembly-options",
@ -263,7 +269,7 @@
"sku-selector": { "sku-selector": {
"props": { "props": {
"variationsSpacing": 3, "variationsSpacing": 3,
"showValueNameForImageVariation": true "showValueNameForImageVariation": false
} }
}, },

View File

@ -6,9 +6,7 @@
"preventHorizontalStretch": true, "preventHorizontalStretch": true,
"marginBottom": 4 "marginBottom": 4
}, },
"children": [ "children": ["product-selling-price"]
"product-selling-price"
]
}, },
"flex-layout.row#list-price-savings": { "flex-layout.row#list-price-savings": {
@ -19,9 +17,6 @@
"marginBottom": 2, "marginBottom": 2,
"marginTop": 5 "marginTop": 5
}, },
"children": [ "children": ["product-list-price", "product-price-savings"]
"product-list-price",
"product-price-savings"
]
} }
} }

View File

@ -1,26 +1,28 @@
{ {
"typeScale": [ "typeScale": [3, 2.25, 1.5, 1.25, 1, 0.875, 0.75],
3, 2.25, 1.5, 1.25, 1, 0.875, 0.75
],
"spacing": [0.125, 0.25, 0.5, 0.75, 1, 1.5, 2, 3, 4, 8, 16], "spacing": [0.125, 0.25, 0.5, 0.75, 1, 1.5, 2, 3, 4, 8, 16],
"customMedia": [ "customMedia": [
{ "s": 20 }, { "s": 20 },
{ "ns": { {
"ns": {
"value": 40, "value": 40,
"minWidth": true "minWidth": true
} }
}, },
{ "m": { {
"m": {
"value": 40, "value": 40,
"minWidth": true "minWidth": true
} }
}, },
{ "l": { {
"l": {
"value": 64, "value": 64,
"minWidth": true "minWidth": true
} }
}, },
{ "xl": { {
"xl": {
"value": 80, "value": 80,
"minWidth": true "minWidth": true
} }

View File

@ -1,42 +1,10 @@
.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 */
/* Grid breakpoints */
.container:hover :global(.vtex-modal-layout-0-x-triggerContainer) { @import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap");
opacity: 1;
}
@media screen and (max-width: 40em) {
.container :global(.vtex-modal-layout-0-x-triggerContainer) {
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;
}

View File

@ -1,31 +1,23 @@
.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 */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap");
.sliderLayoutContainer--carousel { .sliderLayoutContainer--carousel {
background-color: #F0F0F0; background-color: white;
min-height: 450px; padding: 0 40px;
} }
.sliderTrackContainer { .paginationDot {
max-width: 100%; background-color: black;
} }
.paginationDotsContainer { .paginationDot--isActive {
margin-top: .5rem; background-color: white;
margin-bottom: .5rem; border: 1px solid black;
}
.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;
} }

View File

@ -115,6 +115,7 @@
.shippingContainer { .shippingContainer {
display: flex; display: flex;
position: relative; position: relative;
bottom: 76px;
} }
.shippingContainer :global(.vtex-button) { .shippingContainer :global(.vtex-button) {
background-color: black; background-color: black;
@ -153,12 +154,149 @@
display: none; display: none;
} }
.shippingTable {
border: none;
bottom: 110px;
position: relative;
font-size: 14px;
font-family: "Open Sans";
text-transform: uppercase;
}
.shippingTable .shippingTableRadioBtn { .shippingTable .shippingTableRadioBtn {
display: none; display: none;
} }
.shippingTable .shippingTableHead { .shippingTable .shippingTableHead {
display: contents; display: contents;
} }
.shippingTable .shippingTableCell {
padding: 7px 0;
font-family: "Open Sans";
color: #afafaf;
}
.shippingTable .shippingTableRow { .shippingTable .shippingTableRow {
text-align: left; text-align: left;
} }
.shippingTable .shippingTableRadioBtn {
display: none;
}
.shippingTable .shippingTableHeadDeliveryName,
.shippingTable .shippingTableHeadDeliveryEstimate,
.shippingTable .shippingTableHeadDeliveryPrice {
font-weight: 400;
}
.content--imagem-descricao {
margin-right: 16px;
width: 50%;
}
.productDescriptionContainer {
width: 50%;
margin-left: 16px;
}
.carouselGaleryThumbs {
height: 200px;
}
.carouselGaleryThumbs .productImagesThumb {
margin: 0px 10px;
}
.carouselGaleryThumbs .thumbImg {
border-radius: 8px;
}
.discountInsideContainer,
.installmentsPrice {
display: none;
}
.sellingPriceLabel {
display: none;
}
.sellingPrice {
font-weight: bolder;
}
.skuSelectorContainer {
display: flex;
flex-direction: column-reverse;
}
.skuSelectorContainer .frameAround {
border-radius: 50%;
border-color: black;
z-index: 2;
margin: 2px;
}
.skuSelectorContainer .skuSelectorInternalBox {
border-radius: 50%;
}
.skuSelectorContainer .skuSelectorItemTextValue {
padding: 0;
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: rgba(185, 185, 185, 0.6);
}
.skuSelectorContainer .diagonalCross {
background-image: linear-gradient(to top left, transparent 44%, rgb(0, 0, 0) 48%, currentColor 48%, currentColor 52%, transparent 52%);
z-index: 2;
width: 32px;
height: 33px;
position: absolute;
top: 4px;
left: 4px;
}
.skuSelectorItem {
height: 40px;
width: 40px;
position: relative;
}
.skuSelectorSubcontainer--tamanho .skuSelectorName {
font-size: 0px;
}
.skuSelectorSubcontainer--tamanho .skuSelectorName::after {
content: "OUTROS TAMANHOS:";
font-size: 14px;
color: gray;
}
.skuSelectorSubcontainer--cor .skuSelectorName {
font-size: 0px;
}
.skuSelectorSubcontainer--cor .skuSelectorName::after {
content: "OUTRAS CORES:";
font-size: 14px;
color: gray;
}
.subscriberContainer {
position: relative;
height: 180px;
}
.subscriberContainer .submit {
width: 100%;
position: absolute;
bottom: 0;
}
.subscriberContainer .submit :global(.vtex-button) {
background-color: #000000;
color: #fff;
font-size: 0px;
width: 100%;
height: 100%;
padding: 12px;
}
.subscriberContainer .submit :global(.vtex-button)::after {
content: "Avise-me";
font-family: "Open Sans";
font-style: normal;
font-weight: 600;
font-size: 18px;
line-height: 25px;
text-transform: uppercase;
}

View File

@ -11,5 +11,22 @@
.listContainer { .listContainer {
display: flex; display: flex;
justify-content: space-evenly; justify-content: space-evenly;
border-bottom: 1px solid gray; border-bottom: 1px solid #b9b9b9;
}
@media screen and (max-width: 1024px) {
.listContainer {
flex-direction: column;
}
}
.contentItem {
display: flex;
padding: 62px 52px;
display: flex;
flex-direction: row-reverse;
}
@media screen and (max-width: 1024px) {
.contentItem {
flex-direction: column-reverse;
}
} }

View File

@ -0,0 +1,13 @@
.sliderLayoutContainer--carousel {
background-color: white;
padding: 0 40px;
}
.paginationDot {
background-color: black;
}
.paginationDot--isActive {
background-color: white;
border: 1px solid black;
}

View File

@ -127,6 +127,7 @@
.shippingContainer { .shippingContainer {
display: flex; display: flex;
position: relative; position: relative;
bottom: 76px;
:global(.vtex-button) { :global(.vtex-button) {
background-color: black; background-color: black;
width: 70px; width: 70px;
@ -172,6 +173,14 @@
} }
.shippingTable { .shippingTable {
border: none;
bottom: 110px;
position: relative;
font-size: 14px;
font-family: "Open Sans";
text-transform: uppercase;
.shippingTableRadioBtn { .shippingTableRadioBtn {
display: none; display: none;
} }
@ -180,7 +189,160 @@
display: contents; display: contents;
} }
.shippingTableCell {
padding: 7px 0;
font-family: "Open Sans";
color: #afafaf;
}
.shippingTableRow { .shippingTableRow {
text-align: left; text-align: left;
} }
.shippingTableRadioBtn {
display: none;
}
.shippingTableHeadDeliveryName,
.shippingTableHeadDeliveryEstimate,
.shippingTableHeadDeliveryPrice {
font-weight: 400;
}
}
.content--imagem-descricao {
margin-right: 16px;
width: 50%;
}
.productDescriptionContainer {
width: 50%;
margin-left: 16px;
}
.carouselGaleryThumbs {
height: 200px;
.productImagesThumb {
margin: 0px 10px;
}
.thumbImg {
border-radius: 8px;
}
}
.discountInsideContainer,
.installmentsPrice {
display: none;
}
.sellingPriceLabel {
display: none;
}
.sellingPrice {
font-weight: bolder;
}
.skuSelectorContainer {
display: flex;
flex-direction: column-reverse;
.frameAround {
border-radius: 50%;
border-color: black;
z-index: 2;
margin: 2px;
}
.skuSelectorInternalBox {
border-radius: 50%;
}
.skuSelectorItemTextValue {
padding: 0;
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: rgba(185, 185, 185, 0.6);
}
.diagonalCross {
background-image: linear-gradient(
to top left,
transparent 44%,
rgb(0, 0, 0) 48%,
currentColor 48%,
currentColor 52%,
transparent 52%
);
z-index: 2;
width: 32px;
height: 33px;
position: absolute;
top: 4px;
left: 4px;
}
}
.skuSelectorItem {
height: 40px;
width: 40px;
position: relative;
}
.skuSelectorSubcontainer--tamanho {
.skuSelectorName {
font-size: 0px;
&::after {
content: "OUTROS TAMANHOS:";
font-size: 14px;
color: gray;
}
}
}
.skuSelectorSubcontainer--cor {
.skuSelectorName {
font-size: 0px;
&::after {
content: "OUTRAS CORES:";
font-size: 14px;
color: gray;
}
}
}
.subscriberContainer {
position: relative;
height: 180px;
.submit {
width: 100%;
position: absolute;
bottom: 0;
:global(.vtex-button) {
background-color: #000000;
color: $color-white;
font-size: 0px;
width: 100%;
height: 100%;
padding: 12px;
&::after {
content: "Avise-me";
font-family: "Open Sans";
font-style: normal;
font-weight: 600;
font-size: 18px;
line-height: 25px;
text-transform: uppercase;
}
}
}
} }

View File

@ -1,5 +1,22 @@
.listContainer { .listContainer {
display: flex; display: flex;
justify-content: space-evenly; justify-content: space-evenly;
border-bottom: 1px solid gray; border-bottom: 1px solid #b9b9b9;
@media screen and (max-width: 1024px) {
flex-direction: column;
}
}
.contentItem {
display: flex;
padding: 62px 52px;
display: flex;
flex-direction: row-reverse;
@media screen and (max-width: 1024px) {
flex-direction: column-reverse;
}
} }