Merge pull request 'wip' (#1) from wip into main

Reviewed-on: #1
This commit is contained in:
SamuelCondack 2022-12-19 02:37:01 +00:00
commit ee54780d08
13 changed files with 11106 additions and 159 deletions

View File

@ -7,13 +7,69 @@ export default class Footer {
async init() { async init() {
await this.selectors(); await this.selectors();
this.footerCheckoutInnerHTML();
this.footerCheckoutDevelopedInnerHTML();
this.events();
this.onUpdate();
this.createPaymentsIcons();
this.createVtexpciIcon();
this.createDevIcons();
// this.onUpdate(); // this.onUpdate();
} }
events() {
window.addEventListener("hashchange", () => {
if (window.location.hash == "#/cart" && this.checkoutVazio.style.display == "none") {
this.list.style.display = "block";
}
if (window.location.hash != "#/cart") {
this.list.style.display = "none";
}
});
addEventListener("resize", () => {
this.addCarrossel();
});
}
async selectors() { async selectors() {
//Para verificar se o carrinho está vazio e remover a prateleira de produtos: //Para verificar se o carrinho está vazio e remover a prateleira de produtos:
// vocês devem olhar a doc fornecida no Desafio para aprender a usar o waitElement // vocês devem olhar a doc fornecida no Desafio para aprender a usar o waitElement
this.list = await waitElement(".footerCheckout__prateleira", {
timeout: 5000,
interval: 1000,
});
this.checkoutVazio = await waitElement(".empty-cart-content"); this.checkoutVazio = await waitElement(".empty-cart-content");
this.footerCheckout = document.querySelector(".footerCheckout__stamps");
this.footerCheckoutDeveloped = document.querySelector(".footerCheckout__developedBy");
this.payments = await waitElement(".footerCheckout__payments");
this.vtexpci = await waitElement(".footerCheckout__vtexpci");
this.devIncons = await waitElement(".footerCheckout__developedBy");
this.listaPrateleira = await waitElement(".footerCheckout__prateleira");
this.cartTitulo = await waitElement("#cart-title")
}
async footerCheckoutInnerHTML(){
this.footerCheckout.innerHTML = `
<div class = "footerCheckout__stamps__div_wrapper">
<img class = "images_footer" src = "https://agenciamagma.vteximg.com.br/arquivos/masterCardM3Academy.png/">
<img class = "images_footer" src = "https://agenciamagma.vteximg.com.br/arquivos/visaM3Academy.png/">
<img class = "images_footer" src = "https://agenciamagma.vteximg.com.br/arquivos/amexM3Academy.png/">
<img class = "images_footer" src = "https://agenciamagma.vteximg.com.br/arquivos/eloM3Academy.png/">
<img class = "images_footer" src = "https://agenciamagma.vteximg.com.br/arquivos/hiperCardM3Academy.png/">
<img class = "images_footer" src = "https://agenciamagma.vteximg.com.br/arquivos/payPalM3Academy.png/">
<img class = "images_footer" src = "https://agenciamagma.vteximg.com.br/arquivos/boletoM3Academy.png/">
<p class="pipe"></p>
<img class = "images_footer_vtexPCIM" src = "https://agenciamagma.vteximg.com.br/arquivos/vtexPCIM3Academy.png/"
</div>
`
}
async footerCheckoutDevelopedInnerHTML(){
this.footerCheckoutDeveloped.innerHTML = `
<div class = "footerCheckout__stamps__div_wrapperDeveloper">
<p class = "footer_description_1">Powered by</p>
<img class = "images_footer_developed" src = "https://agenciamagma.vteximg.com.br/arquivos/logoVTEXM3Academy.png"/>
<p class = "footer_desciption_2">Developed by</p>
<img class = "images_footer_developed" src = "https://agenciamagma.vteximg.com.br/arquivos/logoM3M3Academy.png"/>
</div>
`;
} }
onUpdate() { onUpdate() {
@ -21,20 +77,95 @@ export default class Footer {
// vocês devem olhar a doc fornecida no Desafio para aprender a usar a MutationObserver // vocês devem olhar a doc fornecida no Desafio para aprender a usar a MutationObserver
// sempre que o carrinho estiver vazio o elemento chcekoutVazio fica display: none e isso pode ser usado como atributo para a MutationObserver // sempre que o carrinho estiver vazio o elemento chcekoutVazio fica display: none e isso pode ser usado como atributo para a MutationObserver
let target = this.checkoutVazio; let target = this.checkoutVazio;
let list = this.listaPrateleira;
let cartTitle = this.cartTitulo;
let slickTitle = this.titleSlick;
if (target.style.display == "none" && window.location.hash == "#/cart") {
list.style.display = "flex";
list.style.display = "block";
this.fetchApiData();
} else {
this.cartTitulo.style.display = "none";
list.style.display = "none";
}
let config = { childList: true, attributes: true }; let config = { childList: true, attributes: true };
let observer = new MutationObserver((mutations) => { let observer = new MutationObserver((mutations) => {
if (!this.list.classList.contains("fetch")) {
this.fetchApiData();
}
mutations.forEach(function (mutation) { mutations.forEach(function (mutation) {
console.log(mutation.type); if (target.style.display != "none") {
list.style.display = "none";
cartTitle.style.display == "none";
if (list.style.display == "none"){
slickTitle.style.display = "none";
}
} else {
cartTitle.style.display = "block";
list.style.display = "block";
}
}); });
}); });
observer.observe(target, config); observer.observe(target, config);
} }
fetchApiData() {
this.list.innerHTML = `
<h3>Você também pode gostar:</h3>
`;
fetch(
"https://m3academy.myvtex.com/api/catalog_system/pub/products/search/?fq=productClusterIds:319"
)
.then((response) => response.json())
.then((data) => {
//const list = document.querySelector(".footerCheckout__prateleira");
const ul = document.createElement("ul");
ul.classList.add("slick-test");
this.list.appendChild(ul);
data.map((item) => {
let colors = "";
for (let i = 0; i < item.items.length; i++) {
colors += `<p>${item.items[i].name}</p>`;
}
const li = document.createElement("li");
li.setAttribute("name", item.itemId);
li.classList.add("itemList");
li.innerHTML = `<img class="productImg" src="${item.items[0].images[0].imageUrl}">
<p class="productName">${item.productName}</p>
<div class="itemSku">
${colors}
</div>
<a class="productLink" type="button" href="${item.link}">VER PRODUTO</a>`;
ul.appendChild(li);
this.list.classList.add("fetch");
ul.style.width = "100%";
});
})
.then(() => {
this.addCarrossel();
});
}
async addCarrossel() { async addCarrossel() {
const elemento = await waitElement("#my-element"); const elemento = await waitElement(".slick-test");
$(elemento).slick({ if ($(elemento).hasClass("slick-initialized")) {
slidesToShow: 4, $(elemento).slick("unslick");
slidesToScroll: 1, }
}); if (window.innerWidth > 1024) {
$(elemento).not(".slick-initialized").slick({
slidesToShow: 4,
slidesToScroll: 1,
});
} else if (window.innerWidth > 375) {
$(elemento).not(".slick-initialized").slick({
slidesToShow: 3,
slidesToScroll: 1,
});
} else if (window.innerWidth <= 375) {
$(elemento).not(".slick-initialized").slick({
slidesToShow: 2,
slidesToScroll: 1,
});
}
} }
} }

View File

@ -8,14 +8,240 @@ export default class Header {
async init() { async init() {
await this.selectors(); await this.selectors();
console.log(this.item); this.createProgressBar();
await this.progressBarProgress();
} }
async selectors() { async selectors() {
this.item = await waitElement("#my-element", { this.header = await waitElement(".headerCheckout");
//#my-element pode ser a class ou o id do elemento html qeu vocÊ quer pegar this.progressBar = await waitElement("#progressBar");
timeout: 5000, // vai esperar 5 segundos antes de rejeitar a promise }
interval: 1000, // vai verificar a cada 1 segundo se o elemento existe createProgressBar() {
}); if (this.progressBar && window.innerWidth > 1024) {
this.progressBar.innerHTML = `
<ul>
<li>
<div class="containerLi">
<div>
<p class="progress-bar-text">Meu carrinho</p>
<p id="progress-bar-circle-1" class="progress-bar-circle-1"></p>
<p class="progress-bar-line-1"></p>
</div>
</div>
</li>
<li class="central">
<div class="containerLi">
<div>
<p class="progress-bar-text">Dados Pessoais</p>
<p id="progress-bar-circle-2" class="progress-bar-circle-2"></p>
</div>
</div>
</li>
<li>
<div class="containerLi">
<div>
<p class="progress-bar-text">Pagamento</p>
<p id="progress-bar-circle-3" class="progress-bar-circle-3"></p>
<p class="progress-bar-line-2"></p>
</div>
</div>
</li>
</ul>
`;
}
if (this.progressBar && window.innerWidth <= 1024) {
this.progressBar.innerHTML = ``;
}
}
async progressBarProgress() {
if (this.progressBar && window.innerWidth > 1024) {
const progressBarList = document.querySelectorAll("#progressBar ul li");
progressBarList.forEach((li) => {
if (window.location.href == "https://m3academy.myvtex.com/checkout/#/cart") {
if (li.children[0].children[0].children["progress-bar-circle-1"]) {
li.children[0].children[0].children["progress-bar-circle-1"].classList.add(
"active"
);
}
if (li.children[0].children[0].children["progress-bar-circle-2"]) {
if (
li.children[0].children[0].children[
"progress-bar-circle-2"
].classList.contains("active")
) {
li.children[0].children[0].children[
"progress-bar-circle-2"
].classList.remove("active");
}
}
if (li.children[0].children[0].children["progress-bar-circle-3"]) {
if (
li.children[0].children[0].children[
"progress-bar-circle-3"
].classList.contains("active")
) {
li.children[0].children[0].children[
"progress-bar-circle-3"
].classList.remove("active");
}
}
} else if (
window.location.href == "https://m3academy.myvtex.com/checkout/#/email" ||
window.location.href == "https://m3academy.myvtex.com/checkout/#/profile" ||
window.location.href == "https://m3academy.myvtex.com/checkout/#/shipping"
) {
if (li.children[0].children[0].children["progress-bar-circle-1"]) {
if (
li.children[0].children[0].children[
"progress-bar-circle-1"
].classList.contains("active")
) {
li.children[0].children[0].children[
"progress-bar-circle-1"
].classList.remove("active");
}
}
if (li.children[0].children[0].children["progress-bar-circle-2"]) {
li.children[0].children[0].children["progress-bar-circle-2"].classList.add(
"active"
);
}
if (li.children[0].children[0].children["progress-bar-circle-3"]) {
if (
li.children[0].children[0].children[
"progress-bar-circle-3"
].classList.contains("active")
) {
li.children[0].children[0].children[
"progress-bar-circle-3"
].classList.remove("active");
}
}
} else if (
window.location.href == "https://m3academy.myvtex.com/checkout/#/payment"
) {
if (li.children[0].children[0].children["progress-bar-circle-1"]) {
if (
li.children[0].children[0].children[
"progress-bar-circle-1"
].classList.contains("active")
) {
li.children[0].children[0].children[
"progress-bar-circle-1"
].classList.remove("active");
}
}
if (li.children[0].children[0].children["progress-bar-circle-2"]) {
if (
li.children[0].children[0].children[
"progress-bar-circle-2"
].classList.contains("active")
) {
li.children[0].children[0].children[
"progress-bar-circle-2"
].classList.remove("active");
}
}
if (li.children[0].children[0].children["progress-bar-circle-3"]) {
li.children[0].children[0].children["progress-bar-circle-3"].classList.add(
"active"
);
}
}
window.addEventListener("hashchange", () => {
if (window.location.hash == "#/cart") {
if (li.children[0].children[0].children["progress-bar-circle-1"]) {
li.children[0].children[0].children[
"progress-bar-circle-1"
].classList.add("active");
}
if (li.children[0].children[0].children["progress-bar-circle-2"]) {
if (
li.children[0].children[0].children[
"progress-bar-circle-2"
].classList.contains("active")
) {
li.children[0].children[0].children[
"progress-bar-circle-2"
].classList.remove("active");
}
}
if (li.children[0].children[0].children["progress-bar-circle-3"]) {
if (
li.children[0].children[0].children[
"progress-bar-circle-3"
].classList.contains("active")
) {
li.children[0].children[0].children[
"progress-bar-circle-3"
].classList.remove("active");
}
}
} else if (
window.location.hash == "#/email" ||
window.location.hash == "#/profile" ||
window.location.hash == "#/shipping"
) {
if (li.children[0].children[0].children["progress-bar-circle-1"]) {
if (
li.children[0].children[0].children[
"progress-bar-circle-1"
].classList.contains("active")
) {
li.children[0].children[0].children[
"progress-bar-circle-1"
].classList.remove("active");
}
}
if (li.children[0].children[0].children["progress-bar-circle-2"]) {
li.children[0].children[0].children[
"progress-bar-circle-2"
].classList.add("active");
}
if (li.children[0].children[0].children["progress-bar-circle-3"]) {
if (
li.children[0].children[0].children[
"progress-bar-circle-3"
].classList.contains("active")
) {
li.children[0].children[0].children[
"progress-bar-circle-3"
].classList.remove("active");
}
}
} else if (window.location.hash == "#/payment") {
if (li.children[0].children[0].children["progress-bar-circle-1"]) {
if (
li.children[0].children[0].children[
"progress-bar-circle-1"
].classList.contains("active")
) {
li.children[0].children[0].children[
"progress-bar-circle-1"
].classList.remove("active");
}
}
if (li.children[0].children[0].children["progress-bar-circle-2"]) {
if (
li.children[0].children[0].children[
"progress-bar-circle-2"
].classList.contains("active")
) {
li.children[0].children[0].children[
"progress-bar-circle-2"
].classList.remove("active");
}
}
if (li.children[0].children[0].children["progress-bar-circle-3"]) {
li.children[0].children[0].children[
"progress-bar-circle-3"
].classList.add("active");
}
}
});
});
}
} }
} }

