Merge remote-tracking branch 'origin/develop' into db_testdata
This commit is contained in:
commit
81a9ac2ba7
@ -1,3 +1,3 @@
|
|||||||
# Webshop
|
# Webshop
|
||||||
|
|
||||||
Webshop Autohändler
|
Webshop für Modellautos
|
||||||
33
public/Warenkorb/warenkorb.html
Normal file
33
public/Warenkorb/warenkorb.html
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="de">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>Warenkorb</title>
|
||||||
|
<link rel="stylesheet" href="/Styles/Warenkorb/warenkorb.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="warenkorb">
|
||||||
|
<h2>🛒 Dein Warenkorb</h2>
|
||||||
|
|
||||||
|
<div class="item">
|
||||||
|
<div class="info">
|
||||||
|
<span class="name">Produkt 1</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<button class="remove">Entfernen</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="item">
|
||||||
|
<div class="info">
|
||||||
|
<span class="name">Produkt 2</span>
|
||||||
|
</div>
|
||||||
|
<button class="remove">Entfernen</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="summary">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button class="checkout">Zur Kasse gehen</button>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -15,10 +15,10 @@
|
|||||||
<h1>Autohändler Webshop</h1>
|
<h1>Autohändler Webshop</h1>
|
||||||
<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">
|
<a href="/warenkorb" class="cart">
|
||||||
<i class='bx bx-cart'></i>
|
<i class='bx bx-cart'></i>
|
||||||
<span class="cart-count">0</span>
|
<span class="cart-count">0</span>
|
||||||
</div>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|||||||
@ -17,4 +17,7 @@ router.get('/registrieren', (req, res) => {
|
|||||||
res.sendFile(path.join(__dirname, '../../../public/registrieren/registrieren.html'));
|
res.sendFile(path.join(__dirname, '../../../public/registrieren/registrieren.html'));
|
||||||
})
|
})
|
||||||
|
|
||||||
|
router.get('/Warenkorb', (req, res) => {
|
||||||
|
res.sendFile(path.join(__dirname, '../../../public/warenkorb/warenkorb.html'));
|
||||||
|
})
|
||||||
module.exports = router;
|
module.exports = router;
|
||||||
79
static/Styles/Warenkorb/warenkorb.css
Normal file
79
static/Styles/Warenkorb/warenkorb.css
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
body {
|
||||||
|
font-family: Arial, sans-serif;
|
||||||
|
background-color: #f3f3f3;
|
||||||
|
margin: 0;
|
||||||
|
padding: 130px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.warenkorb {
|
||||||
|
max-width: 500px;
|
||||||
|
margin: 0 auto;
|
||||||
|
background: white;
|
||||||
|
padding: 120px;
|
||||||
|
border-radius: 12px;
|
||||||
|
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.warenkorb h2 {
|
||||||
|
font-size: 30px;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 60px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
border-bottom: 1px solid #ddd;
|
||||||
|
padding: 10px 0;
|
||||||
|
margin-bottom: 35px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item .info {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item .name {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item .price {
|
||||||
|
color: #555;
|
||||||
|
}
|
||||||
|
|
||||||
|
.remove {
|
||||||
|
background-color: #ff4d4f;
|
||||||
|
border: none;
|
||||||
|
color: white;
|
||||||
|
padding: 6px 12px;
|
||||||
|
border-radius: 6px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.remove:hover {
|
||||||
|
background-color: #e60000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary {
|
||||||
|
text-align: right;
|
||||||
|
font-size: 1.1em;
|
||||||
|
margin: 20px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.checkout {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
padding: 12px;
|
||||||
|
background-color: #4CAF50;
|
||||||
|
border: none;
|
||||||
|
color: white;
|
||||||
|
font-size: 16px;
|
||||||
|
border-radius: 8px;
|
||||||
|
cursor: pointer;
|
||||||
|
margin-top: 90px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.checkout:hover {
|
||||||
|
background-color: #45a049;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user