From 619e586280565d20b7bf11919c105586ebbe69d2 Mon Sep 17 00:00:00 2001 From: Hannes Date: Sat, 18 Jan 2020 15:34:54 +0100 Subject: [PATCH] add checkout --- .../hso/ecommerce/app/RequestController.java | 9 +- .../src/main/resources/static/css/ecom.css | 10 +- .../resources/templates/shoppingCart.html | 111 ++++++++++++++++++ 3 files changed, 127 insertions(+), 3 deletions(-) create mode 100644 prototype/src/main/resources/templates/shoppingCart.html diff --git a/prototype/src/main/java/org/hso/ecommerce/app/RequestController.java b/prototype/src/main/java/org/hso/ecommerce/app/RequestController.java index 9ea85c0..a4db116 100644 --- a/prototype/src/main/java/org/hso/ecommerce/app/RequestController.java +++ b/prototype/src/main/java/org/hso/ecommerce/app/RequestController.java @@ -44,12 +44,17 @@ public class RequestController { @GetMapping("/articledetail") public String articledetail() { - return "articleDetail"; + return "articledetail"; } @GetMapping("/searchresults") public String searchresults() { - return "searchResults"; + return "searchresults"; + } + + @GetMapping("/shoppingcart") + public String shoppingcart() { + return "shoppingcart"; } @GetMapping("/intern/customerdetail") diff --git a/prototype/src/main/resources/static/css/ecom.css b/prototype/src/main/resources/static/css/ecom.css index a04d92e..6189227 100644 --- a/prototype/src/main/resources/static/css/ecom.css +++ b/prototype/src/main/resources/static/css/ecom.css @@ -137,6 +137,7 @@ a:visited { p { padding-top: var(--u0); padding-bottom: var(--u0); + color: var(--c-black); } h1 { @@ -393,7 +394,6 @@ fieldset { height: 0px; } - .bar-flex { display: flex; align-items: center; @@ -577,6 +577,14 @@ fieldset { text-align: right; } +.center-text { + text-align: center; +} + +.leftspace { + padding-left: 1em; +} + diff --git a/prototype/src/main/resources/templates/shoppingCart.html b/prototype/src/main/resources/templates/shoppingCart.html new file mode 100644 index 0000000..199c57f --- /dev/null +++ b/prototype/src/main/resources/templates/shoppingCart.html @@ -0,0 +1,111 @@ + + + + + e-commerce + + + + +
+
+

Warenkorb

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
BildNamePreisMenge
Kamera100,50 € + + + +
Earbuds63,95 € + + + +
USB-Magic Light11,90 € + + + +
3D Magic Stativ15,99 € + + + +
Ersatzfernbedinung7,95 € + + + +
+

+
+
+

Checkout

+
+
+

Bestellübersicht

+

Artikel: 200,29 €

+

Lieferung: 5,00 €

+

Gesamt: 205,29 €

+ +

Versandadresse:

+

Max Mustermann

+

Musterstraße 42

+

42424 Mustertal

+ + +
+
+
+
+ + + \ No newline at end of file