develop #1

Merged
matheusbrollodauter merged 25 commits from develop into main 2022-12-19 02:35:49 +00:00
13 changed files with 10621 additions and 476 deletions

View File

@ -1,3 +1,4 @@
import { data } from "jquery";
import { waitElement } from "m3-utils"; import { waitElement } from "m3-utils";
export default class Footer { export default class Footer {
@ -7,13 +8,180 @@ export default class Footer {
async init() { async init() {
await this.selectors(); await this.selectors();
// this.onUpdate(); this.createPaymentsIcons();
this.createVtexpciIcon();
this.createDevIcons();
this.onUpdate();
this.events();
} }
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.checkoutVazio = await waitElement(".empty-cart-content"); this.checkoutVazio = await waitElement(".empty-cart-content");
this.cartTitulo = await waitElement("#cart-title");
this.titleSlick = await waitElement(".transactions-container");
this.list = await waitElement(".footerCheckout__prateleira", {
timeout: 5000,
interval: 1000,
});
this.payments = await waitElement(".footerCheckout__payments");
this.vtexpci = await waitElement(".footerCheckout__vtexpci");
this.devIncons = await waitElement(".footerCheckout__developedBy");
this.cartTitle = await waitElement("#cart-title");
}
fetchApiData() {
this.list.innerHTML = `
<h3>Você também pode gostar:</h3>
<ul class="ulProduct"></ul>
`;
fetch(
"https://m3academy.myvtex.com/api/catalog_system/pub/products/search/?fq=productClusterIds:319"
)
.then((response) => response.json())
.then((data) => {
//const list = document.querySelector(".footerCheckout__prateleira");
const ul = document.createElement("ul");
ul.classList.add("slick-test");
this.list.appendChild(ul);
data.map((item) => {
let colors = "";
for (let i = 0; i < item.items.length; i++) {
colors += `<p>${item.items[i].name}</p>`;
}
const li = document.createElement("li");
li.setAttribute("name", item.itemId);
li.classList.add("itemList");
li.innerHTML = `<img class="imgSlick" src="${item.items[0].images[0].imageUrl}">
<p class="nameSlick">${item.productName}</p>
<div class="skuSlick">
${colors}
</div>
<a class="linkSlick" type="button" href="${item.link}"><p>VER PRODUTO</p></a>`;
ul.appendChild(li);
this.list.classList.add("fetch");
ul.style.width = "100%";
});
})
.then(() => {
this.addCarrossel();
});
}
events() {
window.addEventListener("hashchange", () => {
if (window.location.hash == "#/cart" && this.checkoutVazio.style.display == "none") {
this.list.style.display = "block";
}
if (window.location.hash != "#/cart") {
this.list.style.display = "none";
}
});
addEventListener("resize", () => {
this.addCarrossel();
});
}
createPaymentsIcons() {
this.payments.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>
</div>
`;
}
createVtexpciIcon() {
this.vtexpci.innerHTML = `
<figure class="vtex-icon">
<img class="vtex-icon"
src="https://agenciamagma.vteximg.com.br/arquivos/vtexPCIM3Academy.png"
alt=""
/>
</figure>
`;
}
createDevIcons() {
this.devIncons.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>
`;
} }
onUpdate() { onUpdate() {
@ -21,20 +189,56 @@ export default class Footer {
// 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
let target = this.checkoutVazio; let target = this.checkoutVazio;
let lista = this.list;
let cartTitle = this.cartTitulo;
let slickTitle = this.titleSlick;
if (target.style.display == "none" && window.location.hash == "#/cart") {
lista.style.display = "block";
this.fetchApiData();
} else {
this.cartTitulo.style.display = "none";
lista.style.display = "none";
}
let config = { childList: true, attributes: true }; let config = { childList: true, attributes: true };
let observer = new MutationObserver((mutations) => { let observer = new MutationObserver((mutations) => {
if (!this.list.classList.contains("fetch")) {
this.fetchApiData();
}
mutations.forEach(function (mutation) { mutations.forEach(function (mutation) {
console.log(mutation.type); if (target.style.display != "none") {
lista.style.display = "none";
cartTitle.style.display = "none";
} else {
cartTitle.style.display = "block";
lista.style.display = "block";
}
}); });
}); });
observer.observe(target, config); observer.observe(target, config);
} }
async addCarrossel() { async addCarrossel() {
const elemento = await waitElement("#my-element"); const elemento = await waitElement(".slick-test");
$(elemento).slick({ if ($(elemento).hasClass("slick-initialized")) {
slidesToShow: 4, $(elemento).slick("unslick");
slidesToScroll: 1, }
}); if (window.innerWidth > 1024) {
$(elemento).not(".slick-initialized").slick({
slidesToShow: 4,
slidesToScroll: 1,
});
} else if (window.innerWidth > 375) {
$(elemento).not(".slick-initialized").slick({
slidesToShow: 3,
slidesToScroll: 1,
});
} else if (window.innerWidth <= 375) {
$(elemento).not(".slick-initialized").slick({
slidesToShow: 2,
slidesToScroll: 1,
});
}
} }
} }

View File

