feat(home): ajuste na parte central da página

This commit is contained in:
Edna Barboza de Lima 2022-12-13 01:37:08 -03:00
parent 81e26e0abf
commit 3e3043b3b8
4 changed files with 66 additions and 39 deletions

View File

@ -9,6 +9,7 @@ export default class Header {
async init() {
await this.selectors();
this.progressBarInnerHTML();
await this.removeCartTitle();
}
async selectors() {
@ -60,6 +61,14 @@ export default class Header {
`;
}
async removeCartTitle() {
this.ctitle = await waitElement("#cart-title", {
timeout: 5000,
interval: 1000,
});
this.ctitle.style.display = "none";
}
// async progressBarProgress(){
// if(this.progressBar && window.innerWidth > 1024){
// const progressBarLista = document.querySelectorAll("#progressBar ul li");

View File

@ -1,38 +1,49 @@
.empty-cart {
font-family: $font-family;
&-content {
color: $color-black;
text-align: center;
font-family: $font-family;
&-content {
color: $color-black;
text-align: center;
@include mq(md, max) {
padding: 0 16px;
}
}
@include mq(md, max) {
padding: 0 16px;
}
}
&-title {
font-size: 20px;
}
&-message {
display: none;
}
&-links {
.link-choose-products {
background: $color-black;
border: none;
border-radius: 5px;
transition: ease-in 0.22s all;
outline: none;
font-family: $font-family;
font-style: normal;
font-weight: 500;
font-size: 14px;
line-height: 16px;
text-align: center;
letter-spacing: 0.05em;
color: $color-white;
text-transform: uppercase;
&-title {
font-size: 20px;
text-transform: uppercase;
}
&:hover {
background: lighten($color-black, 5);
}
}
}
&-links {
.link-choose-products {
// background: $color-black;
background: $color-white;
// border: none;
border: 1px solid $color-black-100;
border-radius: 0;
// border-radius: 5px;
transition: ease-in 0.22s all;
outline: none;
// font-family: $font-family;
font-family: $font-family-secundary;
font-style: normal;
// font-weight: 500;
font-weight: 400;
font-size: 14px;
line-height: 16px;
text-align: center;
letter-spacing: 0.05em;
// color: $color-white;
color: $color-black-100;
text-transform: uppercase;
&:hover {
background: lighten($color-black, 5);
}
}
}
}

View File

@ -1,11 +1,8 @@
/* _footer.scss */
.footerCheckout {
border-top: none;
border-top: 1px solid $color-black-100;
color: $color-gray2;
.container {
display: flex;
}
padding: 16px 0;
// &__prateleira {
// border-top: 1px solid #e5e5e5;
@ -14,8 +11,14 @@
// }
&__wrapper {
align-items: center;
display: flex;
width: 100% !important;
// margin: 0 0 0 0 !important;
}
.container {
display: flex;
width: 100%;
justify-content: space-between;
}
@ -28,6 +31,8 @@
line-height: 12px;
text-transform: capitalize;
max-width: 40%;
display: flex;
align-items: center;
@include mq(md, max) {
margin-bottom: 24px;

View File

@ -1,8 +1,10 @@
/* _header.scss */
.headerCheckout {
margin: 29px 130px;
border-bottom: 1px solid $color-black-100;
width: 100%;
.container {
width: auto !important;
margin: 30px 130px;
}
&__wrapper {
align-items: center;