From 6b82cc5fe7fb8d2675ea3387fcda061b11ae39f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cain=C3=A3=20Milech?= Date: Wed, 7 Dec 2022 19:20:11 -0300 Subject: [PATCH] feat: adiciona o minicart --- src/arquivos/js/app/app.js | 2 +- src/arquivos/js/app/components/Minicart.js | 14 +-- src/arquivos/js/app/partials/Menu.js | 6 +- src/arquivos/sass/components/_mini-cart.scss | 91 +++++++++++++++---- src/arquivos/sass/partials/_header.scss | 44 +-------- .../sub-templates/caina-header.html | 14 ++- 6 files changed, 98 insertions(+), 73 deletions(-) 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..50d1c0c 100644 --- a/src/arquivos/js/app/components/Minicart.js +++ b/src/arquivos/js/app/components/Minicart.js @@ -16,7 +16,9 @@ export default class Minicart {
- +