@ -1,4 +1,3 @@
// import waitForEl from "../helpers/waitForEl";
import { waitElement } from "m3-utils"; import { waitElement } from "m3-utils";
export default class Header { export default class Header {
@ -8,14 +7,227 @@ export default class Header {
async init() { async init() {
await this.selectors(); await this.selectors();
console.log(this.item); this.progressBarHTML();
await this.progressBarProgress();
} }
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
}); progressBarHTML() {
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.innerHTML <= 1024) {
this.progressBar.innerHTML = ``;
}
}
async progressBarProgress() {
if (this.progressBar && window.innerWidth > 1024) {
const progressBarLista = document.querySelectorAll("#progressBar ul li");
progressBarLista.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 === "http://m3academy.myvtex.com/checkout/#/email" ||
window.location.href == "http://m3academy.myvtex.com/checkout/#/profile" ||
window.location.href === "http://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-3"
].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 === "http://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-3"
].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-3"
].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.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-3"
].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

@ -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,289 +1,414 @@
.checkout-container { .checkout-container {
.client-pre-email { .client-pre-email {
border-color: $color-gray4; border-color: $black;
font-family: $font-family; font-family: $font-family;
padding-top: 8px; padding-top: 8px;
.link-cart { .link-cart {
a { a {
color: $color-black; font-family: $font-family-secundary;
font-size: 14px; font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 16px;
text-transform: uppercase;
&:hover { color: $black;
color: lighen($color-black, 10);
}
}
}
.pre-email { &:hover {
flex-direction: column; color: $black;
display: flex; text-decoration: none;
align-items: center; }
justify-content: center; }
}
h3 { .pre-email {
margin-bottom: 16px; flex-direction: column;
display: flex;
align-items: center;
justify-content: center;
span { h3 {
color: #303030; margin-bottom: 16px;
font-size: 24px;
}
small { span {
color: $color-gray4; font-family: $font-family-secundary;
} font-style: normal;
} font-weight: 400;
} font-size: 20px;
line-height: 23px;
text-align: center;
text-transform: uppercase;
.client-email { color: $black;
margin: 0 0 16px; }
input { small {
box-shadow: none; font-family: $font-family-secundary;
color: $color-black; font-style: normal;
font-family: $font-family; font-weight: 400;
padding: 0 16px; font-size: 20px;
border: 2px solid $color-gray3; line-height: 23px;
box-sizing: border-box; text-align: center;
border-radius: 5px; text-transform: uppercase;
@media (max-width: 490px) { color: $black;
width: auto; }
} }
} }
button { .client-email {
background-color: $color-black; margin: 0 0 16px;
border-radius: 5px;
border: none;
font-family: $font-family;
height: 54px;
right: 0;
top: 0;
@media (max-width: 490px) { input {
height: 48px; width: 80%;
margin: 0; height: 50px;
position: absolute; box-shadow: none;
} color: $color-black;
} font-family: $font-family;
padding: 0 16px;
border: 1px solid $black;
border-radius: 5px 0px 0px 5px;
box-sizing: border-box;
span.help.error { font-family: "Open Sans";
color: red; font-style: normal;
} font-weight: 400;
} font-size: 12px;
line-height: 16px;
.emailInfo { @media (max-width: 490px) {
padding: 16px; width: auto;
background-color: $color-white; }
border: 1px solid $color-gray4; }
border-radius: 0;
h3 { button {
color: #303030; background: $blue;
margin: 0 0 8px 0; border-radius: 0px 8px 8px 0px;
} border: none;
font-family: $font-family;
color: $black;
height: 50px;
right: 64px;
top: 0;
ul { @media (max-width: 490px) {
margin: 0; height: 48px;
margin: 0;
position: absolute;
}
}
li { span.help.error {
span { font-family: "Open Sans";
color: $color-black; font-style: normal;
} font-weight: 700;
font-size: 12px;
line-height: 16px;
color: red;
}
}
i::before { .emailInfo {
color: $color-black; padding-bottom: 23px;
font-size: 1rem; background-color: $color-white;
opacity: 1; border: 1px solid $black;
} border-radius: 5px;
}
}
i::before { h3 {
color: $color-black; font-family: "Open Sans";
font-size: 6rem; font-style: normal;
opacity: 0.5; font-weight: 700;
} font-size: 12px;
} line-height: 16px;
} }
.shipping-data, ul {
.payment-data, margin: 0;
.client-profile-data {
.accordion-group {
border-radius: 0;
border: 1px solid $color-gray4;
font-family: $font-family;
padding: 16px;
.accordion-heading { li {
span { span {
color: #303030; color: $black;
margin-bottom: 8px;
padding: 0;
i::before { font-family: "Open Sans";
fill: #303030; font-style: normal;
} font-weight: 700;
} font-size: 12px;
line-height: 16px;
}
a { i::before {
align-items: center; color: $blue;
background-color: #303030; font-size: 1rem;
border-radius: 8px; opacity: 1;
border: none; }
color: $color-white; }
display: flex; }
justify-content: center;
padding: 6px 5px 6px 8px;
}
}
.accordion-inner { i::before {
padding: 0; color: $color-black;
font-size: 6rem;
opacity: 0.5;
padding-right: 5px;
}
}
}
/* General configurations */ .shipping-data,
.payment-data,
.client-profile-data {
.accordion-group {
position: relative;
border-radius: 8px;
border: 1px solid $gray-100;
font-family: $font-family;
padding: 16px;
.client-notice { .accordion-heading {
color: $color-black; span {
} margin: 4px 0 26px 0;
padding: 0;
p { font-family: 'Tenor Sans';
label { font-style: normal;
color: $color-black; font-weight: 400;
font-weight: 500; font-size: 16px;
} line-height: 19px;
color: $black;
select, i::before {
input { background-image: url(https://agenciamagma.vteximg.com.br/arquivos/lapisM3Academy.png);
border-radius: 0; background-size: 19.2px 18px;
border: 1px solid $color-gray4; width: 19.2px;
box-shadow: none; height: 18px;
} right: 5px;
cursor: pointer;
.help.error { position: absolute;
color: red;
}
}
.box-client-info-pj { fill: transparent;
.link a#is-corporate-client, color: transparent;
.link a#not-corporate-client { }
color: $color-black;
font-weight: 500;
text-decoration: underline;
}
}
.state-inscription-box span { span[data-i18n="clientProfileData.identification"] {
font-weight: 500; color: $white;
} }
button.submit { span[data-i18n="clientProfileData.identification"]::before {
border: none; content: "Identificação";
border-radius: 5px; color: $black;
background: $color-black; font-family: "Tenor Sans";
margin-top: 8px; font-style: normal;
outline: none; font-weight: 400;
transition: all 0.2s linear; font-size: 16px;
line-height: 19px;
}
}
&:hover { a {
background: lighten($color-black, 5); align-items: center;
} background-color: #303030;
border-radius: 8px;
border: none;
color: $color-white;
display: flex;
justify-content: center;
padding: 6px 5px 6px 8px;
}
}
&:active { .accordion-inner {
background: darken($color-black, 5); padding: 0;
}
}
/* Shipping configurations */ /* General configurations */
.ship-postalCode small a { .client-notice {
color: #303030; color: $color-black;
font-weight: 500; display: none;
text-decoration: underline; }
}
.vtex-omnishipping-1-x-deliveryGroup { p {
p { label {
color: #303030; font-weight: 500;
font-size: 14px; font-family: "Open Sans";
font-weight: 500; font-style: normal;
} font-weight: 400;
font-size: 14px;
line-height: 19px;
color: $color-gray2;
}
.shp-lean { select,
border: 1px solid $color-gray4; input {
border-radius: 0; border: 1px solid $color-gray6;
border-radius: 3px;
box-shadow: none;
padding: 9px;
}
label { .help.error {
background-color: $color-white; color: red;
box-shadow: none; }
color: #303030; }
padding: 8px 12px;
svg path { .box-client-info-pj {
fill: #d8c8ac; display: none;
} .link a#is-corporate-client,
} .link a#not-corporate-client {
} color: $color-black;
} font-weight: 500;
text-decoration: underline;
display: none;
}
}
.delivery-address-title { .state-inscription-box span {
color: #303030; font-weight: 500;
font-size: 14px; }
font-weight: 500;
}
.shp-summary-group-info { button.submit {
border-color: $color-gray4; border: none;
} border-radius: 8px;
background: $blue;
margin-top: 56px;
outline: none;
width: 100%;
transition: all 0.2s linear;
.address-summary { font-family: "Open Sans";
background: none; font-style: normal;
border-color: $color-gray4; font-weight: 700;
border-radius: 0; font-size: 14px;
color: #303030; line-height: 19px;
padding: 12px; letter-spacing: 0.05em;
text-transform: uppercase;
@include mq(md, max) { &:hover {
background-position: 8px 9px; background: lighten($color-black, 5);
} }
a { &:active {
color: #303030; background: darken($color-black, 5);
font-weight: 500; }
text-decoration: underline; }
}
}
.shp-summary-group-price, /* Shipping configurations */
.shp-summary-package {
color: $color-gray4;
}
.shp-summary-group-price { .ship-postalCode small a {
padding-right: 16px; color: #303030;
} font-weight: 500;
text-decoration: underline;
}
.shp-summary-package { .vtex-omnishipping-1-x-deliveryGroup {
padding-left: 16px; p {
} color: #303030;
font-size: 14px;
font-weight: 500;
}
.vtex-omnishipping-1-x-summaryChange { .shp-lean {
border-color: #303030; border: 1px solid $color-gray3;
color: #303030; border-radius: 0;
}
.vtex-omnishipping-1-x-deliveryChannelsToggle { label {
background-color: #d8c8ac; background-color: $color-white;
border: 1px solid #d8c8ac; box-shadow: none;
} color: #303030;
padding: 8px 12px;
.vtex-omnishipping-1-x-deliveryOptionActive { svg path {
text-shadow: 1.3px 1px lighten($color-black, 50); fill: #d8c8ac;
} }
} }
} }
} }
.delivery-address-title {
color: #303030;
font-size: 14px;
font-weight: 500;
}
.shp-summary-group-info {
border-color: $color-gray3;
}
.address-summary {
background: none;
border-color: $color-gray3;
border-radius: 0;
color: #303030;
padding: 12px;
@include mq(md, max) {
background-position: 8px 9px;
}
a {
color: #303030;
font-weight: 500;
text-decoration: underline;
}
}
.shp-summary-group-price,
.shp-summary-package {
color: $gray-500;
}
.shp-summary-group-price {
padding-right: 16px;
}
.shp-summary-package {
padding-left: 16px;
}
.vtex-omnishipping-1-x-summaryChange {
border-color: #303030;
color: #303030;
}
.vtex-omnishipping-1-x-deliveryChannelsToggle {
background-color: $white;
border: 1px solid $gray-500;
}
.vtex-omnishipping-1-x-deliveryOptionActive {
text-shadow: none;
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: $gray-500;
text-transform: uppercase;
}
.vtex-omnishipping-1-x-deliveryOptionInactive {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: $gray-125;
text-transform: uppercase;
}
.vtex-omnishipping-1-x-addressFormPart1 {
p.ship-country {
display: none;
}
input {
width: 94%;
max-width: 94%;
}
}
}
}
}
} }

View File

@ -5,7 +5,16 @@
} }
.cart-template { .cart-template {
font-family: $font-family; font-family: $font-family-secundary;
.cart-template-holder {
margin-bottom: 48px;
}
.empty-cart-message {
display: none;
}
@include mq(md, max) { @include mq(md, max) {
padding: 0 0; padding: 0 0;
} }
@ -13,10 +22,7 @@
display: none; display: none;
} }
.cart { .cart {
border: 3px solid $color-gray3; padding: 0 0 19px 0;
box-sizing: border-box;
border-radius: 5px;
padding: 16px;
@include mq(md, max) { @include mq(md, max) {
margin: 0px 0 25px 0; margin: 0px 0 25px 0;
@ -30,13 +36,21 @@
} }
.cart-fixed { .cart-fixed {
font-family: $font-family; font-family: $font-family;
border: 1px solid $color-gray5;
width: 100%; width: 100%;
h2 { h2 {
background: $color-white; background: $white;
border: none; border: none;
font-family: 'Tenor Sans';
font-style: normal;
font-weight: 400;
font-size: 16px;
line-height: 19px;
color: #303030; color: #303030;
font-size: 14px;
font-weight: 500; padding: 7px 0 34px 0px;
text-align: left;
} }
.item-unavailable { .item-unavailable {
@ -48,7 +62,6 @@
} }
.cart { .cart {
border: 1px solid $color-gray4;
ul li { ul li {
border-top: none; border-top: none;
@ -63,6 +76,9 @@
.shipping-date, .shipping-date,
.price { .price {
font-weight: 400;
font-size: 14px;
line-height: 16px;
color: #7d7d7d; color: #7d7d7d;
} }
} }
@ -70,7 +86,7 @@
.summary-template-holder { .summary-template-holder {
border-top: none; border-top: none;
background: $color-white; background: $white;
} }
#go-to-cart-button a { #go-to-cart-button a {
@ -85,24 +101,17 @@
} }
#payment-data-submit { #payment-data-submit {
background: $color-black; background: $black;
border: none; border: none;
border-radius: 0; border-radius: 0;
color: $color-white; color: $white;
outline: none; outline: none;
transition: all 0.2s linear; transition: all 0.2s linear;
&:hover {
background: lighten($color-black, 5);
}
&:active {
background: darken($color-black, 5);
}
} }
} }
.lookatme { .lookatme {
background-color: $color-white; background-color: $white;
} }
.cart-items { .cart-items {
@ -111,10 +120,11 @@
} }
th { th {
color: $color-black; // text-align: initial;
color: $black;
padding: 0 0 16px; padding: 0 0 16px;
font-style: normal; font-style: normal;
font-weight: bold; font-weight: 400;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 16px;
@ -149,24 +159,26 @@
.product-name { .product-name {
padding-right: 0; padding-right: 0;
font-family: 'Tenor Sans';
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 14px;
color: $black;
@include mq(lg, max) { @include mq(lg, max) {
width: 250px; width: 250px;
} }
a { a {
color: $color-blue; color: $black;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
transition: ease-in 0.22s all; transition: ease-in 0.22s all;
&:hover {
color: darken($color-blue, 10);
text-decoration: none;
}
@media (max-width: 490px) { @media (max-width: 490px) {
margin-left: 23px; margin-left: 23px;
} }
@ -176,10 +188,14 @@
.seller { .seller {
display: none !important; display: none !important;
} }
span[data-bind="text: quantityLabel"] {
display: none;
}
} }
td.shipping-date { td.shipping-date {
color: $color-gray2; color: $gray-150;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
@ -200,7 +216,7 @@
} }
span.list-price { span.list-price {
color: $color-gray2; color: $gray-150;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
text-decoration-line: line-through; text-decoration-line: line-through;
@ -218,7 +234,7 @@
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;
@ -233,8 +249,8 @@
} }
input { input {
background-color: $color-white; background-color: $white;
border: 1px solid $color-gray3; border: 1px solid $white;
border-radius: 0; border-radius: 0;
border-width: 0 1px; border-width: 0 1px;
display: block; display: block;
@ -242,7 +258,7 @@
margin: 0 !important; margin: 0 !important;
padding: 8px 0; padding: 8px 0;
width: 38px; width: 38px;
color: $color-gray2; color: $black;
box-shadow: none; box-shadow: none;
@include mq(lg, max) { @include mq(lg, max) {
@ -253,7 +269,7 @@
.icon-plus-sign, .icon-plus-sign,
.icon-minus-sign { .icon-minus-sign {
&::before { &::before {
color: $color-black; color: $black;
display: block; display: block;
font-weight: 500; font-weight: 500;
padding: 1px 12px; padding: 1px 12px;
@ -262,14 +278,14 @@
.icon-minus-sign { .icon-minus-sign {
&:before { &:before {
content: "-"; color: $blue;
font-size: 16px; font-size: 16px;
} }
} }
.icon-plus-sign { .icon-plus-sign {
&:before { &:before {
content: "+"; color: $blue;
font-size: 14px; font-size: 14px;
} }
} }
@ -297,10 +313,10 @@
} }
span { span {
font-style: normal; font-style: normal;
font-weight: normal; font-weight: 700;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 16px;
color: $color-black; color: $gray-500;
} }
} }
@ -315,7 +331,7 @@
top: 0; top: 0;
} }
.icon::before { .icon::before {
color: $color-gray4; color: $gray-200;
font-size: 15px; font-size: 15px;
@include mq(md, max) { @include mq(md, max) {
@ -326,7 +342,7 @@
.item-unavailable-message { .item-unavailable-message {
background-color: #d8c8ac; background-color: #d8c8ac;
color: $color-white; color: $white;
.icon-warning-sign { .icon-warning-sign {
color: #bb4f4f; color: #bb4f4f;
@ -351,12 +367,13 @@
} }
.srp-main-title { .srp-main-title {
margin: 32px 0 12px; margin: 0 0 11px 0;
font-family: "Open Sans";
font-style: normal; font-style: normal;
font-weight: normal; font-weight: 400;
font-size: 24px; font-size: 24px;
line-height: 28px; line-height: 33px;
color: $color-gray2; color: $black;
@include mq(md, max) { @include mq(md, max) {
margin-top: 0; margin-top: 0;
@ -364,32 +381,26 @@
} }
.srp-description { .srp-description {
color: $color-gray2; color: $gray-150;
font-family: "Open Sans";
font-size: 12px; font-size: 12px;
line-height: 18px; line-height: 18px;
margin: 0 0 12px; margin: 0 0 12px;
} }
button.shp-open-options { button.shp-open-options {
background-color: $color-gray5; background-color: $gray-50;
border: none; border: none;
border-radius: 5px; border-radius: 5px;
color: $color-gray2; color: $black;
font-size: 16px; font-size: 16px;
letter-spacing: 0.05em; letter-spacing: 0.05em;
font-family: "Open Sans";
line-height: 19px; line-height: 19px;
font-weight: 500; font-weight: 500;
outline: none; outline: none;
padding: 12px 40px; padding: 12px 40px;
transition: all 0.2s linear; transition: all 0.2s linear;
&:hover {
background-color: lighten($color-gray5, 5);
}
&:active {
background-color: darken($color-gray5, 5);
}
} }
} }
@ -405,34 +416,28 @@
} }
.srp-pickup-my-location__button { .srp-pickup-my-location__button {
background-color: $color-black; background-color: $blue;
border: none; border: none;
border-radius: 5px; border-radius: 8px;
color: $color-white; color: $white;
outline: none; outline: none;
width: 100%; width: 100%;
font-family: 'Open Sans';
font-style: normal; font-style: normal;
font-weight: 500; font-weight: 700;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 19px;
letter-spacing: 0.05em;
&:hover { padding: 11px 0;
background-color: lighten($color-black, 5);
}
&:active {
background-color: darken($color-black, 5);
}
} }
} }
.srp-toggle { .srp-toggle {
margin: 0 0 34px; margin: 0 0 20px;
&__wrapper { &__wrapper {
background-color: $color-white; background-color: $white;
border-radius: 100px; border-radius: 100px;
width: 100%; width: 100%;
font-family: $font-family; font-family: $font-family;
@ -444,12 +449,12 @@
} }
&__current { &__current {
border: 1px solid $color-blue; border: 1px solid $black;
border-radius: 100px; border-radius: 100px;
} }
.blue { .blue {
color: $color-blue; color: $black;
} }
label { label {
@ -469,12 +474,13 @@
font-weight: normal; font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
color: $color-black; color: $black;
margin-bottom: 12px; margin-top: 12px;
margin-bottom: 2px !important;
} }
input { input {
border: 1px solid $color-gray3; border: 1px solid $gray-125;
border-radius: 5px; border-radius: 5px;
box-shadow: none; box-shadow: none;
color: $color-gray3; color: $color-gray3;
@ -485,38 +491,38 @@
} }
& ~ button { & ~ button {
background-color: $color-black; font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 14px;
line-height: 19px;
text-shadow: none;
background-color: $blue;
border: none; border: none;
border-radius: 5px; border-radius: 8px;
color: $color-white; color: $white;
font-size: 12px; font-size: 12px;
height: 36px; height: 36px;
letter-spacing: 1px; letter-spacing: 1px;
outline: none; outline: none;
position: absolute; position: absolute;
right: -150px; right: -150px;
top: 36px; top: 88px;
transition: all 0.2s linear; transition: all 0.2s linear;
width: 96px; width: 100px;
text-transform: uppercase; text-transform: uppercase;
&:hover {
background-color: lighten($color-black, 5);
}
&:active {
background-color: darken($color-black, 5);
}
} }
small a { small a {
font-family: $font-family; font-family: $font-family-secundary;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: 400;
font-size: 10px; font-size: 10px;
line-height: 12px; line-height: 12px;
color: $color-blue; color: $black;
margin-top: 7px; margin-top: 7px;
text-decoration-line: underline;
} }
span.help.error { span.help.error {
@ -525,7 +531,7 @@
position: absolute; position: absolute;
left: 0; left: 0;
width: 100%; width: 100%;
top: 17px; top: 44px;
} }
} }
} }
@ -542,14 +548,10 @@
color: #303030; color: #303030;
font-size: 16px; font-size: 16px;
font-weight: 500; font-weight: 500;
&:hover {
text-decoration: underline;
}
} }
.srp-shipping-current-single { .srp-shipping-current-single {
border: 1px solid $color-gray4; border: 1px solid $gray-200;
border-radius: 0; border-radius: 0;
color: #303030; color: #303030;
margin: 16px 0 0; margin: 16px 0 0;
@ -561,11 +563,11 @@
} }
.srp-delivery-select { .srp-delivery-select {
border: 1px solid $color-gray4; border: 1px solid $gray-200;
} }
.srp-delivery-select-container { .srp-delivery-select-container {
border: 1px solid $color-gray4; border: 1px solid $gray-200;
border-radius: 0; border-radius: 0;
.srp-shipping-current-many { .srp-shipping-current-many {
@ -583,7 +585,7 @@
} }
&__arrow svg { &__arrow svg {
fill: $color-gray4; fill: $gray-200;
} }
} }
} }
@ -597,18 +599,14 @@
.coupon-data { .coupon-data {
#cart-link-coupon-add { #cart-link-coupon-add {
text-decoration: none; text-decoration: none;
&:hover {
text-decoration: underline;
cursor: pointer;
}
} }
span { span {
font-family: $font-family; font-family: $font-family-secundary;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: 400;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
color: $color-blue; color: $black;
text-decoration: none; text-decoration: none;
} }
} }
@ -630,19 +628,23 @@
} }
.coupon-label label { .coupon-label label {
margin-bottom: 12px; text-align: left;
font-family: $font-family; font-family: "Tenor Sans";
font-style: normal; font-style: normal;
font-weight: normal; font-weight: 400;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
color: $color-gray2;
cursor: none; color: $gray-150;
cursor: default;
} }
.coupon-fields { .coupon-fields {
margin-bottom: 32px; margin-bottom: 32px;
text-align: left;
@include mq(sm, max) { @include mq(sm, max) {
span { span {
display: flex; display: flex;
@ -660,43 +662,47 @@
border: 2px solid $color-gray3; border: 2px solid $color-gray3;
border-radius: 5px; border-radius: 5px;
box-shadow: none; box-shadow: none;
color: $color-gray4; color: $gray-200;
font-size: 12px; font-size: 12px;
height: 34px; height: 34px;
padding: 0 12px; padding: 0 12px;
max-width: 160px; width: 204.32px;
@include mq(sm, max) { @include mq(sm, max) {
max-width: 100%; max-width: 100%;
width: 100%; width: 100%;
} }
&::placeholder {
font-family: "Tenor Sans";
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 14px;
text-align: left;
color: $gray-125;
}
} }
button { button {
background: $color-black; background: $blue;
border: none; border: none;
border-radius: 5px; border-radius: 5px;
color: $color-white; color: $black;
font-size: 12px; font-size: 12px;
height: 36px; height: 36px;
letter-spacing: 1px; letter-spacing: 1px;
margin-left: 6px; margin-left: 6px;
outline: none; outline: none;
transition: all 0.2s linear; transition: all 0.2s linear;
width: 94px; width: 102px;
text-transform: uppercase; text-transform: uppercase;
text-shadow: none;
@include mq(md, max) { @include mq(md, max) {
width: 138px; width: 138px;
} }
&:hover {
background-color: lighten($color-black, 5);
}
&:active {
background-color: darken($color-black, 5);
}
} }
} }
} }
@ -716,7 +722,7 @@
font-weight: normal; font-weight: normal;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 16px;
color: $color-black; color: $gray-500;
padding: 12px 0; padding: 12px 0;
} }
@ -733,11 +739,12 @@
tfoot { tfoot {
td.info, td.info,
td.monetary { td.monetary {
font-family: $font-family;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: 700;
font-size: 18px; font-size: 18px;
line-height: 21px; line-height: 25px;
color: $color-black; color: $gray-500;
} }
} }
} }
@ -771,39 +778,36 @@
} }
a { a {
font-family: $font-family; font-family: $font-family-secundary;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: 400;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
color: $color-blue; color: $black;
} }
} }
.btn-place-order-wrapper { .btn-place-order-wrapper {
a { a {
background: $color-green; background: $blue;
border: none; border: none;
border-radius: 5px; border-radius: 5px;
display: block; display: block;
font-size: 0; font-size: 0;
transition: ease-in 0.22s all; transition: ease-in 0.22s all;
padding: 12px 19px; padding: 12px 19px;
cursor: pointer;
&:hover {
background-color: darken($color-green, 5);
}
&:after { &:after {
content: "finalizar compra"; content: "finalizar compra";
font-family: $font-family; font-family: $font-family;
font-weight: 500; font-weight: 700;
font-size: 13px; font-size: 14px;
line-height: 19px;
letter-spacing: 0.05em; letter-spacing: 0.05em;
color: $color-white; color: $black;
text-transform: uppercase; text-transform: uppercase;
vertical-align: middle; vertical-align: middle;
line-height: 19px;
text-shadow: none; text-shadow: none;
} }
} }

View File

@ -1,38 +1,62 @@
.empty-cart { .empty-cart {
font-family: $font-family; font-family: $font-family;
&-content { &-content {
color: $color-black; color: $white;
text-align: center; text-align: center;
margin-top: 170px;
@include mq(md, max) { @include mq(md, max) {
padding: 0 16px; padding: 0 16px;
} }
} }
&-title { &-title {
font-size: 20px; font-family: $font-family;
} font-style: normal;
font-weight: 700;
font-size: 24px;
line-height: 33px;
text-align: center;
text-transform: uppercase;
margin: 0;
&-links { color: $black;
.link-choose-products { }
background: $color-black;
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;
text-align: center;
letter-spacing: 0.05em;
color: $color-white;
text-transform: uppercase;
&:hover { &-links {
background: lighten($color-black, 5); a {
} 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;
}
a::after {
content: "Continuar comprando";
color: $black;
position: absolute;
left: 0;
right: 0;
}
.link-choose-products {
width: 327px;
background: $white;
border: 1px solid $black;
border-radius: 0px;
padding: 15px 0;
transition: ease-in 0.22s all;
outline: none;
&:hover {
background: $white;
}
}
}
} }

View File

@ -8,8 +8,12 @@ html {
min-height: 100%; min-height: 100%;
} }
footer {
margin-top: auto;
}
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,
@ -66,14 +70,28 @@ body {
color: $color-black !important; color: $color-black !important;
} }
#cart-title {
font-family: $font-family;
font-style: normal;
font-weight: 700;
font-size: 24px;
line-height: 33px;
letter-spacing: 0.05em;
text-transform: uppercase;
color: $black;
}
#cart-title, #cart-title,
#orderform-title { #orderform-title {
color: $color-gray2; color: $black;
font-family: $font-family; font-family: $font-family;
font-weight: 500; font-style: normal;
font-size: 36px; font-weight: 700;
line-height: 42px; font-size: 24px;
margin: 40px 0 30px; line-height: 33px;
margin: 17px 0 28px;
letter-spacing: 0.1em; letter-spacing: 0.1em;
text-transform: uppercase; text-transform: uppercase;
@ -96,7 +114,7 @@ body {
&::before, &::before,
&::after { &::after {
content: ""; content: "";
background: $color-gray2; background: $gray-500;
display: block; display: block;
float: right; float: right;
height: 2px; height: 2px;

View File

@ -62,6 +62,7 @@
} }
} }
.slick-slide { .slick-slide {
margin: 0 8px 0 8px;
float: left; float: left;
height: 100%; height: 100%;
min-height: 1px; min-height: 1px;
@ -104,11 +105,19 @@
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; z-index: 4;
left: 10px; left: 22px;
top: 40%;
border: none;
height: 30px;
} }
.slick-next { .slick-next {
background: url("https://agenciamagma.vteximg.com.br/arquivos/arrow-right-mini-M3Academy.svg")
no-repeat center center;
z-index: 4; z-index: 4;
right: 10px; right: 20px;
top: 40%;
border: none;
height: 30px;
} }
.slick-arrow.slick-hidden { .slick-arrow.slick-hidden {
display: none; display: none;

View File

@ -1,47 +1,130 @@
/* _footer.scss */ /* _footer.scss */
.footerCheckout { .footerCheckout {
border-top: none; .container {
color: $color-gray2; display: flex;
flex-direction: column;
width: 100%;
padding: 7px 0;
margin: 0;
@include mq(dt, min) {
flex-direction: row;
align-items: center;
justify-content: space-between;
padding: 15px 0 15px 0;
}
@include mq(tv, min) {
padding: 26px 0 26px 0;
}
}
&__wrapper { &__wrapper {
align-items: center; border-top: 1px solid $black;
display: flex;
justify-content: space-between; @media screen and (max-width: 490px) {
padding: 7px 0;
}
} }
&__address { &__address {
color: $color-gray2; color: $gray-500;
font-family: $font-family; font-family: $font-family;
font-style: normal; font-weight: 400;
font-weight: normal; line-height: 14px;
font-size: 10px; font-size: 10px;
line-height: 12px;
text-transform: capitalize; text-transform: capitalize;
max-width: 40%;
@include mq(md, max) { @include mq(dt, max) {
margin-bottom: 24px; display: flex;
max-width: 100%; width: 100%;
order: 2;
margin-top: 17px;
span {
margin-left: 16px;
}
}
@include mq(dt, min) {
min-width: 269px;
margin-left: 32px;
}
@include mq(tv, min) {
font-size: 20px;
line-height: 27px;
min-width: 537px;
margin-left: 0;
} }
} }
&__stamps { &__stamps {
align-items: center;
display: flex; display: flex;
justify-self: center; height: 33px;
align-items: center;
list-style: none; list-style: none;
margin: 0 0 0 5px;
@include mq(md, max) { li {
align-self: center; height: 33px;
margin-bottom: 12px;
} }
&__divider { @include mq(dt, min) {
background-color: $color-gray4; justify-content: center;
display: inline-block; min-width: 404px;
height: 24px; margin: 0;
margin: 0 8px; }
width: 1px;
@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;
}
}
} }
} }
@ -51,18 +134,43 @@
list-style-type: none; list-style-type: none;
margin: 0; margin: 0;
li:last-child { @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; margin-left: 16px;
figure {
margin: 0;
}
}
.vtex-icon {
width: 44.92px;
margin: 0;
}
.m3-icon {
width: 28.66px;
margin: 0;
} }
a { a {
align-items: center; align-items: center;
color: $color-gray2; color: $gray-500;
display: flex; display: flex;
font-family: $font-family; font-family: $font-family;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: 400;
font-size: 10px; font-size: 9px;
line-height: 12px; line-height: 12px;
text-decoration: none; text-decoration: none;
@ -70,5 +178,38 @@
margin-right: 8px; 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,17 +1,31 @@
/* _header.scss */ /* _header.scss */
.headerCheckout { .headerCheckout {
width: 100%;
border-bottom: 1px solid black;
.container { .container {
width: auto !important; width: auto !important;
} }
.headerCheckout__safeBuy {
display: flex;
}
.headerCheckout__wrapper {
margin-top: 20px;
margin-bottom: 22px;
}
&__wrapper { &__wrapper {
align-items: center; align-items: center;
display: flex; display: flex;
justify-content: space-between; justify-content: space-evenly;
margin-top: 30px;
} }
&__logo { &__logo {
img { img {
height: 52px; height: 37.14px;
width: auto; width: auto;
} }
} }
@ -29,8 +43,104 @@
color: $color-gray; color: $color-gray;
} }
img {
height: 15px;
margin-right: 8px;
}
i { i {
margin-right: 8px; margin-right: 8px;
} }
span {
transform: translateY(1px);
}
}
#progressBar {
width: 446px;
ul {
list-style-type: none;
display: flex;
align-items: center;
justify-content: space-between;
margin: 0 !important;
}
li .containerLi {
width: 100%;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
position: relative;
}
li.central .containerLi {
align-items: center;
margin-left: 7px;
}
li:last-child .containerLi {
align-items: flex-end;
}
li .containerLi div {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
li {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-family: $font-family-secundary, sans-serif;
font-size: 12px;
font-weight: 400;
line-height: 28px;
color: #000;
width: 39.9183%;
@media (min-width: 2500px) {
font-size: 24px;
}
}
li.central {
width: auto;
}
li #progress-bar-circle-1,
li #progress-bar-circle-2,
li #progress-bar-circle-3 {
width: 12px;
height: 12px;
border: 1px solid $black;
border-radius: 50%;
@media (min-width: 2500px) {
width: 24px;
height: 24px;
}
}
li #progress-bar-circle-1.active,
li #progress-bar-circle-2.active,
li #progress-bar-circle-3.active {
border: none;
background-color: $black;
}
li .progress-bar-line-1 {
display: flex;
position: absolute;
left: 25%;
transform: translateY(-50%);
bottom: 5px;
width: 100%;
height: 1px;
border-top: 1px solid $black;
}
li .progress-bar-line-2 {
position: absolute;
right: 21%;
transform: translateY(-50%);
bottom: 5px;
width: 100%;
height: 1px;
border-top: 1px solid $black;
}
} }
} }

