Feature/Autenticacao #1

Merged
WilliamSimao merged 10 commits from Feature/Autenticacao into main 2022-12-19 03:17:14 +00:00
14 changed files with 928 additions and 11018 deletions

10970
checkout/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -16,6 +16,7 @@ export default class CheckoutUI {
selectors() { selectors() {
this.title = $(".footerCheckout__title"); this.title = $(".footerCheckout__title");
this.contents = $(".footerCheckout__content"); this.contents = $(".footerCheckout__content");
this.entrega = $('.shipping-date');
} }
events() { events() {
@ -41,6 +42,8 @@ export default class CheckoutUI {
this.configThumb(); this.configThumb();
waitForEl(".product-image img", this.resizeImages.bind(this)); waitForEl(".product-image img", this.resizeImages.bind(this));
$(window).on("orderFormUpdated.vtex", this.resizeImages.bind(this)); $(window).on("orderFormUpdated.vtex", this.resizeImages.bind(this));
this.changeTitleChooseProduct();
this.entregaCarrinho();
} }
configThumb() { configThumb() {

View File

@ -7,34 +7,199 @@ export default class Footer {
async init() { async init() {
await this.selectors(); await this.selectors();
// this.onUpdate(); this.verificaPag();
await this.onUpdate();
await this.addCarrossel();
this.addProdutos();
this.entregaCarrinho();
this.unidadeCarrinho();
this.creatPaymentsIcons();
this.creatVtexIconPci();
this.creatDevIconsM3();
} }
async selectors() { 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.checkoutVazio = await waitElement(".empty-cart-content");
this.divPrateleira = await waitElement('.footerCheckout__prateleira');
this.tituloPrateleira = await waitElement('#cart-title')
this.payments = await waitElement('.footerCheckout__payments');
this.vtexIconPci = await waitElement('.footerCheckout__vtexpci');
this.devIcons = await waitElement('.footerCheckout__developedBy');
this.continuarComprando = await waitElement('.empty-cart-links');
this.entrega = await waitElement('.shipping-date');
this.unidade = await waitElement('.product-price');
} }
onUpdate() { async 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.checkoutVazio;
let config = { childList: true, attributes: true }; let config = { childList: true, attributes: true };
let observer = new MutationObserver((mutations) => { let observer = new MutationObserver((mutations) => {
mutations.forEach(function (mutation) { mutations.forEach((mutation) => {
console.log(mutation.type); console.log(observer);
const status = mutation.target.attributes.style.nodeValue;
if(status === 'display: none;') {
this.requestApi();
} else {
this.divPrateleira.innerHTML = ``;
}
}); });
}); });
observer.observe(target, config); observer.observe(target, config);
} }
verificaPag () {
if(this.checkoutVazio.attributes.style.nodeValue === 'display: none;') {
if(window.location.hash == '#/cart') {
this.requestApi();
}
} else {
this.divPrateleira.innerHTML= ``;
}
window.addEventListener('hashchange',() => {
if(this.checkoutVazio.attributes.style.nodeValue === 'display: none;') {
if(window.location.hash == '#/cart') {
this.requestApi();
}
} else if (window.location.hash == '#/email' || window.location.hash == '#/profile' || window.location.hash == '#/shipping') {
this.divPrateleira.innerHTML= ``;
}else if (window.location.href == "https://m3academy.myvtex.com/checkout/#/payment") {
this.divPrateleira.innerHTML= ``;
}
})};
requestApi () {
this.divPrateleira.innerHTML =
`<h3 class="footerCheckout__prateleira-title" >Você também pode gostar:</h3>
<ul class="footerCheckout__prateleira-ul" id="footerCheckout__prateleira-ul-id"></ul>
`
const api = 'https://m3academy.myvtex.com/api/catalog_system/pub/products/search/?fq=productClusterIds:319';
const ulProdut = document.querySelector('.footerCheckout__prateleira-ul');
fetch(api)
.then((response) => {
return response.json();
})
.then((data) => {
data.forEach((prod) => {
const imgProd = prod.items[0].images[0].imageUrl;
const nameProd = prod.productName;
const linkProd = prod.link;
ulProdut.innerHTML += `
<li class="footerCheckout__prateleira-li-prod">
<figure class="footerCheckout__prateleira-figure-prod">
<img src="${imgProd}" alt="Imagem Produto">
</figure>
<div class="footerCheckout__prateleira-div-text">
<h2>${nameProd}</h2>
<ul>
${prod.items.map((name) => `<li>
${name.name}</li>`).join('')}
</ul>
<a href="${linkProd}">
Ver Produto
</a>
</div>
</li>`
})
});
};
async addCarrossel() { async addCarrossel() {
const elemento = await waitElement("#my-element"); const prateleiraProd = await waitElement("#footerCheckout__prateleira-ul-id");
$(elemento).slick({ $(prateleiraProd).slick({
slidesToShow: 4, slidesToShow: 4,
slidesToScroll: 1, slidesToScroll: 1,
infinite: false,
arrows: true,
// responsive: [
// {
// breackpoint: 992,
// settings: {
// slidesToScroll: 2,
// slidesToScroll: 1,
// },
// },
// {
// breackpoint: 1025,
// settings: {
// slidesToShow: 3,
// slidesToScroll: 1,
// }
// },
// {
// breackpoint: 1279,
// settings: {
// slidesToShow: 4,
// slidesToScroll: 1,
// }
// },
// ]
}); });
}
addProdutos() {
this.continuarComprando.innerHTML = `<a href="/" id="cart-choose-products" class="btn btn-large btn-success link-choose-products" data-i18n="cart.chooseProducts">continuar comprando</a>`
}
removePrateleira() {
this.divPrateleira.style.display = 'none'
};
entregaCarrinho () {
this.entrega.innerHTML = `Frete`;
}
unidadeCarrinho () {
this.unidade.innerHTML = `Unidade`;
}
creatPaymentsIcons () {
this.payments.innerHTML = `
<ul class="footerCheckout__container-ul">
<li class="footerCheckout__wrapper-li">
<figure class="footerCheckout__figure-img-tickets">
<img src="https://agenciamagma.vteximg.com.br/arquivos/masterCardM3Academy.png" alt="MasterCard"/>
<img src="https://agenciamagma.vteximg.com.br/arquivos/visaM3Academy.png" alt="VisaCard"/>
<img src="https://agenciamagma.vteximg.com.br/arquivos/amexM3Academy.png" alt="AmericaExpress"/>
<img src="https://agenciamagma.vteximg.com.br/arquivos/eloM3Academy.png" alt="VisaCard"/>
<img src="https://agenciamagma.vteximg.com.br/arquivos/hiperCardM3Academy.png" alt="HiperCard"/>
<img src="https://agenciamagma.vteximg.com.br/arquivos/visaM3Academy.png" alt="VisaCard"/>
<img src="https://agenciamagma.vteximg.com.br/arquivos/payPalM3Academy.png" alt="PayPal"/>
<img src="https://agenciamagma.vteximg.com.br/arquivos/boletoM3Academy.png" alt="Boleto"/>
</figure>
</li>
</ul>`;
}
creatVtexIconPci () {
this.vtexIconPci.innerHTML = `
<ul class="footerCheckout__container-ul">
<li class="footerCheckout__wrapper-li">
<figure class="footerCheckout__figure-img-vtex">
<img src="https://agenciamagma.vteximg.com.br/arquivos/vtexPCIM3Academy.png" alt="Logo Vtex"/>
</figure>
</li>
</ul>`
}
creatDevIconsM3 () {
this.devIcons.innerHTML = `
<li class="footerCheckout__container-li-m3Icon">
<a href="https://vtex.com/br-pt/">
<span>Powered By</span>
<figure class="footerCheckout__figure-img-vtexIcon">
<img class="vtex-icon" src="https://agenciamagma.vteximg.com.br/arquivos/logoVTEXM3Academy.png" alt="LogoVTEX">
</figure>
</a>
</li>
<li class="footerCheckout__container-li-m3Icon">
<a href="https://agenciam3.com/">
<span>Developed By</span>
<figure class="footerCheckout__figure-img-m3Icon">
<img class="m3-icon" src="https://agenciamagma.vteximg.com.br/arquivos/logoM3M3Academy.png" alt="LogoM3">
</figure>
</a>
</li>
`
} }
} }

View File

@ -4,18 +4,159 @@ import { waitElement } from "m3-utils";
export default class Header { export default class Header {
constructor() { constructor() {
this.init(); this.init();
this.progressBarHTML();
} }
async init() { async init() {
await this.selectors(); await this.selectors();
console.log(this.item); this.progressBarHTML();
await this.progressBarActive();
} }
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.screen.width > 1024) {
this.progressBar.innerHTML = `
<ul class="container-ul">
<li class="container-li">
<p class="text">Meu carrinho</p>
<p class="circle-1" id="circle-1"></p>
<p class="linha-1"></p>
</li>
<li class="container-li">
<p class="text">Dados Pessoais</p>
<p class="circle-2" id="circle-2"></p>
<p class="linha-2"></p>
</li>
<li class="container-li">
<p class="text">Pagamento</p>
<p class="circle-3" id="circle-3"></p>
</li>
</ul>`;
}
if (this.progressBar && window.screen.width <= 1024) {
this.progressBar.innerHTML = ``;
}
};
async progressBarActive () {
if (this.progressBar && window.screen.width > 1024) {
const progressBarLi = document.querySelectorAll('#progressBar ul li')
progressBarLi.forEach((li) => {
if(window.location.href == "https://m3academy.myvtex.com/checkout/#/cart") {
if(li.children['circle-1']) {
li.children['circle-1'].classList.add('active')
}
if(li.children['circle-2']) {
if(li.children['circle-2'].classList.contains('active')) {
li.children['circle-2'].classList.remove('active')
}
}
if(li.children['circle-3']) {
if (li.children['circle-3'].classList.contains('active')) {
li.children['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['circle-1']) {
if(li.children['circle-1'].classList.contains('active')) {
li.children['circle-1'].classList.remove('active')
}
};
if(li.children['circle-2']) {
li.children['circle-1'].classList.add('active')
};
if(li.children['circle-3']) {
if(li.children['circle-3'].classList.contains('active')) {
li.children['circle-1'].classList.remove('active')
};
}
}
else if (window.location.href == "https://m3academy.myvtex.com/checkout/#/payment") {
if(li.children['circle-1']) {
if(li.children['circle-1'].classList.contains('active')) {
li.children['circle-1'].classList.remove('active')
}
}
if(li.children['circle-2']) {
if(li.children['circle-2'].classList.contains('active')) {
li.children['circle-2'].classList.remove('active')
}
}
if(li.children['circle-3']) {
li.children['circle-3'].classList.add('active')
}
}
window.addEventListener('hashchange', () => {
if(window.location.hash == '#/cart') {
if(li.children['circle-1']) {
li.children['circle-1'].classList.add('active')
}
if(li.children['circle-2']) {
if (li.children['circle-2'].classList.contains('active')) {
li.children['circle-2'].classList.remove('active')
}
}
if(li.children['circle-3']) {
if(li.children['circle-3'].classList.contains('active')) {
li.children['circle-3'].classList.remove('active')
}
}
}
else if(window.location.hash == '#/email' || window.location.hash == '#/profile' || window.location.hash == '#/shipping') {
if(li.children['circle-1']) {
if(li.children['circle-1'].classList.contains('active')) {
li.children['circle-1'].classList.remove('active')
}
}
if(li.children['circle-2']){
li.children['circle-2'].classList.add('active')
}
if(li.children['circle-3']) {
if(li.children['circle-3'].classList.contains('active')) {
li.children['circle-3'].classList.remove('active')
}
}
}
else if(window.location.hash == '#/payment') {
if(li.children['circle-1']) {
if(li.children['circle-1'].classList.contains('active')) {
li.children['circle-1'].classList.remove('active')
}
}
if(li.children['circle-2']) {
if(li.children['circle-2'].classList.contains('active')){
li.children['circle-2'].classList.remove('active')
}
}
if(li.children['circle-3']) {
li.children['circle-3'].classList.add('active')
}
}
})
}); });
} }
} }
};

