Merge pull request 'development' (#1) from development into main

Reviewed-on: #1
This commit is contained in:
Andrea Matsunaga 2022-12-19 04:49:08 +00:00
commit e6b5ad810e
15 changed files with 10632 additions and 284 deletions

View File

@ -7,34 +7,222 @@ export default class Footer {
async init() { async init() {
await this.selectors(); await this.selectors();
// this.onUpdate(); this.replaceEmptyCartContent();
this.renderPrateleira();
this.stampsHTML();
this.developedByHTML();
this.onUpdate();
} }
async selectors() { async selectors() {
//Para verificar se o carrinho está vazio e remover a prateleira de produtos: //Para verificar se o carrinho está vazio e remover a prateleira de produtos:
// vocês devem olhar a doc fornecida no Desafio para aprender a usar o waitElement // vocês devem olhar a doc fornecida no Desafio para aprender a usar o waitElement
this.cartTitle = await waitElement("#cart-title");
this.checkoutVazio = await waitElement(".empty-cart-content"); this.checkoutVazio = await waitElement(".empty-cart-content");
this.emptyCartTitle = await waitElement(".empty-cart-title");
this.continueShopping = await waitElement("#cart-choose-products");
this.frete = await waitElement(".shipping-date");
this.unidade = await waitElement(".product-price");
this.iconMinus = await waitElement(".icon-minus-sign");
this.iconPlus = await waitElement(".icon-plus-sign");
this.prateleira = await waitElement(".footerCheckout__prateleira");
this.naoSeiMeuCep = await waitElement(".ship-postalCode");
// this.prateleiraSlick = await waitElement(".prateleira__carousel")
}
replaceEmptyCartContent() {
if (this.checkoutVazio) {
console.log("entrou no if do replaceContent()")
this.emptyCartTitle.textContent = "Seu Carrinho está vazio";
this.continueShopping.textContent = "Continuar comprando";
this.frete.textContent = "Frete";
this.unidade.textContent = "Unidade";
this.naoSeiMeuCep.children[2].children[0].textContent = "Não sei meu código postal";
}
} }
onUpdate() { onUpdate() {
//Função qeu fará a verificação se o carrinho está vazio para remover a prateleira de produtos: //Função qeu fará a verificação se o carrinho está vazio para remover a prateleira de produtos:
// vocês devem olhar a doc fornecida no Desafio para aprender a usar a MutationObserver // vocês devem olhar a doc fornecida no Desafio para aprender a usar a MutationObserver
// sempre que o carrinho estiver vazio o elemento chcekoutVazio fica display: none e isso pode ser usado como atributo para a MutationObserver // sempre que o carrinho estiver vazio o elemento chcekoutVazio fica display: none e isso pode ser usado como atributo para a MutationObserver
if(this.checkoutVazio) {
console.log("entrou no if do onUpdate()")
let target = this.checkoutVazio; let target = this.checkoutVazio;
let config = { childList: true, attributes: true }; let config = { attributes: true };
// this.cartTitle.style.display = "none";
// this.prateleira.style.display = "none";
let observer = new MutationObserver((mutations) => { let observer = new MutationObserver((mutations) => {
mutations.forEach(function (mutation) { mutations.forEach(() => {
console.log(mutation.type);
if(this.checkoutVazio.style.display == "block") {
console.log("Carrinho está vazio")
this.cartTitle.style.display = "none";
this.prateleira.style.display = "none";
} else {
console.log("Carrinho NÃO está vazio");
this.cartTitle.style.display = "block";
this.prateleira.style.display = "block";
}
}); });
}); });
observer.observe(target, config); observer.observe(target, config);
} }
async addCarrossel() { }
const elemento = await waitElement("#my-element");
$(elemento).slick({ async renderPrateleira() {
if (this.prateleira) {
const prateleiraTitle = document.createElement("h2");
const titleNode = document.createTextNode("Você também pode gostar:");
prateleiraTitle.classList.add("prateleira__title");
prateleiraTitle.appendChild(titleNode);
const prateleiraSlick = document.createElement("ul");
prateleiraSlick.classList.add("prateleira__carousel");
const response = await fetch("https://m3academy.myvtex.com/api/catalog_system/pub/products/search/?fq=productClusterIds:319");
console.log("await fetch response:", response);
const productsList = await response.json();
console.log("await fetch productsList:", productsList);
let cardsStructure = "";
if(productsList) {
productsList.forEach((product) => {
console.log(product)
const productImageUrl = product.items[0].images[0].imageUrl;
const productName = product.productName;
const productSkus = product.items;
const productLink = product.link;
let skusStructure = "";
console.log("productImageUrl:", productImageUrl);
console.log("productName:", productName);
console.log("productSkus:", productSkus);
console.log("productLink:", productLink);
productSkus.forEach((sku) => {
console.log("sku:", sku);
skusStructure += `
<li>
<button type="button">${sku.name}</button>
</li>
`
})
cardsStructure += `
<li class="prateleira__item">
<div class="prateleira__item--image-container">
<img class="prateleira__item--image" src="${productImageUrl}" />
</div>
<div class="prateleira__item--description">
<p class="prateleira__item--name">${productName}</p>
<ul class="prateleira__item--options">${skusStructure}</ul>
<a class="prateleira__item--link" href="${productLink}">
<button type="button" class="prateleira__item--button">Ver produto</button>
</a>
</div>
</li>
`
})
this.prateleira.appendChild(prateleiraTitle);
this.prateleira.appendChild(prateleiraSlick);
prateleiraSlick.innerHTML = cardsStructure;
if(window.innerWidth > 1024) {
this.addCarrossel(prateleiraSlick);
}
}
}
}
async addCarrossel(element) {
console.log("chamada do addCarrossel()");
// const elemento = await waitElement(this.prateleiraSlick);
$(element).slick({
slidesToShow: 4, slidesToShow: 4,
slidesToScroll: 1, slidesToScroll: 1,
infinite: false
}); });
} }
async stampsHTML() {
const stamps = await waitElement('.footerCheckout__stamps');
// console.log(stamps.children[0], stamps.children[2]);
const paymentsStructure = `
<ul class="footerCheckout__payments">
<li class="footerCheckout__payments--card">
<img src="https://agenciamagma.vteximg.com.br/arquivos/masterCardM3Academy.png" alt="" />
</li>
<li class="footerCheckout__payments--card">
<img src="https://agenciamagma.vteximg.com.br/arquivos/visaM3Academy.png" alt="" />
</li>
<li class="footerCheckout__payments--card">
<img src="https://agenciamagma.vteximg.com.br/arquivos/amexM3Academy.png" alt="" />
</li>
<li class="footerCheckout__payments--card">
<img src="https://agenciamagma.vteximg.com.br/arquivos/eloM3Academy.png" alt="" />
</li>
<li class="footerCheckout__payments--card">
<img src="https://agenciamagma.vteximg.com.br/arquivos/hiperCardM3Academy.png" alt="" />
</li>
<li class="footerCheckout__payments--card">
<img src="https://agenciamagma.vteximg.com.br/arquivos/payPalM3Academy.png" alt="" />
</li>
<li class="footerCheckout__payments--card">
<img src="https://agenciamagma.vteximg.com.br/arquivos/boletoM3Academy.png" alt="" />
</li>
</ul>
`
const certifiedStructure = `
<img class="footerCheckout__vtexpci footerCheckout__payments--certified" src="https://agenciamagma.vteximg.com.br/arquivos/vtexPCIM3Academy.png" alt="" />
`
stamps.children[0].innerHTML = paymentsStructure;
stamps.children[2].innerHTML = certifiedStructure;
}
async developedByHTML() {
const developedBy = await waitElement('.footerCheckout__developedBy');
// console.log(developedBy.children[0].children[0]);
const vtexIcon = `
<span>Powered By</span>
<img class="footerCheckout__developedBy__icons" src="https://agenciamagma.vteximg.com.br/arquivos/logoVTEXM3Academy.png" alt="" />
`
const m3Icon = `
<span>Powered By</span>
<img class="footerCheckout__developedBy__icons" src="https://agenciamagma.vteximg.com.br/arquivos/logoM3M3Academy.png" alt="" />
`
developedBy.children[0].children[0].innerHTML = vtexIcon;
developedBy.children[1].children[0].innerHTML = m3Icon;
// developedBy.children[0].children[0].addClass('footerCheckout__developedBy__link')
// developedBy.children[1].children[0].addClass('footerCheckout__developedBy__link')
}
} }

