Bestellformular + CSS hinzugefügt
This commit is contained in:
parent
418ed285cf
commit
557ffb2bb7
8
.idea/dataSources.xml
generated
8
.idea/dataSources.xml
generated
@ -2,14 +2,12 @@
|
|||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
|
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
|
||||||
<data-source source="LOCAL" name="@localhost" uuid="fd7d9aa1-1427-4fa7-afe9-9730b93129bb">
|
<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>
|
<synchronize>true</synchronize>
|
||||||
<jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
|
<jdbc-driver>org.mariadb.jdbc.Driver</jdbc-driver>
|
||||||
<jdbc-url>jdbc:mysql://localhost:3306</jdbc-url>
|
<jdbc-url>jdbc:mariadb://localhost:3306</jdbc-url>
|
||||||
<jdbc-additional-properties>
|
<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.enabled" value="false" />
|
||||||
<property name="com.intellij.clouds.kubernetes.db.container.port" />
|
|
||||||
</jdbc-additional-properties>
|
</jdbc-additional-properties>
|
||||||
<working-dir>$ProjectFileDir$</working-dir>
|
<working-dir>$ProjectFileDir$</working-dir>
|
||||||
</data-source>
|
</data-source>
|
||||||
|
|||||||
@ -27,7 +27,8 @@
|
|||||||
<div class="summary">
|
<div class="summary">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button class="checkout">Zur Kasse gehen</button>
|
<a href="/bestellformular" class="checkout">Zur Kasse gehen</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
26
public/bestellformular/bestellformular.html
Normal file
26
public/bestellformular/bestellformular.html
Normal 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>
|
||||||
@ -21,7 +21,7 @@ router.get('/Warenkorb', (req, res) => {
|
|||||||
res.sendFile(path.join(__dirname, '../../../public/warenkorb/warenkorb.html'));
|
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'));
|
res.sendFile(path.join(__dirname, '../../../public/bestellformular/bestellformular.html'));
|
||||||
})
|
})
|
||||||
module.exports = router;
|
module.exports = router;
|
||||||
@ -77,3 +77,18 @@ body {
|
|||||||
.checkout:hover {
|
.checkout:hover {
|
||||||
background-color: #ff6600;
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
50
static/Styles/bestellformular/bestellformular.css
Normal file
50
static/Styles/bestellformular/bestellformular.css
Normal 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;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user