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;
}
/*Description*/
/*Descr*/
[class*="vtex-tab-layout-0-x-listItem"] {
margin: 0;
padding: 0;
@ -178,3 +178,33 @@ button[class*="vtex-numeric-stepperminus-button numeric-stepperminus-button br2
border-bottom: 4px solid 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 (
<>
<div>
<img src="https://agenciamagma.vtexassets.com/arquivos/pix_izabela.svg" alt="Pix" />
<div className="pix-container">
<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)
.toFixed(2)
.replace(".", ",")}`
}
<p>
10% de desconto
</p>
.replace(".", ",")}`}
</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": {
"blocks": ["product-summary.shelf#carrosselprodutos"],
"children": ["slider-layout#carrosselatualizado"]
"children": [ "rich-text#prat-titulo","slider-layout#carrosselatualizado"]
},
"product-summary.shelf#carrosselprodutos": {
"children": [
"product-summary-name",
"product-summary-description",
"product-summary-image",
"product-summary-price",
"product-summary-sku-selector",
"product-summary-buy-button"
"product-summary-name",
"product-summary-price"
]
},
@ -238,10 +244,10 @@
"flex-layout.row#product-name",
"product-identifier.product",
"product-rating-summary",
"Pix",
"flex-layout.row#list-price-savings",
"flex-layout.row#selling-price",
"product-installments",
"Pix",
"sku-selector",
"product-quantity",
"product-assembly-options",
@ -263,7 +269,7 @@
"sku-selector": {
"props": {
"variationsSpacing": 3,
"showValueNameForImageVariation": true
"showValueNameForImageVariation": false
}
},

View File

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

View File

@ -1,26 +1,28 @@
{
"typeScale": [
3, 2.25, 1.5, 1.25, 1, 0.875, 0.75
],
"typeScale": [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],
"customMedia": [
{ "s": 20 },
{ "ns": {
{
"ns": {
"value": 40,
"minWidth": true
}
},
{ "m": {
{
"m": {
"value": 40,
"minWidth": true
}
},
{ "l": {
{
"l": {
"value": 64,
"minWidth": true
}
},
{ "xl": {
{
"xl": {
"value": 80,
"minWidth": true
}

View File

@ -1,42 +1,10 @@
.skuSelectorContainer--quickview .skuSelectorItemImage .frameAround, .skuSelectorContainer--quickview .skuSelectorItemImage .skuSelectorInternalBox {
border-radius: 50%;
}
.container :global(.vtex-modal-layout-0-x-triggerContainer) {
opacity: 0;
transition: opacity 200ms ease-in-out;
}
.container:hover :global(.vtex-modal-layout-0-x-triggerContainer) {
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;
}
/*
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");

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 {
background-color: #F0F0F0;
min-height: 450px;
background-color: white;
padding: 0 40px;
}
.sliderTrackContainer {
max-width: 100%;
.paginationDot {
background-color: black;
}
.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;
.paginationDot--isActive {
background-color: white;
border: 1px solid black;
}

View File

@ -115,6 +115,7 @@
.shippingContainer {
display: flex;
position: relative;
bottom: 76px;
}
.shippingContainer :global(.vtex-button) {
background-color: black;
@ -153,12 +154,149 @@
display: none;
}
.shippingTable {
border: none;
bottom: 110px;
position: relative;
font-size: 14px;
font-family: "Open Sans";
text-transform: uppercase;
}
.shippingTable .shippingTableRadioBtn {
display: none;
}
.shippingTable .shippingTableHead {
display: contents;
}
.shippingTable .shippingTableCell {
padding: 7px 0;
font-family: "Open Sans";
color: #afafaf;
}
.shippingTable .shippingTableRow {
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 {
display: flex;
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 {
display: flex;
position: relative;
bottom: 76px;
:global(.vtex-button) {
background-color: black;
width: 70px;
@ -172,6 +173,14 @@
}
.shippingTable {
border: none;
bottom: 110px;
position: relative;
font-size: 14px;
font-family: "Open Sans";
text-transform: uppercase;
.shippingTableRadioBtn {
display: none;
}
@ -180,7 +189,160 @@
display: contents;
}
.shippingTableCell {
padding: 7px 0;
font-family: "Open Sans";
color: #afafaf;
}
.shippingTableRow {
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 {
display: flex;
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;
}
}