feat: adiciona progress bar html css

This commit is contained in:
Patrick Reis Santos 2022-12-13 22:59:07 -03:00
parent 2dab582c69
commit 0ec753cf48
3 changed files with 189 additions and 10885 deletions

10970
checkout/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -4,6 +4,7 @@ import { waitElement } from "m3-utils";
export default class Header { export default class Header {
constructor() { constructor() {
this.init(); this.init();
this.addProgressBar();
} }
async init() { async init() {
@ -17,5 +18,23 @@ export default class Header {
timeout: 5000, // vai esperar 5 segundos antes de rejeitar a promise timeout: 5000, // vai esperar 5 segundos antes de rejeitar a promise
interval: 1000, // vai verificar a cada 1 segundo se o elemento existe interval: 1000, // vai verificar a cada 1 segundo se o elemento existe
}); });
this.progressBar = await waitElement("#progressBar");
/* this.then(addProgressBar()); */
}
addProgressBar() {
/* if (this.progressBar && window.innerWidth > 1024) {
this.progressBar.innerHTML = `<p> progress </p>`;
console.log("dasdsdas");
} */
progressBar.innerHTML = `
<ul class="line-progress-bar">
<li>Meu Carrinho</li>
<li>Dados Pessoais</li>
<li>Pagamento</li>
</ul>
`;
headerCheckout.innerHTML = `<div>dsadsdsdasd </div>`;
} }
} }

View File

@ -1,7 +1,7 @@
/* _header.scss */ /* _header.scss */
.headerCheckout { .headerCheckout {
.container { .container {
width: auto !important; /* width: auto !important; */
} }
&__wrapper { &__wrapper {
align-items: center; align-items: center;
@ -34,3 +34,86 @@
} }
} }
} }
.headerCheckout__logo img {
width: 155px;
height: 37px;
}
.headerCheckout__wrapper {
margin: 30px 0 30px 0;
}
.headerCheckout__safeBuy {
display: flex;
}
.headerCheckout__safeBuy img {
width: 12px;
height: 15px;
margin-right: 8px;
}
.checkout-li {
height: 12px;
width: 12px;
background-color: rgb(0, 0, 0);
border-radius: 50%;
display: inline-block;
}
.progress-bar {
width: 346px;
}
.line-progress-bar li {
/* position: relative;
margin: 0px;
display: flex;
justify-content: space-between;
list-style-type: none; */
list-style-type: none;
float: left;
width: 33.33%;
position: relative;
text-align: center;
}
.line-progress-bar li::before {
content: "";
width: 12px;
height: 12px;
border: 1px solid black;
display: block;
text-align: center;
margin: 0 auto 10px;
border-radius: 100%;
background-color: white;
}
.line-progress-bar li::after {
content: "";
position: absolute;
width: 100%;
height: 1px;
background-color: black;
top: 7px;
left: -50%;
z-index: -1;
}
.line-progress-bar li:first-child::after {
content: none;
}
.headerCheckout {
border-bottom: 1px solid rgb(0, 0, 0);
width: 100%;
}
.headerCheckout__logo {
margin-left: 131px;
}
.headerCheckout__safeBuy {
margin-right: 131px;
}