Merge pull request 'develop' (#6) from develop into main

Reviewed-on: #6
This commit is contained in:
Rhayllon Daudt 2022-12-19 02:54:38 +00:00
commit b4b58d63d2
14 changed files with 2080 additions and 207 deletions

View File

@ -66,4 +66,5 @@ export default class CheckoutUI {
);
});
}
}

View File

@ -6,14 +6,36 @@ export default class Footer {
}
async init() {
this.list = await this.Api();
await this.selectors();
// this.onUpdate();
this.addIconsCardAndVtxpci();
this.addIconVtexAndM3();
this.createShelf();
this.shelfList = await waitElement(".footerCheckout__shelfList");
this.shelfItens();
if (window.innerWidth > 1024){
this.addCarrossel();
}
if (window.innerWidth < 1024){
this.addCarrosselMobile();
}
this.prateleiraView();
}
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.iconesCartoesAndVtexpci = await waitElement(".footerCheckout__stamps");
this.iconsVtexAndM3 = await waitElement(".footerCheckout__developedBy");
this.prateleira = await waitElement(".footerCheckout__prateleira");
this.itensShelf = await waitElement(".footerCheckout__prateleira", {
timeout: 5000,
interval: 1000,
});
this.pratWrapper = await waitElement(".footerCheckout")
}
onUpdate() {
@ -31,10 +53,167 @@ export default class Footer {
observer.observe(target, config);
}
async addCarrossel() {
const elemento = await waitElement("#my-element");
const elemento = await waitElement(".footerCheckout__shelfList");
$(elemento).slick({
slidesToShow: 4,
slidesToScroll: 1,
arrows: true,
infinite: false,
});
}
async addCarrosselMobile() {
const elemento = await waitElement(".footerCheckout__shelfList");
$(elemento).slick({
slidesToShow: 3,
slidesToScroll: 1,
arrows: true,
infinite: false,
});
}
addIconVtexAndM3() {
if (this.iconsVtexAndM3) {
this.iconsVtexAndM3.innerHTML = `
<li>
<a class="Link1" href="https://vtex.com/br-pt/">
<span>Powered By</span>
<img class="Link1__footer-imgs-logoVtex" src="https://agenciamagma.vteximg.com.br/arquivos/logoVTEXM3Academy.png" alt="Img Icone Vtex" />
</a>
</li>
<li>
<a href="https://agenciam3.com/">
<span>Developed By</span>
<img class="footer-imgs-logoM3" src="https://agenciamagma.vteximg.com.br/arquivos/logoM3M3Academy.png" alt="Img Icone M3" />
</a>
</li>
`;
}
}
addIconsCardAndVtxpci() {
if (this.iconesCartoesAndVtexpci) {
this.iconesCartoesAndVtexpci.innerHTML = `
<li>
<span class="footerCheckout__payments"><img class="footer-imgs-cards" src="https://agenciamagma.vteximg.com.br/arquivos/masterCardM3Academy.png" alt="Img bandeira Mastercard" />
<img class="footer-imgs-cards" src="https://agenciamagma.vteximg.com.br/arquivos/visaM3Academy.png" alt="Img bandeira Visa" />
<img class="footer-imgs-cards" src="https://agenciamagma.vteximg.com.br/arquivos/amexM3Academy.png" alt="adad" />
<img class="footer-imgs-cards" src="https://agenciamagma.vteximg.com.br/arquivos/eloM3Academy.png" alt="Img bandeira Elo" />
<img class="footer-imgs-cards" src="https://agenciamagma.vteximg.com.br/arquivos/hiperCardM3Academy.png" alt="Img bandeira Hipercard" />
<img class="footer-imgs-cards" src="https://agenciamagma.vteximg.com.br/arquivos/payPalM3Academy.png" alt="Img Paypal" />
<img class="footer-imgs-cards-final" src="https://agenciamagma.vteximg.com.br/arquivos/boletoM3Academy.png" alt="Img Boleto" /></span>
</li>
<li>
<span class="footerCheckout__stamps__divider"></span>
</li>
<li>
<span class="footerCheckout__payments"><img class="footer-imgs-vtexpci" src="https://agenciamagma.vteximg.com.br/arquivos/vtexPCIM3Academy.png" alt="Img Vtxpci" /></span>
</li>
`;
}
}
createShelf() {
if (this.itensShelf) {
this.itensShelf.innerHTML = `
<div class="footerCheckout__prateleira-title-wrapper">
<h2 class="footerCheckout__prateleira-title" >Você também pode gostar:</h2>
</div>
<ul class="footerCheckout__shelfList"></ul>
`;
}
}
async shelfItens() {
let structure = "";
this.list.forEach((response) => {
const sku = response.skus.map(
(item) => `<li class="footerCheckout__shelfList-skus">${item}</li>`
);
structure += `
<li class="footerCheckout__shelfList-wrapper">
<figure class="footerCheckout__shelfList-wrapper" ><img src ="${response.img}"/></figure>
<figcaption class="footerCheckout__shelfList-name">${response.name}</figcaption>
<div class="footerCheckout__shelfList-skus-wrapper" ><ul class="footerCheckout__shelfList-skus-wrapper">${sku}</ul></div>
<button type="button" class="footerCheckout__shelfList-button"><a href="${response.link}">Ver Produto</a></button>
</li>
`;
});
this.shelfList.innerHTML = structure;
}
async Api() {
const api =
"https://m3academy.myvtex.com/api/catalog_system/pub/products/search/?fq=productClusterIds:319";
return fetch(api)
.then((response) => response.json())
.then((data) => {
const peçaBase = data.map((response) => ({
name: response.productName,
skus: response.items.map((item) => item.name),
img: response.items[0].images[0].imageUrl,
link: response.link,
}));
return peçaBase;
});
}
async prateleiraView() {
if (this.prateleira) {
const FooterCheck = document.querySelectorAll(".footerCheckout");
FooterCheck.forEach((f) => {
const prat = f.children[0];
if (window.location.href === "https://m3academy.myvtex.com/checkout/#/cart") {
if (prat) {
prat.classList.add("view");
}
} 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 (prat) {
if (prat.classList.contains("view")) {
prat.classList.remove("view");
}
}
} else if (
window.location.href === "https://m3academy.myvtex.com/checkout/#/payment"
) {
if (prat) {
if (prat.classList.contains("view")) {
prat.classList.remove("view");
}
}
}
window.addEventListener("hashchange", () => {
if (window.location.hash == "#/cart") {
if (prat) {
prat.classList.add("view");
}
} else if (
window.location.hash === "#/email" ||
window.location.hash === "#/profile" ||
window.location.hash === "#/shipping"
) {
if (prat) {
if (prat.classList.contains("view")) {
prat.classList.remove("view");
}
}
} else if (window.location.hash == "#/payment") {
if (prat) {
if (prat.classList.contains("view")) {
prat.classList.remove("view");
}
}
}
});
});
}
}
}

