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

View File

@ -7,34 +7,199 @@ export default class Footer {
async init() {
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() {
//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.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() {
//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
async onUpdate() {
let target = this.checkoutVazio;
let config = { childList: true, attributes: true };
let observer = new MutationObserver((mutations) => {
mutations.forEach(function (mutation) {
console.log(mutation.type);
mutations.forEach((mutation) => {
console.log(observer);
const status = mutation.target.attributes.style.nodeValue;
if(status === 'display: none;') {
this.requestApi();
} else {
this.divPrateleira.innerHTML = ``;
}
});
});
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() {
const elemento = await waitElement("#my-element");
$(elemento).slick({
const prateleiraProd = await waitElement("#footerCheckout__prateleira-ul-id");
$(prateleiraProd).slick({
slidesToShow: 4,
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 {
constructor() {
this.init();
this.progressBarHTML();
}
async init() {
await this.selectors();
console.log(this.item);
this.progressBarHTML();
await this.progressBarActive();
}
async selectors() {
this.item = await waitElement("#my-element", {
//#my-element pode ser a class ou o id do elemento html qeu vocÊ quer pegar
timeout: 5000, // vai esperar 5 segundos antes de rejeitar a promise
interval: 1000, // vai verificar a cada 1 segundo se o elemento existe
this.header - await waitElement('.headerCheckout');
this.progressBar = await waitElement('#progressBar');
}
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 "./lib/slick";
@import "./partials/header";
@import "./partials/prateleira.scss";
@import "./partials/footer";
@import "./checkout/checkout.scss";

View File

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

View File

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

View File

@ -10,29 +10,61 @@
}
&-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 {
display: flex;
justify-content: center;
align-items: center;
.link-choose-products {
background: $color-black;
border: none;
border-radius: 5px;
display: flex;
justify-content: center;
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;
outline: none;
font-family: $font-family;
font-family: $font-family-secundary;
font-style: normal;
font-weight: 500;
font-weight: 400;
font-size: 14px;
line-height: 16px;
text-align: center;
letter-spacing: 0.05em;
color: $color-white;
color: $color-black-500;
text-transform: uppercase;
&: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%;
}
footer {
margin-top: auto;
}
footer .footerCheckout__wrapper {
width: 94.9734%;
margin: auto auto 0 auto;
}
footer .footerCheckout__prateleira,
header {
width: 79.53125%;
margin: 0 auto;
}
body {
display: flex;
@ -68,19 +67,23 @@ body {
#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;
font-weight: 700;
font-size: 24px;
line-height: 33px;
margin: 16px 0;
letter-spacing: 0.05em;
text-transform: uppercase;
color: $color-black-500;
@include mq(md, max) {
margin-left: 30px;
}
.activeTitle {
display: none;
}
}
.dropdown {
&__content {

View File

@ -13,6 +13,13 @@
-ms-touch-action: pan-y;
touch-action: pan-y;
-webkit-tap-highlight-color: transparent;
// .slick-slide:first-child {
// margin-right: 8px;
// }
// .slick-slid:last-child {
// margin-left: 8px;
// }
}
.slick-list {
position: relative;
@ -43,9 +50,10 @@
position: relative;
left: 0;
top: 0;
display: block;
display: flex;
margin-left: auto;
margin-right: auto;
gap: 16px;
&:before,
&:after {
@ -101,14 +109,18 @@
position: absolute;
}
.slick-prev {
border: none;
background: url("https://agenciamagma.vteximg.com.br/arquivos/arrow-left-mini-M3Academy.svg")
no-repeat center center;
z-index: 4;
left: 10px;
}
.slick-next {
border: none;
z-index: 4;
right: 10px;
background: url("https://agenciamagma.vteximg.com.br/arquivos/arrow-right-mini-M3Academy.svg")
no-repeat center center;
}
.slick-arrow.slick-hidden {
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;
color: $color-gray2;
.footerCheckout::after,
::before {
display: none;
content: none;
}
.footerCheckout::before,
::after {
display: none;
content: none;
}
&__wrapper {
align-items: center;
display: flex;
justify-content: space-between;
border-top: 1px solid $color-black-500;
padding: 0 32px;
}
&__address {
color: $color-gray2;
color: $color-black;
font-family: $font-family;
font-style: normal;
font-weight: normal;
font-size: 10px;
line-height: 12px;
line-height: 14px;
text-transform: capitalize;
max-width: 40%;
@ -52,23 +66,202 @@
margin: 0;
li:last-child {
margin-left: 16px;
margin-left: 10.73px;
}
a {
align-items: center;
color: $color-gray2;
color: $color-black;
display: flex;
font-family: $font-family;
font-style: normal;
font-weight: normal;
font-size: 10px;
font-size: 9px;
line-height: 12px;
text-decoration: none;
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 */
.headerCheckout {
padding: 29px 131px;
border-bottom: 1px solid $color-black-500;
.container {
width: auto !important;
}
@ -11,26 +13,80 @@
&__logo {
img {
height: 52px;
height: 37.14px;
width: auto;
}
}
&__safeBuy {
display: flex;
gap: 8px;
img {
height: 15px;
}
span {
align-items: center;
display: flex;
text-transform: uppercase;
font-family: $font-family;
font-style: normal;
font-weight: normal;
font-weight: 400;
font-size: 12px;
line-height: 14px;
color: $color-gray;
line-height: 16px;
color: $color-black;
}
i {
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 */
$color-black: #292929;
$color-black-500: #000000;
$color-white: #fff;
@ -14,9 +15,13 @@ $color-gray2: #7d7d7d;
$color-gray3: #f0f0f0;
$color-gray4: #8d8d8d;
$color-gray5: #e5e5e5;
$color-gray6: #989898;
$color-gray7: #c4c4c4;
$color-gray8: #2e2d2d;
$color-blue-100: #6fd5f2;
$color-blue-200: #00C8FF;
$color-blue: #4267b2;
$color-green: #4caf50;
/* Grid breakpoints */

View File

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