View File

@ -8,14 +8,190 @@ export default class Header {
async init() { async init() {
await this.selectors(); await this.selectors();
console.log(this.item); this.progressBarStructure();
await this.progressBarMove();
} }
async selectors() { async selectors() {
this.item = await waitElement("#my-element", { // this.header = await waitElement(".headerCheckout");
//#my-element pode ser a class ou o id do elemento html qeu vocÊ quer pegar this.progressBar = await waitElement("#progressBar");
timeout: 5000, // vai esperar 5 segundos antes de rejeitar a promise
interval: 1000, // vai verificar a cada 1 segundo se o elemento existe
});
} }
progressBarStructure() {
if (this.progressBar && window.innerWidth > 1024) {
this.progressBar.innerHTML = `
<ul class="progress-bar__container">
<li class="progress-bar__stage">
<p class="progress-bar__stage--text">Meu carrinho</p>
<div class="progress-bar__stage--circle" id="progress-bar__cart"></div>
</li>
<li class="progress-bar__stage">
<p class="progress-bar__stage--text">Dados Pessoais</p>
<div class="progress-bar__stage--circle" id="progress-bar__personal-data"></div>
</li>
<li class="progress-bar__stage">
<p class="progress-bar__stage--text">Pagamento</p>
<div class="progress-bar__stage--circle" id="progress-bar__payment"></div>
</li>
</ul>
`
}
if(this.progressBar && window.innerWidth <=1024) {
this.progressBar.innerHTML = "";
}
}
async progressBarMove() {
if (this.progressBar && window.innerWidth > 1024) {
const progressBarStages = document.querySelectorAll((".progress-bar__stage"));
progressBarStages.forEach((stage) => {
if(window.location.href === "https://m3academy.myvtex.com/checkout/#/cart") {
if(stage.children["progress-bar__cart"]) {
stage.children["progress-bar__cart"].classList.add("active")
}
if(stage.children["progress-bar__personal-data"]) {
if(stage.children["progress-bar__personal-data"].classList.contains("active")) {
stage.children["progress-bar__personal-data"].classList.remove("active")
}
}
if(stage.children["progress-bar__payment"]) {
if(stage.children["progress-bar__payment"].classList.contains("active")) {
stage.children["progress-bar__payment"].classList.remove("active")
}
}
} else if (
window.location.href === "https://m3academy.myvtex.com/checkout/#/email" ||
window.location.href === "https://m3academy.myvtex.com/checkout/#/profile" ||
window.location.href === "https://m3academy.myvtex.com/checkout/#/shipping") {
if(stage.children["progress-bar__cart"]) {
if(stage.children["progress-bar__cart"].classList.contains("active")) {
stage.children["progress-bar__cart"].classList.remove("active")
}
}
if(stage.children["progress-bar__personal-data"]) {
stage.children["progress-bar__personal-data"].classList.add("active")
}
if(stage.children["progress-bar__payment"]) {
if(stage.children["progress-bar__payment"].classList.contains("active")) {
stage.children["progress-bar__payment"].classList.remove("active")
}
}
} else if (
window.location.href === "https://m3academy.myvtex.com/checkout/#/payment") {
if(stage.children["progress-bar__cart"]) {
if(stage.children["progress-bar__cart"].classList.contains("active")) {
stage.children["progress-bar__cart"].classList.remove("active")
}
}
if(stage.children["progress-bar__personal-data"]) {
if(stage.children["progress-bar__personal-data"].classList.contains("active")) {
stage.children["progress-bar__personal-data"].classList.remove("active")
}
}
if(stage.children["progress-bar__payment"]) {
stage.children["progress-bar__payment"].classList.add("active")
}
} else {
console.log("Erro")
}
window.addEventListener("hashchange", () => {
if (window.location.hash == "#/cart") {
if(stage.children["progress-bar__cart"]) {
stage.children["progress-bar__cart"].classList.add("active")
}
if(stage.children["progress-bar__personal-data"]) {
if(stage.children["progress-bar__personal-data"].classList.contains("active")) {
stage.children["progress-bar__personal-data"].classList.remove("active")
}
}
if(stage.children["progress-bar__payment"]) {
if(stage.children["progress-bar__payment"].classList.contains("active")) {
stage.children["progress-bar__payment"].classList.remove("active")
}
}
} else if (
window.location.hash == "#/email" ||
window.location.hash == "#/profile" ||
window.location.hash == "#/shipping") {
if(stage.children["progress-bar__cart"]) {
if(stage.children["progress-bar__cart"].classList.contains("active")) {
stage.children["progress-bar__cart"].classList.remove("active")
}
}
if(stage.children["progress-bar__personal-data"]) {
stage.children["progress-bar__personal-data"].classList.add("active")
}
if(stage.children["progress-bar__payment"]) {
if(stage.children["progress-bar__payment"].classList.contains("active")) {
stage.children["progress-bar__payment"].classList.remove("active")
}
}
} else if (window.location.hash == "#/payment") {
if(stage.children["progress-bar__cart"]) {
if(stage.children["progress-bar__cart"].classList.contains("active")) {
stage.children["progress-bar__cart"].classList.remove("active")
}
}
if(stage.children["progress-bar__personal-data"]) {
if(stage.children["progress-bar__personal-data"].classList.contains("active")) {
stage.children["progress-bar__personal-data"].classList.remove("active")
}
}
if(stage.children["progress-bar__payment"]) {
stage.children["progress-bar__payment"].classList.add("active")
}
} else {
console.log("Erro")
}
})
})
}
}
// async progressBarMove() {
// if (this.progressBar && window.innerWidth > 1024) {
// const progressBarList = document.querySelectorAll(("#progressBar ul li"));
// progressBarList.forEach((li) => {
// console.log("Aqui vem seu código")
// })
// }
// }
} }