View File

@ -8,14 +8,175 @@ export default class Header {
async init() {
await this.selectors();
console.log(this.item);
this.progressBarCronstructor();
await this.progressBarProgress();
}
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.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.progressBar = await waitElement("#progressBar", {
timeout: 5000,
interval: 1000,
});
}
progressBarCronstructor() {
if (this.progressBar && window.innerWidth > 1024) {
this.progressBar.innerHTML = `
<ul class="container-total">
<li class="li-volta-borda-1">
<div class="div-flex1">
<div class="div-itens">
<p class="p-text">Meu Carrinho</p>
<p id="p-bola1" class="p-bola1"></p>
<p class="p-borda-1"></p>
</div>
</div>
</li>
<li class="li-volta-centro">
<div class="div-flex2">
<div class="div-itens">
<p class="p-text">Dados Pessoais</p>
<p id="p-bola2" class="p-bola2"></p>
<p class="p-borda-meio"></p>
</div>
</div>
</li>
<li class="li-volta-borda-2">
<div class="div-flex3">
<div class="div-itens">
<p class="p-text">Pagamento</p>
<p id="p-bola3" class="p-bola3"></p>
<p class="p-borda-2"></p>
</div>
</div>
</li>
</ul>
`;
}
if (this.progressBar && window.innerWidth <= 1024) {
this.progressBar.innerHTML = ``;
}
}
async progressBarProgress() {
if (this.progressBar && window.innerWidth > 1024) {
const progressBarLista = document.querySelectorAll("#progressBar ul li");
progressBarLista.forEach((li) => {
const Bola1 = li.children[0].children[0].children["p-bola1"];
const Bola2 = li.children[0].children[0].children["p-bola2"];
const Bola3 = li.children[0].children[0].children["p-bola3"];
if (window.location.href === "https://m3academy.myvtex.com/checkout/#/cart") {
if (Bola1) {
Bola1.classList.add("active");
}
if (Bola2) {
if (Bola2.classList.contains("active")) {
Bola2.classList.remove("active");
}
}
if (Bola3) {
if (Bola3.classList.contains("active")) {
Bola3.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 (Bola1) {
if (Bola1.classList.contains("active")) {
Bola1.classList.remove("active");
}
}
if (Bola2) {
Bola2.classList.add("active");
}
if (Bola3) {
if (Bola3.classList.contains("active")) {
Bola3.classList.remove("active");
}
}
} else if (
window.location.href === "https://m3academy.myvtex.com/checkout/#/payment"
) {
if (Bola1) {
if (Bola1.classList.contains("active")) {
Bola1.classList.remove("active");
}
}
if (Bola2) {
if (Bola2.classList.contains("active")) {
Bola2.classList.remove("active");
}
}
if (Bola3) {
Bola3.classList.add("active");
}
}
window.addEventListener("hashchange", () => {
if (window.location.hash == "#/cart") {
if (Bola1) {
Bola1.classList.add("active");
}
if (Bola2) {
if (Bola2.classList.contains("active")) {
Bola2.classList.remove("active");
}
}
if (Bola3) {
if (Bola3.classList.contains("active")) {
Bola3.classList.remove("active");
}
}
} else if (
window.location.hash === "#/email" ||
window.location.hash === "#/profile" ||
window.location.hash === "#/shipping"
) {
if (Bola1) {
if (Bola1.classList.contains("active")) {
Bola1.classList.remove("active");
}
}
if (Bola2) {
Bola2.classList.add("active");
}
if (Bola3) {
if (Bola3.classList.contains("active")) {
Bola3.classList.remove("active");
}
}
} else if (window.location.hash == "#/payment") {
if (Bola1) {
if (Bola1.classList.contains("active")) {
Bola1.classList.remove("active");
}
}
if (Bola2) {
if (Bola2.classList.contains("active")) {
Bola2.classList.remove("active");
}
}
if (Bola3) {
Bola3.classList.add("active");
}
}
});
});
}
}
}

View File

@ -3,3 +3,4 @@
@import "./partials/header";
@import "./partials/footer";
@import "./checkout/checkout.scss";
@import "./partials/prateleira.scss";

View File

@ -4,14 +4,27 @@
font-family: $font-family;
padding-top: 8px;
@media screen and (max-width: 1024px) {
padding-top: 11px;
}
.link-cart {
a {
color: $color-black;
color: $color-black2;
font-weight: 400;
font-family: $font-family-secundary;
font-size: 14px;
line-height: 16px;
text-transform: uppercase;
&:hover {
color: lighen($color-black, 10);
}
@media screen and (max-width: 1024px) {
margin-right: 16px;
}
@media screen and (min-width: 2500px) {
font-size: 28px;
line-height: 33px;
}
}
}
@ -22,30 +35,98 @@
justify-content: center;
h3 {
margin-bottom: 16px;
margin-bottom: 20px;
margin-top: 7px;
@media screen and (max-width: 1024px) {
margin-bottom: 38px;
margin-top: 49px;
}
span {
color: #303030;
font-size: 24px;
color: $color-black2;
font-family: $font-family-secundary;
font-size: 20px;
line-height: 23px;
text-transform: uppercase;
font-weight: 400;
@media screen and (min-width: 2500px) {
font-size: 40px;
line-height: 47px;
}
@media screen and (max-width: 1024px) {
font-size: 14px;
line-height: 16px;
}
}
small {
color: $color-gray4;
color: $color-black2;
font-family: $font-family-secundary;
font-size: 20px;
line-height: 23px;
text-transform: uppercase;
font-weight: 400;
padding: 0;
@media screen and (min-width: 2500px) {
font-size: 40px;
line-height: 47px;
}
@media screen and (max-width: 1024px) {
font-size: 14px;
line-height: 16px;
}
}
}
}
.client-email {
margin: 0 0 16px;
display: flex;
margin: 0 0 47px;
width: 57%;
justify-content: flex-start;
@media screen and (min-width: 2500px) {
padding: 1px 0;
}
@media screen and (max-width: 1024px) {
width: 97%;
}
input {
box-shadow: none;
color: $color-black;
font-family: $font-family;
padding: 0 16px;
border: 2px solid $color-gray3;
border: 1px solid $color-black2;
border-right: none;
box-sizing: border-box;
border-radius: 5px;
border-radius: 5px 0px 0px 5px;
width: 77%;
height: 52px;
@media screen and (max-width: 1024px) {
width: 88%;
}
&::placeholder{
color: $color-black2;
font-weight: 400;
font-size: 12px;
line-height: 16px;
display: flex;
align-items: center;
@media screen and (min-width: 2500px) {
font-size: 24px;
line-height: 33px;
}
}
@media (max-width: 490px) {
width: auto;
@ -67,21 +148,66 @@
position: absolute;
}
}
#btn-client-pre-email{
right: 14px;
padding: 4px 26px;
height: 52px;
background-color: $color-blue2;
border-radius: 0px 8px 8px 0px;
position: static;
font-family: $font-family;
font-weight: 700;
font-size: 14px;
line-height: 19px;
letter-spacing: 0.05em;
text-transform: uppercase;
color: $color-black2;
@media screen and (min-width: 2500px) {
font-size: 28px;
line-height: 38px;
}
@media screen and (max-width: 1024px) {
padding: 4px 18px;
height: 50px;
}
}
span.help.error {
color: red;
position: absolute;
left: 213px;
top: 50px;
font-weight: 700;
font-size: 12px;
line-height: 16px;
@media screen and (max-width: 1024px) {
left: 435px;
margin-top: 7px;
}
}
}
.emailInfo {
padding: 16px;
background-color: $color-white;
border: 1px solid $color-gray4;
border-radius: 0;
border: 1px solid $color-black2;
border-radius: 5px;
h3 {
color: #303030;
color: $color-black2;
font-style: normal;
font-weight: 700;
font-size: 12px;
line-height: 16px;
margin: 0 0 8px 0;
@media screen and (min-width: 2500px) {
font-size: 24px;
line-height: 33px;
}
}
ul {
@ -89,13 +215,27 @@
li {
span {
color: $color-black;
font-family: $font-family;
font-style: normal;
font-weight: 700;
font-size: 12px;
line-height: 16px;
color: $color-black2;
@media screen and (min-width: 2500px) {
font-size: 24px;
line-height: 33px;
}
}
i::before {
color: $color-black;
color: $color-blue2;
font-size: 1rem;
opacity: 1;
@media screen and (min-width: 2500px) {
font-size: 1.5rem;
}
}
}
}
@ -104,39 +244,110 @@
color: $color-black;
font-size: 6rem;
opacity: 0.5;
@media screen and (min-width: 2500px) {
font-size: 9.8rem;
}
}
}
}
.newsletter{
margin-bottom: 44px;
}
#go-to-shipping{
width: 100%;
margin-bottom: 3px;
margin-top: 0;
}
p.input.ship-country.text{
display: none;
}
.vtex-omnishipping-1-x-addressFormPart1 small{
margin-left: 0;
}
.shipping-data,
.payment-data,
.client-profile-data {
.accordion-group {
border-radius: 0;
border: 1px solid $color-gray4;
border: 1px solid $color-gray3;
border-radius: 8px;
font-family: $font-family;
padding: 16px;
padding: 17px 17px 29px 17px;
@media screen and (max-width: 1024px) {
padding: 17px 17px 44px 17px;
margin-bottom: 17px;
.PaymentCardNumber input {
width: 97%;
height: 33px;
}
}
span{
font-size: 12px;
line-height: 14px;
}
.accordion-toggle{
font-weight: 400;
font-size: 16px;
line-height: 20px;
}
div.row-fluid:before{
display: none;
}
p.link.link-gift-card{
display: none !important;
}
.row-fluid:before{
content: "Solicitamos apenas informações necessárias para realização da sua compra, sem compromenter seu dados";
font-weight: 400;
font-size: 14px;
line-height: 24px;
letter-spacing: -0.01em;
}
.accordion-heading {
span {
color: #303030;
margin-bottom: 8px;
color: $color-black;
margin-bottom: 15px;
padding: 0;
i::before {
fill: #303030;
i {
font-size: 0;
line-height: 0;
&.icon-edit{
&::before{
content: "";
width: 20px;
height: 20px;
background-image:url(https://agenciamagma.vteximg.com.br/arquivos/lapisM3Academy.png) ;
background-repeat: no-repeat;
margin-top: 7px;
background-size: contain;
}
}
}
}
a {
align-items: center;
background-color: #303030;
background-color: $color-white;
border-radius: 8px;
border: none;
color: $color-white;
display: flex;
justify-content: center;
padding: 6px 5px 6px 8px;
padding: 0;
display: block !important;
outline: none;
}
}
@ -144,23 +355,45 @@
padding: 0;
/* General configurations */
.box-client-info-pj{
display: none;
}
.client-notice {
color: $color-black;
display: none;
}
p {
label {
color: $color-black;
font-weight: 500;
color: $color-gray2;
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
span.newsletter-text{
color: $color-gray9;
}
}
select,
input {
border-radius: 0;
border: 1px solid $color-gray4;
border-radius: 5px;
border: 1px solid $color-gray10;
box-shadow: none;
padding: 10px 6px;
&#opt-in-newsletter{
border-radius: 3px;
color: $color-gray11;
}
}
#ship-postalCode{
width: 100%;
max-width: 95%;
}
.help.error {
color: red;
@ -179,14 +412,25 @@
.state-inscription-box span {
font-weight: 500;
}
.submit.btn-submit-wrapper{
margin-top: 0;
}
button.submit {
border: none;
border-radius: 5px;
background: $color-black;
border-radius: 8px;
background: $color-blue2;
margin-top: 8px;
outline: none;
transition: all 0.2s linear;
font-family: $font-family;
font-weight: 700;
font-size: 14px;
line-height: 19px;
color: $color-white;
letter-spacing: 0.05em;
text-transform: uppercase;
width: 100%;
&:hover {
background: lighten($color-black, 5);
@ -200,21 +444,26 @@
/* Shipping configurations */
.ship-postalCode small a {
color: #303030;
font-weight: 500;
color: $color-black;
font-weight: 400;
font-size: 12px;
line-height: 16px;
text-decoration: underline;
}
.vtex-omnishipping-1-x-deliveryGroup {
p {
color: #303030;
font-size: 14px;
font-weight: 500;
color: $color-gray2;
font-weight: 700;
font-size: 14px;
line-height: 19px;
font-style: normal;
}
.shp-lean {
border: 1px solid $color-gray4;
border-radius: 0;
border: 1px solid $color-gray10;
border-radius: 8px;
margin-bottom: 15px;
label {
background-color: $color-white;
@ -222,6 +471,10 @@
color: #303030;
padding: 8px 12px;
@media screen and (max-width: 1024px) {
padding: 13px 12px;
}
svg path {
fill: #d8c8ac;
}
@ -230,30 +483,57 @@
}
.delivery-address-title {
color: #303030;
font-size: 14px;
font-weight: 500;
color: $color-gray2;
font-weight: 700;
font-size: 12px;
line-height: 16px;
letter-spacing: 0.05em;
margin-bottom: 11px;
font-style: normal;
}
.shp-summary-group-info {
border-color: $color-gray4;
border: none;
}
.address-summary {
background: none;
border-color: $color-gray4;
border-radius: 0;
border-color: $color-gray10;
border-radius: 8px;
color: #303030;
padding: 12px;
padding-top: 15px;
position: relative;
span.street,
span.neighborhood{
padding-left: 31px;
}
&::before{
content: "";
width: 24px;
height: 24px;
background-image: url(https://agenciamagma.vteximg.com.br/arquivos/homeM3Academy.png);
background-repeat: no-repeat;
background-size: 24px;
position: absolute;
left: 11px;
top: 23px;
}
@include mq(md, max) {
background-position: 8px 9px;
}
a {
color: #303030;
font-weight: 500;
text-decoration: underline;
color: $color-blue2;
float: right;
font-weight: 400;
font-size: 12px;
line-height: 16px;
text-transform: lowercase;
}
}
@ -264,25 +544,111 @@
.shp-summary-group-price {
padding-right: 16px;
display: none;
}
.shp-summary-package {
padding-left: 16px;
padding-left: 12px;
}
.vtex-omnishipping-1-x-summaryChange {
border-color: #303030;
color: #303030;
display: none;
}
.vtex-omnishipping-1-x-deliveryChannelsToggle {
background-color: #d8c8ac;
border: 1px solid #d8c8ac;
background-color: $color-white;
border: 1px solid $color-black;
}
.vtex-omnishipping-1-x-deliveryOptionActive {
text-shadow: 1.3px 1px lighten($color-black, 50);
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
text-transform: uppercase;
color: $color-purple;
}
.vtex-omnishipping-1-x-deliveryOptionInactive{
color: $color-gray8;
}
p.input.ship-number.required.text{
width: 100%;
}
input#ship-number.input-mini,
input#ship-complement.input-large,
input#ship-receiverName.input-xlarge {
width: 95%;
@media screen and (max-width: 1024px) {
width: 98.5%;
}
}
.payment-group{
width: 32.7%;
@media screen and (max-width: 1024px) {
width: 100%;
}
}
.steps-view{
width: 57%;
margin-top: 35px;
@media screen and (max-width: 1024px) {
width: 96.85%;
}
}
span.payment-group-item-text{
background-image: none !important;
}
.payment-group-item{
border-right: 1px solid $color-black2 ;
border: 1px solid $color-black2;
border-radius: 6px;
display: none;
opacity: 0.3;
margin-bottom: 12px;
mix-blend-mode: normal;
padding: 13px 24.5px;
background: $color-gray3;
color: $color-gray6;
font-weight: 400;
font-size: 14px;
line-height: 24px;
text-align: center;
letter-spacing: -0.01em;
margin-left: 0;
width: 76.8%;
@media screen and (max-width: 1024px) {
margin-left: 0;
width: 94.6%;
}
&-text{
padding: 5px 0 5px 0;
}
}
.payment-group-item.active{
margin-left: 0px;
border-radius: 6px;
border-right: 1px solid $color-orange ;
border: 1px solid $color-orange;
color: $color-orange;
text-decoration: none;
opacity: 1;
background: rgba(220, 221, 227, 0.3);
width: 76.8%;
@media screen and (max-width: 1024px) {
margin-left: 0;
width: 94.6%;
}
}
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -4,8 +4,22 @@ body .container-main.container-order-form .orderform-template.active {
margin-left: unset;
margin-right: 0;
float: right;
@media screen and (max-width: 1024px) {
width: 100%;
padding: 0 16px;
margin-bottom: 70px;
}
.payment-submit-wrap{
margin-top: 15px;
}
}
.orderform-template-holder {
width: 66.1132%;
@media screen and (max-width: 1024px) {
width: 100%;
}
}
}

View File

@ -9,30 +9,77 @@
}
}
&-message{
display: none;
}
&-title {
font-size: 20px;
margin: 170px 0 32px 0;
font-size: 0px;
line-height: 0px;
@media screen and (max-width: 1024px) {
margin: 170px 0 22px 0;
}
&::after{
content: "SEU CARRINHO ESTÁ VAZIO";
font-family: $font-family;
font-weight: 700;
font-size: 24px;
line-height: 33px;
color: $color-black2;
@media screen and (min-width: 2500px) {
font-size: 48px;
line-height: 65px;
}
@media screen and (max-width: 1024px) {
font-size: 18px;
line-height: 25px;
}
}
}
&-links {
.link-choose-products {
background: $color-black;
border: none;
border-radius: 5px;
border: 1px solid $color-black;
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-size: 14px;
line-height: 16px;
font-weight: 400;
font-size: 0px;
line-height: 0px;
text-align: center;
letter-spacing: 0.05em;
color: $color-white;
color: $color-black2;
text-transform: uppercase;
margin: 0 0 0 0;
width: 31.74%;
padding: 15px 0;
&:hover {
background: lighten($color-black, 5);
}
@media screen and (max-width: 1024px) {
width: 30.31%;
}
&::before{
content: "Continuar comprando";
font-family: $font-family-secundary;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 16px;
text-align: center;
color: $color-black2;
text-transform: uppercase;
@media screen and (min-width: 2500px) {
font-size: 28px;
line-height: 33px;
}
}
}
}
}

View File

@ -9,20 +9,229 @@ html {
}
footer .footerCheckout__wrapper {
width: 94.9734%;
width: 100%;
margin: auto auto 0 auto;
border-top: 1px solid $color-black2;
.container {
display: flex;
align-items: center;
width: 94.9734%;
@media screen and (max-width: 1024px) {
flex-direction: column;
align-items: baseline;
width: 97%;
gap: 16px;
}
}
}
footer .footerCheckout__prateleira,
header {
width: 79.53125%;
width: 100%;
margin: 0 auto;
}
header {
border-bottom: 1px solid $color-black2;
padding: 29px 0;
@media screen and (max-width: 1024px) {
padding: 16px 0;
}
}
.headerCheckout__safeBuy {
display: flex;
gap: 8px;
height: 15px;
@media screen and (min-width: 2500px) {
height: 33px;
}
}
body {
display: flex;
flex-direction: column;
min-height: 100% !important;
padding-top: 0 !important;
position: relative;
.SecurityEnvironmentIcon {
@media screen and (max-width: 1024px) {
display: none;
}
}
.view {
display: block !important;
}
.vtex-omnishipping-1-x-leanShippingOptionActive {
background: $color-gray12 !important;
}
#creditCardpayment-card-0Number {
width: 64%;
height: 25px;
@media screen and (max-width: 1024px) {
width: 97%;
height: 33px;
}
}
div.row-fluid.orderform-template.span12.active{
min-height: 580px;
}
p.PaymentCardHolderDocument.input.text.required.mask {
display: none;
}
.PaymentInstallments select {
width: 68%;
}
input#creditCardpayment-card-0Name.input-medium {
width: 34%;
height: 25px;
}
.input#creditCardpayment-card-0Code.input-mini {
width: 16%;
height: 25px;
}
#ship-postalCode {
border: 1px solid $color-gray8;
border-radius: 8px;
@media screen and (max-width: 1024px) {
width: 100%;
}
}
#find-pickups-manualy-button-denied {
color: $color-black2;
outline: none;
&:hover {
background: $color-white;
color: $color-black2;
}
&:active {
background: $color-white;
color: $color-black2;
}
}
#payment-data-submit {
i.icon-lock {
display: none;
}
}
p.input.ship-postalCode.required.text {
@media screen and (max-width: 1024px) {
width: 75%;
}
}
tbody.totalizers-list {
tr.srp-summary-result.hide {
display: none;
}
}
div.cart-fixed.cart-fixed-transition.affix-top {
.Items {
border-top: 1px solid $color-gray10;
border-bottom: 1px solid $color-gray10;
.info {
padding: 26px 0 !important;
padding-left: 17px !important;
float: none;
}
.monetary {
padding-right: 17px !important;
float: none;
}
}
.Discounts {
border-bottom: 1px solid $color-gray10;
.info {
padding: 26px 0 !important;
padding-left: 17px !important;
float: none;
}
.monetary {
padding-right: 17px !important;
float: none;
}
}
tfoot {
td.info,
td.monetary {
padding-top: 30px;
padding-bottom: 0px;
}
td.info {
padding-left: 17px;
}
td.monetary {
padding-right: 17px;
}
}
div.span5.totalizers.summary-totalizers.cart-totalizers.pull-right {
margin-bottom: 0;
}
}
button#payment-data-submit.submit.btn.btn-success.btn-large.btn-block {
margin-top: 47px;
}
div.step.accordion-group.client-profile-data {
.client-profile-email {
margin-bottom: 6px;
}
.client-profile-summary {
span {
margin-bottom: 6px;
}
}
span {
font-size: 0;
line-height: 0;
&::after {
content: "Identificação";
font-family: $font-family-secundary;
font-style: normal;
font-weight: 400;
font-size: 16px;
line-height: 19px;
color: $color-black;
}
}
span.accordion-toggle.collapsed,
span.email,
span.name,
span.tel,
span.newsletter-text {
&::after {
display: none;
}
}
span.email,
span.name,
span.tel {
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
color: $color-gray2;
}
span.newsletter-text {
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
color: $color-gray9;
}
}
a#payment-group-creditCardPaymentGroup.payment-group-item,
a#payment-group-bankInvoicePaymentGroup.payment-group-item {
display: block;
}
.payment-group-list-btn {
width: 105%;
@media screen and (max-width: 1024px) {
width: 100%;
}
}
@include mq(md, max) {
padding-left: 0;
@ -50,37 +259,230 @@ body {
.container-order-form,
.container-cart {
width: 80%;
@media screen and (max-width: 1024px) {
width: 100%;
}
}
.row-fluid .full-cart.active,
.row-fluid .orderform-template.active {
@media screen and (max-width: 1024px) {
display: flex;
flex-direction: column;
}
.row-fluid {
@media screen and (max-width: 1024px) {
display: flex;
flex-direction: column;
}
#client-profile-data {
@media screen and (max-width: 1024px) {
width: 100%;
padding: 0 16px;
span.help.error {
font-size: 12px;
line-height: 14px;
&::after {
display: none;
}
}
}
p.client-email.input.text.required {
@media screen and (max-width: 1024px) {
width: 100%;
}
#client-email {
@media screen and (max-width: 1024px) {
width: 98.5%;
}
}
}
p.client-first-name.input.pull-left.text.required {
@media screen and (max-width: 1024px) {
width: 50%;
margin-right: 0.5%;
}
#client-first-name {
@media screen and (max-width: 1024px) {
width: 95.7%;
}
}
}
p.client-last-name.input.pull-left.text.required {
@media screen and (max-width: 1024px) {
width: 49.5%;
}
#client-last-name {
@media screen and (max-width: 1024px) {
width: 96.9%;
}
}
}
p.client-document.input.pull-left.text.required.mask {
@media screen and (max-width: 1024px) {
width: 50%;
margin-right: 0.5%;
margin-bottom: 0;
}
#client-document {
@media screen and (max-width: 1024px) {
width: 95.7%;
}
}
}
p.client-phone.input.pull-left.text.required.mask {
@media screen and (max-width: 1024px) {
width: 49.5%;
margin-bottom: 0;
}
#client-phone {
@media screen and (max-width: 1024px) {
width: 96.9%;
}
}
}
p.newsletter {
@media screen and (max-width: 1024px) {
margin-top: 0;
}
}
}
#shipping-data {
@media screen and (max-width: 1024px) {
width: 100%;
padding: 0 16px;
margin: 0;
}
div.accordion-inner.shipping-container {
div.box-step {
#postalCode-finished-loading {
@media screen and (max-width: 1024px) {
width: 33%;
}
}
p.input.ship-postalCode.required.text {
@media screen and (max-width: 1024px) {
width: 100%;
}
#ship-postalCode {
@media screen and (max-width: 1024px) {
max-width: 98.5%;
}
}
}
div.vtex-omnishipping-1-x-address {
@media screen and (max-width: 1024px) {
margin-bottom: 0;
}
p.input.ship-number.required.text {
@media screen and (max-width: 1024px) {
margin-right: 0;
}
}
}
}
}
}
#payment-data {
@media screen and (max-width: 1024px) {
width: 100%;
padding: 0 16px;
margin: 0;
}
div.step.accordion-group.store-country-BRA.active {
@media screen and (max-width: 1024px) {
width: 96.4%;
}
}
}
}
}
.container-cart {
@media screen and (max-width: 1024px) {
width: 100%;
}
}
}
.row-fluid .full-cart.active {
margin-bottom: 0;
.row-fluid.summary {
@media screen and (max-width: 1024px) {
display: flex;
flex-direction: column;
}
.span5.totalizers.summary-totalizers.cart-totalizers.pull-right {
@media screen and (max-width: 1024px) {
width: 100%;
margin: 0;
padding: 0 16px;
}
}
}
.clearfix.pull-right.cart-links.cart-links-bottom.hide {
width: 97%;
padding: 0 16px;
@media screen and (min-width: 2500px) {
width: 34.4%;
padding: 0;
}
@media screen and (max-width: 1024px) {
margin-bottom: 25px;
}
}
}
.btn-success {
background: $color-black;
background: $color-white;
text-shadow: none;
&:hover {
background: lighten($color-black, 15%);
background: lighten($color-white, 15%);
}
}
.emailInfo h3 {
color: $color-black !important;
}
#cart-title,
#orderform-title {
color: $color-gray2;
color: $color-black2;
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: 17px 0;
text-transform: uppercase;
@media screen and (min-width: 2500px) {
font-size: 48px;
line-height: 65px;
}
@include mq(md, max) {
margin-left: 30px;
}
}
#cart-title {
// display: block !important;
font-weight: 700;
font-size: 24px;
line-height: 33px;
width: max-content;
color: $color-black;
margin: 16px 0;
letter-spacing: 0.05em;
@media screen and (min-width: 2500px) {
font-size: 48px;
line-height: 65px;
}
}
#orderform-title {
@media screen and (max-width: 1024px) {
margin: 16px 0 16px 16px;
}
}
.dropdown {
&__content {

View File

@ -99,16 +99,22 @@
.slick-arrow {
font-size: 0;
position: absolute;
top: 50%;
transform: translateY(-100%);
}
.slick-prev {
background: url("https://agenciamagma.vteximg.com.br/arquivos/arrow-left-mini-M3Academy.svg")
no-repeat center center;
z-index: 4;
left: 10px;
left: 0;
border: none;
}
.slick-next {
background: url("https://agenciamagma.vteximg.com.br/arquivos/arrow-right-mini-M3Academy.svg")
no-repeat center center;
z-index: 4;
right: 10px;
right: 16px;
border: none;
}
.slick-arrow.slick-hidden {
display: none;

View File

@ -10,6 +10,7 @@
}
&__address {
color: $color-gray2;
font-family: $font-family;
font-style: normal;
@ -17,7 +18,16 @@
font-size: 10px;
line-height: 12px;
text-transform: capitalize;
max-width: 40%;
width: 33.33%;
@media screen and (min-width: 2500px) {
font-size: 20px;
line-height: 27px;
}
&::after{
content: ".";
}
@include mq(md, max) {
margin-bottom: 24px;
@ -30,12 +40,31 @@
display: flex;
justify-self: center;
list-style: none;
margin: 0;
width: 33.33%;
justify-content: center;
@include mq(md, max) {
align-self: center;
margin-bottom: 12px;
}
.footer-imgs-cards {
width: 10.8%;
margin-right: 2.8%;
&-final{
width: 10.8%;
margin-right: 0px
}
@media screen and (max-width: 1024px) {
width: 11.8%;
margin-right: 1.6%;
}
}
.footer-imgs-vtexpci{
width: 84.4%;
}
&__divider {
background-color: $color-gray4;
display: inline-block;
@ -49,10 +78,32 @@
align-items: center;
display: flex;
list-style-type: none;
margin: 0;
margin: 0 0 0 0px;
width: 33.33%;
justify-content: flex-end;
@media screen and (max-width: 1024px) {
justify-content: normal;
}
.Link1{
justify-content: end;
&__footer-imgs-logoVtex{
width: 40%;
}
}
.footer-imgs-logoM3{
width: 27.5%;
}
li:first-child {
width: 26.61%;
}
li:last-child {
margin-left: 16px;
margin-left: 2.5%;
width: 25.58%;
}
a {
@ -66,6 +117,11 @@
line-height: 12px;
text-decoration: none;
@media screen and (min-width: 2500px) {
font-size: 18px;
line-height: 25px;
}
span {
margin-right: 8px;
}

View File

@ -1,18 +1,134 @@
/* _header.scss */
.headerCheckout {
.container {
width: auto !important;
width: 79.53125%;
margin: 0 auto;
@media screen and (max-width: 1024px) {
width: 97%;
}
}
&__wrapper {
align-items: center;
display: flex;
justify-content: space-between;
.progress-bar{
height: 35px;
.container-total{
display: grid;
padding: 0;
grid-template-columns: 2fr 1fr 2fr;
width: 439px;
margin: 0;
@media screen and (min-width: 2500px) {
width: 1078px;
}
.li-volta-borda-1,
.li-volta-borda-2,
.li-volta-centro {
display: flex;
flex-direction: column;
list-style: none;
}
.p-text{
width: max-content;
font-weight: 400;
font-size: 12px;
line-height: 14px;
margin-bottom: 9px;
font-family: $font-family-secundary;
color: $color-black2;
@media screen and (min-width: 2500px) {
font-size: 24px;
line-height: 28px;
}
}
.p-bola1,
.p-bola2,
.p-bola3 {
border: 1px solid $color-black2;
border-radius: 50%;
width: 10px;
height: 10px;
background-color: $color-white;
@media screen and (min-width: 2500px) {
width: 22px;
height: 22px;
}
}
.div-itens{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.div-flex1,
.div-flex2,
.div-flex3 {
display: flex;
position: relative;
width: 100%;
}
.div-flex1{
justify-content: flex-start;
}
.div-flex2{
justify-content: center;
}
.div-flex3{
justify-content: flex-end;
}
.p-borda-1{
border-top: 1.5px solid black;
position: absolute;
left: 25%;
bottom: 5px;
margin: 0;
width: 97%;
transform: translateY(-7px);
@media screen and (min-width: 2500px) {
transform: translateY(-12px);
left: 21.6%;
width: 100.5%;
}
}
.p-borda-2{
border-top: 1.5px solid black;
position: absolute;
right: 21.5%;
bottom: 5px;
margin: 0;
width: 100.8%;
transform: translateY(-7px);
@media screen and (min-width: 2500px) {
transform: translateY(-12px);
right: 17.8%;
width: 104.2%;
}
}
.active{
background: $color-black2;
}
}
}
}
&__logo {
img {
height: 52px;
height: 37.14px;
width: auto;
@media screen and (min-width: 2500px) {
min-width: 382px;
height: 91.2px;
}
}
}
@ -23,10 +139,15 @@
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;
color: $color-black;
@media screen and (min-width: 2500px) {
font-size: 24px;
line-height: 33px;
}
}
i {

View File

@ -1 +1,120 @@
/* _prateleira.scss */
.footerCheckout {
border-top: none;
color: $color-gray2;
.footerCheckout__prateleira{
width: 79.38%;
margin-bottom: 54px;
display: none;
margin: 0 9.7% 54px auto;
@media screen and (max-width: 1024px) {
width: 96.5%;
margin: 0 1% 54px auto;
}
}
.footerCheckout__shelfList{
margin: 0;
}
.footerCheckout__shelfList-wrapper{
margin: 0;
}
.footerCheckout__shelfList-wrapper,
.footerCheckout__shelfList-name,
.footerCheckout__shelfList-skus-wrapper,
.footerCheckout__shelfList-button {
margin-right: 16px;
}
.footerCheckout__prateleira-title{
font-family: $font-family-secundary;
font-style: normal;
font-weight: 400;
font-size: 24px;
line-height: 38px;
text-align: center;
color: $color-black2;
@media screen and (min-width: 2500px) {
font-size: 48px;
line-height: 76px;
}
}
.footerCheckout__shelfList-name{
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 13px;
line-height: 18px;
text-align: center;
color: $color-black2;
margin: 20px 0;
width: 95%;
@media screen and (min-width: 2500px) {
font-size: 26px;
line-height: 35px;
}
}
.footerCheckout__shelfList-skus-wrapper{
.footerCheckout__shelfList-skus{
background: $color-blue2;
border-radius: 8px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
width: max-content;
padding: 4px 5.6px 4px 5.6px;
color: $color-white;
margin-right: 5px;
letter-spacing: 0.05em;
text-transform: uppercase;
font-style: normal;
font-weight: 700;
font-size: 13px;
line-height: 18px;
@media screen and (min-width: 2500px) {
font-size: 26px;
line-height: 35px;
}
}
display: flex;
text-align: center;
justify-content: center;
li::marker{
font-size: 0;
}
&#text{
font-size: 0;
}
}
.footerCheckout__shelfList-button{
justify-content: center;
width: 95%;
background: $color-blue2;
border-radius: 8px;
padding: 0;
border: none;
height: 42px;
margin: 20px 0 0 0;
a{
color: $color-white;
letter-spacing: 0.05em;
text-transform: uppercase;
font-family: $font-family;
font-style: normal;
font-weight: 700;
font-size: 13px;
line-height: 18px;
@media screen and (min-width: 2500px) {
font-size: 26px;
line-height: 35px;
}
}
}
}

View File

@ -6,18 +6,35 @@ $font-family-secundary:"Tenor Sans", sans-serif;
/* Colors */
$color-black: #292929;
$color-black2: #000000;
$color-white: #fff;
$color-purple: #41115D;
$color-gray: #6c6c6c;
$color-gray2: #7d7d7d;
$color-gray3: #f0f0f0;
$color-gray4: #8d8d8d;
$color-gray5: #e5e5e5;
$color-gray6: #58595B;
$color-gray7: #EDEDED;
$color-gray8: #C4C4C4;
$color-gray9: #808080;
$color-gray10: #E0E0E0;
$color-gray11: #828282;
$color-gray12: #F2F2F2;
$color-blue: #4267b2;
$color-blue2: #00C8FF;
$color-green: #4caf50;
$color-green2: #298541;
$color-orange: #F15A31;
/* Grid breakpoints */
$grid-breakpoints: (