View File

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

View File

@ -6,8 +6,13 @@
.link-cart { .link-cart {
a { a {
color: $color-black; font-family: $font-family-secundary;
font-style: normal;
font-weight: 400;
font-size: 14px; font-size: 14px;
line-height: 16px;
text-transform: uppercase;
color: $color-black-500;
&:hover { &:hover {
color: lighen($color-black, 10); color: lighen($color-black, 10);
@ -20,64 +25,101 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
text-transform: uppercase;
font-family: $font-family-secundary;
font-weight: 400;
line-height: 23px;
h3 { h3 {
margin-bottom: 16px; margin-bottom: 16px;
span { span {
color: #303030; color: $color-black-500;
font-size: 24px; font-size: 20px;
} }
small { small {
color: $color-gray4; color: $color-black-500;
} font-size: 20px; }
}
} }
}
.icon-lock {
right: 0;
}
.client-email { .client-email {
margin: 0 0 16px; margin: 0 0 16px;
width: 562px;
input { input {
width: 443px;
height: 50px;
box-shadow: none; box-shadow: none;
color: $color-black; color: $color-black-500;
font-family: $font-family; font-family: $font-family;
padding: 0 16px; padding: 0 16px;
border: 2px solid $color-gray3; border: 1px solid $color-black-500;
box-sizing: border-box; box-sizing: border-box;
border-radius: 5px; border-radius: 5px 0px 0px 5px;
font-size: 12px;
font-weight: 400;
line-height: 16px;
@media (max-width: 490px) { @media (max-width: 490px) {
width: auto; width: auto;
} }
} }
button { button {
background-color: $color-black; background-color: $color-blue-200;
border-radius: 5px; border-radius: 0px 5px 5px 0px;
border: none; border: none;
font-family: $font-family; font-family: $font-family;
height: 54px; font-size: 14px;
line-height: 19px;
font-weight: 700;
color: $color-black-500;
text-transform: uppercase;
transform: all 0.2s linear;
height: 50px;
right: 0; right: 0;
top: 0; top: 0;
width: 126.76px;
@media (max-width: 490px) { @media (max-width: 490px) {
height: 48px; height: 48px;
margin: 0; margin: 0;
position: absolute; position: absolute;
} }
&:hover {
background-color: lighten($color-blue-100, 5);
}
&:active {
background-color: darken($color-blue-100, 5);
}
} }
span.help.error { span.help.error {
color: red; color: red;
font-family: $font-family;
font-weight: 700;
font-size: 12px;
line-height: 16px;
text-transform: lowercase;
} }
} }
.emailInfo { .emailInfo {
width: 400px;
padding: 16px; padding: 16px;
background-color: $color-white; background-color: $color-white;
border: 1px solid $color-gray4; border: 1px solid $color-black-500;
border-radius: 0; border-radius: 5px;
h3 { h3 {
color: #303030; color: #303030;
@ -89,11 +131,16 @@
li { li {
span { span {
color: $color-black; font-family: $font-family;
font-style: normal;
font-weight: 700;
font-size: 12px;
line-height: 16px;
color: $color-black-500;
} }
i::before { i::before {
color: $color-black; color: $color-blue-200;
font-size: 1rem; font-size: 1rem;
opacity: 1; opacity: 1;
} }
@ -101,7 +148,7 @@
} }
i::before { i::before {
color: $color-black; color: $color-gray8;
font-size: 6rem; font-size: 6rem;
opacity: 0.5; opacity: 0.5;
} }

View File

@ -13,7 +13,7 @@
display: none; display: none;
} }
.cart { .cart {
border: 3px solid $color-gray3; border: 1px solid $color-gray3;
box-sizing: border-box; box-sizing: border-box;
border-radius: 5px; border-radius: 5px;
padding: 16px; padding: 16px;
@ -111,10 +111,11 @@
} }
th { th {
font-family: $font-family-secundary;
color: $color-black; color: $color-black;
padding: 0 0 16px; padding: 0 0 17px;
font-style: normal; font-style: normal;
font-weight: bold; font-weight: 400;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 16px;
@ -155,9 +156,10 @@
} }
a { a {
color: $color-blue; font-family: $font-family-secundary;
color: $color-black-500;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: 400;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
transition: ease-in 0.22s all; transition: ease-in 0.22s all;
@ -179,9 +181,11 @@
} }
td.shipping-date { td.shipping-date {
color: $color-gray2; font-family: $font-family-secundary;
color: $color-gray6;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
font-weight: 400;
@include mq(md, max) { @include mq(md, max) {
display: none; display: none;
@ -218,7 +222,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,16 +237,19 @@
} }
input { input {
font-family: $font-family-secundary;
font-size: 14px;
font-weight: 400;
font-style: normal;
line-height: 16px;
color: $color-black-500;
background-color: $color-white; background-color: $color-white;
border: 1px solid $color-gray3; border: none;
border-radius: 0;
border-width: 0 1px;
display: block; display: block;
max-height: 38px; max-height: 38px;
margin: 0 !important; margin: 0 !important;
padding: 8px 0; padding: 0;
width: 38px; width: 5px;
color: $color-gray2;
box-shadow: none; box-shadow: none;
@include mq(lg, max) { @include mq(lg, max) {
@ -253,24 +260,23 @@
.icon-plus-sign, .icon-plus-sign,
.icon-minus-sign { .icon-minus-sign {
&::before { &::before {
color: $color-black; color: $color-blue-200;
display: block; display: block;
font-weight: 500; font-weight: 500;
padding: 1px 12px;
} }
} }
.icon-minus-sign { .icon-minus-sign {
&:before { &:before {
content: "-"; padding: 7px 20px 7px 9px;
font-size: 16px; font-size: 20px;
} }
} }
.icon-plus-sign { .icon-plus-sign {
&:before { &:before {
content: "+"; padding: 7px 9px 7px 20px;
font-size: 14px; font-size: 20px;
} }
} }
@ -296,12 +302,20 @@
display: none; display: none;
} }
span { span {
font-family: $font-family-secundary;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: 400;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 16px;
color: $color-black; color: $color-black;
} }
.total-selling-price {
font-family: $font-family;
font-style: normal;
font-style: 14px;
line-height: 19px;
font-weight: 700;
}
} }
.quantity-price { .quantity-price {
@ -351,12 +365,13 @@
} }
.srp-main-title { .srp-main-title {
font-family: $font-family;
margin: 32px 0 12px; margin: 32px 0 12px;
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: $color-black-500;
@include mq(md, max) { @include mq(md, max) {
margin-top: 0; margin-top: 0;
@ -364,16 +379,19 @@
} }
.srp-description { .srp-description {
font-family: $font-family;
font-weight: 400;
color: $color-gray2; color: $color-gray2;
font-size: 12px; font-size: 14px;
line-height: 18px; line-height: 18px;
margin: 0 0 12px; margin: 0 0 12px;
max-width: 276px;
} }
button.shp-open-options { button.shp-open-options {
background-color: $color-gray5; background-color: $color-gray5;
border: none; border: none;
border-radius: 5px; border-radius: 8px;
color: $color-gray2; color: $color-gray2;
font-size: 16px; font-size: 16px;
letter-spacing: 0.05em; letter-spacing: 0.05em;
@ -405,25 +423,28 @@
} }
.srp-pickup-my-location__button { .srp-pickup-my-location__button {
background-color: $color-black; background-color: $color-blue-200;
border: none; border: none;
border-radius: 5px; border-radius: 5px;
color: $color-white; color: $color-white;
outline: none; outline: none;
width: 100%; width: 100%;
height: 42px;
font-family: $font-family;
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; letter-spacing: 0.05em;
transition: all 0.2s linear;
&:hover { &:hover {
background-color: lighten($color-black, 5); background-color: lighten($color-blue-100, 5);
} }
&:active { &:active {
background-color: darken($color-black, 5); background-color: darken($color-blue-100, 5);
} }
} }
} }
@ -444,12 +465,12 @@
} }
&__current { &__current {
border: 1px solid $color-blue; border: 1px solid $color-black-500;
border-radius: 100px; border-radius: 100px;
} }
.blue { .blue {
color: $color-blue; color: $color-black-500;
} }
label { label {
@ -466,15 +487,15 @@
label { label {
font-family: $font-family; font-family: $font-family;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: 400;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 16px;
color: $color-black; color: $color-black-500;
margin-bottom: 12px; margin-bottom: 2px;
} }
input { input {
border: 1px solid $color-gray3; border: 1px solid $color-gray7;
border-radius: 5px; border-radius: 5px;
box-shadow: none; box-shadow: none;
color: $color-gray3; color: $color-gray3;
@ -482,52 +503,63 @@
height: 36px; height: 36px;
padding: 12px 8px; padding: 12px 8px;
width: 172px; width: 172px;
background-color: $color-white;
} }
& ~ button { & ~ button {
background-color: $color-black; background-color: $color-blue-200;
border: none; border: none;
border-radius: 5px; border-radius: 8px;
color: $color-white; color: $color-white;
font-size: 12px; font-size: 14px;
line-height: 19px;
font-style: normal;
height: 36px; height: 36px;
letter-spacing: 1px; letter-spacing: 0.05em;
outline: none; outline: none;
position: absolute; position: absolute;
text-align: center;
right: -150px; right: -150px;
top: 36px; top: 28px !important;
transition: all 0.2s linear; transition: all 0.2s linear;
width: 96px; width: 96px;
text-transform: uppercase; text-transform: uppercase;
display: flex;
align-items: center;
justify-content: center;
&:hover { &:hover {
background-color: lighten($color-black, 5); background-color: lighten($color-blue-100, 5);
} }
&:active { &:active {
background-color: darken($color-black, 5); background-color: darken($color-blue-100, 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: $color-black-500;
margin-top: 7px; margin-top: 7px;
text-decoration: underline;
} }
span.help.error { span.help.error {
display: block;
color: red; color: red;
font-size: 12px; font-size: 12px;
position: absolute;
left: 0; left: 0;
width: 100%; width: 100%;
top: 17px; top: 80px;
position: absolute;
} }
} }
.ship-country {
display: none;
}
} }
.srp-result { .srp-result {
@ -603,12 +635,12 @@
} }
} }
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: $color-black-500;
text-decoration: none; text-decoration: none;
} }
} }
@ -712,16 +744,23 @@
&.info, &.info,
&.monetary { &.monetary {
font-family: $font-family-secundary;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: 400;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 16px;
text-align: left;
color: $color-black; color: $color-black;
padding: 12px 0;
} }
&.info { &.info {
font-family: $font-family-secundary;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 16px;
text-align: left; text-align: left;
color: $color-black
} }
&.monetary { &.monetary {
@ -733,10 +772,11 @@
tfoot { tfoot {
td.info, td.info,
td.monetary { td.monetary {
font-style: normal; font-family: $font-family;
font-weight: normal;
font-size: 18px; font-size: 18px;
line-height: 21px; line-height: 25px;
font-style: normal;
font-weight: 700;
color: $color-black; color: $color-black;
} }
} }
@ -771,36 +811,38 @@
} }
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: $color-black-500;
} }
} }
.btn-place-order-wrapper { .btn-place-order-wrapper {
a { a {
background: $color-green; background: $color-blue-200;
border: none; border: none;
border-radius: 5px; border-radius: 8px;
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;
color: $color-black-500;
&:hover { &:hover {
background-color: darken($color-green, 5); background-color: darken($color-green, 5);
color: $color-white;
} }
&: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;
font-style: normal;
letter-spacing: 0.05em; letter-spacing: 0.05em;
color: $color-white;
text-transform: uppercase; text-transform: uppercase;
vertical-align: middle; vertical-align: middle;
line-height: 19px; line-height: 19px;

View File

@ -10,29 +10,61 @@
} }
&-title { &-title {
font-size: 20px; font-size: 24px;
font-family: $font-family;
font-weight: 700;
line-height: 33px;
text-align: center;
text-transform: uppercase;
font-style: normal;
} }
&-links { &-links {
display: flex;
justify-content: center;
align-items: center;
.link-choose-products { .link-choose-products {
background: $color-black; display: flex;
border: none; justify-content: center;
border-radius: 5px; align-items: center;
width: 327px;
height: 48px;
background: $color-white;
border: 1px solid $color-black-500;
border-radius: 0;
transition: ease-in 0.22s all; transition: ease-in 0.22s all;
outline: none; outline: none;
font-family: $font-family; font-family: $font-family-secundary;
font-style: normal; font-style: normal;
font-weight: 500; font-weight: 400;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 16px;
text-align: center; text-align: center;
letter-spacing: 0.05em; letter-spacing: 0.05em;
color: $color-white; color: $color-black-500;
text-transform: uppercase; text-transform: uppercase;
&:hover { &:hover {
background: lighten($color-black, 5); background: $color-blue-200;
color: $color-white;
} }
} }
.btn {
padding: 0;
}
.btn-large {
padding: 0;
}
}
.hide {
display: none;
}
&-message {
display: none;
} }
} }

