Feat: criação do developer e estilização

This commit is contained in:
Matheus Mariosa 2022-12-20 17:45:22 -03:00
parent 84ed590db3
commit 8ddcf526e3
2 changed files with 24 additions and 4 deletions

View File

@ -9,6 +9,7 @@ export default class Footer {
await this.selectors();
this.adicionaPayments();
//await this.removeh1checkout();
await this.adicionandoDevelopBy()
// this.onUpdate();
}
@ -50,7 +51,17 @@ export default class Footer {
`;
}
async adicionandoDevelopBy() {
const vtex = this.devolperBy.children[0].children[0];
const m3 = this.devolperBy.children[1].children[0];
vtex.innerHTML = `
<span class="devolperByText">Powered By</span>
<img class="devolperByVTEX" src="https://agenciamagma.vteximg.com.br/arquivos/logoVTEXM3Academy.png"/>
`
m3.innerHTML = `
<span class="devolperByText">Developed By</span>
<img class="devolperByM3" src="https://agenciamagma.vteximg.com.br/arquivos/logoM3M3Academy.png"/>
`}
onUpdate() {
//Função qeu fará a verificação se o carrinho está vazio para remover a prateleira de produtos:

View File

@ -91,7 +91,10 @@
li:last-child {
margin-left: 10.73px;
.devolperByM3{
height: 15.65px;
width: 28.66px;
}
}
a {
@ -107,9 +110,15 @@
span {
margin-right: 10.12px;
font-family: 'Open Sans';
font-size: 9px;
line-height: 12px;
color: black;
}
.devolperByVTEX{
height: 16px;
width: 44.92px;
}
}
}
}