diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml index 935ffdb..35b7183 100644 --- a/.idea/dataSources.xml +++ b/.idea/dataSources.xml @@ -2,14 +2,12 @@ - mysql.8 + mariadb true - com.mysql.cj.jdbc.Driver - jdbc:mysql://localhost:3306 + org.mariadb.jdbc.Driver + jdbc:mariadb://localhost:3306 - - $ProjectFileDir$ diff --git a/public/Warenkorb/warenkorb.html b/public/Warenkorb/warenkorb.html index 1a51dd8..ab0c188 100644 --- a/public/Warenkorb/warenkorb.html +++ b/public/Warenkorb/warenkorb.html @@ -27,7 +27,8 @@
- + Zur Kasse gehen + diff --git a/public/bestellformular/bestellformular.html b/public/bestellformular/bestellformular.html new file mode 100644 index 0000000..80dda50 --- /dev/null +++ b/public/bestellformular/bestellformular.html @@ -0,0 +1,26 @@ + + + + + Bestellformular + + + +
+
+

Bestellformular

+ + + + + + + + + + + +
+
+ + diff --git a/scripts/routes/other/route-index.js b/scripts/routes/other/route-index.js index 16d8d17..b10bead 100644 --- a/scripts/routes/other/route-index.js +++ b/scripts/routes/other/route-index.js @@ -21,7 +21,7 @@ router.get('/Warenkorb', (req, res) => { res.sendFile(path.join(__dirname, '../../../public/warenkorb/warenkorb.html')); }) -router.get('/Bestellformular', (req, res) => { +router.get('/bestellformular', (req, res) => { res.sendFile(path.join(__dirname, '../../../public/bestellformular/bestellformular.html')); }) module.exports = router; \ No newline at end of file diff --git a/static/Styles/Warenkorb/warenkorb.css b/static/Styles/Warenkorb/warenkorb.css index 8c8d6c3..23fc4b9 100644 --- a/static/Styles/Warenkorb/warenkorb.css +++ b/static/Styles/Warenkorb/warenkorb.css @@ -77,3 +77,18 @@ body { .checkout:hover { background-color: #ff6600; } + +.checkout { + display: inline-block; + background-color: #ff6600; + color: white; + padding: 10px 20px; + margin-top: 20px; + text-align: center; + text-decoration: none; + font-size: 16px; + border-radius: 5px; + transition: background-color 0.3s; +} + + diff --git a/static/Styles/bestellformular/bestellformular.css b/static/Styles/bestellformular/bestellformular.css new file mode 100644 index 0000000..fc2003d --- /dev/null +++ b/static/Styles/bestellformular/bestellformular.css @@ -0,0 +1,50 @@ +body { + font-family: Arial, sans-serif; + padding: 20px; + background-color: #f7f7f7; +} + +.form-container form { + max-width: 600px; + margin: auto; + padding: 20px; + background-color: white; + border: 1px solid #ccc; + border-radius: 8px; +} + +form h2 { + margin-top: 0; + text-align: center; +} + + +label { + display: block; + margin-bottom: 10px; + font-weight: bold; +} + +input[type="text"], +textarea { + width: 100%; + padding: 8px; + margin-bottom: 15px; + border: 1px solid #ccc; + border-radius: 4px; + box-sizing: border-box; +} + +input[type="submit"] { + background-color: #ff6600; + color: white; + padding: 10px 20px; + border: none; + border-radius: 4px; + cursor: pointer; + font-size: 16px; +} + +input[type="submit"]:hover { + background-color: #ff6600; +}