feature/optimization #1

Merged
josecarloslins merged 16 commits from feature/optimization into main 2022-12-17 01:38:19 +00:00
4 changed files with 350 additions and 271 deletions
Showing only changes of commit 6dd7121881 - Show all commits

View File

@ -34,9 +34,24 @@ export default class Footer {
let config = { childList: true, attributes: true }; let config = { childList: true, attributes: true };
let observer = new MutationObserver(mCallback); let observer = new MutationObserver(mCallback);
if (window.location.href != "https://m3academy.myvtex.com/checkout/#/cart") {
pratileira.classList.add("elementInvisible");
}
window.addEventListener("hashchange", () => {
if (window.location.hash == "#/cart") {
this.pratileira.classList.remove("elementInvisible");
} else {
pratileira.classList.add("elementInvisible");
}
});
function mCallback(mutations) { function mCallback(mutations) {
mutations.forEach((mutation) => { mutations.forEach((mutation) => {
if (target.style.display === "block") { if (
target.style.display === "block" ||
window.location.href != "https://m3academy.myvtex.com/checkout/#/cart"
) {
titleCart.classList.add("elementInvisible"); titleCart.classList.add("elementInvisible");
pratileira.classList.add("elementInvisible"); pratileira.classList.add("elementInvisible");
sliderVisible = false; sliderVisible = false;

View File

@ -1,9 +1,19 @@
.checkout-container { .checkout-container {
.client-pre-email { .client-pre-email {
border-color: $color-gray4; border-color: $color-black-neutra;
font-family: $font-family; font-family: $font-family;
padding-top: 8px; padding-top: 8px;
small {
font-family: $color-black-neutra;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 16px;
text-align: center;
text-transform: uppercase;
}
.link-cart { .link-cart {
a { a {
color: $color-black; color: $color-black;
@ -22,30 +32,57 @@
justify-content: center; justify-content: center;
h3 { h3 {
margin-bottom: 16px; margin-bottom: 21px;
span { span {
color: #303030; font-size: 0;
font-size: 24px; &::before {
content: "Para finalizar a compra, informe seu e-mail. RÁPIDO. FÁCIL. SEGURO.";
font-family: $font-family-secundary;
font-style: normal;
font-weight: 400;
font-size: 20px;
line-height: 23px;
text-align: center;
text-transform: uppercase;
color: $color-black-neutra;
}
} }
small { small {
color: $color-gray4; display: none;
} }
} }
} }
.client-email { .client-email {
margin: 0 0 16px; margin: 0 auto;
border: 0;
display: flex;
justify-content: center;
width: 59.2827%;
margin-bottom: 25px;
input { input {
box-shadow: none; box-shadow: none;
color: $color-black; color: $color-black;
font-family: $font-family; font-family: $font-family;
padding: 0 16px; padding: 0 14px;
border: 2px solid $color-gray3;
box-sizing: border-box; box-sizing: border-box;
border-radius: 5px; border: 1px solid $color-black-neutra;
border-radius: 5px 0px 0px 5px;
width: 90%;
margin: 0;
font-size: 12px;
&::placeholder {
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
color: $color-black-neutra;
}
@media (max-width: 490px) { @media (max-width: 490px) {
width: auto; width: auto;
@ -53,13 +90,20 @@
} }
button { button {
background-color: $color-black; background-color: $color-blue-light;
border-radius: 5px; border-radius: 0px 8px 8px 0px;
border: none; border: none;
font-family: $font-family; font-family: $font-family;
font-style: normal;
font-weight: 700;
font-size: 14px;
line-height: 19px;
text-transform: uppercase;
padding: 0 14px;
height: 54px; height: 54px;
right: 0; right: 0;
top: 0; top: 0;
color: $color-black-neutra;
@media (max-width: 490px) { @media (max-width: 490px) {
height: 48px; height: 48px;
@ -74,14 +118,22 @@
} }
.emailInfo { .emailInfo {
padding: 16px; padding: 16px 0px 28px 16px;
background-color: $color-white; background-color: $color-white;
border: 1px solid $color-gray4; border: 1px solid $color-gray4;
border-radius: 0; border-radius: 0;
width: 37.306%;
margin-bottom: 94px;
h3 { h3 {
color: #303030; color: $color-black-neutra;
margin: 0 0 8px 0; margin: 0 0 9px 0;
font-family: $font-family;
font-style: normal;
font-weight: 700;
font-size: 12px;
line-height: 16px;
} }
ul { ul {
@ -89,11 +141,16 @@
li { li {
span { span {
color: $color-black; color: $color-black-neutra;
font-family: $color-black-neutra;
font-style: normal;
font-weight: 700;
font-size: 12px;
line-height: 16px;
} }
i::before { i::before {
color: $color-black; color: $color-blue-light;
font-size: 1rem; font-size: 1rem;
opacity: 1; opacity: 1;
} }
@ -287,3 +344,7 @@
} }
} }
} }
.row-fluid .orderform-template {
margin-bottom: 94px;
}

View File

@ -452,18 +452,20 @@
} }
.srp-pickup-my-location__button { .srp-pickup-my-location__button {
background-color: $color-black; background-color: $color-blue-light;
border: none; border: none;
border-radius: 5px; border-radius: 8px;
color: $color-white; color: $color-white;
outline: none; outline: none;
width: 100%; width: 100%;
font-style: normal; font-style: normal;
font-weight: 500; font-weight: 700;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 19px;
letter-spacing: 0.05em; letter-spacing: 0.05em;
text-transform: uppercase;
padding: 12px 0;
&:hover { &:hover {
background-color: lighten($color-black, 5); background-color: lighten($color-black, 5);
@ -476,7 +478,7 @@
} }
.srp-toggle { .srp-toggle {
margin: 0 0 34px; margin: 0 0 20px;
&__wrapper { &__wrapper {
background-color: $color-white; background-color: $color-white;
@ -486,17 +488,21 @@
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 19px !important;
text-transform: uppercase; text-transform: uppercase;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
color: $color-gray7;
} }
&__current { &__current {
border: 1px solid $color-blue; border: 1px solid $color-black-neutra;
border-radius: 100px; border-radius: 100px;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
} }
.blue { .blue {
color: $color-blue; color: $color-black-neutra;
} }
label { label {
@ -509,22 +515,25 @@
} }
.srp-postal-code { .srp-postal-code {
.ship-country {
display: none;
}
.ship-postalCode { .ship-postalCode {
label { label {
font-family: $font-family; font-family: $font-family;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 16px;
color: $color-black; color: $color-black-neutra;
margin-bottom: 12px; margin-bottom: 12px;
} }
input { input {
border: 1px solid $color-gray3; border: 1px solid $color-gray7;
border-radius: 5px; border-radius: 5px;
box-shadow: none; box-shadow: none;
color: $color-gray3; color: $color-black-neutra;
font-size: 12px; font-size: 12px;
height: 36px; height: 36px;
padding: 12px 8px; padding: 12px 8px;
@ -532,38 +541,32 @@
} }
& ~ button { & ~ button {
background-color: $color-black; background-color: $color-blue-light;
border: none; border: none;
border-radius: 5px; border-radius: 8px;
color: $color-white; color: $color-white;
font-size: 12px; font-size: 14px;
height: 36px; height: 36px;
letter-spacing: 1px; letter-spacing: 0.05em;
text-transform: uppercase;
outline: none; outline: none;
position: absolute; position: absolute;
right: -150px; right: -147px;
top: 36px; top: 38px;
transition: all 0.2s linear; transition: all 0.2s linear;
width: 96px; padding: 0 11px;
text-transform: uppercase; margin: 0;
vertical-align: middle;
&:hover {
background-color: lighten($color-black, 5);
}
&:active {
background-color: darken($color-black, 5);
}
} }
small a { small a {
font-family: $font-family; font-family: $font-family;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
font-size: 10px; font-size: 12px;
line-height: 12px; line-height: 16px;
color: $color-blue; color: $color-black-neutra;
margin-top: 7px; margin-top: 4px;
} }
span.help.error { span.help.error {

View File

@ -62,7 +62,7 @@ body {
} }
.emailInfo h3 { .emailInfo h3 {
color: $color-black !important; color: $color-black;
} }
#cart-title, #cart-title,