Warenkorb #28

Merged
vex merged 8 commits from Warenkorb into develop 2025-04-26 09:27:48 +00:00
6 changed files with 97 additions and 7 deletions
Showing only changes of commit 557ffb2bb7 - Show all commits

8
.idea/dataSources.xml generated
View File

@ -2,14 +2,12 @@
<project version="4">
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
<data-source source="LOCAL" name="@localhost" uuid="fd7d9aa1-1427-4fa7-afe9-9730b93129bb">
<driver-ref>mysql.8</driver-ref>
<driver-ref>mariadb</driver-ref>
<synchronize>true</synchronize>
<jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
<jdbc-url>jdbc:mysql://localhost:3306</jdbc-url>
<jdbc-driver>org.mariadb.jdbc.Driver</jdbc-driver>
<jdbc-url>jdbc:mariadb://localhost:3306</jdbc-url>
<jdbc-additional-properties>
<property name="com.intellij.clouds.kubernetes.db.host.port" />
<property name="com.intellij.clouds.kubernetes.db.enabled" value="false" />
<property name="com.intellij.clouds.kubernetes.db.container.port" />
</jdbc-additional-properties>
<working-dir>$ProjectFileDir$</working-dir>
</data-source>

View File

@ -27,7 +27,8 @@
<div class="summary">
</div>
<button class="checkout">Zur Kasse gehen</button>
<a href="/bestellformular" class="checkout">Zur Kasse gehen</a>
</div>
</body>
</html>

View File

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>Bestellformular</title>
<link rel="stylesheet" href="/Styles/bestellformular/bestellformular.css">
</head>
<body>
<div class="form-container">
<form action="/submit-bestellung" method="post">
<h2>Bestellformular</h2>
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<label for="anschrift">Anschrift:</label>
<textarea id="anschrift" name="anschrift" rows="4" required></textarea>
<label for="bestellteWare">Bestellte Ware:</label>
<textarea id="bestellteWare" name="bestellteWare" rows="4"></textarea>
<input type="submit" value="Bestellung absenden">
</form>
</div>
</body>
</html>

View File

@ -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;

View File

@ -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;
}

View File

@ -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;
}