feat: ultimos ajustes no css antes da entrega

This commit is contained in:
Adilson Fernando Neves Ornellas 2022-12-23 12:01:30 -03:00
parent 2b8297e02e
commit 4350ff066e
14 changed files with 1897 additions and 11652 deletions

10970
checkout/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,4 @@
import { data } from "jquery";
import { waitElement } from "m3-utils";
export default class Footer {
@ -7,191 +8,239 @@ export default class Footer {
async init() {
await this.selectors();
this.imgPagamento();
this.imgVtex();
this.imgVtexEm3();
this.onUpdate();
// this.apiFetch();
// this.calculoFrete();
this.footer();
this.events();
}
events() {
window.addEventListener("hashchange", () => {
this.onUpdate();
if (window.location.hash == "#/cart" && this.divVazioCheckout.style.display == "none") {
this.divPrateleira.style.display = "flex";
this.titleSlick.style.display = "block";
}
if (window.location.hash != "#/cart") {
this.divPrateleira.style.display = "none";
this.titleSlick.style.display = "none";
}
});
addEventListener("resize", () => {
this.addCarrossel();
});
}
async selectors() {
//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
this.checkoutVazio = await waitElement(".empty-cart-content");
this.divVazioCheckout = await waitElement(".empty-cart-content");
// this.checkoutAtivo = await waitElement(".checkout-container");
this.divImgPagamentos = await waitElement(".footerCheckout__payments");
this.divImgVtex = await waitElement(".footerCheckout__vtexpci");
this.divImgVtexEm3 = await waitElement(".footerCheckout__developedBy");
this.divPrateleira = await waitElement(".footerCheckout__prateleira");
this.divCalculoFrete = await waitElement(".srp-data");
this.divFooter = await waitElement(".footerCheckout__wrapper");
this.titulo = await waitElement(".transactions-container");
this.cartTitulo = await waitElement("#cart-title");
this.titleSlick = await waitElement(".transactions-container");
}
onUpdate() {
//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
// sempre que o carrinho estiver vazio o elemento chcekoutVazio fica display: none e isso pode ser usado como atributo para a MutationObserver
let target = this.checkoutVazio;
let target = this.divVazioCheckout;
let list = this.divPrateleira;
let cartTitle = this.cartTitulo;
let slickTitle = this.titleSlick;
if (target.style.display == "none" && window.location.hash == "#/cart") {
list.style.display = "flex";
list.style.display = "block";
if (!this.divPrateleira.classList.contains("fetch")) {
this.fetchApi();
}
} else {
this.cartTitulo.style.display = "none";
list.style.display = "none";
}
let config = { childList: true, attributes: true };
let observer = new MutationObserver((mutations) => {
if (!this.divPrateleira.classList.contains("fetch")) {
this.fetchApi();
}
mutations.forEach(function (mutation) {
console.log(mutation.type);
if (target.style.display != "none") {
list.style.display = "none";
cartTitle.style.display = "none";
if (list.style.display == "none") {
slickTitle.style.display = "none";
}
} else {
cartTitle.style.display = "block";
list.style.display = "flex";
slickTitle.style.display = "block";
}
});
});
observer.observe(target, config);
observer.observe(target, config, cartTitle, slickTitle);
}
// calculoFrete() {
// this.divCalculoFrete.innerHTML = `
// <p class = "textCalcular">Veja as opções de entrega para seus itens,
// com todos os prazos e valores.</p>
// <button onclick="voltarFrete()">Calcular</button>
// `;
// }
// voltarFrete() {
// this.divCalculoFrete.innerHTML = `
// <div class="srp-data mt4"><div class="srp-toggle mb6 pb2 ml1 mr3"><div class="srp-toggle__wrapper flex br-pill shadow-4 relative"><div class="vtex-shipping-preview-0-x-frame srp-toggle__current w-50 ba b--blue shadow-4 br-pill absolute vtex-shipping-preview-0-x-frameDelivery"></div><label class="srp-toggle__delivery flex-none bg-transparent pointer w-50 tc ttu pv3 gray blue"><input class="dn" type="radio" checked="">Receber</label><label class="srp-toggle__pickup flex-none bg-transparent pointer w-50 tc ttu pv3 gray"><input class="dn" type="radio">Retirar</label></div></div><div class="srp-result lh-copy"><div class="srp-delivery-header mb3"><span class="srp-items f5 black-70"><strong>Receber</strong> 1 item em </span><span id="deliver-at-text" class="mt0 mt0"><a class="srp-address-title link pointer blue f5">***00</a></span></div><div class="srp-delivery-info mb6"><label data-testid="cheapest" class="srp-shipping-current-single mt3 db pv2 ph4 br2 bw1 ba b--light-gray pointer tl f6"><div class="srp-shipping-current-single__wrapper flex items-center mv3 relative pointer"><div class="srp-shipping-current-single__bullet flex-none mr3"><svg class="srp-icon-radio-selected db" height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M8 4C5.792 4 4 5.792 4 8s1.792 4 4 4 4-1.792 4-4-1.792-4-4-4zm0-4C3.584 0 0 3.584 0 8s3.584 8 8 8 8-3.584 8-8-3.584-8-8-8zm0 14.4A6.398 6.398 0 0 1 1.6 8c0-3.536 2.864-6.4 6.4-6.4 3.536 0 6.4 2.864 6.4 6.4 0 3.536-2.864 6.4-6.4 6.4z" fill="#3386E8"></path></svg></div><div class="srp-shipping-current-single__description flex items-center flex-auto tl"><div class="srp-shipping-current-single__text flex-auto br b--light-silver truncate"><div class="srp-shipping-current-single__sla gray">Em até 3 dias úteis</div></div><div class="srp-shipping-current-single__price flex-none gray pl4">R$ 10,50</div></div></div></label></div></div></div>
// `;
// }
// apiFetch() {
// let pratileira = this.divPrateleira;
// pratileira.innerHTML = `
// <h2 class="text-foot"> Você Também pode gosta:</h2>
// <ul class="ulSlick"></ul>`;
// fetch(
// "https://m3academy.myvtex.com/api/catalog_system/pub/products/search/?fq=productClusterIds:319%22"
// )
// .then((Response) => Response.json())
// .then(function (data) {
// return data.map(function (produto) {
// let li = document.createElement("li");
// li.setAttribute("id", produto.productId);
// li.innerHTML = `
// <img class="color-img" src = " ${produto.items[0].images[0].imageUrl}"/>
// <><p class="numeProduct">${
// produto.productName
// }</p><div class="container-tamanho-cores">
// ${produto.items
// .map((name) => {
// return `<a name="tamanho" class="tamanho"> ${name.name}
// </a>`;
// })
// .join(" ")}
// </div><button class="bottons"> ver produto</button></>`;
// pratileira.children[1].appendChild(li);
// console.log(pratileira);
// });
// })
// .then(() => {
// this.addCarrossel();
// });
// }
async addCarrossel() {
const elemento = await waitElement(".ulSlick");
$(elemento).slick({
slidesToShow: 4,
slidesToScroll: 1,
});
}
footer() {
const elemet = await waitElement(".slick-list");
if ($(elemet).hasClass("slick-initialized")) {
$(elemet).slick("unslick");
}
if (window.innerWidth > 1024) {
this.divFooter.innerHTML = `
<hr></hr>
<div class="conteiner_footer">
<div class="footerCheckout__address">
<span>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</span>
</div>
<ul class="footerCheckout__stamps">
<li>
<span class="footerCheckout__payments">
<img class="imgFooter" src="https://agenciamagma.vteximg.com.br/arquivos/masterCardM3Academy.png" alt="mastercard" style="width: 35px; margin-right: 13px; margin-left: 137px;">
<img class="imgFooter" src="https://agenciamagma.vteximg.com.br/arquivos/visaM3Academy.png" alt="visa" style="width: 35px; margin-right: 13px;">
<img class="imgFooter" src="https://agenciamagma.vteximg.com.br/arquivos/amexM3Academy.png" alt="american" style="width: 35px; margin-right: 13px;">
<img class="imgFooter" src="https://agenciamagma.vteximg.com.br/arquivos/eloM3Academy.png" alt="elo" style="width: 35px; margin-right: 13px;">
<img class="imgFooter" src="https://agenciamagma.vteximg.com.br/arquivos/hiperCardM3Academy.png" alt="hipercard" style="width: 35px; margin-right: 13px;">
<img class="imgFooter" src="https://agenciamagma.vteximg.com.br/arquivos/payPalM3Academy.png" alt="paypal" style="width: 35px; margin-right: 13px;">
<img class="imgFooter" src="https://agenciamagma.vteximg.com.br/arquivos/boletoM3Academy.png" alt="boleto" style="width: 35px; margin-right: 13px;">
</span>
</li>
<li>
<span class="footerCheckout__stamps__divider"></span>
</li>
<li>
<span class="footerCheckout__payments">
<img class="imgFooter" src="https://agenciamagma.vteximg.com.br/arquivos/vtexPCIM3Academy.png" alt="logoCertificado" style="width: 53px; margin-right: 90px;">
</span>
</li>
</ul>
<ul class="footerCheckout__developedBy">
<li>
<a href="https://vtex.com/br-pt/">
<span>Powered By</span>
<img class="imgFooter" src="https://agenciamagma.vteximg.com.br/arquivos/logoVTEXM3Academy.png" alt="logoVTEX" style="width: 45px;">
</a>
</li>
<li style="width: 217px; >
<a href="https://agenciam3.com/">
<span>Developed By</span>
<img class="imgFooter" src="https://agenciamagma.vteximg.com.br/arquivos/logoM3M3Academy.png" alt="logoM3" style="width: 29px; margin-left: 10px;">
</a>
</li>
</ul>
</div>
`;
} else {
this.divFooter.innerHTML = `
<hr></hr>
<div class="conteiner_footer">
<ul class="footerCheckout__stamps">
<li>
<span class="footerCheckout__payments" style="display: flex; align-items: center;
justify-content: center;">
<img class="imgFooter" src="https://agenciamagma.vteximg.com.br/arquivos/masterCardM3Academy.png" alt="mastercard" style="width: 35px; margin-right: 13px; margin-left: 137px;">
<img class="imgFooter" src="https://agenciamagma.vteximg.com.br/arquivos/visaM3Academy.png" alt="visa" style="width: 35px; margin-right: 13px;">
<img class="imgFooter" src="https://agenciamagma.vteximg.com.br/arquivos/amexM3Academy.png" alt="american" style="width: 35px; margin-right: 13px;">
<img class="imgFooter" src="https://agenciamagma.vteximg.com.br/arquivos/eloM3Academy.png" alt="elo" style="width: 35px; margin-right: 13px;">
<img class="imgFooter" src="https://agenciamagma.vteximg.com.br/arquivos/hiperCardM3Academy.png" alt="hipercard" style="width: 35px; margin-right: 13px;">
<img class="imgFooter" src="https://agenciamagma.vteximg.com.br/arquivos/payPalM3Academy.png" alt="paypal" style="width: 35px; margin-right: 13px;">
<img class="imgFooter" src="https://agenciamagma.vteximg.com.br/arquivos/boletoM3Academy.png" alt="boleto" style="width: 35px; margin-right: 13px;">
</span>
</li>
<li>
<span class="footerCheckout__stamps__divider"></span>
</li>
<li>
<span class="footerCheckout__payments">
<img class="imgFooter" src="https://agenciamagma.vteximg.com.br/arquivos/vtexPCIM3Academy.png" alt="logoCertificado" style="width: 53px; margin-right: 90px;">
</span>
</li>
</ul>
<div class="footerCheckout__address">
<span>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</span>
</div>
<ul class="footerCheckout__developedBy">
<li>
<a href="https://vtex.com/br-pt/">
<span>Powered By</span>
<img class="imgFooter" src="https://agenciamagma.vteximg.com.br/arquivos/logoVTEXM3Academy.png" alt="logoVTEX" style="width: 45px;">
</a>
</li>
<li style="width: 217px; >
<a href="https://agenciam3.com/">
<span>Developed By</span>
<img class="imgFooter" src="https://agenciamagma.vteximg.com.br/arquivos/logoM3M3Academy.png" alt="logoM3" style="width: 29px; margin-left: 10px;">
</a>
</li>
</ul>
</div>
`;
$(elemet).not(".slick-initialized").slick({
slidesToShow: 4,
slidesToScroll: 1,
});
} else if (window.innerWidth > 375) {
$(elemet).not(".slick-initialized").slick({
slidesToShow: 3,
slidesToScroll: 1,
});
} else if (window.innerWidth <= 375) {
$(elemet).not(".slick-initialized").slick({
slidesToShow: 2,
slidesToScroll: 1,
});
}
}
imgPagamento() {
this.divImgPagamentos.innerHTML = `
<ul class="payments-icons-wrapper">
<li>
<figure>
<img
src="https://agenciamagma.vteximg.com.br/arquivos/masterCardM3Academy.png"
alt=""
/>
</figure>
</li>
<li>
<figure>
<img
src="https://agenciamagma.vteximg.com.br/arquivos/visaM3Academy.png"
alt=""
/>
</figure>
</li>
<li>
<figure>
<img
src="https://agenciamagma.vteximg.com.br/arquivos/amexM3Academy.png"
alt=""
/>
</figure>
</li>
<li>
<figure>
<img
src="https://agenciamagma.vteximg.com.br/arquivos/eloM3Academy.png"
alt=""
/>
</figure>
</li>
<li>
<figure>
<img
src="https://agenciamagma.vteximg.com.br/arquivos/hiperCardM3Academy.png"
alt=""
/>
</figure>
</li>
<li>
<figure>
<img
src="https://agenciamagma.vteximg.com.br/arquivos/payPalM3Academy.png"
alt=""
/>
</figure>
</li>
<li>
<figure>
<img
src="https://agenciamagma.vteximg.com.br/arquivos/boletoM3Academy.png"
alt=""
/>
</figure>
</li>
</ul>
`;
}
imgVtex() {
this.divImgVtex.innerHTML = `
<figure class="vtex-icon">
<img
src="https://agenciamagma.vteximg.com.br/arquivos/vtexPCIM3Academy.png"
alt=""
/>
</figure>
`;
}
imgVtexEm3() {
this.divImgVtexEm3.innerHTML = `
<li>
<a href="https://vtex.com/br-pt/">
<span>Powered By</span>
<figure>
<img class="vtex-icon" src="https://agenciamagma.vteximg.com.br/arquivos/logoVTEXM3Academy.png" alt="">
</figure>
</a>
</li>
<li>
<a href="https://agenciam3.com/">
<span>Developed By</span>
<figure>
<img class="m3-icon" src="https://agenciamagma.vteximg.com.br/arquivos/logoM3M3Academy.png" alt="">
</figure>
</a>
</li>
`;
}
async fetchApi() {
this.titulo.innerHTML = `
<h3 class="title_slick">Você também pode gostar:</h3>
`;
fetch(
"https://m3academy.myvtex.com/api/catalog_system/pub/products/search/?fq=productClusterIds:319"
)
.then((response) => response.json())
.then((data) => {
const ul = document.createElement("ul");
ul.classList.add("slick-list");
this.divPrateleira.appendChild(ul);
data.map((item) => {
let cores = "";
for (let i = 0; i < item.items.length; i++) {
cores += `<p>${item.items[i].name}</p>`;
}
const li = document.createElement("li");
li.setAttribute("name", item.itemId);
li.classList.add("slick-list__itemList");
li.innerHTML = `
<figure class="img-container">
<img class="itemImg" src="${item.items[0].images[0].imageUrl}">
</figure>
<figcaption class="itemtName">${item.productName}</figcaption>
<div class="itemSku">
${cores}
</div>
<a class="itemLink" type="button" href="${item.link}">VER PRODUTO</a>
`;
ul.appendChild(li);
this.divPrateleira.classList.add("fetch");
});
})
.then(() => {
this.addCarrossel();
});
}
}

View File

@ -1,3 +1,4 @@
// import waitForEl from "../helpers/waitForEl";
import { waitElement } from "m3-utils";
export default class Header {
@ -7,45 +8,241 @@ export default class Header {
async init() {
await this.selectors();
this.linhaHeader();
this.meioDaTela();
this.meioDaTela2();
this.meioDaTela3();
this.divBarraProgresso();
await this.andamentoDasBolinha();
}
async selectors() {
this.divAnteriorLinha = await waitElement(".container");
this.textoMeioTela = await waitElement(".empty-cart-title");
this.textoMeioTela2 = await waitElement(".empty-cart-message");
this.textoMeioTela3 = await waitElement("#cart-choose-products");
this.textoMeioTela4 = await waitElement("#cart-title");
this.header = await waitElement(".headerCheckout");
this.progressBar = await waitElement("#progressBar");
}
linhaHeader() {
this.divAnteriorLinha.innerHTML = `
<div class="headerCheckout__wrapper">
<div class="headerCheckout__logo">
<a href="/">
<img src="https://agenciamagma.vteximg.com.br/arquivos/LogoM3Academy.png" alt="M3 Academy"/>
</a>
</div>
<div id="progressBar" class="progress-bar">
</div>
<div class="headerCheckout__safeBuy">
<img src="https://agenciamagma.vteximg.com.br/arquivos/cadeadoCompraSegM3Academy.png" alt="Cadeado"/>
<span>Compra segura</span>
</div>
</div>
<hr></hr>
`;
divBarraProgresso() {
if (this.progressBar && window.innerWidth > 1024) {
this.progressBar.innerHTML = `
<ul>
<li>
<div class="containerLi">
<div>
<p class="progress-bar-text">Meu carrinho</p>
<p id="progress-bar-circle-1" class="progress-bar-circle-1"></p>
<p class="progress-bar-line-1"></p>
</div>
</div>
</li>
<li class="central">
<div class="containerLi">
<div>
<p class="progress-bar-text">Dados Pessoais</p>
<p id="progress-bar-circle-2" class="progress-bar-circle-2"></p>
</div>
</div>
</li>
<li>
<div class="containerLi">
<div>
<p class="progress-bar-text">Pagamento</p>
<p id="progress-bar-circle-3" class="progress-bar-circle-3"></p>
<p class="progress-bar-line-2"></p>
</div>
</div>
</li>
</ul>
`;
}
if (this.progressBar && window.innerWidth <= 1024) {
this.progressBar.innerHTML = ``;
}
}
meioDaTela() {
this.textoMeioTela.innerHTML = `SEU CARRINHO ESTÁ VAZIO`;
this.textoMeioTela4.innerHTML = ``;
}
meioDaTela2() {
this.textoMeioTela2.innerHTML = ``;
}
meioDaTela3() {
this.textoMeioTela3.innerHTML = `CONTINUAR COMPRANDO`;
async andamentoDasBolinha() {
if (this.progressBar && window.innerWidth > 1024) {
const progressBarList = document.querySelectorAll("#progressBar ul li");
progressBarList.forEach((li) => {
if (window.location.href == "https://m3academy.myvtex.com/checkout/#/cart") {
if (li.children[0].children[0].children["progress-bar-circle-1"]) {
li.children[0].children[0].children["progress-bar-circle-1"].classList.add(
"active"
);
}
if (li.children[0].children[0].children["progress-bar-circle-2"]) {
if (
li.children[0].children[0].children[
"progress-bar-circle-2"
].classList.contains("active")
) {
li.children[0].children[0].children[
"progress-bar-circle-2"
].classList.remove("active");
}
}
if (li.children[0].children[0].children["progress-bar-circle-3"]) {
if (
li.children[0].children[0].children[
"progress-bar-circle-3"
].classList.contains("active")
) {
li.children[0].children[0].children[
"progress-bar-circle-3"
].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 (li.children[0].children[0].children["progress-bar-circle-1"]) {
if (
li.children[0].children[0].children[
"progress-bar-circle-1"
].classList.contains("active")
) {
li.children[0].children[0].children[
"progress-bar-circle-1"
].classList.remove("active");
}
}
if (li.children[0].children[0].children["progress-bar-circle-2"]) {
li.children[0].children[0].children["progress-bar-circle-2"].classList.add(
"active"
);
}
if (li.children[0].children[0].children["progress-bar-circle-3"]) {
if (
li.children[0].children[0].children[
"progress-bar-circle-3"
].classList.contains("active")
) {
li.children[0].children[0].children[
"progress-bar-circle-3"
].classList.remove("active");
}
}
} else if (
window.location.href == "https://m3academy.myvtex.com/checkout/#/payment"
) {
if (li.children[0].children[0].children["progress-bar-circle-1"]) {
if (
li.children[0].children[0].children[
"progress-bar-circle-1"
].classList.contains("active")
) {
li.children[0].children[0].children[
"progress-bar-circle-1"
].classList.remove("active");
}
}
if (li.children[0].children[0].children["progress-bar-circle-2"]) {
if (
li.children[0].children[0].children[
"progress-bar-circle-2"
].classList.contains("active")
) {
li.children[0].children[0].children[
"progress-bar-circle-2"
].classList.remove("active");
}
}
if (li.children[0].children[0].children["progress-bar-circle-3"]) {
li.children[0].children[0].children["progress-bar-circle-3"].classList.add(
"active"
);
}
}
window.addEventListener("hashchange", () => {
if (window.location.hash == "#/cart") {
if (li.children[0].children[0].children["progress-bar-circle-1"]) {
li.children[0].children[0].children[
"progress-bar-circle-1"
].classList.add("active");
}
if (li.children[0].children[0].children["progress-bar-circle-2"]) {
if (
li.children[0].children[0].children[
"progress-bar-circle-2"
].classList.contains("active")
) {
li.children[0].children[0].children[
"progress-bar-circle-2"
].classList.remove("active");
}
}
if (li.children[0].children[0].children["progress-bar-circle-3"]) {
if (
li.children[0].children[0].children[
"progress-bar-circle-3"
].classList.contains("active")
) {
li.children[0].children[0].children[
"progress-bar-circle-3"
].classList.remove("active");
}
}
} else if (
window.location.hash == "#/email" ||
window.location.hash == "#/profile" ||
window.location.hash == "#/shipping"
) {
if (li.children[0].children[0].children["progress-bar-circle-1"]) {
if (
li.children[0].children[0].children[
"progress-bar-circle-1"
].classList.contains("active")
) {
li.children[0].children[0].children[
"progress-bar-circle-1"
].classList.remove("active");
}
}
if (li.children[0].children[0].children["progress-bar-circle-2"]) {
console.log("teste 1");
li.children[0].children[0].children[
"progress-bar-circle-2"
].classList.add("active");
}
if (li.children[0].children[0].children["progress-bar-circle-3"]) {
if (
li.children[0].children[0].children[
"progress-bar-circle-3"
].classList.contains("active")
) {
li.children[0].children[0].children[
"progress-bar-circle-3"
].classList.remove("active");
}
}
} else if (window.location.hash == "#/payment") {
if (li.children[0].children[0].children["progress-bar-circle-1"]) {
if (
li.children[0].children[0].children[
"progress-bar-circle-1"
].classList.contains("active")
) {
li.children[0].children[0].children[
"progress-bar-circle-1"
].classList.remove("active");
}
}
if (li.children[0].children[0].children["progress-bar-circle-2"]) {
if (
li.children[0].children[0].children[
"progress-bar-circle-2"
].classList.contains("active")
) {
li.children[0].children[0].children[
"progress-bar-circle-2"
].classList.remove("active");
}
}
if (li.children[0].children[0].children["progress-bar-circle-3"]) {
li.children[0].children[0].children[
"progress-bar-circle-3"
].classList.add("active");
}
}
});
});
}
}
}

View File

@ -1,5 +1,6 @@
@import "./utils/all";
@import "./lib/slick";
@import "./partials/prateleira";
@import "./partials/header";
@import "./partials/footer";
@import "./checkout/checkout.scss";

View File

@ -1,291 +1,583 @@
.checkout-container {
.client-pre-email {
border-color: $color-gray4;
font-family: $font-family;
padding-top: 8px;
padding-bottom: 90px;
.client-pre-email {
border-color: $black;
font-family: $font-family;
padding-top: 14px;
.link-cart {
a {
color: $color-black;
font-size: 14px;
.link-cart {
width: 100%;
font-family: $font-family-secundary;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
text-align: right;
text-decoration-line: underline;
padding: 19px 0 10px;
&:hover {
color: lighen($color-black, 10);
}
}
}
a {
color: $black;
font-size: 14px;
font-family: $font-family-secundary;
font-style: normal;
font-weight: 400;
line-height: 16px;
text-align: center;
text-transform: uppercase;
}
}
.pre-email {
flex-direction: column;
display: flex;
align-items: center;
justify-content: center;
.pre-email {
flex-direction: column;
display: flex;
align-items: center;
justify-content: center;
h3 {
margin-bottom: 16px;
h3 {
margin-bottom: 16px;
span {
color: #303030;
font-size: 24px;
}
span {
font-family: $font-family-secundary;
font-style: normal;
font-weight: 400;
font-size: 20px;
line-height: 23px;
text-align: center;
text-transform: uppercase;
color: $black;
}
small {
color: $color-gray4;
}
}
}
small {
font-family: $font-family-secundary;
font-style: normal;
font-weight: 400;
font-size: 20px;
line-height: 23px;
text-align: center;
text-transform: uppercase;
color: $black;
}
}
}
.client-email {
margin: 0 0 16px;
.client-email {
width: 57%;
margin: 0 0 47px;
input {
box-shadow: none;
color: $color-black;
font-family: $font-family;
padding: 0 16px;
border: 2px solid $color-gray3;
box-sizing: border-box;
border-radius: 5px;
input {
width: 83%;
box-shadow: none;
color: $black;
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
display: flex;
padding: 0 16px;
border: 1px solid $black;
box-sizing: border-box;
border-radius: 5px 0px 0px 5px;
@media (max-width: 490px) {
width: auto;
}
}
&::placeholder {
color: $black;
}
@media (max-width: 490px) {
width: auto;
}
}
button {
background-color: $color-blue-figma;
color: $color-black;
border-radius: 5px;
border: none;
font-family: $font-family;
height: 54px;
right: 0;
top: 0;
button {
background-color: $blue;
border-radius: 0px 8px 8px 0px;
border: none;
font-family: $font-family;
font-style: normal;
font-weight: 700;
font-size: 14px;
line-height: 19px;
display: flex;
align-items: center;
text-align: center;
letter-spacing: 0.05em;
text-transform: uppercase;
height: 54px;
right: 0;
top: 0;
color: $black;
@media (max-width: 490px) {
height: 48px;
margin: 0;
position: absolute;
}
}
@media (max-width: 490px) {
height: 48px;
margin: 0;
position: absolute;
}
}
span.help.error {
color: red;
}
}
span.help.error {
color: red;
font-family: $font-family;
font-style: normal;
font-weight: 700;
font-size: 12px;
line-height: 16px;
display: flex;
align-items: center;
text-align: center;
justify-content: center;
}
}
.emailInfo {
padding: 16px;
background-color: $color-white;
border: 1px solid $color-gray4;
border-radius: 0;
.emailInfo {
padding: 16px 16px 26px 16px;
background-color: $white;
border: 1px solid $black;
border-radius: 5px;
h3 {
color: #303030;
margin: 0 0 8px 0;
}
h3 {
color: $black;
margin: 0 0 8px 0;
}
ul {
margin: 0;
ul {
margin: 0;
li {
span {
color: $color-black;
}
li {
span {
color: $black;
font-family: $font-family;
font-style: normal;
font-weight: 700;
font-size: 12px;
}
i::before {
color: $color-blue-figma;
font-size: 1rem;
opacity: 1;
}
}
}
i::before {
color: $blue;
font-size: 1rem;
opacity: 1;
}
}
}
i::before {
color: $color-black;
font-size: 6rem;
opacity: 0.5;
}
}
}
i::before {
color: $black;
font-size: 6rem;
opacity: 0.5;
}
}
.icon-lock {
bottom: -30px;
}
}
.shipping-data,
.payment-data,
.client-profile-data {
.accordion-group {
border-radius: 0;
border: 1px solid $color-gray4;
font-family: $font-family;
padding: 16px;
.shipping-data,
.payment-data,
.client-profile-data {
.ship-country {
display: none;
}
.accordion-group {
border-radius: 0;
border: 1px solid $gray-100;
font-family: $font-family;
.accordion-heading {
span {
color: #303030;
margin-bottom: 8px;
padding: 0;
.vtex-omnishipping-1-x-address {
div {
display: flex;
flex-direction: column;
i::before {
fill: #303030;
}
}
P {
input {
width: 99%;
max-width: 100%;
}
}
}
}
a {
align-items: center;
background-color: $color-blue-figma;
border-radius: 8px;
border: none;
color: $color-white;
display: flex;
justify-content: center;
padding: 6px 5px 6px 8px;
}
}
.accordion-heading {
span {
margin-bottom: 8px;
padding: 0;
color: $black;
font-family: $font-family-secundary;
font-style: normal;
font-weight: 400;
font-size: 16px;
line-height: 19px;
margin-bottom: 15px;
.accordion-inner {
padding: 0;
i {
position: absolute;
right: 8px;
width: 19.2px;
height: 18px;
cursor: pointer;
}
/* General configurations */
i::before {
background-image: url(https://agenciamagma.vteximg.com.br/arquivos/lapisM3Academy.png);
background-size: 19.2px 18px;
fill: transparent;
color: transparent;
width: 19.2px;
height: 18px;
cursor: pointer;
}
.client-notice {
color: $color-black;
}
.icon-user {
display: none;
}
p {
label {
color: $color-black;
font-weight: 500;
}
.icon-home {
display: none;
}
select,
input {
border-radius: 0;
border: 1px solid $color-gray4;
box-shadow: none;
}
.icon-credit-card {
display: none;
}
.help.error {
color: red;
}
}
// .icon-edit {
// display: none;
// }
.box-client-info-pj {
.link a#is-corporate-client,
.link a#not-corporate-client {
color: $color-black;
font-weight: 500;
text-decoration: underline;
}
}
span[data-i18n="clientProfileData.identification"] {
color: $white;
margin: 0;
}
.state-inscription-box span {
font-weight: 500;
}
span[data-i18n="clientProfileData.identification"]::before {
content: "Identificação";
color: $black;
font-family: $font-family-secundary;
font-style: normal;
font-weight: 400;
font-size: 16px;
line-height: 19px;
margin: 0 0 0 17px;
}
button.submit {
border: none;
border-radius: 5px;
background: $color-blue-figma;
color: $color-black;
margin-top: 8px;
outline: none;
transition: all 0.2s linear;
span[data-i18n="paymentData.payment"]::before {
content: "";
height: 50px;
width: 50px;
}
}
&:hover {
background: lighten($color-black, 5);
}
a {
align-items: center;
background-color: transparent;
border-radius: 8px;
border: none;
color: $white;
display: flex;
justify-content: center;
padding: 20px 15px 6px 8px;
}
}
&:active {
background: darken($color-black, 5);
}
}
.accordion-inner {
// margin: 15px 0 0 8px;
/* Shipping configurations */
/* General configurations */
.ship-postalCode small a {
color: #303030;
font-weight: 500;
text-decoration: underline;
}
.client-notice {
height: 11px;
margin: 0;
color: $white;
}
.vtex-omnishipping-1-x-deliveryGroup {
p {
color: #303030;
font-size: 14px;
font-weight: 500;
}
p {
margin: 0;
label {
color: $gray-600;
font-weight: 500;
.shp-lean {
border: 1px solid $color-gray4;
border-radius: 0;
#opt-in-newsletter {
margin-top: -6px;
}
}
label {
background-color: $color-white;
box-shadow: none;
color: #303030;
padding: 8px 12px;
select,
input {
height: 32px;
border-radius: 5px;
border: 1px solid $gray-25;
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
box-shadow: none;
color: $gray-700;
}
input {
max-width: 68%;
margin: 0;
}
svg path {
fill: #d8c8ac;
}
}
}
}
#client-email {
max-width: 81%;
}
.delivery-address-title {
color: #303030;
font-size: 14px;
font-weight: 500;
}
.help.error {
color: red;
}
.shp-summary-group-info {
border-color: $color-gray4;
}
.checkbox {
margin-top: 7px;
padding: 0;
.address-summary {
background: none;
border-color: $color-gray4;
border-radius: 0;
color: #303030;
padding: 12px;
#opt-in-newsletter {
margin-right: 8px;
}
}
}
@include mq(md, max) {
background-position: 8px 9px;
}
.box-client-info-pj {
display: none;
.link a#is-corporate-client,
.link a#not-corporate-client {
color: $black;
font-weight: 500;
text-decoration: underline;
}
}
a {
color: #303030;
font-weight: 500;
text-decoration: underline;
}
}
.state-inscription-box span {
font-weight: 500;
}
.shp-summary-group-price,
.shp-summary-package {
color: $color-gray4;
}
button.submit {
width: 100%;
border: none;
margin-top: 42px;
border-radius: 8px;
background: $blue;
outline: none;
transition: all 0.2s linear;
cursor: pointer;
font-family: $font-family;
font-style: normal;
font-weight: 700;
font-size: 14px;
line-height: 19px;
text-transform: uppercase;
}
.shp-summary-group-price {
padding-right: 16px;
}
/* Shipping configurations */
.ship-postalCode {
display: flex;
flex-direction: column;
.shp-summary-package {
padding-left: 16px;
}
#ship-postalCode {
width: 95% !important;
max-width: 95% !important;
margin-bottom: 10px;
}
.vtex-omnishipping-1-x-summaryChange {
border-color: #303030;
color: #303030;
}
small a {
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
color: $gray-500;
font-weight: 500;
text-decoration: underline;
}
}
.vtex-omnishipping-1-x-deliveryChannelsToggle {
background-color: #d8c8ac;
border: 1px solid #d8c8ac;
}
.vtex-omnishipping-1-x-deliveryGroup {
p {
color: #303030;
font-size: 14px;
font-weight: 500;
}
.vtex-omnishipping-1-x-deliveryOptionActive {
text-shadow: 1.3px 1px lighten($color-black, 50);
}
}
}
}
.shp-lean {
border: 1px solid $gray-25;
border-radius: 8px;
label {
background-color: $white;
box-shadow: none;
color: $gray-800;
padding: 8px 12px;
border-bottom: 1px solid $gray-25;
svg path {
fill: $blue;
}
}
}
}
.delivery-address-title {
color: #303030;
font-size: 14px;
font-weight: 500;
}
.shp-summary-group-info {
border-color: $gray-200;
}
.address-summary {
position: relative;
background: none;
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
border-color: $gray-200;
border-radius: 8px;
color: $gray-600;
padding: 12px 12px 12px 43px;
&::before {
content: "";
position: absolute;
left: 12.86px;
top: 35%;
width: 21px;
height: 23px;
background-size: 21px 23px;
background-image: url(https://agenciamagma.vteximg.com.br/arquivos/homeM3Academy.png);
}
@include mq(md, max) {
background-position: 8px 9px;
}
a {
color: $blue;
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
margin-left: 84%;
}
}
.shp-summary-group-price,
.shp-summary-package {
color: $gray-200;
}
.shp-summary-group-price {
padding-right: 16px;
}
.shp-summary-package {
padding-left: 16px;
}
.vtex-omnishipping-1-x-SummaryItemContent {
display: block;
.vtex-omnishipping-1-x-SummaryItemInfo {
border: none;
.vtex-omnishipping-1-x-SummaryItemAddress {
.address-summary-BRA {
padding: 12px 12px 12px 12px;
}
.address-summary-BRA::before {
display: none;
}
}
}
}
.vtex-omnishipping-1-x-submitPaymentButton {
button.submit {
margin-top: 0;
}
}
.vtex-omnishipping-1-x-summaryChange {
display: none;
border-color: #303030;
color: $black;
}
.vtex-omnishipping-1-x-deliveryChannelsToggle {
background: $white;
color: $black;
border: 1px solid $gray-500;
}
.vtex-omnishipping-1-x-deliveryOptionActive {
color: $black;
}
.box-step-content {
width: 102%;
form {
.payment-group {
margin-top: 0;
}
.steps-view {
width: 64%;
padding: 0;
}
}
.link-gift-card {
display: none !important;
}
.payment-group-list-btn {
margin: 0;
a {
display: none;
padding: 13px 9px;
border: 1px solid $gray-600;
border-radius: 6px;
text-align: center;
margin: 12px 0 0 0;
span {
margin: 0 !important;
padding: 0 !important;
background-image: none !important;
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 24px;
color: $gray-900;
}
span:hover {
color: $orange;
}
}
a:hover {
border: 1px solid $orange;
}
a[data-name="American Express"] {
display: block;
}
a[data-name="Boleto Bancário"] {
display: block;
}
a[data-name="Depósito"] {
display: block;
}
a[data-name="Mercado Pago"] {
display: block;
}
}
}
}
}
}
}

View File

@ -5,18 +5,28 @@
}
.cart-template {
font-family: $font-family;
font-family: $font-family-secundary;
@include mq(md, max) {
padding: 0 0;
}
.cart-template-holder {
margin-bottom: 48px;
}
.item-unit-label {
display: none;
}
.cart {
border: 3px solid $color-gray3;
box-sizing: border-box;
border-radius: 5px;
padding: 16px;
padding: 30px 17px 0px 17px;
.clearfix::before {
display: none;
}
@include mq(md, max) {
margin: 0px 0 25px 0;
@ -24,19 +34,37 @@
border-right: none;
border-radius: 0;
}
@include mq(dt, max) {
padding: 16px 0 16px 16px;
}
}
.cart-fixed.affix {
position: relative !important;
height: 397px !important;
}
.cart-fixed {
border: 1px solid $gray-50;
border-radius: 8px;
font-family: $font-family;
width: 100%;
height: 397px !important;
h2 {
background: $color-white;
padding: 17px 0 0 24px;
background: $white;
border: none;
color: #303030;
font-size: 14px;
font-weight: 500;
color: $gray-500;
font-family: $font-family-secundary;
font-style: normal;
font-weight: 400;
font-size: 16px;
line-height: 19px;
text-align: start;
}
span {
display: none;
}
.item-unavailable {
@ -48,9 +76,8 @@
}
.cart {
border: 1px solid $color-gray4;
ul li {
line-break: strict;
border-top: none;
margin-top: 0;
padding-top: 0;
@ -63,22 +90,58 @@
.shipping-date,
.price {
color: #7d7d7d;
color: $black;
font-weight: 400;
font-size: 14px;
line-height: 16px;
}
}
}
.summary-template-holder {
border-top: none;
background: $color-white;
background: $white;
.row-fluid summary {
margin-top: 48px;
}
.row-fluid summary ::after,
::before {
display: none;
content: none;
}
.row-fluid summary ::before,
::after {
display: none;
content: none;
}
}
#go-to-cart-button a {
color: #303030;
text-decoration: underline;
width: 100%;
padding-right: 17px;
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
color: black;
&:hover {
text-decoration: underline !important;
}
}
.summary-totalizers {
padding: 0 17px;
tr {
border-top: 1px solid $gray-25;
width: 100%;
padding: 25px 0;
}
td.info {
width: 100%;
}
@ -87,34 +150,38 @@
#payment-data-submit {
background: $color-green;
border: none;
border-radius: 0;
color: $color-white;
border-radius: 8px;
color: $white;
outline: none;
transition: all 0.2s linear;
&:hover {
background: lighten($color-black, 5);
}
&:active {
background: darken($color-black, 5);
.store-country-BRA {
margin: 0;
padding: 0;
}
}
}
.lookatme {
background-color: $color-white;
background-color: $white;
}
.cart-items {
.product-item {
padding: 16px 0;
white-space: normal !important;
justify-content: center;
align-items: center;
.fn product-name {
line-break: auto;
width: 117px;
white-space: normal;
}
th {
color: $color-black;
color: $black;
padding: 0 0 16px;
font-style: normal;
font-weight: bold;
font-weight: 400;
font-size: 14px;
line-height: 16px;
@ -148,14 +215,21 @@
}
.product-name {
display: flex;
width: 115px;
line-break: normal;
padding-right: 0;
align-items: center;
padding-top: 6%;
white-space: normal !important;
color: $black;
@include mq(lg, max) {
width: 250px;
}
a {
color: $color-blue;
color: $black;
font-style: normal;
font-weight: normal;
font-size: 12px;
@ -163,7 +237,6 @@
transition: ease-in 0.22s all;
&:hover {
color: darken($color-blue, 10);
text-decoration: none;
}
@ -179,7 +252,7 @@
}
td.shipping-date {
color: $color-gray2;
color: $black;
font-size: 12px;
line-height: 14px;
@ -200,7 +273,7 @@
}
span.list-price {
color: $color-gray2;
color: $black;
font-size: 12px;
line-height: 14px;
text-decoration-line: line-through;
@ -233,8 +306,8 @@
}
input {
background-color: $color-white;
border: 1px solid $color-gray3;
background-color: $white;
border: 1px solid $white;
border-radius: 0;
border-width: 0 1px;
display: block;
@ -242,7 +315,7 @@
margin: 0 !important;
padding: 8px 0;
width: 38px;
color: $color-gray2;
color: $black;
box-shadow: none;
@include mq(lg, max) {
@ -253,27 +326,23 @@
.icon-plus-sign,
.icon-minus-sign {
&::before {
background-color: $color-blue-figma;
color: $color-white;
color: $black;
display: block;
font-weight: 500;
margin: 1px 12px;
border-radius: 50%;
border: 50%;
width: 18px;
padding: 1px 12px;
}
}
.icon-minus-sign {
&:before {
content: "-";
color: $blue;
font-size: 16px;
}
}
.icon-plus-sign {
&:before {
content: "+";
color: $blue;
font-size: 14px;
}
}
@ -301,10 +370,10 @@
}
span {
font-style: normal;
font-weight: normal;
font-weight: 700;
font-size: 14px;
line-height: 16px;
color: $color-black;
color: $gray-500;
}
}
@ -319,7 +388,7 @@
top: 0;
}
.icon::before {
color: $color-gray4;
color: $gray-200;
font-size: 15px;
@include mq(md, max) {
@ -330,10 +399,10 @@
.item-unavailable-message {
background-color: #d8c8ac;
color: $color-white;
color: $white;
.icon-warning-sign {
color: #bb4f4f;
color: #ff0000;
}
.top-arrow {
@ -348,7 +417,7 @@
width: max-content;
.srp-container {
padding: 0 0 0 10px;
padding: 0 0 0 16px;
@include mq(md, max) {
padding: 0 16px;
@ -356,11 +425,12 @@
.srp-main-title {
margin: 32px 0 12px;
font-family: "Open Sans";
font-style: normal;
font-weight: normal;
font-weight: 400;
font-size: 24px;
line-height: 28px;
color: $color-gray2;
line-height: 33px;
color: $black;
@include mq(md, max) {
margin-top: 0;
@ -368,32 +438,30 @@
}
.srp-description {
color: $color-gray2;
color: $gray-150;
font-family: "Open Sans";
font-size: 12px;
line-height: 18px;
margin: 0 0 12px;
}
button.shp-open-options {
background-color: $color-gray5;
background-color: $gray-50;
border: none;
border-radius: 5px;
color: $color-gray2;
color: $black;
font-size: 16px;
letter-spacing: 0.05em;
font-family: "Open Sans";
line-height: 19px;
font-weight: 500;
outline: none;
padding: 12px 40px;
transition: all 0.2s linear;
}
&:hover {
background-color: lighten($color-gray5, 5);
}
&:active {
background-color: darken($color-gray5, 5);
}
.ship-country {
display: none;
}
}
@ -409,26 +477,19 @@
}
.srp-pickup-my-location__button {
background-color: $color-black;
background-color: $blue;
border: none;
border-radius: 5px;
color: $color-white;
color: $white;
outline: none;
width: 100%;
font-family: $font-family;
font-style: normal;
font-weight: 500;
font-weight: 700;
font-size: 14px;
line-height: 16px;
line-height: 19px;
letter-spacing: 0.05em;
&:hover {
background-color: lighten($color-black, 5);
}
&:active {
background-color: darken($color-black, 5);
}
padding: 11px 0;
}
}
@ -436,8 +497,9 @@
margin: 0 0 34px;
&__wrapper {
background-color: $color-white;
background-color: $white;
border-radius: 100px;
border: 1px solid $gray-125;
width: 100%;
font-family: $font-family;
font-style: normal;
@ -445,15 +507,19 @@
font-size: 14px;
line-height: 16px;
text-transform: uppercase;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
color: $gray-125;
}
&__current {
border: 1px solid $color-blue;
border: 1px solid $black;
border-radius: 100px;
box-shadow: none;
}
.blue {
color: $color-blue;
color: $black;
box-shadow: none;
}
label {
@ -467,21 +533,25 @@
.srp-postal-code {
.ship-postalCode {
.ship-country {
display: none;
}
label {
font-family: $font-family;
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 14px;
color: $color-black;
color: $black;
margin-bottom: 12px;
}
input {
border: 1px solid $color-gray3;
border: 1px solid $gray-125;
border-radius: 5px;
box-shadow: none;
color: $color-gray3;
color: $black;
font-size: 12px;
height: 36px;
padding: 12px 8px;
@ -489,10 +559,10 @@
}
& ~ button {
background-color: $color-blue-figma;
background-color: $blue;
border: none;
border-radius: 5px;
color: $color-black;
border-radius: 8px;
color: $white;
font-size: 12px;
height: 36px;
letter-spacing: 1px;
@ -503,27 +573,26 @@
transition: all 0.2s linear;
width: 96px;
text-transform: uppercase;
&:hover {
background-color: lighten($color-black, 5);
}
&:active {
background-color: darken($color-black, 5);
}
}
small a {
width: 10%;
font-family: $font-family;
font-style: normal;
font-weight: normal;
font-weight: 400;
font-size: 10px;
line-height: 12px;
color: $color-blue;
color: $black;
margin-top: 7px;
cursor: pointer;
}
small:hover {
text-decoration: underline;
}
span.help.error {
display: none;
color: red;
font-size: 12px;
position: absolute;
@ -548,12 +617,12 @@
font-weight: 500;
&:hover {
text-decoration: underline;
text-decoration: none;
}
}
.srp-shipping-current-single {
border: 1px solid $color-gray4;
border: 1px solid $gray-200;
border-radius: 0;
color: #303030;
margin: 16px 0 0;
@ -565,12 +634,13 @@
}
.srp-delivery-select {
border: 1px solid $color-gray4;
border: 1px solid $gray-200;
border-radius: 5px;
}
.srp-delivery-select-container {
border: 1px solid $color-gray4;
border-radius: 0;
border: 1px solid $gray-200;
border-radius: 5px;
.srp-shipping-current-many {
&__name {
@ -587,7 +657,7 @@
}
&__arrow svg {
fill: $color-gray4;
fill: $gray-200;
}
}
}
@ -602,17 +672,16 @@
#cart-link-coupon-add {
text-decoration: none;
&:hover {
text-decoration: underline;
cursor: pointer;
}
}
span {
font-family: $font-family;
font-family: $font-family-secundary;
font-style: normal;
font-weight: normal;
font-weight: 400;
font-size: 12px;
line-height: 14px;
color: $color-blue;
color: $black;
text-decoration: none;
}
}
@ -634,14 +703,16 @@
}
.coupon-label label {
text-align: left;
font-family: $font-family-secundary !important;
cursor: default;
margin-bottom: 12px;
font-family: $font-family;
font-style: normal;
font-weight: normal;
font-weight: 400;
font-size: 12px;
line-height: 14px;
color: $color-gray2;
cursor: none;
color: $gray-600;
}
.coupon-fields {
@ -664,11 +735,15 @@
border: 2px solid $color-gray3;
border-radius: 5px;
box-shadow: none;
color: $color-gray4;
font-family: $font-family-secundary !important;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 14px;
color: $gray-200;
height: 34px;
padding: 0 12px;
width: 204px;
padding: 0 16px;
width: 51%;
@include mq(sm, max) {
max-width: 100%;
@ -677,30 +752,28 @@
}
button {
background: $color-blue-figma;
text-align: center;
background: $blue;
border: none;
border-radius: 5px;
color: $color-black;
font-size: 12px;
color: $black;
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
height: 36px;
letter-spacing: 1px;
margin-left: 6px;
outline: none;
transition: all 0.2s linear;
width: 94px;
width: 35%;
text-transform: uppercase;
text-shadow: none;
margin-left: 5px;
@include mq(md, max) {
width: 138px;
}
&:hover {
background-color: lighten($color-black, 5);
}
&:active {
background-color: darken($color-black, 5);
}
}
}
}
@ -720,8 +793,8 @@
font-weight: normal;
font-size: 14px;
line-height: 16px;
color: $color-black;
padding: 12px 0;
color: $gray-600;
padding: 25px 0;
}
&.info {
@ -737,11 +810,12 @@
tfoot {
td.info,
td.monetary {
font-family: $font-family;
font-style: normal;
font-weight: normal;
font-weight: 700;
font-size: 18px;
line-height: 21px;
color: $color-black;
line-height: 25px;
color: $gray-500;
}
}
}
@ -775,40 +849,36 @@
}
a {
font-family: $font-family;
font-family: $font-family-secundary;
font-style: normal;
font-weight: normal;
font-weight: 400;
font-size: 12px;
line-height: 14px;
color: $color-blue;
color: $black;
}
}
.btn-place-order-wrapper {
a {
background: $color-blue-figma;
background: $blue;
border: none;
border-radius: 5px;
display: block;
font-size: 0;
transition: ease-in 0.22s all;
padding: 12px 19px;
&:hover {
background-color: darken($color-green, 5);
}
cursor: pointer;
&:after {
content: "finalizar compra";
font-family: $font-family;
font-weight: 500;
font-size: 13px;
font-weight: 700;
font-size: 14px;
line-height: 19px;
letter-spacing: 0.05em;
color: $color-black;
color: $black;
text-transform: uppercase;
vertical-align: middle;
line-height: 19px;
text-shadow: none;
}
}

View File

@ -1,39 +1,118 @@
.empty-cart {
font-family: $font-family;
&-content {
color: $color-black;
text-align: center;
font-family: $font-family;
@include mq(md, max) {
padding: 0 16px;
}
}
&-content {
height: 100%;
color: $black;
text-align: center;
&-title {
font-size: 20px;
}
@include mq(md, max) {
padding: 0 16px;
}
}
&-links {
.link-choose-products {
background: $color-white !important ;
border-width: 1px;
border-style: solid;
border-color: $color-black ;
transition: ease-in 0.22s all;
outline: none;
font-family: $font-family;
font-style: normal;
font-weight: 500;
font-size: 14px;
line-height: 16px;
text-align: center;
letter-spacing: 0.05em;
color: $color-black;
text-transform: uppercase;
&-message {
display: none;
}
&:hover {
background: lighten($color-black, 5);
}
}
}
&-title {
font-family: $font-family;
font-style: normal;
font-weight: 700;
font-size: 24px;
line-height: 33px;
text-align: center;
text-transform: uppercase;
margin-top: 170px;
@include mq(sm, max) {
font-size: 18px;
line-height: 25px;
}
@include mq(tv, min) {
font-size: 48px;
line-height: 65px;
}
}
&-links {
a {
position: relative;
font-family: $font-family-secundary;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 16px;
text-align: center;
text-transform: uppercase;
letter-spacing: 0.05em;
color: transparent;
@include mq(tv, min) {
width: 25%;
}
}
a::after {
content: "Continuar comprando";
color: $black;
font-family: $font-family-secundary;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 16px;
text-align: center;
text-transform: uppercase;
letter-spacing: 0.05em;
position: absolute;
left: 0;
right: 0;
@include mq(Gf, max) {
top: 25%;
}
@include mq(sm, max) {
font-size: 14px;
line-height: 16px;
}
@include mq(tv, min) {
font-weight: 400;
font-size: 28px;
line-height: 33px;
top: 13%;
}
}
.link-choose-products {
background: $white;
border: 1px solid $black;
border-radius: 0;
outline: none;
font-family: $font-family-secundary;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 16px;
text-align: center;
letter-spacing: 0.05em;
padding: 16px 65px;
color: $white;
text-transform: uppercase;
@include mq(sm, max) {
padding: 16px 26px;
}
@include mq(Gf, max) {
padding: 0 26px;
}
&:hover {
background: $white;
text-decoration: none;
}
}
}
}

View File

@ -7,17 +7,26 @@ html {
height: 100%;
min-height: 100%;
}
footer {
margin-top: auto;
}
footer .footerCheckout__wrapper {
// width: 94.9734%;
width: 100%;
margin: auto auto 0 auto;
}
footer .footerCheckout__prateleira,
footer .footerCheckout__prateleira {
width: 97.5%;
margin: 0 auto 56px;
@include mq(dt, min) {
width: 79.376%;
}
}
header {
// width: 79.53125%;
width: 100%;
margin: 0;
margin: 0 auto;
}
body {
@ -25,11 +34,16 @@ body {
flex-direction: column;
min-height: 100% !important;
padding-top: 0 !important;
text-decoration: none;
@include mq(md, max) {
padding-left: 0;
}
a:hover {
text-decoration: none !important;
}
&.body-cart {
font-family: $font-family;
}
@ -51,37 +65,46 @@ body {
}
.container-order-form,
.container-cart {
width: 80%;
width: 100%;
@include mq(dt, min) {
width: 80%;
}
}
}
.btn-success {
background: $color-black;
background: $black;
text-shadow: none;
&:hover {
background: lighten($color-black, 15%);
background: lighten($black, 15%);
}
}
.emailInfo h3 {
color: $color-black !important;
color: $black !important;
}
#cart-title,
#orderform-title {
color: $color-gray2;
font-family: $font-family;
font-weight: 500;
font-size: 36px;
line-height: 42px;
margin: 40px 0 30px;
letter-spacing: 0.1em;
color: $black;
font-style: normal;
font-weight: 700;
font-size: 24px;
line-height: 33px;
margin: 17px 0 17px;
letter-spacing: 0.05em;
text-transform: uppercase;
@include mq(md, max) {
margin-left: 30px;
}
@include mq(dt, max) {
margin-left: 16px;
}
}
.dropdown {
@ -98,7 +121,7 @@ body {
&::before,
&::after {
content: "";
background: $color-gray2;
background: $gray-150;
display: block;
float: right;
height: 2px;

View File

@ -1,101 +1,214 @@
/* _footer.scss */
hr{
background-color: black;
color: black;
margin: 0 !important;
border: 1px solid;
}
.conteiner_footer {
width: 100%!important;
display: flex;
align-items: center;
padding: 22px 22px 22px 32px;
@media (max-width: 1024px) {
width: 100%!important;
.footerCheckout {
.container {
display: flex;
flex-direction: column;
display: block;
}
.footerCheckout {
border-top: none;
color: $color-gray2;
width: 100%;
padding: 7px 0;
margin: 0;
&__wrapper {
@include mq(dt, min) {
flex-direction: row;
align-items: center;
display: flex;
justify-content: space-between;
padding: 15px 0 15px 0;
}
&__address {
color: $color-gray2;
font-family: $font-family;
font-style: normal;
font-weight: normal;
font-size: 10px;
line-height: 12px;
text-transform: capitalize;
max-width: 40%;
@include mq(md, max) {
margin-bottom: 24px;
max-width: 100%;
}
span{
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 10px;
line-height: 14px;
text-transform: capitalize;
color: #292929;
}
@include mq(tv, min) {
padding: 26px 0 26px 0;
}
}
&__stamps {
align-items: center;
&__wrapper {
border-top: 1px solid $black;
@media screen and (max-width: 490px) {
padding: 7px 0;
}
}
&__address {
color: $gray-500;
font-family: $font-family;
font-weight: 400;
line-height: 14px;
font-size: 10px;
text-transform: capitalize;
@include mq(dt, max) {
display: flex;
justify-self: center;
list-style: none;
margin: 0 0 10px 0px;
width: 100%;
order: 2;
margin-top: 17px;
@include mq(md, max) {
align-self: center;
margin-bottom: 12px;
}
&__divider {
background-color: $color-gray4;
display: inline-block;
height: 24px;
margin: 0 8px;
width: 1px;
}
}
&__developedBy {
align-items: center;
display: flex;
list-style-type: none;
margin: 0;
li:last-child {
span {
margin-left: 16px;
}
}
a {
align-items: center;
color: $color-gray2;
display: flex;
font-family: $font-family;
font-style: normal;
font-weight: normal;
font-size: 10px;
line-height: 12px;
text-decoration: none;
@include mq(dt, min) {
min-width: 269px;
margin-left: 32px;
}
span {
margin-right: 8px;
@include mq(tv, min) {
font-size: 20px;
line-height: 27px;
min-width: 537px;
margin-left: 0;
}
}
&__stamps {
display: flex;
height: 33px;
align-items: center;
list-style: none;
margin: 0 0 0 5px;
li {
height: 33px;
}
@include mq(dt, min) {
justify-content: center;
min-width: 404px;
margin: 0;
}
@include mq(tv, min) {
min-width: 690.52px;
}
.payments-icons-wrapper {
display: flex;
width: 100%;
list-style: none;
margin: 0;
gap: 4px;
figure {
padding: 6px 0 7px;
width: 35.65px;
height: 20px;
margin: 0;
@include mq(tv, min) {
width: 69.63px;
}
@include mq(Gf, max) {
width: 28px;
}
}
}
.footerCheckout__stamps__divider {
border-left: 1px solid $gray-125;
margin: 0 10px;
height: 33px;
padding: 0 0 9px;
@include mq(dt, min) {
margin-left: 11.35px;
}
}
.footerCheckout__vtexpci {
.vtex-icon {
width: 53px;
margin: 0;
}
@include mq(tv, min) {
.vtex-icon {
width: 103.52px;
height: 64.46px;
}
}
}
}
&__developedBy {
align-items: center;
display: flex;
list-style-type: none;
margin: 0;
@include mq(dt, max) {
display: flex;
width: 100%;
order: 3;
margin-top: 17px;
}
@include mq(dt, min) {
min-width: 217px;
margin-right: 22.5px;
}
li {
margin-left: 16px;
figure {
margin: 0;
}
}
.vtex-icon {
width: 44.92px;
margin: 0;
}
.m3-icon {
width: 28.66px;
margin: 0;
}
a {
align-items: center;
color: $gray-500;
display: flex;
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 9px;
line-height: 12px;
text-decoration: none;
span {
margin-right: 8px;
}
}
@include mq(tv, min) {
min-width: 388.98px;
margin-right: 0;
a {
font-size: 18px;
line-height: 25px;
}
li {
margin-left: 10px;
}
.vtex-icon {
width: 87.73px;
}
.m3-icon {
width: 55.98px;
}
}
}
.footerCheckout::after,
::before {
display: none;
content: none;
}
.footerCheckout::before,
::after {
display: none;
content: none;
}
}

View File

@ -1,60 +1,173 @@
/* _header.scss */
.headerCheckout {
.container {
width: 100%!important;
hr{
background-color: black;
color: black;
margin: 0 !important;
}
width: auto !important;
}
&__wrapper {
align-items: center;
display: flex;
justify-content: space-between;
padding: 29px 131px;
@media (max-width: 1024px) {
padding: 16px 16px;;
}
align-items: center;
justify-content: space-around;
padding: 16px;
border-bottom: 1px solid $black;
@media (min-width: 1025px) {
padding: 33.5px 0;
}
@media (min-width: 2500px) {
padding: 33.5px 0;
}
}
.progress-bar {
display: flex;
flex-direction: column;
right: 31.5%;
top: 33%;
@media (max-width: 1024px) {
display: none;
}
@media (min-width: 2500px) {
right: 41%;
}
.containerLi {
display: flex;
position: relative;
align-items: center;
}
ul {
display: flex;
margin: 0;
gap: 100px;
list-style: none;
}
p {
margin-bottom: 0;
}
&-text {
font-family: $font-family-secundary;
font-weight: 400;
font-size: 12px;
line-height: 14px;
@media (min-width: 2500px) {
font-size: 24px;
line-height: 28px;
}
}
&-line-1,
&-line-2 {
position: absolute;
width: 169px;
top: 82%;
left: 55%;
border: 1px solid $black;
@media (min-width: 2500px) {
width: 240px;
top: 79%;
left: 55%;
}
}
&-line-2 {
width: 166px;
left: -223%;
@media (min-width: 2500px) {
width: 230px;
left: -143%;
}
}
&-circle-1,
&-circle-2,
&-circle-3 {
display: flex;
height: 10px;
width: 10px;
align-self: center;
background: $white;
border: 1px solid $black;
border-radius: 50%;
margin-left: 40%;
margin-top: 9px;
padding: 0;
@media (min-width: 2500px) {
height: 22px;
width: 22px;
}
}
.active {
background: $black;
}
}
&__logo {
img {
height: 52px;
width: auto;
@media (max-width: 1024px) {
width: 155px;
width: 45.35%;
@media (min-width: 1025px) {
width: 17.059%;
}
@media (min-width: 1025px) {
width: 15.28%;
img {
width: 100%;
}
}
@media (min-width: 2500px) {
width: 19.22%;
}
}
&__safeBuy {
justify-content: end;
display: flex;
align-items: center;
justify-content: center;
width: 11.69%;
@media (max-width: 1024px) {
width: 34.73%;
}
@media (min-width: 1025px) {
width: 15.5%;
}
@media (min-width: 2500px) {
width: 20%;
}
span {
align-items: center;
display: flex;
min-width: fit-content;
height: 50%;
text-transform: uppercase;
font-family: $font-family;
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 14px;
line-height: 16px;
color: $color-gray;
}
img{
width: 10.085%;
margin-right: 8px;
margin-left: 8px;
@media (min-width: 2500px) {
font-style: normal;
font-weight: 400;
font-size: 24px;
line-height: 33px;
}
}
i {
margin-right: 8px;
img {
width: 4.5%;
min-width: 12px;
@media (min-width: 2500px) {
width: 6.1%;
}
}
}
}

View File

@ -1 +1,97 @@
/* _prateleira.scss */
.title_slick {
font-family: $font-family-secundary;
font-style: normal;
font-weight: 400;
font-size: 24px;
line-height: 38px;
text-align: center;
margin: 20px 0;
}
footer .footerCheckout__prateleira {
.slick-list {
width: 100%;
&__itemList {
display: flex !important;
flex-direction: column;
list-style: none;
align-items: center;
justify-content: center;
width: 95.28% !important;
margin: 0;
@include mq(dt, max) {
width: 97% !important;
margin: 0 7.5px;
}
.img-container {
margin: 0;
background: #ededed;
}
.itemtName {
height: 36px;
font-family: $font-family-secundary;
font-style: normal;
font-weight: 400;
font-size: 13px;
line-height: 18px;
color: $black;
margin: 20px 0 !important;
}
.itemSku {
display: flex;
gap: 5px;
list-style: none;
margin-bottom: 20px;
p {
border-radius: 8px;
background: $blue;
color: $white;
padding: 5px;
}
}
.itemLink {
width: 100%;
border-radius: 8px;
background: $blue;
padding: 12px 0;
text-align: center;
color: $white;
cursor: pointer;
}
}
}
.slick-prev {
background: url("https://agenciamagma.vteximg.com.br/arquivos/arrow-left-mini-M3Academy.svg")
no-repeat center center;
z-index: 4;
top: 41%;
left: 14px;
border: none;
height: 30px;
@include mq(dt, min) {
left: 10px;
}
}
.slick-next {
background: url("https://agenciamagma.vteximg.com.br/arquivos/arrow-right-mini-M3Academy.svg")
no-repeat center center;
z-index: 4;
top: 41%;
right: 9px;
border: none;
height: 30px;
@include mq(dt, min) {
right: 20px;
}
}
}

View File

@ -1,39 +1,54 @@
/* fonts */
@import url("https://fonts.googleapis.com/css2?family=Tenor+Sans&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap");
$font-family: "Open Sans", sans-serif;
$font-family-secundary:"Tenor Sans", sans-serif;
$font-family-secundary: "Tenor Sans", sans-serif;
/* Colors */
$color-black: #292929;
$black: #000;
$white: #fff;
$color-white: #fff;
$gray-50: #e5e5e5;
$gray-25: #e0e0e0;
$gray-100: #f0f0f0;
$gray-125: #c4c4c4;
$gray-150: #989898;
$gray-200: #8d8d8d;
$gray-500: #292929;
$gray-600: #7d7d7d;
$gray-700: #bdbdbd;
$gray-800: #828282;
$gray-900: #58595b;
$blue: #00c8ff;
$orange: #f15a31;
$color-gray: #6c6c6c;
$color-gray2: #7d7d7d;
$color-gray3: #f0f0f0;
$color-gray4: #8d8d8d;
$color-gray5: #e5e5e5;
$color-blue-figma:#00C8FF;
$color-blue: #4267b2;
$color-green: #4caf50;
$color-green: #298541;
/* Grid breakpoints */
$grid-breakpoints: (
xs: 0,
cstm: 400,
sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px
xs: 0,
Gf: 328px,
cstm: 400,
sm: 576px,
md: 768px,
lg: 992px,
dt: 1025px,
xl: 1200px,
tv: 2500px,
) !default;
$z-index: (
level1: 5,
level2: 10,
level3: 15,
level4: 20,
level5: 25
level1: 5,
level2: 10,
level3: 15,
level4: 20,
level5: 25,
) !default;

View File

@ -30,8 +30,7 @@
<li>
<a href="https://agenciam3.com/">
<span>Developed By</span>
<img src="https://agenciamagma.vteximg.com.br/arquivos/logoM3M3Academy.png" alt="logoM3">
@TODO: m3 icon
<img src="https://agenciamagma.vteximg.com.br/arquivos/logoVTEXM3Academy.png" alt="">
</a>
</li>
</ul>

View File

@ -14,10 +14,6 @@
<div class="headerCheckout__safeBuy">
<img src="https://agenciamagma.vteximg.com.br/arquivos/cadeadoCompraSegM3Academy.png" alt="Cadeado"/>
<span>Compra segura</span>
<button type="submit"></button>
<button disabled="disabled"></button>
<button type="reset"></button>
<button onclick="voltarFrete()">Calcular</button>
</div>
</div>
</div>