View File

@ -2,4 +2,5 @@
@import "./lib/slick"; @import "./lib/slick";
@import "./partials/header"; @import "./partials/header";
@import "./partials/footer"; @import "./partials/footer";
@import "./partials/prateleira";
@import "./checkout/checkout.scss"; @import "./checkout/checkout.scss";

View File

@ -1,4 +1,14 @@
.checkout-container { .checkout-container {
// background: yellow;
// height: 100%;
// box-sizing: border-box;
// &:before,
// &:after {
// display: none;
// }
.client-pre-email { .client-pre-email {
border-color: $color-gray4; border-color: $color-gray4;
font-family: $font-family; font-family: $font-family;
@ -6,11 +16,11 @@
.link-cart { .link-cart {
a { a {
color: $color-black; color: $black-300;
font-size: 14px; font-size: 14px;
&:hover { &:hover {
color: lighen($color-black, 10); color: lighen($black-300, 10);
} }
} }
} }
@ -40,7 +50,7 @@
input { input {
box-shadow: none; box-shadow: none;
color: $color-black; color: $black-300;
font-family: $font-family; font-family: $font-family;
padding: 0 16px; padding: 0 16px;
border: 2px solid $color-gray3; border: 2px solid $color-gray3;
@ -53,7 +63,7 @@
} }
button { button {
background-color: $color-black; background-color: $black-300;
border-radius: 5px; border-radius: 5px;
border: none; border: none;
font-family: $font-family; font-family: $font-family;
@ -89,11 +99,11 @@
li { li {
span { span {
color: $color-black; color: $black-300;
} }
i::before { i::before {
color: $color-black; color: $black-300;
font-size: 1rem; font-size: 1rem;
opacity: 1; opacity: 1;
} }
@ -101,7 +111,7 @@
} }
i::before { i::before {
color: $color-black; color: $black-300;
font-size: 6rem; font-size: 6rem;
opacity: 0.5; opacity: 0.5;
} }
@ -146,12 +156,12 @@
/* General configurations */ /* General configurations */
.client-notice { .client-notice {
color: $color-black; color: $black-300;
} }
p { p {
label { label {
color: $color-black; color: $black-300;
font-weight: 500; font-weight: 500;
} }
@ -170,7 +180,7 @@
.box-client-info-pj { .box-client-info-pj {
.link a#is-corporate-client, .link a#is-corporate-client,
.link a#not-corporate-client { .link a#not-corporate-client {
color: $color-black; color: $black-300;
font-weight: 500; font-weight: 500;
text-decoration: underline; text-decoration: underline;
} }
@ -183,17 +193,17 @@
button.submit { button.submit {
border: none; border: none;
border-radius: 5px; border-radius: 5px;
background: $color-black; background: $black-300;
margin-top: 8px; margin-top: 8px;
outline: none; outline: none;
transition: all 0.2s linear; transition: all 0.2s linear;
&:hover { &:hover {
background: lighten($color-black, 5); background: lighten($black-300, 5);
} }
&:active { &:active {
background: darken($color-black, 5); background: darken($black-300, 5);
} }
} }
@ -281,9 +291,18 @@
} }
.vtex-omnishipping-1-x-deliveryOptionActive { .vtex-omnishipping-1-x-deliveryOptionActive {
text-shadow: 1.3px 1px lighten($color-black, 50); text-shadow: 1.3px 1px lighten($black-300, 50);
} }
} }
} }
} }
} }
// .transactions-container {
// height: 0;
// &::before,
// &::after {
// display: none;
// }
// }

View File

