From b6b24157350bef98b29014959f8df6ce68462296 Mon Sep 17 00:00:00 2001 From: kellysalas Date: Thu, 31 Oct 2024 09:47:34 -0300 Subject: [PATCH] componetizacion del footer --- cart.html | 14 +++++--------- categories.html | 13 +++++-------- index.html | 13 +++++-------- js/footer.js | 14 ++++++++++++++ my-profile.html | 17 ++++------------- product-info.html | 13 ++++--------- products.html | 13 ++++--------- sell.html | 25 +++++++++++-------------- 8 files changed, 52 insertions(+), 70 deletions(-) create mode 100644 js/footer.js diff --git a/cart.html b/cart.html index c943c68..4132d74 100644 --- a/cart.html +++ b/cart.html @@ -81,15 +81,10 @@ - + + + +
@@ -101,6 +96,7 @@ + diff --git a/categories.html b/categories.html index 514d6aa..c5440bb 100644 --- a/categories.html +++ b/categories.html @@ -62,14 +62,10 @@

Categorías

- + + + +
@@ -81,6 +77,7 @@

Categorías

+ diff --git a/index.html b/index.html index 25e01c3..b9249eb 100644 --- a/index.html +++ b/index.html @@ -58,18 +58,15 @@

Muebles

- + + + + + diff --git a/js/footer.js b/js/footer.js new file mode 100644 index 0000000..1ce1ab9 --- /dev/null +++ b/js/footer.js @@ -0,0 +1,14 @@ +document.addEventListener("DOMContentLoaded", function(){ + const footerHTML = ` + + ` + + document.querySelectorAll(".footer-container").forEach((container) => (container.innerHTML = footerHTML)) +}) \ No newline at end of file diff --git a/my-profile.html b/my-profile.html index 4b686da..cdcf99c 100644 --- a/my-profile.html +++ b/my-profile.html @@ -97,22 +97,13 @@

Perfil de usuario

- + + + + diff --git a/product-info.html b/product-info.html index e0d0be1..248eef6 100644 --- a/product-info.html +++ b/product-info.html @@ -90,15 +90,9 @@

Calificaciones

- + + +
@@ -110,6 +104,7 @@

Calificaciones

+ diff --git a/products.html b/products.html index 562f7fe..ccf05b2 100644 --- a/products.html +++ b/products.html @@ -72,15 +72,9 @@

- + + +
@@ -92,6 +86,7 @@

+ diff --git a/sell.html b/sell.html index da930f9..0ca47ff 100644 --- a/sell.html +++ b/sell.html @@ -14,7 +14,7 @@ - +

Vender

@@ -52,15 +52,16 @@

Información del producto

- +
El costo debe ser mayor que 0.
- @@ -90,8 +91,8 @@

Información del producto

- +
La cantidad es requerida.
@@ -147,14 +148,9 @@
Porcentaje
- + + +