Merge remote-tracking branch 'origin/Registrieren' into Registrieren

# Conflicts:
#	public/header_footer/header.html
This commit is contained in:
gitfreeking 2025-04-26 18:30:04 +02:00
commit c4985aae6d
4 changed files with 143 additions and 24 deletions

View File

@ -0,0 +1,54 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bestellformular</title>
<link rel="stylesheet" href="/Styles/bestellformular/bestellformular.css">
<link rel="stylesheet" href="./Styles/styles-main.css">
<script src="/header_footer"></script>
</head>
<body>
<div class="wrapper">
<!-- Header wird hier dynamisch geladen -->
<div id="header-placeholder"></div>
<main>
<div class="form-container">
<form action="/submit-bestellung" method="post">
<h2>Bestellformular</h2>
<label for="vorname">Vorname:</label>
<input type="text" id="Vorname" name="Vorname" required placeholder="Vorname">
<label for="nachname">Nachname:</label>
<input type="text" id="Nachname" name="Nachname" required placeholder="Nachname">
<label for="kundenNr">Kunden Nr.:</label>
<input type="text" id="KundenNr" name="KundenNr" required placeholder="Kunden Nr.">
<label for="strasse">Straße:</label>
<input type="text" id="strasse" name="strasse" required placeholder="Strasse">
<label for="hausnummer">Hausnummer:</label>
<input type="text" id="hausnummer" name="hausnummer" required placeholder="Hausnummer">
<label for="ort">Ort:</label>
<input type="text" id="ort" name="ort" required placeholder="Ort">
<label for="telefon Nr">Telefon Nr (optional):</label>
<input type="tel" id="telefon Nr" name="telefon" placeholder="Telefon Nr">
<label for="ArtikelNr">Artikel Nr.:</label>
<textarea id="ArtikelNr" name="ArtikelNr" rows="4" required placeholder="Artikel Nr."></textarea>
<input type="submit" value="Bestellung absenden">
</form>
</div>
</main>
<!-- Footer wird dynamisch geladen -->
<div id="footer"></div>
</div>
</body>
</html>

View File

@ -1,9 +1,9 @@
<!-- header.html --> <!-- header.html -->
<header> <header>
<a href="/" class="logo-container"> <div class="logo-container">
<img src="/images/Logo.png" alt="Modellauto-Shop Logo" class="logo-img"> <img src="/images/Logo.png" alt="Modellauto-Shop Logo" class="logo-img">
<h1>Modellauto - Shop</h1> <h1>Modellauto - Shop</h1>
</a> </div>
<div class="header-right"> <div class="header-right">
<a href="/login" class="login-btn">Login</a> <a href="/login" class="login-btn">Login</a>
<div class="cart"> <div class="cart">

View File

@ -60,4 +60,7 @@ router.get('/shop', (req, res) => {
res.sendFile(path.join(__dirname, '../../../public/shop/shop_lkw.html')); res.sendFile(path.join(__dirname, '../../../public/shop/shop_lkw.html'));
}) })
router.get('/bestellformular', (req, res) => {
res.sendFile(path.join(__dirname, '../../../public/bestellformular/bestellformular.html'));
})
module.exports = router; module.exports = router;

View File

@ -0,0 +1,62 @@
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
padding: 20px;
margin: 0;
display: flex;
flex-direction: column;
min-height: 100vh;
}
.wrapper {
flex: 1; /* Der Hauptinhalt (Formular) nimmt den verfügbaren Platz ein */
}
.form-container {
max-width: 600px;
margin: 20px auto;
background-color: #f5f5f5;
padding: 25px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
form h2 {
text-align: center;
margin-bottom: 20px;
}
label {
display: block;
margin-top: 15px;
font-weight: bold;
}
input[type="text"],
input[type="tel"],
textarea {
width: 100%;
padding: 10px;
margin-top: 5px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
input[type="submit"] {
margin-top: 20px;
background-color: #ff6600;
color: white;
border: none;
padding: 12px;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
width: 100%;
}
input[type="submit"]:hover {
background-color: #ff5500; /* Ein leicht dunklerer Farbton beim Hover */
}