@ -1,22 +1,41 @@
.container { .container {
// background: salmon;
// &:before,
// &:after {
// display: none;
// };
@include mq(md, max) { @include mq(md, max) {
width: 100%; width: 100%;
} }
} }
.cart-template { .cart-template {
// background: red;
margin: 0;
font-family: $font-family; font-family: $font-family;
@include mq(md, max) { @include mq(md, max) {
padding: 0 0; padding: 0 0;
} }
.item-unit-label { .item-unit-label {
display: none; display: none;
} }
.cart { .cart {
border: 3px solid $color-gray3; margin-bottom: 48px;
box-sizing: border-box;
border-radius: 5px;
padding: 16px; padding: 16px;
border: 1px solid $color-gray3;
// border-radius: 5px;
// background: cyan;
// margin: 0;
// background: purple;
// $color-gray3;
// box-sizing: border-box;
@include mq(md, max) { @include mq(md, max) {
margin: 0px 0 25px 0; margin: 0px 0 25px 0;
@ -24,10 +43,13 @@
border-right: none; border-right: none;
border-radius: 0; border-radius: 0;
} }
} }
.cart-fixed.affix { .cart-fixed.affix {
position: relative !important; position: relative !important;
} }
.cart-fixed { .cart-fixed {
font-family: $font-family; font-family: $font-family;
width: 100%; width: 100%;
@ -48,7 +70,7 @@
} }
.cart { .cart {
border: 1px solid $color-gray4; // border: 1px solid $color-gray4;
ul li { ul li {
border-top: none; border-top: none;
@ -85,18 +107,18 @@
} }
#payment-data-submit { #payment-data-submit {
background: $color-black; background: $black-300;
border: none; border: none;
border-radius: 0; border-radius: 0;
color: $color-white; color: $color-white;
outline: none; outline: none;
transition: all 0.2s linear; transition: all 0.2s linear;
&:hover { &:hover {
background: lighten($color-black, 5); background: lighten($black-300, 5);
} }
&:active { &:active {
background: darken($color-black, 5); background: darken($black-300, 5);
} }
} }
} }
@ -105,18 +127,30 @@
background-color: $color-white; background-color: $color-white;
} }
.cart-items { .cart-items {
// border-collapse: separate;
// border-spacing: 16px;
.product-item { .product-item {
padding: 16px 0; // height: 60px;
// background: green;
}
thead tr {
// background: purple;
} }
th { th {
color: $color-black; padding: 0;
padding: 0 0 16px;
font-style: normal;
font-weight: bold;
font-size: 14px;
line-height: 16px; line-height: 16px;
font-family: $font-family-secundary;
font-size: 14px;
font-weight: 400;
font-style: normal;
color: $black-300;
text-align: left;
@include mq(md, max) { @include mq(md, max) {
&.quantity-price, &.quantity-price,
@ -126,6 +160,16 @@
} }
} }
// tbody tr {
// padding: 16px 0 0;
// }
td {
margin: 0;
padding: 0;
text-align: left;
}
.product-image { .product-image {
height: auto; height: auto;
padding: 0; padding: 0;
@ -138,7 +182,8 @@
img { img {
height: 60px; height: 60px;
max-width: 100%; max-width: 100%;
width: auto; width: 60px;
transform: scaleX(-1);
@include mq(sm, max) { @include mq(sm, max) {
height: 72px; height: 72px;
@ -148,18 +193,20 @@
} }
.product-name { .product-name {
padding-right: 0; padding-left: 16px;
@include mq(lg, max) { @include mq(lg, max) {
width: 250px; width: 250px;
} }
a { a {
color: $color-blue;
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 14px; line-height: 14px;
font-family: $font-family-secundary;
font-size: 12px;
font-weight: 400;
font-style: normal;
color: $black-500;
transition: ease-in 0.22s all; transition: ease-in 0.22s all;
&:hover { &:hover {
@ -179,9 +226,12 @@
} }
td.shipping-date { td.shipping-date {
color: $color-gray2;
font-size: 12px;
line-height: 14px; line-height: 14px;
font-family: $font-family-secundary;
font-size: 12px;
font-weight: 400;
font-style: normal;
color: $gray-300;
@include mq(md, max) { @include mq(md, max) {
display: none; display: none;
@ -190,6 +240,7 @@
.product-price { .product-price {
min-width: 100px; min-width: 100px;
@include mq(md, max) { @include mq(md, max) {
min-width: 78px; min-width: 78px;
} }
@ -200,10 +251,17 @@
} }
span.list-price { span.list-price {
color: $color-gray2;
font-size: 12px;
line-height: 14px; line-height: 14px;
font-family: $font-family-secundary;
font-size: 12px;
font-weight: 400;
font-style: normal;
text-decoration-line: line-through; text-decoration-line: line-through;
color: $gray-300;
text-decoration-line: line-through;
@include mq(sm, max) { @include mq(sm, max) {
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
@ -218,14 +276,14 @@
td.quantity { td.quantity {
align-items: center; align-items: center;
border: 1px solid $color-gray3; border: 1px solid $color-gray3;
border-radius: 0; border-radius: 8px;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
justify-content: center; justify-content: center;
margin: 6px auto 0; margin: 0;
max-height: 38px; max-height: 38px;
max-width: 118px; max-width: 118px;
padding: 0; padding: 9px 11px;
width: max-content !important; width: max-content !important;
@media (max-width: 490px) { @media (max-width: 490px) {
@ -233,16 +291,20 @@
} }
input { input {
font-family: $font-family-secundary;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 16px;
color: $black-500;
border: none;
background-color: $color-white; background-color: $color-white;
border: 1px solid $color-gray3;
border-radius: 0;
border-width: 0 1px;
display: block; display: block;
max-height: 38px; max-height: 38px;
margin: 0 !important; margin: 0 !important;
padding: 8px 0; padding: 8px 0;
width: 38px; width: 38px;
color: $color-gray2;
box-shadow: none; box-shadow: none;
@include mq(lg, max) { @include mq(lg, max) {
@ -252,29 +314,61 @@
.icon-plus-sign, .icon-plus-sign,
.icon-minus-sign { .icon-minus-sign {
&::before { &::before {
color: $color-black; line-height: 16px;
text-align: center;
color: $color-white;
display: block; display: block;
font-weight: 500; font-family: $font-family-secundary;
padding: 1px 12px; font-size: 10px;
font-weight: 900;
color: $color-white;
// padding: 1px 12px;
// transform: translate(-50%, -50%);
} }
} }
.icon-minus-sign { .icon-minus-sign {
&:before { &:before {
content: "-"; content: "-";
font-size: 16px; // font-size: 16px;
} }
} }
.icon-plus-sign { .icon-plus-sign {
&:before { &:before {
content: "+"; content: "+";
font-size: 14px; // font-size: 16px;
} }
} }
.item-quantity-change { .item-quantity-change {
// @include buttonStyle(16px) {
// };
// font-family: $font-family-secundary;
// font-style: normal;
// font-weight: 400;
// font-size: 14px;
// line-height: 16px;
color: $color-white;
background: $blue-300;
border-radius: 50%;
border: none;
width: 16px;
height: 16px;
// text-align: center;
// text-transform: uppercase;
// font-style: normal;
// display: flex;
// align-items: center;
// letter-spacing: 0.05em;
@media (max-width: 979px) and (min-width: 768px) { @media (max-width: 979px) and (min-width: 768px) {
position: inherit; position: inherit;
bottom: inherit; bottom: inherit;
@ -300,17 +394,32 @@
font-weight: normal; font-weight: normal;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 16px;
color: $color-black; color: $black-300;
} }
} }
.quantity-price { .quantity-price {
span {
font-family: $font-family;
font-style: normal;
font-weight: 700;
font-size: 14px;
line-height: 19px;
color: $black-300;
}
@include mq(md, max) { @include mq(md, max) {
display: none; display: none;
} }
} }
.item-remove { .item-remove {
width: 10px;
height: 10px;
@media (max-width: 490px) { @media (max-width: 490px) {
top: 0; top: 0;
} }
@ -344,19 +453,25 @@
width: max-content; width: max-content;
.srp-container { .srp-container {
padding: 0 0 0 10px; padding: 0;
@include mq(md, max) { @include mq(md, max) {
padding: 0 16px; padding: 0 16px;
} }
.srp-main-title { .srp-main-title {
margin: 32px 0 12px; margin: 0 0 11px;
font-style: normal; line-height: 33px;
font-weight: normal; font-family: $font-family;
font-size: 24px; font-size: 24px;
line-height: 28px; font-weight: 400;
color: $color-gray2; font-style: normal;
color: $black-500;
display: flex;
align-items: center;
text-align: center;
@include mq(md, max) { @include mq(md, max) {
margin-top: 0; margin-top: 0;
@ -364,24 +479,38 @@
} }
.srp-description { .srp-description {
color: $color-gray2; margin: 0 0 11px;
font-size: 12px; width: 100%;
max-width: 276px;
line-height: 18px; line-height: 18px;
margin: 0 0 12px; font-family: $font-family;
font-size: 14px;
font-weight: 400;
font-style: normal;
color: $color-gray2;
} }
button.shp-open-options { button.shp-open-options {
background-color: $color-gray5; margin: 0;
padding: 12px 41px;
display: flex;
align-items: center;
border: none; border: none;
border-radius: 5px; border-radius: 8px;
color: $color-gray2;
font-size: 16px;
letter-spacing: 0.05em;
line-height: 19px; line-height: 19px;
font-weight: 500; font-family: $font-family;
outline: none; font-size: 14px;
padding: 12px 40px; font-weight: 400;
font-style: normal;
color: $black-500;
background: $gray-100;
text-align: center;
letter-spacing: 0.05em;
text-transform: uppercase;
transition: all 0.2s linear; transition: all 0.2s linear;
outline: none;
&:hover { &:hover {
background-color: lighten($color-gray5, 5); background-color: lighten($color-gray5, 5);
@ -405,33 +534,45 @@
} }
.srp-pickup-my-location__button { .srp-pickup-my-location__button {
background-color: $color-black;
border: none;
border-radius: 5px;
color: $color-white;
outline: none;
width: 100%; width: 100%;
margin-top: 10px;
padding: 12px 35px;
border: none;
border-radius: 8px;
background: #00c8ff;
transition: all 0.2s linear;
outline: none;
span {
line-height: 18px;
font-family: "Open Sans",sans-serif;
font-size: 13px;
font-weight: 700;
font-style: normal; font-style: normal;
font-weight: 500; color: $color-white;
font-size: 14px; text-align: center;
line-height: 16px; text-transform: uppercase;
letter-spacing: 0.05em; letter-spacing: 0.05em;
}
&:hover { &:hover {
background-color: lighten($color-black, 5); background-color: lighten($black-300, 5);
} }
&:active { &:active {
background-color: darken($color-black, 5); background-color: darken($black-300, 5);
} }
} }
} }
.srp-toggle { .srp-toggle {
margin: 0 0 34px; margin: 0 0 10px;
padding: 0;
&__wrapper { &__wrapper {
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
background-color: $color-white; background-color: $color-white;
border-radius: 100px; border-radius: 100px;
width: 100%; width: 100%;
@ -448,13 +589,21 @@
border-radius: 100px; border-radius: 100px;
} }
.blue { // .blue {
color: $color-blue; // // color: $color-blue;
} // }
label { label {
width: 50%; width: 50%;
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
text-transform: uppercase;
color: $black-500;
&:active { &:active {
background-color: #f0f0f0; background-color: #f0f0f0;
} }
@ -462,61 +611,87 @@
} }
.srp-postal-code { .srp-postal-code {
&__form {
width: 100%;
.vtex-shipping-preview-0-x-postalCodeForgotten {
gap: 8px;
}
}
.ship-country {
display: none;
}
.ship-postalCode { .ship-postalCode {
width: 172px;
label { label {
font-family: $font-family; margin-bottom: 2px;
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 14px; line-height: 14px;
color: $color-black; font-family: $font-family;
margin-bottom: 12px; font-size: 12px;
font-weight: normal;
font-style: normal;
color: $black-300;
} }
input { input {
width: 172px;
height: 36px;
padding: 12px 8px;
border: 1px solid $color-gray3; border: 1px solid $color-gray3;
border-radius: 5px; border-radius: 5px;
box-shadow: none; box-shadow: none;
color: $color-gray3;
font-size: 12px; font-size: 12px;
height: 36px; color: $color-gray3;
padding: 12px 8px;
width: 172px;
} }
& ~ button { & ~ button {
background-color: $color-black; width: 100px;
border: none;
border-radius: 5px;
color: $color-white;
font-size: 12px;
height: 36px; height: 36px;
letter-spacing: 1px; padding: 8px 11px;
outline: none; border: none;
position: absolute; border-radius: 8px;
right: -150px; line-height: 19px;
top: 36px; font-family: $font-family;
transition: all 0.2s linear; font-size: 14px;
width: 96px; font-weight: 700;
font-style: normal;
color: $color-white;
background: $blue-300;
display: flex;
align-items: center;
text-align: center;
letter-spacing: 0.05em;
text-transform: uppercase; text-transform: uppercase;
transition: all 0.2s linear;
outline: none;
// position: absolute;
// right: -150px;
// top: 36px;
&:hover { &:hover {
background-color: lighten($color-black, 5); background-color: lighten($black-300, 5);
} }
&:active { &:active {
background-color: darken($color-black, 5); background-color: darken($black-300, 5);
} }
} }
small a { small a {
font-family: $font-family; margin-top: 4px;
font-style: normal;
font-weight: normal;
font-size: 10px;
line-height: 12px; line-height: 12px;
color: $color-blue; font-family: $font-family-secundary;
margin-top: 7px; font-size: 10px;
font-weight: 400;
font-style: normal;
color: $black-500;
text-decoration-line: underline;
} }
span.help.error { span.help.error {
@ -597,6 +772,16 @@
.coupon-data { .coupon-data {
#cart-link-coupon-add { #cart-link-coupon-add {
text-decoration: none; text-decoration: none;
span {
line-height: 14px;
font-family: $font-family-secundary;
font-size: 12px;
font-weight: 400;
font-style: normal;
color: $black-500;
}
&:hover { &:hover {
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
@ -630,19 +815,24 @@
} }
.coupon-label label { .coupon-label label {
margin-bottom: 12px; margin-bottom: 4px;
font-family: $font-family;
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 14px; line-height: 14px;
font-family: $font-family-secundary;
font-size: 12px;
font-weight: 400;
font-style: normal;
color: $color-gray2; color: $color-gray2;
cursor: none; text-align: left;
} }
.coupon-fields { .coupon-fields {
margin-bottom: 32px; margin-bottom: 32px;
span {
display: flex;
gap: 15px;
};
@include mq(sm, max) { @include mq(sm, max) {
span { span {
display: flex; display: flex;
@ -657,14 +847,21 @@
} }
input { input {
border: 2px solid $color-gray3; width: 100%;
max-width: 204px;
height: 36px;
padding: 11px 16px;
border: 1px solid $color-gray5;
border-radius: 5px; border-radius: 5px;
box-shadow: none; line-height: 14px;
color: $color-gray4; font-family: $font-family-secundary;
font-size: 12px; font-size: 12px;
height: 34px; font-weight: 400;
padding: 0 12px; font-style: normal;
max-width: 160px; color: $color-gray-rename;
background: #FFFFFF;
box-shadow: none;
@include mq(sm, max) { @include mq(sm, max) {
max-width: 100%; max-width: 100%;
@ -672,30 +869,42 @@
} }
} }
.loading-coupon {
display: none;
}
button { button {
background: $color-black; width: 133px;
border: none;
border-radius: 5px;
color: $color-white;
font-size: 12px;
height: 36px; height: 36px;
letter-spacing: 1px; border: none;
margin-left: 6px; border-radius: 8px;
line-height: 19px;
font-family: $font-family;
font-size: 14px;
font-weight: 400;
font-style: normal;
color: $black-500;
background: $blue-300;
display: flex;
align-items: center;
justify-content: center;
letter-spacing: 0.05em;
text-transform: uppercase;
outline: none; outline: none;
transition: all 0.2s linear; transition: all 0.2s linear;
width: 94px; // margin-left: 6px;
text-transform: uppercase;
@include mq(md, max) { @include mq(md, max) {
width: 138px; width: 138px;
} }
&:hover { &:hover {
background-color: lighten($color-black, 5); background-color: lighten($black-300, 5);
} }
&:active { &:active {
background-color: darken($color-black, 5); background-color: darken($black-300, 5);
} }
} }
} }
@ -703,6 +912,15 @@
.accordion-group { .accordion-group {
tr { tr {
padding: 10px 0;
line-height: 16px;
font-family: $font-family-secundary;
font-size: 14px;
font-weight: 400;
font-style: normal;
color: $black-300;
text-align: right;
border-color: #e5e5e5; border-color: #e5e5e5;
td { td {
@ -716,8 +934,8 @@
font-weight: normal; font-weight: normal;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 16px;
color: $color-black; color: $black-300;
padding: 12px 0; padding: 10px 0;
} }
&.info { &.info {
@ -733,11 +951,12 @@
tfoot { tfoot {
td.info, td.info,
td.monetary { td.monetary {
font-style: normal; line-height: 25px;
font-weight: normal; font-family: $font-family;
font-size: 18px; font-size: 18px;
line-height: 21px; font-weight: 700;
color: $color-black; font-style: normal;
color: $black-300;
} }
} }
} }
@ -749,6 +968,8 @@
flex-direction: column; flex-direction: column;
width: 343px; width: 343px;
margin-bottom: 43px;
@include mq(md, max) { @include mq(md, max) {
padding: 0 16px; padding: 0 16px;
width: calc(100% - 32px); width: calc(100% - 32px);
@ -771,40 +992,49 @@
} }
a { a {
font-family: $font-family; margin: 0;
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 14px; line-height: 14px;
color: $color-blue; font-family: $font-family-secundary;
font-size: 12px;
font-weight: 400;
font-style: normal;
color: $black-500;
// text-align: right;
} }
} }
.btn-place-order-wrapper { .btn-place-order-wrapper {
a { a {
background: $color-green;
border: none; border: none;
border-radius: 5px; border-radius: 8px;
display: block; display: block;
font-size: 0; font-size: 0;
background: $blue-300;
transition: ease-in 0.22s all; transition: ease-in 0.22s all;
padding: 12px 19px;
text-align: center;
padding: 12px 0;
&:hover { &:hover {
background-color: darken($color-green, 5); background-color: darken($blue-300, 5);
} }
&:after { &:after {
content: "finalizar compra"; content: "finalizar compra";
font-family: $font-family;
font-weight: 500;
font-size: 13px;
letter-spacing: 0.05em;
color: $color-white;
text-transform: uppercase;
vertical-align: middle;
line-height: 19px; line-height: 19px;
font-family: $font-family;
font-size: 14px;
font-weight: 700;
font-style: normal;
letter-spacing: 0.05em;
text-transform: uppercase;
text-shadow: none; text-shadow: none;
vertical-align: middle;
color: $black-500;
text-align: center;
} }
} }
} }

View File

@ -1,8 +1,9 @@
.empty-cart { .empty-cart {
font-family: $font-family;
&-content { &-content {
color: $color-black; margin: 170px 0 262px;
text-align: center; text-align: center;
text-transform: uppercase;
@include mq(md, max) { @include mq(md, max) {
padding: 0 16px; padding: 0 16px;
@ -10,29 +11,44 @@
} }
&-title { &-title {
font-size: 20px; margin: 0 0 32px;
line-height: 33px;
font-family: $font-family;
font-size: 24px;
color: $black-500;
}
&-message {
display: none;
} }
&-links { &-links {
width: 325px;
height: 46px;
margin: 0 auto;
border: 1px solid $black-500;
.link-choose-products { .link-choose-products {
background: $color-black; padding: 0;
border: none;
border-radius: 5px;
transition: ease-in 0.22s all;
outline: none;
font-family: $font-family;
font-style: normal;
font-weight: 500;
font-size: 14px;
line-height: 16px; line-height: 16px;
text-align: center; font-family: $font-family-secundary;
letter-spacing: 0.05em; font-size: 14px;
color: $color-white; border: none;
text-transform: uppercase; border-radius: 0;
color: $black-500;
background: $color-white;
transition: ease-in 0.22s all;
box-shadow: none;
// outline: none;
// letter-spacing: 0.05em;
&:hover { &:hover {
background: lighten($color-black, 5); background: lighten($blue-300, 5);
} }
} }
} }
} }

View File

@ -3,14 +3,18 @@
@import "./checkout-pagamento"; @import "./checkout-pagamento";
@import "./checkout-autenticacao"; @import "./checkout-autenticacao";
* {
box-sizing: border-box;
}
html { html {
height: 100%; height: 100%;
min-height: 100%; min-height: 100%;
} }
footer .footerCheckout__wrapper { footer .footerCheckout__wrapper {
width: 94.9734%; width: 100%;
margin: auto auto 0 auto; // margin: auto auto 0 auto;
} }
footer .footerCheckout__prateleira, footer .footerCheckout__prateleira,
header { header {
@ -54,28 +58,40 @@ body {
} }
.btn-success { .btn-success {
background: $color-black; background: $black-300;
text-shadow: none; text-shadow: none;
&:hover { &:hover {
background: lighten($color-black, 15%); background: lighten($black-300, 15%);
} }
} }
.emailInfo h3 { .emailInfo h3 {
color: $color-black !important; color: $black-300 !important;
} }
#cart-title, #cart-title,
#orderform-title { #orderform-title {
color: $color-gray2; margin: 16px 0;
line-height: 33px;
font-family: $font-family; font-family: $font-family;
font-weight: 500; font-size: 24px;
font-size: 36px; font-weight: 700;
line-height: 42px; font-style: normal;
margin: 40px 0 30px;
letter-spacing: 0.1em;
text-transform: uppercase; text-transform: uppercase;
color: $black-300;
letter-spacing: 0.05em;
// color: $color-gray2;
// font-family: $font-family;
// font-weight: 500;
// font-size: 36px;
// line-height: 42px;
// margin: 40px 0 30px;
// letter-spacing: 0.1em;
// text-transform: uppercase;
@include mq(md, max) { @include mq(md, max) {
margin-left: 30px; margin-left: 30px;

View File

@ -14,11 +14,18 @@
touch-action: pan-y; touch-action: pan-y;
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;
} }
.slick-list { .slick-list {
// height: 100%;
margin: 0 -8px 0 -8px;
// height: 100%;
margin: 0 -8px 0 -8px;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
display: block; display: block;
margin: 0;
padding: 0; padding: 0;
&:focus { &:focus {
@ -40,6 +47,10 @@
} }
.slick-track { .slick-track {
// height: 100%;
// height: 100%;
position: relative; position: relative;
left: 0; left: 0;
top: 0; top: 0;
@ -62,6 +73,10 @@
} }
} }
.slick-slide { .slick-slide {
margin: 0 8px;
//código prévio
//código prévio
float: left; float: left;
height: 100%; height: 100%;
min-height: 1px; min-height: 1px;
@ -69,9 +84,13 @@
[dir="rtl"] & { [dir="rtl"] & {
float: right; float: right;
} }
img { img {
display: block; display: block;
} }
&.slick-loading img { &.slick-loading img {
display: none; display: none;
} }
@ -96,41 +115,60 @@
border: 1px solid transparent; border: 1px solid transparent;
} }
} }
.slick-arrow { .slick-arrow {
font-size: 0;
position: absolute; position: absolute;
top: 50%;
border: 0;
font-size: 0;
z-index: 4;
transform: translateY(-50%);
top: 50%;
border: 0;
font-size: 0;
z-index: 4;
transform: translateY(-50%);
} }
.slick-prev { .slick-prev {
background: url("https://agenciamagma.vteximg.com.br/arquivos/arrow-left-mini-M3Academy.svg") background: url("https://agenciamagma.vteximg.com.br/arquivos/arrow-left-mini-M3Academy.svg")
no-repeat center center; no-repeat center center;
z-index: 4; no-repeat center center;
left: 10px; left: 10px;
} }
.slick-next { .slick-next {
z-index: 4; background: url("https://agenciamagma.vteximg.com.br/arquivos/arrow-right-mini-M3Academy.svg")
no-repeat center center;
background: url("https://agenciamagma.vteximg.com.br/arquivos/arrow-right-mini-M3Academy.svg")
no-repeat center center;
right: 10px; right: 10px;
} }
.slick-arrow.slick-hidden {
display: none; // .slick-arrow.slick-hidden {
} // display: none;
.slick-dots { // }
li {
margin: 0.5em; // .slick-dots {
button { // li {
overflow: hidden; // margin: 0.5em;
text-indent: 999999999px; // button {
height: 1em; // overflow: hidden;
width: 1em; // text-indent: 999999999px;
border-radius: 1em; // height: 1em;
background-color: #fff; // width: 1em;
:focus { // border-radius: 1em;
outline: none; // background-color: #fff;
} // :focus {
} // outline: none;
&.slick-active button { // }
&:focus { // }
outline: none; // &.slick-active button {
} // &:focus {
} // outline: none;
} // }
} // }
// }
// }

View File

@ -1,23 +1,70 @@
/* _footer.scss */ /* _footer.scss */
.footerCheckout { .footerCheckout {
border-top: none; width: 100%;
color: $color-gray2;
&__wrapper {
align-items: center;
display: flex; display: flex;
justify-content: space-between; flex-direction: column;
gap: 54px;
// background: cyan;
// border-top: none;
// color: $color-gray2;
&__prateleira {
// margin-top: 101px;
height: 448px;
// background-color: green;
width: 100%;
} }
&__wrapper {
margin: 0;
width: 100%;
padding: 16px 32px;
border-top: 1px solid $black-500;
// background-color: magenta;
// // // align-items: center;
// // // display: flex;
// // // justify-content: space-between;
}
.container {
margin: 0;
// padding: 0;
width: 100%;
// height: 100%;
// display: flex;
display: grid;
grid-template-columns: repeat(3, 1fr);
align-items: center;
// text-align: center;
// // // grid-auto-flow: column;
// // // grid-auto-columns: max-content;
// // justify-content: space-between;
// // margin: 0;
// background-color: yellowgreen;
&::before,
&::after {
display: none;
}
}
&__address { &__address {
color: $color-gray2; color: $black-300;
font-family: $font-family; font-family: $font-family;
font-style: normal; // font-style: normal;
font-weight: normal; // font-weight: normal;
font-size: 10px; font-size: 10px;
line-height: 12px; line-height: 14px;
text-transform: capitalize; text-transform: capitalize;
max-width: 40%; // max-width: 40%;
justify-self: flex-start;
@include mq(md, max) { @include mq(md, max) {
margin-bottom: 24px; margin-bottom: 24px;
@ -26,49 +73,76 @@
} }
&__stamps { &__stamps {
align-items: center;
display: flex; display: flex;
align-items: center;
justify-self: center; justify-self: center;
list-style: none; list-style: none;
margin: 0;
@include mq(md, max) { @include mq(md, max) {
align-self: center; align-self: center;
margin-bottom: 12px; margin-bottom: 12px;
} }
&__divider { &__divider {
background-color: $color-gray4; background-color: $color-gray-rename;
display: inline-block; display: block;
height: 24px; height: 24px;
margin: 0 8px; margin: 0 10px 0 13px;
width: 1px; width: 1px;
} }
} }
&__payments {
display: grid;
grid-auto-flow: column;
grid-auto-columns: max-content;
gap: 13px;
list-style: none;
margin: 0;
img {
display: block;
height: 20px;
width: auto;
}
}
&__vtexpci {
display: block;
width: 53px;
height: 33px;
}
&__developedBy { &__developedBy {
align-items: center; align-items: center;
display: flex; display: flex;
list-style-type: none; gap: 10px;
list-style: none;
margin: 0; margin: 0;
justify-self: flex-end;
li:last-child {
margin-left: 16px;
}
a { a {
align-items: center; align-items: center;
color: $color-gray2; color: $black-300;
display: flex; display: flex;
font-family: $font-family; font-family: $font-family;
font-style: normal; // font-style: normal;
font-weight: normal; // font-weight: normal;
font-size: 10px; font-size: 9px;
line-height: 12px; line-height: 12px;
text-decoration: none; text-decoration: none;
span { span {
margin-right: 8px; margin-right: 10px;
} }
} }
&__icons {
display: block;
height: 16px;
width: auto;
}
} }
} }

View File

@ -1,36 +1,119 @@
/* _header.scss */ /* _header.scss */
.headerCheckout { .headerCheckout {
// position: relative;
margin: 0;
padding: 30px 131px;
width: 100%;
border-bottom: 1px solid $black-500;
.container { .container {
width: auto !important; width: auto !important;
} }
&__wrapper { &__wrapper {
display: grid;
grid-template-columns: repeat(3, 1fr);
// display: flex;
// justify-content: space-between;
align-items: center; align-items: center;
display: flex;
justify-content: space-between;
} }
&__logo { &__logo {
img { img {
height: 52px; height: 37.14px;
width: auto; width: auto;
} }
} }
&__safeBuy { .progress-bar {
span { // position: absolute;
align-items: center; // top: 50%;
display: flex; // left: 50%;
text-transform: uppercase; // transform: translate(-50%, -50%);
font-family: $font-family; width: 440px;
font-style: normal;
font-weight: normal; &__container {
font-size: 12px; // position:relative;
line-height: 14px;
color: $color-gray; margin: 0;
width: 100%;
display: grid;
grid-template-columns: repeat(3, 1fr);
// display: flex;
// align-items: center;
// justify-content: space-between;
list-style: none;
} }
i { &__stage {
margin-right: 8px; position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
&--text {
margin: 0;
margin-bottom: 9px;
line-height: 14px;
font-family: $font-family-secundary;
font-size: 12px;
color: $black-500;
}
&--circle {
width: 12px;
height: 12px;
border-radius: 50%;
border: 1px solid $black-500;
&.active {
background: $black-500;
}
}
&::before,
&::after {
content: '';
position: absolute;
bottom: 6.5px;
width: calc(50% - 7px);
height: 1px;
background: $black-500;
}
&::before {
left: 0;
}
&::after{
left: calc(50% + 7px);
}
&:first-child::before,
&:last-child::after {
display: none;
}
}
}
&__safeBuy {
justify-self: flex-end;
display: flex;
align-items: center;
gap: 8px;
img {
width: 12px;
height: 15px;
}
span {
line-height: 16px;
font-family: $font-family;
font-size: 12px;
text-transform: uppercase;
color: $black-300;
} }
} }
} }

View File

@ -1 +1,132 @@
/* _prateleira.scss */ /* _prateleira.scss */
.footerCheckout__prateleira {
// margin-top: 101px;
height: 448px;
// background-color: green;
.prateleira__title {
margin: 0 0 20px;
line-height: 38px;
font-family: $font-family-secundary;
font-size: 24px;
font-weight: 400;
// font-style: normal;
text-align: center;
color: $black-500;
}
.prateleira__carousel {
// (_slick.scss .slick-slider)
margin: 0;
height: 390px;
}
.prateleira__item {
// height: 100%;
// background: yellow;
button {
border: none;
border-radius: 8px;
line-height: 18px;
font-size: 13px;
font-family: $font-family;
font-weight: 700;
color: $color-white;
background: $blue-300;
text-align: center;
text-transform: uppercase;
font-style: normal;
display: flex;
align-items: center;
letter-spacing: 0.05em;
}
&--image {
height: 242px;
}
&--description {
display: flex;
flex-direction: column;
gap: 20px;
}
&--name {
margin: 20px 0 0;
font-family: $font-family;
// font-style: normal;
// font-weight: 400;
line-height: 18px;
font-size: 13px;
text-align: center;
color: $black-500;
}
&--options {
margin: 0 auto;
display: flex;
gap: 5px;
list-style: none;
button {
padding: 5px;
}
display: flex;
flex-direction: column;
gap: 20px;
}
&--name {
margin: 20px 0 0;
font-family: $font-family;
// font-style: normal;
// font-weight: 400;
line-height: 18px;
font-size: 13px;
text-align: center;
color: $black-500;
}
&--options {
margin: 0 auto;
display: flex;
gap: 5px;
list-style: none;
button {
padding: 5px;
}
}
&--link {
button {
width: 100%;
padding: 12px 0;
justify-content: center;
}
}
}
&--link {
button {
width: 100%;
padding: 12px 0;
justify-content: center;
}
}
}
}
// .slick-track {
// &:nth-child(3) {
// div li div {
// background: red;
// }
// // &--image-container {
// // //#B1D7F1;
// // }
// }
// }

View File

@ -80,6 +80,24 @@
&::-webkit-input-placeholder { @content; } &::-webkit-input-placeholder { @content; }
} }
@mixin buttonStyle($width: 100%, $color: #ffffff, $bg-color: #00C8FF) {
border: none;
border-radius: 8px;
line-height: 18px;
font-size: 13px;
font-family: $font-family;
font-weight: 700;
color: $color-white;
background: $blue-300;
text-align: center;
text-transform: uppercase;
font-style: normal;
display: flex;
align-items: center;
letter-spacing: 0.05em;
}
@mixin hardware($backface: true, $perspective: 1000) { @mixin hardware($backface: true, $perspective: 1000) {
@if $backface { @if $backface {
backface-visibility: hidden; backface-visibility: hidden;

View File

@ -5,15 +5,23 @@ $font-family: "Open Sans", sans-serif;
$font-family-secundary:"Tenor Sans", sans-serif; $font-family-secundary:"Tenor Sans", sans-serif;
/* Colors */ /* Colors */
$color-black: #292929; $black-300: #292929;
$black-500: #000000;
$color-white: #ffffff;
$color-gray3: #f0f0f0;
$color-gray-rename: #c4c4c4;
$color-gray2: #7d7d7d;
$gray-100: #EDEDED;
$gray-300: #989898;
$blue-300: #00C8FF;
$color-gray5: #e5e5e5;
$color-white: #fff;
$color-gray: #6c6c6c; $color-gray: #6c6c6c;
$color-gray2: #7d7d7d;
$color-gray3: #f0f0f0;
$color-gray4: #8d8d8d; $color-gray4: #8d8d8d;
$color-gray5: #e5e5e5;
$color-blue: #4267b2; $color-blue: #4267b2;

View File

@ -2,7 +2,60 @@
MODIFICA-LO NÃO CAUSARÁ EFEITO ALGUM, todo html que for modificado no footer, deverá ser feito através de javaScript. --> MODIFICA-LO NÃO CAUSARÁ EFEITO ALGUM, todo html que for modificado no footer, deverá ser feito através de javaScript. -->
<footer class="footerCheckout"> <footer class="footerCheckout">
<div class="footerCheckout__prateleira"></div> <div class="footerCheckout__prateleira">
<li class="prateleira__item">
<div class="prateleira__item--image-container">
<img class="prateleira__item--image" src="${item.image}" />
</div>
<div class="prateleira__item--description">
<p class="prateleira__item--name">${item.title}</p>
<ul class="prateleira__item--options">
<li>
<button type="button"></button>
</li>
</ul>
<button type="button" class="prateleira__item--button">Ver produto</button>
</div>
</li>
<!-- <ul class="prateleira__carousel">
<li class="prateleira__card">
<div class="prateleira__card--">
<img class="prateleira__card--image" src="${imageUrl}" />
</div>
<div class="prateleira__card--description">
<p class="prateleira__card--title">
${product.productName}
</p>
<div class="prateleira__card--options">
</div>
<button class="prateleira__card--button">VER PRODUTO</button>
</div>
</li>
<li class="prateleira__card">
<div class="prateleira__card--">
<img class="prateleira__card--image" src="${imageUrl}" />
</div>
<div class="prateleira__card--description">
<p class="prateleira__card--title">
${product.productName}
</p>
<div class="prateleira__card--options">
</div>
<button class="prateleira__card--button">VER PRODUTO</button>
</div>
</li>
</ul> -->
</div>
<div class="footerCheckout__wrapper"> <div class="footerCheckout__wrapper">
<div class="footerCheckout__address"> <div class="footerCheckout__address">
<span>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</span> <span>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</span>

9297
yarn.lock Normal file

File diff suppressed because it is too large Load Diff