feat: cria a tela #/cart para todas as telas

This commit is contained in:
Nicolly Vieira Santos Costa 2022-12-16 16:10:59 -03:00
parent db3ea53bd5
commit f0baaf3a13
6 changed files with 1680 additions and 755 deletions

View File

@ -14,6 +14,7 @@ export default class Footer {
// this.verificaListaDeProdutos();
this.verificaListaDeProdutos();
this.onUpdate();
// this.addCarrossel();
}
async selectors() {
@ -115,14 +116,19 @@ export default class Footer {
}
verificaListaDeProdutos() {
const tituloCheckoutVazio = document.querySelector("#cart-title");
if (
window.location.href === "https://m3academy.myvtex.com/checkout/#/cart" &&
(this.checkoutVazio.style.display = "none")
) {
console.log("Checkout vazio none");
this.criaPrateleira();
}
if (this.checkoutVazio.style.display === "block") {
this.prateleira.syle.displat = "none";
tituloCheckoutVazio.style.display = "block";
} else if (this.checkoutVazio.style.display === "block") {
console.log("Checkout vazio block");
this.prateleira.innerHTML = "";
tituloCheckoutVazio.style.display = "none";
}
}

File diff suppressed because it is too large Load Diff

View File

@ -26,13 +26,13 @@ footer .footerCheckout__wrapper {
}
}
header {
width: 79.53125%;
margin: 0 auto;
}
body {
box-sizing: border-box;
display: flex;
flex-direction: column;
min-height: 100% !important;
@ -44,26 +44,34 @@ body {
&.body-cart {
font-family: $font-family;
}
&.body-cart,
&.body-order-form {
@include mq(xl, min) {
padding-top: 0;
}
@include mq(lg, max) {
padding-bottom: 0 !important;
}
@include mq(md, max) {
padding-right: 0;
padding-left: 0;
@include mq(tablet, max) {
padding: 0;
}
}
// &.body-cart,
// &.body-order-form {
// @include mq(xl, min) {
// padding-top: 0;
// }
// @include mq(lg, max) {
// padding-bottom: 0 !important;
// }
// @include mq(md, max) {
// padding-right: 0;
// padding-left: 0;
// }
// }
.container-order-form,
.container-cart {
width: 80%;
@include mq(tablet, max) {
width: 100%;
}
}
}
@ -80,7 +88,6 @@ body {
color: $color-black !important;
}
#cart-title,
#orderform-title {
color: $color-gray2;
font-family: $font-family;
@ -96,6 +103,22 @@ body {
}
}
#cart-title {
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 24px;
line-height: 33px;
letter-spacing: 0.05em;
text-transform: uppercase;
color: $black-300;
margin: 17px 0 16px 0;
@include mq(tablet, max) {
margin-left: 16px;
}
}
.dropdown {
&__content {
&--closed {
@ -138,3 +161,67 @@ body {
}
}
}
.empty-cart-title {
font-family: "Open Sans";
font-weight: 700;
font-size: 24px;
line-height: 33px;
text-align: center;
text-transform: uppercase;
color: $black-500;
margin: 0;
@include mq(tablet, max) {
font-size: 18px;
line-height: 25px;
}
@include mq(desktop4K, min) {
font-size: 48px;
line-height: 65px;
}
}
.empty-cart-message {
p {
display: none;
}
}
.empty-cart-links .link-choose-products {
box-sizing: border-box;
width: 31.93359375%;
// width: 99.387%;
margin-top: 32px;
font-family: "Tenor Sans";
font-weight: 400;
color: $black-500;
font-size: 14px;
line-height: 16px;
background-color: transparent;
border: 1px solid $black-500;
border-radius: 0;
padding: 15px 0 17px 0;
@include mq(tablet, max) {
width: 30.519%;
}
@include mq(celular, max) {
width: 93.283582%;
}
@include mq(desktop4K, min) {
width: 97.054%;
font-size: 28px;
line-height: 33px;
}
&:hover {
background: transparent;
}
}

View File

@ -130,7 +130,7 @@
no-repeat center center;
left: 20px;
@include mq(tablet, max) {
@include mq(desktop, max) {
background: url("https://agenciamagma.vteximg.com.br/arquivos/arrow-left-mini-M3Academy.svg")
no-repeat center center;
}
@ -144,7 +144,7 @@
background: url("https://agenciamagma.vteximg.com.br/arquivos/arrow-right-M3Academy.svg")
no-repeat center center;
@include mq(tablet, max) {
@include mq(desktop, max) {
background: url("https://agenciamagma.vteximg.com.br/arquivos/arrow-right-mini-M3Academy.svg")
no-repeat center center;
}

View File

@ -92,7 +92,7 @@
.divider {
height: 24px;
width: 1px;
background-color: $gray-500;
background-color: $gray-600;
@include mq(desktop4K, min) {
height: 43px;

View File

@ -2,7 +2,7 @@
@import url("https://fonts.googleapis.com/css2?family=Tenor+Sans&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap");
$font-family: "Open Sans", sans-serif;
$font-family-secundary:"Tenor Sans", sans-serif;
$font-family-secundary: "Tenor Sans", sans-serif;
/* Colors */
$color-black: #292929;
@ -20,31 +20,39 @@ $color-blue: #4267b2;
$color-green: #4caf50;
/*CORES*/
$white-500: #FFF;
$white-500: #fff;
$black-500: #000;
$black-300: #292929;
$blue-500: #00C8FF;
$blue-500: #00c8ff;
$gray-300: #f0f0f0;
$gray-400: #ededed;
$gray-500: #e5e5e5;
$gray-600: #c4c4c4;
$gray-700: #989898;
$gray-800: #7d7d7d;
$gray-500: #C4C4C4;
/* Grid breakpoints */
$grid-breakpoints: (
xs: 0,
cstm: 400,
sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px,
xs: 0,
cstm: 400,
sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px,
celular: 600px,
tablet: 1025px,
desktop4K: 2500px
desktop4K: 2500px,
desktop: 1280px
) !default;
$z-index: (
level1: 5,
level2: 10,
level3: 15,
level4: 20,
level5: 25
level1: 5,
level2: 10,
level3: 15,
level4: 20,
level5: 25,
) !default;