View File

@ -1,3 +1,32 @@
.client-pre-email-h{
.client-pre-email, span, small{
font-family: 'Tenor Sans';
font-style: normal;
font-weight: 400;
font-size: 20px;
line-height: 23px;
text-align: center;
text-transform: uppercase;
color: #000000;
@media (min-width: 2500px){
font-family: 'Tenor Sans';
font-style: normal;
font-weight: 400;
font-size: 40px;
line-height: 47px;
}
}
small{
font-family: 'Tenor Sans';
font-style: normal;
font-weight: 400 !important;
font-size: 20px !important;
line-height: 23px;
text-align: center;
text-transform: uppercase;
color: #000000 !important;
}
}
.checkout-container { .checkout-container {
.client-pre-email { .client-pre-email {
border-color: $color-gray4; border-color: $color-gray4;
@ -26,7 +55,9 @@
span { span {
color: #303030; color: #303030;
@media (min-width: 2500px){
font-size: 24px; font-size: 24px;
}
} }
small { small {
@ -43,7 +74,7 @@
color: $color-black; color: $color-black;
font-family: $font-family; font-family: $font-family;
padding: 0 16px; padding: 0 16px;
border: 2px solid $color-gray3; border: 1px solid #000000;
box-sizing: border-box; box-sizing: border-box;
border-radius: 5px; border-radius: 5px;
@ -53,13 +84,38 @@
} }
button { button {
background-color: $color-black; background: #00C8FF;
border-radius: 5px; color: #000000;
border-radius: 8px;
border: none; border: none;
font-family: $font-family; font-family: $font-family;
height: 54px; height: 54px;
right: 0; right: 0;
top: 0; top: 0;
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
font-size: 14px;
line-height: 19px;
display: flex;
align-items: center;
text-align: center;
letter-spacing: 0.05em;
text-transform: uppercase;
padding: 12.56px 14.4px 12px 14.41px;
@media (min-width: 2500px){
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
font-size: 28px;
line-height: 38px;
display: flex;
align-items: center;
text-align: center;
letter-spacing: 0.05em;
text-transform: uppercase;
}
@media (max-width: 490px) { @media (max-width: 490px) {
height: 48px; height: 48px;
@ -70,18 +126,39 @@
span.help.error { span.help.error {
color: red; color: red;
@media (min-width: 2500px){
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
font-size: 24px;
line-height: 33px;
}
} }
} }
.emailInfo { .emailInfo {
padding: 16px; padding: 16px;
background-color: $color-white; background-color: $color-white;
border: 1px solid $color-gray4; border: 1px solid #000000;
border-radius: 0; border-radius: 5px;
@media (min-width: 2500px){
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
font-size: 24px;
line-height: 33px;
}
h3 { h3 {
color: #303030; color: #303030;
margin: 0 0 8px 0; margin: 0 0 8px 0;
@media (min-width: 2500px){
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
font-size: 24px;
line-height: 33px;
}
} }
ul { ul {
@ -93,27 +170,90 @@
} }
i::before { i::before {
color: $color-black; color: #00C8FF;
font-size: 1rem; font-size: 1rem;
opacity: 1; opacity: 1;
font-size: 30px;
} }
} }
} }
.icon-lock{
display: none;
}
i::before { i::before {
color: $color-black; color: $color-black;
font-size: 6rem; font-size: 6rem;
opacity: 0.5; opacity: 0.5;
} }
} }
} }
div[data-bind="css: {active: active, filled: visitedAndNotActive}"]{
@media (max-width: 1024px){
width: 92%;
}
}
.client-profile-email{
@media (min-width: 2500px){
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 24px;
line-height: 33px;
}
}
.client-profile-summary{
span{
@media (min-width: 2500px){
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 24px;
line-height: 33px;
}
}
}
#client-profile-data{
@media (min-width: 2500px){
font-family: 'Tenor Sans';
font-style: normal;
font-weight: 400;
font-size: 32px;
line-height: 37px;
}
@media (max-width: 1024px){
width: 100%;
}
}
#shipping-data{
@media (max-width: 1024px){
width: 100%;
}
}
#payment-data{
@media (max-width: 1024px) {
width: 100%;
}
width: 100%;
}
.client-profile-data{
.pull-left{
@media (max-width: 1024px){
float: left !important;
}
}
}
.shipping-data, .shipping-data,
.payment-data, .payment-data,
.client-profile-data { .client-profile-data {
@media (max-width: 1024px){
margin: 0;
margin-top: 12px;
}
.accordion-group { .accordion-group {
border-radius: 0; border-radius: 8;
border: 1px solid $color-gray4; border: 1px solid #E0E0E0;
font-family: $font-family; font-family: $font-family;
padding: 16px; padding: 16px;
@ -121,31 +261,167 @@
span { span {
color: #303030; color: #303030;
margin-bottom: 8px; margin-bottom: 8px;
padding: 0; padding-bottom: 25px;
@media (min-width: 2500px){
font-weight: 400;
font-size: 32px;
line-height: 37px;
}
i::before { i::before {
fill: #303030; fill: #303030;
} }
.icon-home{
display: none;
}
span[data-i18n="clientProfileData.identification"] {
color: #fff;
}
span[data-i18n="clientProfileData.identification"]::before {
content: "Identificação";
color: #000000;
@media (min-width: 2500px){
font-family: 'Tenor Sans';
font-style: normal;
font-weight: 400;
font-size: 32px;
line-height: 37px;
}
}
} }
a { a {
align-items: center; align-items: center;
background-color: #303030; background-color: white;
border-radius: 8px; color: #00C8FF;
border: none; border: none;
color: $color-white; font-size: 19px;
box-shadow: none;
text-shadow: none;
display: flex; display: flex;
justify-content: center; justify-content: center;
padding: 6px 5px 6px 8px; padding: 6px 5px 6px 8px;
} }
} }
.accordion-toggle{
padding-left: 0;
.icon-user{
display: none;
}
}
.accordion-heading {
.accordion-toggle, .collapsed, .accordion-toggle-active{
.icon-credit-card {
display: none;
}
}
}
.accordion-inner { .accordion-inner {
padding: 0; .steps-view{
width: fit-content;
height: fit-content;
@media (max-width: 1024px){
width:
95%;
}
@media (max-width: 550px){
width: 90%;
}
}
.payment-group-item{
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 24px;
color: #58595B;
background: #F0F0F0;
border: 1px solid hsl(0, 0%, 0%);
border-radius: 6px;
margin-bottom: 12px;
&:focus{
color: #F15A31 !important;
border: 1px solid #F15A31;
text-decoration: none;
}
&:hover{
color: #F15A31 !important;
border: 1px solid #F15A31;
}
.payment-group-item-text{
font-weight: 400;
font-size: 28px;
line-height: 24px;
}
}
a[data-i18n="paymentData.paymentGroup.giftCard.useGiftCard"]{
display: none;
}
a[data-name="Bancolombia Transfer"]{
display: none;
}
#payment-group-SPEIPaymentGroup{
display: none;
}
#payment-group-MercadoPagoPaymentGroup{
display: none;
}
#payment-group-custom201PaymentGroupPaymentGroup{
display: none;
}
#payment-group-customPrivate_502PaymentGroup{
display: none;
}
#payment-group-Bancolombia{
display: none;
}
#payment-group-PSEPaymentGroup{
display: none;
}
#payment-group-custom203PaymentGroupPaymentGroup{
display: none;
}
#payment-group-instantPaymentPaymentGroup{
display: none;
}
#payment-group-promissoryPaymentGroup{
display: none;
}
#payment-group-creditDirectSalePaymentGroup{
display: none;
}
#payment-group-creditControlPaymentGroup{
display: none;
}
.pg-transferencia-bancaria{
display: none;
}
.pg-deposito{
display: none;
}
padding: 0;
.link-change-shipping{
display: none;
}
.link-gift-card{
.box-step{
.box-step-content{
display: none;
}
}
}
.payment-group-list-btn{
span{
background-image: none !important;
}
}
/* General configurations */ /* General configurations */
.client-notice { .client-notice {
display: none;
color: $color-black; color: $color-black;
} }
@ -157,8 +433,8 @@
select, select,
input { input {
border-radius: 0; border-radius: 8;
border: 1px solid $color-gray4; border: 1px solid #E0E0E0;
box-shadow: none; box-shadow: none;
} }
@ -168,8 +444,10 @@
} }
.box-client-info-pj { .box-client-info-pj {
display: none;
.link a#is-corporate-client, .link a#is-corporate-client,
.link a#not-corporate-client { .link a#not-corporate-client {
display: none;
color: $color-black; color: $color-black;
font-weight: 500; font-weight: 500;
text-decoration: underline; text-decoration: underline;
@ -181,20 +459,29 @@
} }
button.submit { button.submit {
width: 100%;
border: none; border: none;
border-radius: 5px; border-radius: 8px;
background: $color-black; background: #00C8FF;
margin-top: 8px; margin-top: 8px;
outline: none; outline: none;
transition: all 0.2s linear; transition: all 0.2s linear;
text-transform: uppercase;
font-weight: 700;
margin-top: 45px;
&:hover { &:hover {
background: lighten($color-black, 5); background: lighten(#00C8FF, 5);
} }
&:active { &:active {
background: darken($color-black, 5); background: darken(#00C8FF, 5);
} }
@media (min-width: 2500px){
font-weight: 700;
font-size: 28px;
line-height: 38px;
}
} }
/* Shipping configurations */ /* Shipping configurations */
@ -203,18 +490,44 @@
color: #303030; color: #303030;
font-weight: 500; font-weight: 500;
text-decoration: underline; text-decoration: underline;
margin: 0;
} }
.vtex-omnishipping-1-x-deliveryGroup { .vtex-omnishipping-1-x-deliveryGroup {
p { p {
color: #303030; color: #7d7d7d;
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 700;
@media (min-width: 2500px){
font-weight: 700;
font-size: 28px;
line-height: 38px;
}
} }
.vtex-omnishipping-1-x-leanShippingTextLabel{
@media (min-width: 2500px){
font-weight: 400;
font-size: 24px;
line-height: 33px;
}
}
.vtex-omnishipping-1-x-leanShippingText{
@media (min-width: 2500px){
font-weight: 400;
font-size: 24px;
line-height: 33px;
}
}
.vtex-omnishipping-1-x-optionPrice{
@media (min-width: 2500px){
font-weight: 400;
font-size: 24px;
line-height: 33px;
}
}
.shp-lean { .shp-lean {
border: 1px solid $color-gray4; border: 1px solid #E0E0E0;
border-radius: 0; border-radius: 8px;
label { label {
background-color: $color-white; background-color: $color-white;
@ -223,28 +536,48 @@
padding: 8px 12px; padding: 8px 12px;
svg path { svg path {
fill: #d8c8ac; width: 18px;
height: 18px;
fill: #00C8FF;
border: 1px solid #C4C4C4;
border-radius: 3px;
} }
} }
} }
} }
.delivery-address-title { .delivery-address-title {
color: #303030; font-family: 'Open Sans';
font-size: 14px; font-style: normal;
font-weight: 500; color: #7d7d7d;
font-size: 12px;
font-weight: 700;
line-height: 16px;
letter-spacing: 0.05em;
@media (min-width: 2500px){
font-weight: 700;
font-size: 24px;
line-height: 33px;
}
} }
.shp-summary-group-info { .shp-summary-group-info {
border-color: $color-gray4; border-color: $color-gray4;
} }
#force-shipping-fields{
color: #00C8FF;
}
.address-summary { .address-summary {
background: none; background: none;
border-color: $color-gray4; border-color: #E0E0E0;
border-radius: 0; border-radius: 5;
color: #303030; color: #303030;
padding: 12px; padding: 12px;
@media (min-width: 2500px){
font-weight: 400;
font-size: 24px;
line-height: 33px;
}
@include mq(md, max) { @include mq(md, max) {
background-position: 8px 9px; background-position: 8px 9px;
@ -255,11 +588,54 @@
font-weight: 500; font-weight: 500;
text-decoration: underline; text-decoration: underline;
} }
} }
.ship-number{
@media (min-width: 2500px){
label{
font-weight: 700;
font-size: 24px;
line-height: 33px;
}
}
}
.ship-complement{
@media (min-width: 2500px){
label{
font-weight: 700;
font-size: 24px;
line-height: 33px;
}
}
input{
padding-right: 0px !important;
height: 35px;
width: 100%;
}
}
.ship-receiverName{
@media (min-width: 2500px){
label{
font-weight: 700;
font-size: 24px;
line-height: 33px;
}
}
input{
padding-right: 0px !important;
height: 35px;
width: 100%;
}
}
.shp-summary-group-price, .shp-summary-group-price,
.shp-summary-package { .shp-summary-package {
color: $color-gray4; color: $color-gray4;
@media (min-width: 2500px){
font-weight: 400;
font-size: 24px;
line-height: 33px;
}
} }
.shp-summary-group-price { .shp-summary-group-price {
@ -267,23 +643,248 @@
} }
.shp-summary-package { .shp-summary-package {
padding-left: 16px; padding-left: 0;
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
@media (min-width: 2500px){
font-weight: 400;
font-size: 24px;
line-height: 33px;
}
} }
.vtex-omnishipping-1-x-summaryChange { .vtex-omnishipping-1-x-summaryChange {
border-color: #303030; border-color: #303030;
color: #303030; color: #303030;
} }
#shipping-option-delivery{
@media (min-width: 2500px){
font-weight: 400;
font-size: 28px;
line-height: 38px;
}
}
.vtex-omnishipping-1-x-deliveryChannelsToggle { .vtex-omnishipping-1-x-deliveryChannelsToggle {
background-color: #d8c8ac; color: black;
border: 1px solid #d8c8ac; text-transform: uppercase;
background-color: #fff;
border: 1px solid #292929;
border-radius: 100px;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
} }
.vtex-omnishipping-1-x-deliveryChannelsOption{
color: #C4C4C4;
text-transform: uppercase;
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
}
.vtex-omnishipping-1-x-deliveryOptionActive { .vtex-omnishipping-1-x-deliveryOptionActive {
text-shadow: 1.3px 1px lighten($color-black, 50); color: #41115D;
text-transform: uppercase;
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
} }
.ship-country{
display: none;
}
.vtex-omnishipping-1-x-address{
.ship-street{
display: none !important;
}
.ship-neighborhood{
display: none;
}
.ship-city{
display: none;
}
.ship-state{
display: none;
}
div{
display: flex;
flex-direction: column;
}
.text{
#ship-number{
width: 100%;
height: 35px !important;
padding-right: 0px !important;
}
}
}
}
.vtex-omnishipping-1-x-addressFormPart1, input{
max-width: none;
padding-right: 17px;
@media (min-width: 2500px){
font-weight: 700;
font-size: 24px;
line-height: 33px;
}
}
.box-client-info-pf{
@media (max-width: 815px){
margin-right: 15px;
}
label{
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: #7D7D7D;
@media (min-width: 2500px){
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 28px;
line-height: 38px;
}
}
.input-small{
height: 42px;
}
.client-first-name{
width: 40%;
#client-first-name{
width: 100%;
@media (min-width: 2500px){
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 24px;
line-height: 33px;
}
}
@media (max-width: 1024px){
width: 45%;
}
}
.client-last-name{
width: 40%;
#client-last-name{
width: 100%;
@media (min-width: 2500px){
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 24px;
line-height: 33px;
}
}
@media (max-width: 1024px){
width: 45%;
margin-left: 14.5px;
}
}
.client-document{
width: 40%;
#client-document{
width: 100%;
@media (min-width: 2500px){
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 24px;
line-height: 33px;
}
}
@media (max-width: 1024px){
width: 45%;
}
@media (max-width: 353px){
width: 40%;
}
}
.client-phone{
width: 40%;
#client-phone{
width: 100%;
@media (min-width: 2500px){
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 24px;
line-height: 33px;
}
}
@media (max-width: 1024px){
width: 45%;
margin-left: 14.5px;
}
}
}
span[data-i18n="global.optinNewsLetter"]{
@media (min-width: 2500px){
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 24px;
line-height: 33px;
}
}
.client-email{
#client-email{
@media (min-width: 2500px){
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 28px;
line-height: 38px;
}
}
label{
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: #7D7D7D;
}
.input-xlarge{
width: 95%;
min-height: 42px;
padding-right: 17px;
}
}
#ship-postalCode{
@media (min-width: 2500px){
font-weight: 700;
font-size: 24px;
line-height: 33px;
}
}
.ship-postalCode{
.input-small{
width: 100%;
min-height: 45px;
border-radius: 8px;
margin-bottom: 10px;
@media (min-width: 2500){
font-weight: 700;
font-size: 24px;
line-height: 33px;
}
}
}
small, a{
margin: 0;
}
} }
} }
} }
}