View File

@ -1 +1,85 @@
/* _prateleira.scss */ /* _prateleira.scss */
.footerCheckout__prateleira {
padding-bottom: 56px;
ul {
margin: 0;
}
h3 {
font-family: $font-family-secundary;
font-style: normal;
font-weight: 400;
font-size: 24px;
line-height: 38px;
color: $black;
text-align: center;
}
.imgSlick {
background: $gray-600;
}
.nameSlick {
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 13px;
line-height: 18px;
color: $black;
text-align: center;
margin: 20px 0 20px 0;
}
.skuSlick {
display: flex;
align-items: center;
text-align: center;
justify-content: center;
gap: 5px;
p {
font-family: $font-family;
font-style: normal;
font-weight: 700;
font-size: 13px;
line-height: 18px;
letter-spacing: 0.05em;
text-transform: uppercase;
padding: 5px;
color: $white;
background: $blue;
border-radius: 8px;
}
}
a:hover {
text-decoration: none;
}
.linkSlick {
display: flex;
align-items: center;
text-align: center;
justify-content: center;
p {
font-family: $font-family;
font-style: normal;
font-weight: 700;
font-size: 13px;
line-height: 18px;
letter-spacing: 0.05em;
text-transform: uppercase;
padding: 12px 0;
width: 100%;
color: $white;
background: $blue;
border-radius: 8px;
}
}
}

