From f4acc320a353bd70d306a5074356a70f55c9c98c Mon Sep 17 00:00:00 2001 From: Carlos Lins Date: Sat, 10 Dec 2022 08:12:53 -0300 Subject: [PATCH] =?UTF-8?q?feat:=20Cria=C3=A7=C3=A3o=20do=20JS=20do=20Foot?= =?UTF-8?q?er?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- checkout/src/arquivos/js/components/Footer.js | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/checkout/src/arquivos/js/components/Footer.js b/checkout/src/arquivos/js/components/Footer.js index ddbfee7..c051b30 100644 --- a/checkout/src/arquivos/js/components/Footer.js +++ b/checkout/src/arquivos/js/components/Footer.js @@ -7,6 +7,7 @@ export default class Footer { async init() { await this.selectors(); + await this.addImagesFooter(); // this.onUpdate(); } @@ -14,6 +15,9 @@ export default class Footer { //Para verificar se o carrinho está vazio e remover a prateleira de produtos: // vocês devem olhar a doc fornecida no Desafio para aprender a usar o waitElement this.checkoutVazio = await waitElement(".empty-cart-content"); + this.checkoutPayments = await waitElement(".footerCheckout__stamps"); + this.developBy = await waitElement(".footerCheckout__developedBy"); + console.log(this.developBy); } onUpdate() { @@ -37,4 +41,29 @@ export default class Footer { slidesToScroll: 1, }); } + + async addImagesFooter() { + this.checkoutPayments.children[0].innerHTML = ` +
+ Logo Master Card + Logo Visa + Logo American Express + Logo Elo + Logo HiperCard + Logo PayPal + Logo Boleto +
+ `; + this.checkoutPayments.children[2].innerHTML = ` +
+ Logo VTEX PCI Certificado +
+ `; + this.developBy.children[0].children[0].innerHTML = ` + Powered byLogo VTEX + `; + this.developBy.children[1].children[0].innerHTML = ` + Developed byLogo M3 + `; + } }