From dd12b3f6ee56a10e1a727fc053c760b1302e33c1 Mon Sep 17 00:00:00 2001 From: StockiP Date: Mon, 23 May 2022 09:26:57 +0200 Subject: [PATCH] added product & shop --- components/cart.html | 35 +++++++++ components/main_nav.html | 6 +- components/shop.html | 9 +++ js/app.ts | 72 +++++++++++++---- js/cart.js | 79 +++++++++++++++++++ js/getProducts.js | 162 +++++++++++++++++++++++++++++++++++++++ logic/getProductData.php | 35 +++++++++ res/css/style.css | 94 +++++++++++++++++++++++ res/img/apfel.png | Bin 0 -> 8575 bytes res/img/birne.png | Bin 0 -> 7282 bytes res/img/brombeer.png | Bin 0 -> 13450 bytes res/img/dirndl.png | Bin 0 -> 9354 bytes res/img/erdbeer.png | Bin 0 -> 12665 bytes res/img/himbeer.png | Bin 0 -> 8891 bytes res/img/marillen.png | Bin 0 -> 6813 bytes res/img/pfirsich.png | Bin 0 -> 7270 bytes res/img/testimage.png | Bin 0 -> 251295 bytes 17 files changed, 473 insertions(+), 19 deletions(-) create mode 100644 components/cart.html create mode 100644 components/shop.html create mode 100644 js/cart.js create mode 100644 js/getProducts.js create mode 100644 logic/getProductData.php create mode 100644 res/img/apfel.png create mode 100644 res/img/birne.png create mode 100644 res/img/brombeer.png create mode 100644 res/img/dirndl.png create mode 100644 res/img/erdbeer.png create mode 100644 res/img/himbeer.png create mode 100644 res/img/marillen.png create mode 100644 res/img/pfirsich.png create mode 100644 res/img/testimage.png diff --git a/components/cart.html b/components/cart.html new file mode 100644 index 0000000..b8eccff --- /dev/null +++ b/components/cart.html @@ -0,0 +1,35 @@ +
+
+

Einkaufswagen

+ + + + + + + + + + + + + +
Product IDLöschenProduktnamePreisAnzahlGesamtpreis pro Produkt
+
+ + + + + + + + + +
GesamtanzahlGesamtpreis
x 00
+
+ + +
+
+
+ \ No newline at end of file diff --git a/components/main_nav.html b/components/main_nav.html index ea0c909..a97a34e 100644 --- a/components/main_nav.html +++ b/components/main_nav.html @@ -18,7 +18,7 @@ About