View File

@ -2,18 +2,32 @@
@import url("https://fonts.googleapis.com/css2?family=Tenor+Sans&display=swap"); @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"); @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: "Open Sans", sans-serif;
$font-family-secundary:"Tenor Sans", sans-serif; $font-family-secundary: "Tenor Sans", sans-serif;
/* Colors */ /* Colors */
$black: #000;
$white: #FFFFFF;
$color-black: #292929; $color-black: #292929;
$color-white: #fff; $color-white: #fff;
$gray-50: #e5e5e5;
$gray-100: #f0f0f0;
$gray-125: #c4c4c4;
$gray-150: #989898;
$gray-200: #8d8d8d;
$gray-500: #292929;
$gray-600: #ededed;
$color-gray: #6c6c6c; $color-gray: #6c6c6c;
$color-gray2: #7d7d7d; $color-gray2: #7d7d7d;
$color-gray3: #f0f0f0; $color-gray3: #f0f0f0;
$color-gray4: #8d8d8d; $color-gray4: #8d8d8d;
$color-gray5: #e5e5e5; $color-gray5: #e5e5e5;
$color-gray6: #828282;
$blue: #00c8ff;
$color-blue: #4267b2; $color-blue: #4267b2;
@ -21,18 +35,21 @@ $color-green: #4caf50;
/* Grid breakpoints */ /* Grid breakpoints */
$grid-breakpoints: ( $grid-breakpoints: (
xs: 0, xs: 0,
cstm: 400, Gf: 328px,
sm: 576px, cstm: 400,
md: 768px, sm: 576px,
lg: 992px, md: 768px,
xl: 1200px lg: 992px,
dt: 1025px,
xl: 1200px,
tv: 2500px,
) !default; ) !default;
$z-index: ( $z-index: (
level1: 5, level1: 5,
level2: 10, level2: 10,
level3: 15, level3: 15,
level4: 20, level4: 20,
level5: 25 level5: 25,
) !default; ) !default;

9196
yarn.lock Normal file

File diff suppressed because it is too large Load Diff