View File

@ -27,16 +27,29 @@
} }
.cart-fixed.affix { .cart-fixed.affix {
position: relative !important; position: relative !important;
@media (max-width: 1024px){
margin-bottom: 101px;
}
} }
.cart-fixed { .cart-fixed {
font-family: $font-family; font-family: $font-family;
width: 100%; width: 100%;
border: 1px solid #E5E5E5;
border-bottom: none;
border-radius: 8px;
h2 { h2 {
padding: 24px 0px 34px 17px;
text-align: left;
background: $color-white; background: $color-white;
border: none; border: none;
color: #303030; color: #292929;
font-size: 14px; font-size: 16px;
font-weight: 500; font-weight: 400;
@media (min-width: 2500px){
font-weight: 400;
font-size: 32px;
line-height: 37px;
}
} }
.item-unavailable { .item-unavailable {
@ -48,7 +61,7 @@
} }
.cart { .cart {
border: 1px solid $color-gray4; border: none;
ul li { ul li {
border-top: none; border-top: none;
@ -65,6 +78,23 @@
.price { .price {
color: #7d7d7d; color: #7d7d7d;
} }
.price{
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
text-align: right;
color: #292929;
@media (min-width: 2500px){
font-weight: 400;
font-size: 24px;
line-height: 33px;
}
}
.shipping-date{
display: none;
}
} }
} }
@ -81,23 +111,45 @@
.summary-totalizers { .summary-totalizers {
td.info { td.info {
width: 100%; width: 100%;
} }
} }
tr.info{
padding-left: 17px;
}
#payment-data-submit { #payment-data-submit {
background: $color-black; font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
font-size: 14px;
line-height: 19px;
text-align: center;
letter-spacing: 0.05em;
text-transform: uppercase;
background: #298541;
border: none; border: none;
border-radius: 0; border-radius: 0;
color: $color-white; color: $color-white;
outline: none; outline: none;
border-radius: 8px;
transition: all 0.2s linear; transition: all 0.2s linear;
@media (min-width: 2500px){
font-weight: 700;
font-size: 28px;
line-height: 38px;
}
&:hover { &:hover {
background: lighten($color-black, 5); background: darken(#298541, 5);
} }
&:active { &:active {
background: darken($color-black, 5); background: darken($color-black, 5);
} }
.icon-lock{
display: none;
}
} }
} }
@ -106,6 +158,7 @@
} }
.cart-items { .cart-items {
width: 100%;
.product-item { .product-item {
padding: 16px 0; padding: 16px 0;
} }
@ -117,6 +170,13 @@
font-weight: bold; font-weight: bold;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 16px;
@media (min-width: 2500px){
font-family: 'Tenor Sans';
font-style: normal;
font-weight: 400;
font-size: 28px;
line-height: 33px;
}
@include mq(md, max) { @include mq(md, max) {
&.quantity-price, &.quantity-price,
@ -131,36 +191,56 @@
padding: 0; padding: 0;
width: 60px; width: 60px;
@include mq(sm, max) { @include mq(sm, max) {
width: 72px; width: 72px;
} }
img { img {
height: 60px; height: 60px;
max-width: 100%;
width: auto; width: auto;
@include mq(sm, max) { @include mq(sm, max) {
height: 72px; height: 72px;
width: auto; width: auto;
} }
} }
} }
.product-name { .product-name {
padding-right: 0; padding-right: 0;
font-family: 'Tenor Sans';
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 14px;
color: #000000;
padding-top: 20px;
@media (min-width: 2500px){
font-family: 'Tenor Sans';
font-style: normal;
font-weight: 400;
font-size: 24px;
line-height: 28px;
}
@include mq(lg, max) { @include mq(lg, max) {
width: 250px; width: 250px;
} }
a { a {
color: $color-blue; color: #000000;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
transition: ease-in 0.22s all; transition: ease-in 0.22s all;
cursor: default;
&:hover { &:hover {
color: darken($color-blue, 10); color: darken($color-blue, 10);
@ -187,17 +267,7 @@
display: none; display: none;
} }
} }
.product-price { .product-price {
min-width: 100px;
@include mq(md, max) {
min-width: 78px;
}
@media (max-width: 490px) {
position: absolute;
bottom: 0;
right: 0;
}
span.list-price { span.list-price {
color: $color-gray2; color: $color-gray2;
@ -214,11 +284,10 @@
} }
} }
} }
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;
@ -227,14 +296,13 @@
max-width: 118px; max-width: 118px;
padding: 0; padding: 0;
width: max-content !important; width: max-content !important;
@media (max-width: 490px) { @media (max-width: 490px) {
margin-left: 84px !important; margin-left: 84px !important;
} }
input { input {
background-color: $color-white; background-color: $color-white;
border: 1px solid $color-gray3; border: none;
border-radius: 0; border-radius: 0;
border-width: 0 1px; border-width: 0 1px;
display: block; display: block;
@ -253,6 +321,7 @@
.icon-plus-sign, .icon-plus-sign,
.icon-minus-sign { .icon-minus-sign {
&::before { &::before {
border-radius: 50%;
color: $color-black; color: $color-black;
display: block; display: block;
font-weight: 500; font-weight: 500;
@ -262,17 +331,24 @@
.icon-minus-sign { .icon-minus-sign {
&:before { &:before {
content: "-"; align-items: center;
font-size: 16px; color: #00C8FF;
font-size: 20px;
font-weight: 700;
} }
} }
.icon-plus-sign { .icon-plus-sign {
&:before { &:before {
content: "+"; align-items: center;
font-size: 14px; color: #00C8FF;
font-size: 20px;
font-weight: 700;
} }
} }
.quantity{
border-radius: 8px;
}
.item-quantity-change { .item-quantity-change {
@media (max-width: 979px) and (min-width: 768px) { @media (max-width: 979px) and (min-width: 768px) {
@ -337,18 +413,31 @@
} }
} }
} }
#cart-shipping-calculate{
@media (max-width: 1024px){
display: none;
}
}
#ship-postalCode{
@media (max-width: 1024px){
width: 100%;
}
}
.summary { .summary {
.cart-more-options { .cart-more-options {
margin: 0; margin: 0;
width: max-content; width: max-content;
@media (max-width: 1024px){
width: 100%;
}
.srp-container { .srp-postal-code__form{
padding: 0 0 0 10px; @media (max-width: 1024px){
width: 40%;
@include mq(md, max) {
padding: 0 16px;
} }
}
.srp-container {
.srp-main-title { .srp-main-title {
margin: 32px 0 12px; margin: 32px 0 12px;
@ -361,6 +450,17 @@
@include mq(md, max) { @include mq(md, max) {
margin-top: 0; margin-top: 0;
} }
@media (min-width: 2500px){
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 48px;
line-height: 65px;
display: flex;
align-items: center;
text-align: center;
}
} }
.srp-description { .srp-description {
@ -368,6 +468,16 @@
font-size: 12px; font-size: 12px;
line-height: 18px; line-height: 18px;
margin: 0 0 12px; margin: 0 0 12px;
@media (min-width: 2500px){
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 28px;
line-height: 36px;
}
}
.ship-country{
display: none;
} }
button.shp-open-options { button.shp-open-options {
@ -397,7 +507,7 @@
width: 280px; width: 280px;
@include mq(cstm, max) { @include mq(cstm, max) {
width: calc(100vw - 32px); width: 100%;
} }
@include mq(md, max) { @include mq(md, max) {
@ -405,7 +515,7 @@
} }
.srp-pickup-my-location__button { .srp-pickup-my-location__button {
background-color: $color-black; background-color: #00C8FF;
border: none; border: none;
border-radius: 5px; border-radius: 5px;
color: $color-white; color: $color-white;
@ -419,11 +529,11 @@
letter-spacing: 0.05em; letter-spacing: 0.05em;
&:hover { &:hover {
background-color: lighten($color-black, 5); background-color: lighten(#00C8FF, 5);
} }
&:active { &:active {
background-color: darken($color-black, 5); background-color: darken(#00C8FF, 5);
} }
} }
} }
@ -441,15 +551,25 @@
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 16px;
text-transform: uppercase; text-transform: uppercase;
@media (min-width: 2500px){
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 28px;
line-height: 38px;
display: flex;
align-items: center;
text-transform: uppercase;
}
} }
&__current { &__current {
border: 1px solid $color-blue; border: 1px solid #000000;
border-radius: 100px; border-radius: 100px;
} }
.blue { .blue {
color: $color-blue; color: #000000;
} }
label { label {
@ -550,13 +670,13 @@
.srp-shipping-current-single { .srp-shipping-current-single {
border: 1px solid $color-gray4; border: 1px solid $color-gray4;
border-radius: 0; border-radius: 8;
color: #303030; color: #303030;
margin: 16px 0 0; margin: 16px 0 0;
padding: 4px 12px; padding: 4px 12px;
svg path { svg path {
fill: #d8c8ac; fill: #00C8FF;
} }
} }
@ -589,10 +709,28 @@
} }
} }
} }
#cart-shipping-calculate{
background-color: #00C8FF;
border-radius: 8px;
@media (min-width: 2500px){
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 28px;
line-height: 38px;
display: flex;
align-items: center;
text-align: center;
letter-spacing: 0.05em;
text-transform: uppercase;
}
}
&-totalizers { &-totalizers {
padding: 0; padding: 0;
width: 346px; width: 346px;
@media (max-width: 1024px){
width: 100%;
}
.coupon-data { .coupon-data {
#cart-link-coupon-add { #cart-link-coupon-add {
@ -613,10 +751,6 @@
} }
} }
@include mq(md, max) {
padding: 0 16px;
width: 100%;
}
.coupon-column { .coupon-column {
.coupon { .coupon {
@ -630,7 +764,7 @@
} }
.coupon-label label { .coupon-label label {
margin-bottom: 12px; text-align: left;
font-family: $font-family; font-family: $font-family;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
@ -664,7 +798,7 @@
font-size: 12px; font-size: 12px;
height: 34px; height: 34px;
padding: 0 12px; padding: 0 12px;
max-width: 160px; width: 204px;
@include mq(sm, max) { @include mq(sm, max) {
max-width: 100%; max-width: 100%;
@ -673,10 +807,10 @@
} }
button { button {
background: $color-black; background: #00C8FF;
border: none; border: none;
border-radius: 5px; border-radius: 5px;
color: $color-white; color: #000000;
font-size: 12px; font-size: 12px;
height: 36px; height: 36px;
letter-spacing: 1px; letter-spacing: 1px;
@ -691,11 +825,11 @@
} }
&:hover { &:hover {
background-color: lighten($color-black, 5); background-color: lighten(#00C8FF, 5);
} }
&:active { &:active {
background-color: darken($color-black, 5); background-color: darken(#00C8FF, 5);
} }
} }
} }
@ -718,36 +852,75 @@
line-height: 16px; line-height: 16px;
color: $color-black; color: $color-black;
padding: 12px 0; padding: 12px 0;
padding-left: 0px;
@media (min-width: 2500px){
font-weight: 400;
font-size: 28px;
line-height: 38px;
}
} }
&.info { &.info {
padding-left: 17px;
text-align: left; text-align: left;
} }
&.monetary { &.monetary {
text-align: right; @media (max-width: 1024px){
padding-left: 0;
}
} }
} }
} }
tfoot { tfoot {
td.info{
padding-left: 17px;
@media (min-width: 2500px){
font-family: 'Tenor Sans';
font-style: normal;
font-weight: 400;
font-size: 28px;
line-height: 33px;
}
}
td.info, td.info,
td.monetary { td.monetary {
padding-left: 17px;
padding-right: 8px;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: 700;
font-size: 18px; font-size: 18px;
line-height: 21px; line-height: 21px;
color: $color-black; color: $color-black;
@media (min-width: 2500px){
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
font-size: 36px;
line-height: 49px;
}
} }
} }
} }
} }
} }
.btn{
text-shadow: none !important;
}
.cart-links-bottom { .cart-links-bottom {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: left;
align-items: left;
width: 343px; width: 343px;
@media (max-width: 1024px){
display: flex;
align-items: center;
justify-content: center;
width: 100%;
}
@include mq(md, max) { @include mq(md, max) {
padding: 0 16px; padding: 0 16px;
@ -765,6 +938,9 @@
display: block; display: block;
text-align: center; text-align: center;
margin-bottom: 16px; margin-bottom: 16px;
@media (max-width: 1024px){
padding-bottom: 27px;
}
@include mq(md, max) { @include mq(md, max) {
margin-bottom: 0px; margin-bottom: 0px;
@ -779,28 +955,32 @@
color: $color-blue; color: $color-blue;
} }
} }
.btn-place-order-wrapper { .btn-place-order-wrapper {
@media (max-width: 1024px){
width: 100%;
}
a { a {
background: $color-green; background: #00C8FF;
border: none; border: none;
border-radius: 5px; border-radius: 5px;
display: block; display: block;
font-size: 0; font-size: 0;
transition: ease-in 0.22s all; transition: ease-in 0.22s all;
padding: 12px 19px; padding: 12px 19px;
text-shadow: none;
font-weight: 700;
&:hover { &:hover {
background-color: darken($color-green, 5); background-color: lighten(#00C8FF, 5);
} }
&:after { &:after {
content: "finalizar compra"; content: "finalizar compra";
font-family: $font-family; font-family: $font-family;
font-weight: 500; font-weight: 700;
font-size: 13px; font-size: 13px;
letter-spacing: 0.05em; letter-spacing: 0.05em;
color: $color-white; color: #000000;
text-transform: uppercase; text-transform: uppercase;
vertical-align: middle; vertical-align: middle;
line-height: 19px; line-height: 19px;
@ -810,3 +990,15 @@
} }
} }
} }
@media (min-width: 1025px){
.row-fluid{
display: block;
width: 100%;
}
}
@media (max-width: 1024px){
.row-fluid{
display: flex;
flex-direction: column;
}
}

View File

@ -1,11 +1,30 @@
body .container-main.container-order-form .orderform-template.active { body .container-main.container-order-form .orderform-template.active {
@media (max-width: 1024px){
display: flex;
flex-direction: column;
}
.mini-cart { .mini-cart {
width: 32.3242%; width: 32.3242%;
margin-left: unset; margin-left: unset;
margin-right: 0; margin-right: 0;
float: right; float: right;
@media (max-width: 1024px){
margin-top: 10px;
width: 100%;
}
} }
.orderform-template-holder { @media (min-width: 1025px){
width: 66.1132%; .orderform-template-holder {
width: 66.1132%;
}
}
@media (max-width: 1024px){
.orderform-template-holder{
width: 100%;
}
} }
} }
.mini-cart .info{
float: none;
}

View File

@ -1,3 +1,6 @@
.empty-cart-message{
display: none;
}
.empty-cart { .empty-cart {
font-family: $font-family; font-family: $font-family;
&-content { &-content {
@ -8,31 +11,85 @@
padding: 0 16px; padding: 0 16px;
} }
} }
&-title { &-title {
font-size: 20px; margin-top: 170px;
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
font-size: 24px;
line-height: 33px;
text-align: center;
text-transform: uppercase;
@media (min-width: 2500px){
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
font-size: 48px;
line-height: 65px;
text-align: center;
text-transform: uppercase;
}
} }
&-links { &-links {
.link-choose-products { a {
background: $color-black; color: transparent;
border: none; font-family: "Tenor Sans";
border-radius: 5px; font-style: normal;
transition: ease-in 0.22s all; font-weight: 400;
outline: none; font-size: 14px;
font-family: $font-family; line-height: 16px;
font-style: normal; text-align: center;
font-weight: 500; text-transform: uppercase;
font-size: 14px; letter-spacing: 0.05em;
line-height: 16px;
text-align: center;
letter-spacing: 0.05em;
color: $color-white;
text-transform: uppercase;
}
@media (min-width: 2500px){
#cart-choose-products{
width: 20%;
line-height: 30px;
}
}
a::after {
content: "Continuar \a" "comprando";
color: #000000;
position: absolute;
left: 0;
right: 0;
@media (min-width: 2500px){
font-family: 'Tenor Sans';
font-style: normal;
font-weight: 400;
font-size: 28px;
line-height: 33px;
text-align: center;
text-transform: uppercase;
}
@media (max-width: 406px) {
white-space: pre;
bottom: 10px;
}
}
.link-choose-products {
border: 1px solid #000000;
border-radius: 0;
width: 327px;
background-color: white;
color: transparent;
font-family: 'Tenor Sans';
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 16px;
text-align: center;
text-transform: uppercase;
&:hover { &:hover {
background: lighten($color-black, 5); background: none;
} }
@media (max-width: 1024px) {
width: 60%;
}
} }
} }
} }

