From f2425407ea168b0a897617b332135cf08582c0dd Mon Sep 17 00:00:00 2001 From: Bernardo Waldhelm Date: Thu, 8 Dec 2022 09:38:36 -0300 Subject: [PATCH] Adicionando carriho ao desktop e mobile --- src/arquivos/js/app/app.js | 2 +- src/arquivos/js/app/components/Minicart.js | 12 +- src/arquivos/sass/components/_mini-cart.scss | 174 +++++++++++++----- src/arquivos/sass/partials/_header.scss | 45 +---- src/arquivos/sass/partials/_menu.scss | 10 + src/arquivos/sass/utils/_variaveis.scss | 2 + src/arquivos/sprite/lock-cart-icon.png | Bin 0 -> 536 bytes .../sub-templates/bernardo-header.html | 12 +- 8 files changed, 151 insertions(+), 106 deletions(-) create mode 100644 src/arquivos/sprite/lock-cart-icon.png diff --git a/src/arquivos/js/app/app.js b/src/arquivos/js/app/app.js index 0fef959..a04444f 100644 --- a/src/arquivos/js/app/app.js +++ b/src/arquivos/js/app/app.js @@ -64,7 +64,7 @@ const app = new Container({ ], }); -app.bind(Minicart.name, ".carrinho .mini-cart"); +app.bind(Minicart.name, ".minicart__drawer"); app.bind(Newsletter.name, { elemento: ".news-form", textButtom: "Cadastre-se", diff --git a/src/arquivos/js/app/components/Minicart.js b/src/arquivos/js/app/components/Minicart.js index f45f291..bf003ff 100644 --- a/src/arquivos/js/app/components/Minicart.js +++ b/src/arquivos/js/app/components/Minicart.js @@ -6,7 +6,7 @@ export default class Minicart { const structure = `
- + COMPRA 100% SEGURA @@ -20,12 +20,10 @@ export default class Minicart {