View File

@ -8,15 +8,14 @@ html {
min-height: 100%; min-height: 100%;
} }
footer {
margin-top: auto;
}
footer .footerCheckout__wrapper { footer .footerCheckout__wrapper {
width: 94.9734%;
margin: auto auto 0 auto; margin: auto auto 0 auto;
} }
footer .footerCheckout__prateleira, footer .footerCheckout__prateleira,
header {
width: 79.53125%;
margin: 0 auto;
}
body { body {
display: flex; display: flex;
@ -68,20 +67,24 @@ body {
#cart-title, #cart-title,
#orderform-title { #orderform-title {
color: $color-gray2;
font-family: $font-family; font-family: $font-family;
font-weight: 500; font-weight: 700;
font-size: 36px; font-size: 24px;
line-height: 42px; line-height: 33px;
margin: 40px 0 30px; margin: 16px 0;
letter-spacing: 0.1em; letter-spacing: 0.05em;
text-transform: uppercase; text-transform: uppercase;
color: $color-black-500;
@include mq(md, max) { @include mq(md, max) {
margin-left: 30px; margin-left: 30px;
} }
.activeTitle {
display: none;
}
} }
.dropdown { .dropdown {
&__content { &__content {
&--closed { &--closed {

View File

@ -13,6 +13,13 @@
-ms-touch-action: pan-y; -ms-touch-action: pan-y;
touch-action: pan-y; touch-action: pan-y;
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;
// .slick-slide:first-child {
// margin-right: 8px;
// }
// .slick-slid:last-child {
// margin-left: 8px;
// }
} }
.slick-list { .slick-list {
position: relative; position: relative;
@ -43,9 +50,10 @@
position: relative; position: relative;
left: 0; left: 0;
top: 0; top: 0;
display: block; display: flex;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
gap: 16px;
&:before, &:before,
&:after { &:after {
@ -101,14 +109,18 @@
position: absolute; position: absolute;
} }
.slick-prev { .slick-prev {
border: none;
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: 10px;
} }
.slick-next { .slick-next {
border: none;
z-index: 4; z-index: 4;
right: 10px; right: 10px;
background: url("https://agenciamagma.vteximg.com.br/arquivos/arrow-right-mini-M3Academy.svg")
no-repeat center center;
} }
.slick-arrow.slick-hidden { .slick-arrow.slick-hidden {
display: none; display: none;
@ -134,3 +146,9 @@
} }
} }
} }
@media only screen and (width: 1280px) {
.slick-slide {
width: 242px !important;
}
}

View File

@ -3,19 +3,33 @@
border-top: none; border-top: none;
color: $color-gray2; color: $color-gray2;
.footerCheckout::after,
::before {
display: none;
content: none;
}
.footerCheckout::before,
::after {
display: none;
content: none;
}
&__wrapper { &__wrapper {
align-items: center; align-items: center;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
border-top: 1px solid $color-black-500;
padding: 0 32px;
} }
&__address { &__address {
color: $color-gray2; color: $color-black;
font-family: $font-family; font-family: $font-family;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
font-size: 10px; font-size: 10px;
line-height: 12px; line-height: 14px;
text-transform: capitalize; text-transform: capitalize;
max-width: 40%; max-width: 40%;
@ -52,23 +66,202 @@
margin: 0; margin: 0;
li:last-child { li:last-child {
margin-left: 16px; margin-left: 10.73px;
} }
a { a {
align-items: center; align-items: center;
color: $color-gray2; color: $color-black;
display: flex; display: flex;
font-family: $font-family; font-family: $font-family;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
font-size: 10px; font-size: 9px;
line-height: 12px; line-height: 12px;
text-decoration: none; text-decoration: none;
span { span {
margin-right: 8px; margin-right: 10.97px;
} }
} }
} }
.container {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
}
// CARDS FOOTER
&__container-ul {
list-style-type: none;
margin: 0;
}
&__figure-img-tickets {
margin: 0;
}
&__stamps {
margin: 0;
}
&__figure-img-tickets {
display: flex;
column-gap: 13.35px;
}
&__figure-img-tickets img {
width: 100%;
height: 20px;
}
&__figure-img-vtex img {
width: 53px;
}
&__figure-img-vtexIcon {
margin: 0;
}
&__figure-img-vtex {
margin: 16px 0;
}
&__figure-img-vtexIcon img {
width: 44.92px;
}
&__figure-img-m3Icon {
margin: 0;
}
&__figure-img-m3Icon img {
width: 28.66px;
}
// PRATELEIRA DE PRODUTOS
&__prateleira {
margin: 20px 132px 54px;
}
&__prateleira-title {
font-family: $font-family-secundary;
font-size: 24px;
font-weight: 400;
line-height: 38px;
font-style: normal;
color: $color-black-500;
text-align: center;
margin: 43px 0 20px;
}
&__prateleira-ul{
list-style-type:none;
display: flex;
align-items: center;
margin: 0;
}
&__prateleira-li-prod {
width: 100%;
}
&__prateleira-figure-prod {
margin: 0;
}
&__prateleira-figure-prod img {
object-fit: cover;
}
&__prateleira-div-text {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
&__prateleira-div-text ul {
margin: 0 0 20px;
list-style: none;
}
&__prateleira-div-text h2 {
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 13px;
line-height: 18px;
color: $color-black-500;
text-align: center;
margin: 20px 0;
}
&__prateleira-div-text ul {
column-gap: 5px;
display: flex;
align-items: center;
}
&__prateleira-div-text li {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
margin: 0;
background-color: $color-blue-200;
color: $color-white;
border-radius: 8px;
text-align: center;
font-size: 13px;
font-family: $font-family;
font-weight: 700;
font-style: normal;
line-height: 18px;
padding: 5px;
}
&__prateleira-div-text a {
text-decoration: none;
justify-content: center;
display: flex;
width: 100%;
background: $color-blue-200;
height: 42px;
align-items: center;
border-radius: 8px;
color: $color-white;
font-family: $font-family;
font-size: 13px;
font-weight: 700;
line-height: 18px;
font-style: normal;
text-transform: uppercase;
letter-spacing: 0.05em;
transition: ease-in-out 280ms;
&:hover {
background-color: $color-blue-100;
}
}
&__prateleira-div-text ul li {
text-transform: uppercase;
font-family: $font-family;
font-size: 13px;
font-weight: 700;
line-height: 18px;
font-style: normal;
}
} }
@media only screen and (width: 1280px){
.footerCheckout {
&__prateleira-li-prod {
width: 242px !important;
}
}
}

View File

@ -1,5 +1,7 @@
/* _header.scss */ /* _header.scss */
.headerCheckout { .headerCheckout {
padding: 29px 131px;
border-bottom: 1px solid $color-black-500;
.container { .container {
width: auto !important; width: auto !important;
} }
@ -11,26 +13,80 @@
&__logo { &__logo {
img { img {
height: 52px; height: 37.14px;
width: auto; width: auto;
} }
} }
&__safeBuy { &__safeBuy {
display: flex;
gap: 8px;
img {
height: 15px;
}
span { span {
align-items: center; align-items: center;
display: flex; display: flex;
text-transform: uppercase; text-transform: uppercase;
font-family: $font-family; font-family: $font-family;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: 400;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 16px;
color: $color-gray; color: $color-black;
} }
i { i {
margin-right: 8px; margin-right: 8px;
} }
} }
#progressBar {
width: 439px;
.container-ul {
list-style: none;
display: flex;
justify-content: space-between;
position: relative;
margin: 0;
.container-li {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: relative;
.circle-1, .circle-2, .circle-3{
width: 12px;
height: 12px;
border: 1px solid $color-black-500;
border-radius: 50%;
}
.linha-1 {
top: 64%;
left: 58%;
width: 173px;
border: 1px solid $color-black-500;
position: absolute;
}
.linha-2 {
top: 64%;
left: 58%;
width: 166px;
border: 1px solid $color-black-500;
position: absolute;
}
.active {
background-color: $color-black-500;
}
.text {
font-family: $font-family-secundary;
font-style: normal;
font-size: 12px;
font-weight: 400;
line-height: 14px;
color: $color-black-500;
}
}
}
}
} }

View File

@ -6,6 +6,7 @@ $font-family-secundary:"Tenor Sans", sans-serif;
/* Colors */ /* Colors */
$color-black: #292929; $color-black: #292929;
$color-black-500: #000000;
$color-white: #fff; $color-white: #fff;
@ -14,9 +15,13 @@ $color-gray2: #7d7d7d;
$color-gray3: #f0f0f0; $color-gray3: #f0f0f0;
$color-gray4: #8d8d8d; $color-gray4: #8d8d8d;
$color-gray5: #e5e5e5; $color-gray5: #e5e5e5;
$color-gray6: #989898;
$color-gray7: #c4c4c4;
$color-gray8: #2e2d2d;
$color-blue-100: #6fd5f2;
$color-blue-200: #00C8FF;
$color-blue: #4267b2; $color-blue: #4267b2;
$color-green: #4caf50; $color-green: #4caf50;
/* Grid breakpoints */ /* Grid breakpoints */

View File

@ -36,3 +36,5 @@
</ul> </ul>
</div> </div>
</footer> </footer>