View File

@ -7,15 +7,166 @@ html {
height: 100%; height: 100%;
min-height: 100%; min-height: 100%;
} }
footer{
margin-top: auto;
}
footer .footerCheckout__wrapper { footer .footerCheckout__wrapper {
width: 94.9734%; width: 100%;
margin: auto auto 0 auto; margin: auto auto 0 auto;
} }
footer .footerCheckout__prateleira,
header { //footer
width: 79.53125%; .footerCheckout__prateleira
margin: 0 auto; //, header {
{
h3 {
font-family: 'Tenor Sans';
font-style: normal;
font-weight: 400;
font-size: 24px;
line-height: 38px;
color: #000000;
text-align: center;
padding-left: 50px;
}
width: 79.53125%;
.itemList{
display: flex !important;
align-items: center;
justify-content: center;
flex-direction: column;
margin: 0px 8px 0px 8px;
}
.productImg{
background-color: #ededed;
display: flex;
gap: 16px;
}
.productName{
text-align: center;
padding: 20px 5px 20px 5px;
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 13px;
line-height: 18px;
color: #000000;
width: 100%;
@media (min-width: 2500px){
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 26px;
line-height: 35px;
text-align: center;
}
}
.itemSku{
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: 5px;
padding-bottom: 20px;
width: 100%;
@media (max-width: 801px){
flex-direction: column;
height: 193px;
}
p{
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
font-size: 13px;
line-height: 18px;
margin: 0;
padding: 5px;
color: white;
background: #00C8FF;
border-radius: 8px;
margin: 0;
letter-spacing: 0.05em;
text-transform: uppercase;
@media (min-width: 2500px){
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
font-size: 26px;
line-height: 35px;
display: flex;
align-items: center;
text-align: center;
letter-spacing: 0.05em;
text-transform: uppercase;
}
}
}
.productLink{
height: 42px;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
color: white;
background: #00C8FF;
border-radius: 8px;
margin-bottom: 56px;
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
font-size: 13px;
line-height: 18px;
letter-spacing: 0.05em;
padding: 0 5px;
text-transform: uppercase;
@media (min-width: 2500px){
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
font-size: 26px;
line-height: 35px;
display: flex;
align-items: center;
text-align: center;
letter-spacing: 0.05em;
text-transform: uppercase;
}
&:hover{
text-decoration: none;
}
}
.slick-prev{
border: 0;
color: #858585;
top: 30%;
@media(max-width: 801px){
top: 20%;
left: 10px;
}
@media(max-width: 600px){
top: 15%;
}
@media(max-width: 450px){
top: 10%;
}
}
.slick-next{
border: 0;
color: #858585;
bottom: 65%;
@media(max-width: 801px){
bottom: 75%;
right: 10px;
}
@media(max-width: 600px){
bottom: 80%;
}
@media(max-width: 450px){
bottom: 85%;
}
}
} }
body { body {
@ -31,7 +182,6 @@ body {
&.body-cart { &.body-cart {
font-family: $font-family; font-family: $font-family;
} }
&.body-cart, &.body-cart,
&.body-order-form { &.body-order-form {
@include mq(xl, min) { @include mq(xl, min) {
@ -52,7 +202,6 @@ body {
width: 80%; width: 80%;
} }
} }
.btn-success { .btn-success {
background: $color-black; background: $color-black;
text-shadow: none; text-shadow: none;
@ -61,21 +210,32 @@ body {
background: lighten($color-black, 15%); background: lighten($color-black, 15%);
} }
} }
.emailInfo{
border: 1px solid #000000;
border-radius: 5px;
}
.emailInfo h3 { .emailInfo h3 {
color: $color-black !important; color: $color-black !important;
} }
#cart-title, #cart-title,
#orderform-title { #orderform-title {
color: $color-gray2; color: #292929;
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: 32px;
margin: 40px 0 30px; margin: 40px 0 30px;
letter-spacing: 0.1em; letter-spacing: 0.05em;
text-transform: uppercase; text-transform: uppercase;
@media (min-width: 2500px){
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
font-size: 48px;
line-height: 65px;
letter-spacing: 0.05em;
text-transform: uppercase;
}
@include mq(md, max) { @include mq(md, max) {
margin-left: 30px; margin-left: 30px;

View File

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

View File

@ -1,8 +1,50 @@
/* _footer.scss */ /* _footer.scss */
.footerCheckout { .footerCheckout {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
border-top: none; border-top: none;
color: $color-gray2; color: $color-gray2;
@media (max-width: 550px){
align-items: normal;
}
.footerCheckout__wrapper{
border-top: 1px solid black;
margin: 0px;
width: 100%;
}
.container{
display: flex;
flex-direction: row;
justify-content: space-between;
padding-top: 16px;
width: 100%;
@include mq(dt, max) {
display: flex;
flex-direction: column;
align-items: left !important;
justify-content: none !important;
}
}
.images_footer{
width: 35.65px;
height: 20px;
}
.pipe{
display: inline-block;
border-left: 1px solid #c4c4c4;
}
.images_footer_vtexPCIM{
width: 53px;
height: 33px;
border-left: 1px solid #c4c4c4;
padding-left: 10px;
@media (min-width: 2500px){
width: 103.52px;
height: 64.46px;
}
}
&__wrapper { &__wrapper {
align-items: center; align-items: center;
display: flex; display: flex;
@ -10,6 +52,7 @@
} }
&__address { &__address {
padding-right: 138px;
color: $color-gray2; color: $color-gray2;
font-family: $font-family; font-family: $font-family;
font-style: normal; font-style: normal;
@ -18,10 +61,25 @@
line-height: 12px; line-height: 12px;
text-transform: capitalize; text-transform: capitalize;
max-width: 40%; max-width: 40%;
@media (min-width: 2500px){
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 20px;
line-height: 27px;
}
@include mq(dt, max) {
display: flex;
order: 2;
padding: 0;
padding-top: 23px;
padding-left: 16px;
padding-right: 16px;
}
@include mq(md, max){
@include mq(md, max) {
margin-bottom: 24px;
max-width: 100%; max-width: 100%;
padding-top: 16px;
} }
} }
@ -30,10 +88,13 @@
display: flex; display: flex;
justify-self: center; justify-self: center;
list-style: none; list-style: none;
@media (max-width: 1024px){
@include mq(md, max) { display: flex;
align-self: center; align-items: left;
margin-bottom: 12px; justify-content: left;
}
@media (min-width: 2500px){
height: 39.06px;
} }
&__divider { &__divider {
@ -46,10 +107,47 @@
} }
&__developedBy { &__developedBy {
padding-left: 138px;
align-items: center; align-items: center;
display: flex; display: flex;
list-style-type: none; list-style-type: none;
margin: 0; margin: 0;
@include mq(dt, max) {
display: flex;
order: 3;
padding: 0;
padding-top: 16px;
padding-left: 16px;
}
.footerCheckout__stamps__div_wrapperDeveloper{
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
.footer_description_1{
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 18px;
line-height: 25px;
}
.footer_description_2{
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 18px;
line-height: 25px;
}
}
.images_footer_developed{
width: 38.71px;
height: 16px;
padding: 10px 10px;
@media (min-width: 2500px){
width: 70.91px;
height: 31.25px;
}
}
li:last-child { li:last-child {
margin-left: 16px; margin-left: 16px;

View File

@ -1,7 +1,112 @@
/* _header.scss */ /* _header.scss */
.headerCheckout { .headerCheckout {
.container { .container {
width: auto !important; width: auto !important;
.headerCheckout__wrapper{
border-bottom: 1px solid #000;
margin: 0;
width: 100%;
padding-top: 29px;
padding-bottom: 29px;
.headerCheckout__logo{
@media (min-width: 2500px){
img{
height: auto;
width: auto;
}
}
}
}
#progressBar{
width: 446px;
@media (min-width: 2500px){
width: 888px;
}
ul{
list-style-type: none;
display: flex;
align-items: center;
justify-content: space-between;
margin: 0 !important;
}
li .containerLi{
width: 100%;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
position: relative;
}
li.central .containerLi{
align-items: center;
margin-left: 7px;
}
li:last-child .containerLi{
align-items: flex-end;
}
li .containerLi div{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
li{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-family: "Tenor Sans", sans-serif;
font-size: 12px;
font-weight: 400;
line-height: 28px;
color: #000;
width: 39.9183%;
@media (min-width: 2500px){
font-size: 24px;
}
}
li.central{
width: auto;
}
li #progress-bar-circle-1,
li #progress-bar-circle-2,
li #progress-bar-circle-3{
width: 12px;
height: 12px;
border: 1px solid #000000;
border-radius: 50%;
@media (min-width: 2500px){
width: 24px;
height: 24px;
}
}
li #progress-bar-circle-1.active,
li #progress-bar-circle-2.active,
li #progress-bar-circle-3.active{
border: none;
background-color: #000000;
}
li .progress-bar-line-1{
display: flex;
position: absolute;
left: 25%;
transform: translateY(-50%);
bottom: 5px;
width: 100%;
height: 1px;
border-top: 1px solid #000000;
}
li .progress-bar-line-2{
position: absolute;
right: 21%;
transform: translateY(-50%);
bottom: 5px;
width: 100%;
height: 1px;
border-top: 1px solid #000000;
}
}
} }
&__wrapper { &__wrapper {
align-items: center; align-items: center;
@ -10,15 +115,37 @@
} }
&__logo { &__logo {
width: 15.2829%;
padding-left: 131px;
img { img {
height: 52px; height: 52px;
width: auto; width: auto;
@media (max-width: 1024px){
width: 155px;
max-width: none;
padding-left: 16px;
}
}
@media (max-width: 1024px){
padding-left: 0px;
} }
} }
&__safeBuy { &__safeBuy {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 11.6895%;
padding-right: 131px;
img{
width: 12px;
@media (min-width: 2500px){
width: 29.47px;
height: 41.46px;
}
}
span { span {
align-items: center;
display: flex; display: flex;
text-transform: uppercase; text-transform: uppercase;
font-family: $font-family; font-family: $font-family;
@ -27,10 +154,24 @@
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
color: $color-gray; color: $color-gray;
@media (min-width: 2500px){
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-size: 24px;
line-height: 33px;
}
} }
i { i {
margin-right: 8px; margin-right: 8px;
} }
@media (max-width: 1024px) {
display: flex;
justify-content: right;
width: 100%;
font-size: 12px;
padding-right: 16px;
}
} }
} }

View File

@ -26,7 +26,8 @@ $grid-breakpoints: (
sm: 576px, sm: 576px,
md: 768px, md: 768px,
lg: 992px, lg: 992px,
xl: 1200px xl: 1200px,
dt: 1025px
) !default; ) !default;
$z-index: ( $z-index: (

20
package-lock.json generated
View File

@ -45,6 +45,7 @@
"jquery": "^3.6.0", "jquery": "^3.6.0",
"m3-utils": "^0.1.0", "m3-utils": "^0.1.0",
"sass": "^1.38.1", "sass": "^1.38.1",
"slick-carousel": "^1.8.1",
"terser-webpack-plugin": "^5.1.4" "terser-webpack-plugin": "^5.1.4"
}, },
"devDependencies": { "devDependencies": {
@ -3484,6 +3485,8 @@
}, },
"checkout/node_modules/core-util-is": { "checkout/node_modules/core-util-is": {
"version": "1.0.3", "version": "1.0.3",
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz",
"integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==",
"license": "MIT" "license": "MIT"
}, },
"checkout/node_modules/cosmiconfig": { "checkout/node_modules/cosmiconfig": {
@ -4844,6 +4847,8 @@
}, },
"checkout/node_modules/get-intrinsic": { "checkout/node_modules/get-intrinsic": {
"version": "1.1.3", "version": "1.1.3",
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz",
"integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"function-bind": "^1.1.1", "function-bind": "^1.1.1",
@ -6294,6 +6299,8 @@
}, },
"checkout/node_modules/micromatch": { "checkout/node_modules/micromatch": {
"version": "4.0.5", "version": "4.0.5",
"resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz",
"integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"braces": "^3.0.2", "braces": "^3.0.2",
@ -6305,6 +6312,8 @@
}, },
"checkout/node_modules/micromatch/node_modules/braces": { "checkout/node_modules/micromatch/node_modules/braces": {
"version": "3.0.2", "version": "3.0.2",
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
"integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"fill-range": "^7.0.1" "fill-range": "^7.0.1"
@ -19345,6 +19354,7 @@
"m3-utils": "^0.1.0", "m3-utils": "^0.1.0",
"prettier": "^2.3.2", "prettier": "^2.3.2",
"sass": "^1.38.1", "sass": "^1.38.1",
"slick-carousel": "^1.8.1",
"terser-webpack-plugin": "^5.1.4", "terser-webpack-plugin": "^5.1.4",
"webpack": "^5.51.1", "webpack": "^5.51.1",
"webpack-merge": "^5.8.0" "webpack-merge": "^5.8.0"
@ -21672,7 +21682,9 @@
} }
}, },
"core-util-is": { "core-util-is": {
"version": "1.0.3" "version": "1.0.3",
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz",
"integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ=="
}, },
"cosmiconfig": { "cosmiconfig": {
"version": "7.1.0", "version": "7.1.0",
@ -22645,6 +22657,8 @@
}, },
"get-intrinsic": { "get-intrinsic": {
"version": "1.1.3", "version": "1.1.3",
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz",
"integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==",
"requires": { "requires": {
"function-bind": "^1.1.1", "function-bind": "^1.1.1",
"has": "^1.0.3", "has": "^1.0.3",
@ -23679,6 +23693,8 @@
}, },
"micromatch": { "micromatch": {
"version": "4.0.5", "version": "4.0.5",
"resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz",
"integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",
"requires": { "requires": {
"braces": "^3.0.2", "braces": "^3.0.2",
"picomatch": "^2.3.1" "picomatch": "^2.3.1"
@ -23686,6 +23702,8 @@
"dependencies": { "dependencies": {
"braces": { "braces": {
"version": "3.0.2", "version": "3.0.2",
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
"integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
"requires": { "requires": {
"fill-range": "^7.0.1" "fill-range": "^7.0.1"
} }

9291
yarn.lock Normal file

File diff suppressed because it is too large Load Diff