feat: adicionando class nas div do js e montando o css

This commit is contained in:
PATRICK DE SOUZA SILVA 2022-12-18 23:11:41 -03:00
parent cbfb329b83
commit f493cceaa1
8 changed files with 98 additions and 11 deletions

View File

@ -146,7 +146,9 @@ export default class Footer {
<div class="product-card__skus"> <div class="product-card__skus">
${product.items.map((item) => `<button>${item.name}</button>`)} ${product.items.map((item) => `<button>${item.name}</button>`)}
</div> </div>
<button class="product-card__btn" >
<a class="product-card__link" >ver produto</a> <a class="product-card__link" >ver produto</a>
</button>
</div> </div>
` `
); );

View File

@ -200,7 +200,7 @@
a { a {
align-items: center; align-items: center;
background-color: #303030; background-color: $color-blue2;
border-radius: 8px; border-radius: 8px;
border: none; border: none;
color: $color-white; color: $color-white;
@ -257,7 +257,6 @@
} }
p { p {
label { label {
font-family: $font-family; font-family: $font-family;
font-style: normal; font-style: normal;
@ -301,6 +300,10 @@
&.client-phone { &.client-phone {
width: calc(50% - 14.5px); width: calc(50% - 14.5px);
} }
#open-shipping {
display: none;
}
} }
.box-client-info-pj { .box-client-info-pj {
@ -409,6 +412,7 @@
.shp-summary-group-price, .shp-summary-group-price,
.shp-summary-package { .shp-summary-package {
color: $color-gray4; color: $color-gray4;
display: none;
} }
.shp-summary-group-price { .shp-summary-group-price {
@ -418,6 +422,13 @@
.shp-summary-package { .shp-summary-package {
padding-left: 16px; padding-left: 16px;
} }
.shp-summary-group-address {
font-family: $font-family;
font-weight: 400;
font-size: 24px;
line-height: 33px;
color: $color-gray2;
}
.vtex-omnishipping-1-x-summaryChange { .vtex-omnishipping-1-x-summaryChange {
border-color: #303030; border-color: #303030;
@ -425,8 +436,8 @@
} }
.vtex-omnishipping-1-x-deliveryChannelsToggle { .vtex-omnishipping-1-x-deliveryChannelsToggle {
background-color: #d8c8ac; background-color: $color-blue2;
border: 1px solid #d8c8ac; border: 1px solid $color-black2;
} }
.vtex-omnishipping-1-x-deliveryOptionActive { .vtex-omnishipping-1-x-deliveryOptionActive {

View File

@ -86,18 +86,27 @@
} }
#payment-data-submit { #payment-data-submit {
background: $color-black; font-family: "Open Sans";
border: none; font-weight: 700;
border-radius: 0; font-size: 28px;
line-height: 38px;
letter-spacing: 0.05em;
text-transform: uppercase;
color: $color-white; color: $color-white;
background: $color-green;
width: 100%;
padding: 12px;
border-radius: 8;
color: $color-black3;
outline: none; outline: none;
transition: all 0.2s linear; transition: all 0.2s linear;
&:hover { &:hover {
background: lighten($color-black, 5); background: lighten($color-green2, 5);
} }
&:active { &:active {
background: darken($color-black, 5); background: darken($color-green3, 5);
} }
} }
} }
@ -152,6 +161,12 @@
} }
.product-name { .product-name {
font-family: $font-family-secundary;
font-weight: 400;
font-size: 24px;
line-height: 28px;
color: $color-black3;
padding-right: 0; padding-right: 0;
padding-left: 31px; padding-left: 31px;
width: 360px; width: 360px;

View File

@ -3,6 +3,7 @@
@import "./checkout-pagamento"; @import "./checkout-pagamento";
@import "./checkout-autenticacao"; @import "./checkout-autenticacao";
html { html {
height: 100%; height: 100%;
min-height: 100%; min-height: 100%;

View File

@ -134,3 +134,59 @@
} }
} }
} }
/* _prateleira.scss */
.product-card {
.product-card__img {
width: 100%;
max-width: 75.7789%;
}
.product-card__description {
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 26px;
line-height: 35px;
text-align: center;
color: #000000;
margin-bottom: 20px;
}
.product-card__skus {
button {
cursor: pointer;
background-color: $color-blue2;
padding: 8px;
border: none;
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 26px;
line-height: 35px;
letter-spacing: 0.05em;
text-transform: uppercase;
color: #ffffff;
}
}
.product-card__btn {
margin-top: 10px;
background-color: $color-blue2;
border-radius: 8px;
width: 100%;
max-width: 485px;
padding: 12px;
}
.product-card__link {
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 26px;
line-height: 35px;
letter-spacing: 0.05em;
text-transform: uppercase;
color: #ffffff;
}
}

View File

@ -1 +0,0 @@
/* _prateleira.scss */

View File

@ -25,6 +25,9 @@ $color-blue3: #00b7ff;
$color-blue4: #00b7ffc2; $color-blue4: #00b7ffc2;
$color-green: #4caf50; $color-green: #4caf50;
$color-green2: #4caf51;
$color-green3: #4caf61;
$color-red: #ff0000; $color-red: #ff0000;
/* Grid breakpoints */ /* Grid breakpoints */

View File

@ -26,7 +26,7 @@
@TODO: vtex icon @TODO: vtex icon
</a> </a>
</li> </li>
<li> <li>
<a href="https://agenciam3.com/"> <a href="https://agenciam3.com/">
<span>Developed By</span> <span>Developed By</span>