diff --git a/src/app.js b/src/app.js index b092e14..337f9d7 100644 --- a/src/app.js +++ b/src/app.js @@ -61,6 +61,9 @@ const utils = { async svg(name) { return await this.getData(`./src/images/svg/${name}.svg`, 'text'); }, + async component(name) { + return await this.getData(`./src/components/${name}.html`, 'text'); + }, async getData(url, type = 'json') { const response = await fetch(url); return await response[type](); diff --git a/src/components/products-filter.html b/src/components/products-filter.html new file mode 100644 index 0000000..12ab6c8 --- /dev/null +++ b/src/components/products-filter.html @@ -0,0 +1,165 @@ +
+

Category

+ +
+ +
+

Price

+
+
+
+ + +
+
+ + +
+
+ +
+

Discount

+ +
+ +
+

Color

+ +
+ +
+

Stock

+ +
diff --git a/src/pages/shop/shop.html b/src/pages/shop/shop.html index 643fc50..79f096d 100644 --- a/src/pages/shop/shop.html +++ b/src/pages/shop/shop.html @@ -1,197 +1,80 @@ -
+
+
-
- - -
- - -
-

Discount

- -
- -
-

Color

- -
- -
-

Stock

- + ✕ +
+
+