develop #36
1
package-lock.json
generated
1
package-lock.json
generated
@ -597,6 +597,7 @@
|
||||
"version": "2.18.1",
|
||||
"resolved": "https://registry.npmjs.org/mysql/-/mysql-2.18.1.tgz",
|
||||
"integrity": "sha512-Bca+gk2YWmqp2Uf6k5NFEurwY/0td0cpebAucFpY/3jhrwrVGuxU2uQFCHjU19SJfje0yQvi+rVWdq78hR5lig==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"bignumber.js": "9.0.0",
|
||||
"readable-stream": "2.3.7",
|
||||
|
||||
27
public/404.html
Normal file
27
public/404.html
Normal file
@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Seite nicht gefunden</title>
|
||||
<link rel="stylesheet" href="/Styles/styles-main.css">
|
||||
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
||||
<script src="/header_footer"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<!-- Header -->
|
||||
<div id="header-placeholder"></div>
|
||||
|
||||
<main class="content" style="text-align: center; padding: 80px;">
|
||||
<h1>🚧 Seite nicht gefunden 🚧</h1>
|
||||
<p>Diese Seite existiert nicht oder befindet sich noch in Arbeit.</p>
|
||||
<a href="/" class="btn" style="width: auto; display: inline-block; margin-top: 20px;">Zur Startseite</a>
|
||||
</main>
|
||||
|
||||
<!-- Fußzeiele -->
|
||||
<div id="footer"></div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
54
public/bestellformular/bestellformular.html
Normal file
54
public/bestellformular/bestellformular.html
Normal 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>
|
||||
8
public/header_footer/footer.html
Normal file
8
public/header_footer/footer.html
Normal file
@ -0,0 +1,8 @@
|
||||
<!-- Fußzeiele -->
|
||||
<footer class="footer">
|
||||
<p>© 2025 Autohändler Webshop – Alle Rechte vorbehalten</p>
|
||||
<p>
|
||||
<a href="/impressum">Impressum</a> |
|
||||
<a href="/datenschutz">Datenschutz</a>
|
||||
</p>
|
||||
</footer>
|
||||
32
public/header_footer/header.html
Normal file
32
public/header_footer/header.html
Normal file
@ -0,0 +1,32 @@
|
||||
<!-- header.html -->
|
||||
<header>
|
||||
<div class="logo-container">
|
||||
<img src="/images/Logo.png" alt="Modellauto-Shop Logo" class="logo-img">
|
||||
<h1>Modellauto - Shop</h1>
|
||||
</div>
|
||||
<div class="header-right">
|
||||
<a href="/login" class="login-btn">Login</a>
|
||||
<div class="cart">
|
||||
<i class='bx bx-cart'></i>
|
||||
<span class="cart-count">0</span>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="menu">
|
||||
<ul class="menu-list">
|
||||
<li class="menu-item"><a href="/">Startseite</a></li>
|
||||
<li class="menu-item">
|
||||
<a href="/shop">Shop</a>
|
||||
<ul class="submenu">
|
||||
<li><a href="/shop/motorrad">Motorräder</a></li>
|
||||
<li><a href="/shop/oldtimer">Oldtimer</a></li>
|
||||
<li><a href="/shop/sportwagen">Sportwagen</a></li>
|
||||
<li><a href="/shop/lkw">LKWs</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="menu-item"><a href="/ueberuns">Über uns</a></li>
|
||||
<li class="menu-item"><a href="/kontakt">Kontakt</a></li>
|
||||
<li class="menu-item"><a href="/bestellformular">Bestellformular</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
@ -4,30 +4,37 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="./Styles/login/login.css">
|
||||
<link rel="stylesheet" href="./Styles/styles-main.css">
|
||||
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
||||
<script src="/header_footer"></script>
|
||||
<title>Login</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<form action="login.php" method="POST">
|
||||
<h1>Login</h1>
|
||||
<div class="input-box">
|
||||
<input type="text" name="username" placeholder="Username" required>
|
||||
<i class='bx bxs-user'></i>
|
||||
</div>
|
||||
<div class="input-box">
|
||||
<input type="password" id="password" name="password" placeholder="Passwort" required>
|
||||
<i class='bx bxs-lock-alt' id="togglePassword" onclick="togglePassword()"></i>
|
||||
</div>
|
||||
<!-- Header -->
|
||||
<div id="header-placeholder"></div>
|
||||
|
||||
<button type="submit" class="btn">Login</button>
|
||||
|
||||
<div class="register-link">
|
||||
<br>
|
||||
<p>Noch keinen Account? <a href="/registrieren">Registrieren</a></p>
|
||||
<main class="main-content">
|
||||
<div class="login-container">
|
||||
<h2 class="login-title">Login</h2>
|
||||
<form class="login-form">
|
||||
<div class="input-group">
|
||||
<input type="text" placeholder="Username" required />
|
||||
<i class="icon fas fa-user"></i>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="password" placeholder="Passwort" required />
|
||||
<i class="icon fas fa-lock"></i>
|
||||
</div>
|
||||
<button type="submit" class="login-btn">Login</button>
|
||||
<p class="register-text">
|
||||
Noch keinen Account? <a href="/registrieren">Registrieren</a>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<script src="./script.js"></script>
|
||||
</main>
|
||||
|
||||
<!-- Fußzeiele -->
|
||||
<div id="footer"></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -1,45 +0,0 @@
|
||||
// Funktion, um die Stärke des Passworts zu bewerten
|
||||
function checkPasswordStrength(password) {
|
||||
const strengthBar = document.getElementById('passwordStrengthBar');
|
||||
const passwordStrength = evaluatePasswordStrength(password);
|
||||
|
||||
// Aktualisiere den Sicherheitsbalken basierend auf der Stärke
|
||||
if (passwordStrength === 'weak') {
|
||||
strengthBar.classList.remove('medium', 'strong');
|
||||
strengthBar.classList.add('weak');
|
||||
} else if (passwordStrength === 'medium') {
|
||||
strengthBar.classList.remove('weak', 'strong');
|
||||
strengthBar.classList.add('medium');
|
||||
} else {
|
||||
strengthBar.classList.remove('weak', 'medium');
|
||||
strengthBar.classList.add('strong');
|
||||
}
|
||||
}
|
||||
|
||||
// Funktion zur Beurteilung der Passwortstärke
|
||||
function evaluatePasswordStrength(password) {
|
||||
if (password.length >= 8 && /[A-Z]/.test(password) && /[0-9]/.test(password)) {
|
||||
return 'strong';
|
||||
} else if (password.length >= 6) {
|
||||
return 'medium';
|
||||
} else {
|
||||
return 'weak';
|
||||
}
|
||||
}
|
||||
|
||||
// Event Listener für das Passwortfeld
|
||||
document.getElementById('regPassword').addEventListener('input', function() {
|
||||
checkPasswordStrength(this.value);
|
||||
});
|
||||
|
||||
// Event Listener für das Bestätigungs-Passwortfeld
|
||||
document.getElementById('confirmPassword').addEventListener('input', function() {
|
||||
const password = document.getElementById('regPassword').value;
|
||||
const confirmPassword = this.value;
|
||||
|
||||
if (password !== confirmPassword) {
|
||||
this.setCustomValidity("Die Passwörter stimmen nicht überein.");
|
||||
} else {
|
||||
this.setCustomValidity("");
|
||||
}
|
||||
});
|
||||
@ -4,48 +4,58 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="./Styles/registrieren/registrieren.css">
|
||||
<link rel="stylesheet" href="./Styles/styles-main.css">
|
||||
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
||||
<script src="/header_footer"></script>
|
||||
<title>Registrieren</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<form action="register.php" method="POST">
|
||||
<h1>Registrieren</h1>
|
||||
<div class="page-container">
|
||||
|
||||
<div class="input-box">
|
||||
<input type="text" name="name" placeholder="Voller Name" required>
|
||||
<i class='bx bxs-user'></i>
|
||||
</div>
|
||||
<div class="input-box">
|
||||
<input type="text" name="username" placeholder="Username" required>
|
||||
<i class='bx bxs-user'></i>
|
||||
</div>
|
||||
<div class="input-box">
|
||||
<input type="email" name="email" placeholder="E-Mail" required>
|
||||
<i class='bx bxs-envelope'></i>
|
||||
</div>
|
||||
<div class="input-box">
|
||||
<input type="password" id="regPassword" name="password" placeholder="Passwort" required>
|
||||
<i class='bx bxs-lock-alt'></i>
|
||||
</div>
|
||||
<!-- Header -->
|
||||
<div id="header-placeholder"></div>
|
||||
|
||||
<div class="input-box">
|
||||
<input type="password" id="confirmPassword" name="confirmPassword" placeholder="Passwort bestätigen" required>
|
||||
<i class='bx bxs-lock-alt'></i>
|
||||
</div>
|
||||
<!-- Registrierungsformular -->
|
||||
<main class="content-wrapper">
|
||||
<div class="wrapper">
|
||||
<form action="register.php" method="POST">
|
||||
<h1>Registrieren</h1>
|
||||
|
||||
<!-- Sicherheitsbalken -->
|
||||
<div id="passwordStrengthBar" class="password-strength-bar"></div>
|
||||
<div class="input-box">
|
||||
<input type="text" name="vorname" placeholder="Vorname" required>
|
||||
<i class='bx bxs-user'></i>
|
||||
</div>
|
||||
<div class="input-box">
|
||||
<input type="text" name="nachname" placeholder="Nachname" required>
|
||||
<i class='bx bxs-user'></i>
|
||||
</div>
|
||||
<div class="input-box">
|
||||
<input type="email" name="email" placeholder="E-Mail" required>
|
||||
<i class='bx bxs-envelope'></i>
|
||||
</div>
|
||||
<div class="input-box">
|
||||
<input type="password" id="regPassword" name="password" placeholder="Passwort" required>
|
||||
<i class='bx bxs-lock-alt'></i>
|
||||
</div>
|
||||
|
||||
<div class="input-box">
|
||||
<input type="password" id="confirmPassword" name="confirmPassword" placeholder="Passwort bestätigen" required>
|
||||
<i class='bx bxs-lock-alt'></i>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn">Registrieren</button>
|
||||
<button type="submit" class="btn">Registrieren</button>
|
||||
|
||||
<div class="register-link">
|
||||
<br>
|
||||
<p>Bereits ein Konto? <a href="/login">Login</a></p>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<script src="./passwordValidation.js"></script>
|
||||
<div class="register-link">
|
||||
<br>
|
||||
<p>Bereits ein Konto? <a href="/login">Login</a></p>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<!-- Fußzeiele -->
|
||||
<div id="footer"></div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
62
public/shop/shop.html
Normal file
62
public/shop/shop.html
Normal file
@ -0,0 +1,62 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Shop</title>
|
||||
<link rel="stylesheet" href="/Styles/styles-main.css">
|
||||
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
||||
<script src="/header_footer"></script>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Header -->
|
||||
<div id="header-placeholder"></div>
|
||||
|
||||
<!-- Hauptinhalt -->
|
||||
<section style="padding: 0px 30px; text-align: left;">
|
||||
<h1>Willkommen im Webshop</h1>
|
||||
</section>
|
||||
|
||||
<main>
|
||||
<section class="card-grid" id="products">
|
||||
<!-- Dynamische Produkte -->
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
fetch('/api/products')
|
||||
.then(res => res.json())
|
||||
.then(products => {
|
||||
const container = document.getElementById('products');
|
||||
container.innerHTML = ''; // sicherheitshalber leeren
|
||||
|
||||
products.forEach(product => {
|
||||
const card = document.createElement('div');
|
||||
card.classList.add('card');
|
||||
card.innerHTML = `
|
||||
<img src="${product.image_url}" alt="${product.name}">
|
||||
<h3>${product.name}</h3>
|
||||
<p>Preis: ${product.price}€</p>
|
||||
<p>${product.description}</p>
|
||||
<button class="add-to-cart" data-id="${product.id}">Zum Warenkorb hinzufügen</button>
|
||||
`;
|
||||
container.appendChild(card);
|
||||
});
|
||||
})
|
||||
.catch(err => {
|
||||
console.error('Fehler beim Laden der Produkte:', err);
|
||||
|
||||
const container = document.getElementById('products');
|
||||
container.innerHTML =
|
||||
`<div class="error-message">
|
||||
<h3>Fehler beim Laden der Produkte</h3>
|
||||
<p>Es gab ein Problem beim Abrufen der Produktdaten.<br>Wir arbeiten bereits daran – bitte versuchen Sie es später erneut.</p>
|
||||
</div>`;
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- Fußzeiele -->
|
||||
<div id="footer"></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
59
public/shop/shop_lkw.html
Normal file
59
public/shop/shop_lkw.html
Normal file
@ -0,0 +1,59 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Shop - LKW's</title>
|
||||
<link rel="stylesheet" href="/Styles/styles-main.css">
|
||||
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
||||
<script src="/header_footer"></script>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Header -->
|
||||
<div id="header-placeholder"></div>
|
||||
|
||||
<!-- Hauptinhalt -->
|
||||
<section style="padding: 0px 30px; text-align: left;">
|
||||
<h1>Unsere LKW Produkte</h1>
|
||||
</section>
|
||||
<section class="card-grid" id="products_lkw">
|
||||
<!-- Dynamische Produkte (filtern nach Motorrad) -->
|
||||
</section>
|
||||
|
||||
<script>
|
||||
fetch('/api/products/lkw')
|
||||
.then(res => res.json())
|
||||
.then(products => {
|
||||
const container = document.getElementById('products_lkw');
|
||||
container.innerHTML = ''; // sicherheitshalber leeren
|
||||
|
||||
products.forEach(product => {
|
||||
const card = document.createElement('div');
|
||||
card.classList.add('card');
|
||||
card.innerHTML = `
|
||||
<img src="${product.image_url}" alt="${product.name}">
|
||||
<h3>${product.name}</h3>
|
||||
<p>Preis: ${product.price}€</p>
|
||||
<p>${product.description}</p>
|
||||
<button class="add-to-cart" data-id="${product.id}">Zum Warenkorb hinzufügen</button>
|
||||
`;
|
||||
container.appendChild(card);
|
||||
});
|
||||
})
|
||||
.catch(err => {
|
||||
console.error('Fehler beim Laden der Produkte:', err);
|
||||
|
||||
const container = document.getElementById('products_oldtimer');
|
||||
container.innerHTML =
|
||||
`<div class="error-message">
|
||||
<h3>Fehler beim Laden der Produkte</h3>
|
||||
<p>Es gab ein Problem beim Abrufen der Produktdaten.<br>Wir arbeiten bereits daran – bitte versuchen Sie es später erneut.</p>
|
||||
</div>`;
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- Fußzeiele -->
|
||||
<div id="footer"></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
60
public/shop/shop_motorrad.html
Normal file
60
public/shop/shop_motorrad.html
Normal file
@ -0,0 +1,60 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Shop - Motorräder</title>
|
||||
<link rel="stylesheet" href="/Styles/styles-main.css">
|
||||
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
||||
<script src="/header_footer"></script>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Header -->
|
||||
<div id="header-placeholder"></div>
|
||||
|
||||
<!-- Hauptinhalt -->
|
||||
<section style="padding: 0px 30px; text-align: left;">
|
||||
<h1>Unsere Motorrad Produkte</h1>
|
||||
</section>
|
||||
<section class="card-grid" id="products_motorrad">
|
||||
<!-- Dynamische Produkte (filtern nach Motorrad) -->
|
||||
</section>
|
||||
|
||||
|
||||
<script>
|
||||
fetch('/api/products/motorrad')
|
||||
.then(res => res.json())
|
||||
.then(products => {
|
||||
const container = document.getElementById('products_motorrad');
|
||||
container.innerHTML = ''; // sicherheitshalber leeren
|
||||
|
||||
products.forEach(product => {
|
||||
const card = document.createElement('div');
|
||||
card.classList.add('card');
|
||||
card.innerHTML = `
|
||||
<img src="${product.image_url}" alt="${product.name}">
|
||||
<h3>${product.name}</h3>
|
||||
<p>Preis: ${product.price}€</p>
|
||||
<p>${product.description}</p>
|
||||
<button class="add-to-cart" data-id="${product.id}">Zum Warenkorb hinzufügen</button>
|
||||
`;
|
||||
container.appendChild(card);
|
||||
});
|
||||
})
|
||||
.catch(err => {
|
||||
console.error('Fehler beim Laden der Produkte:', err);
|
||||
|
||||
const container = document.getElementById('products_motorrad');
|
||||
container.innerHTML =
|
||||
`<div class="error-message">
|
||||
<h3>Fehler beim Laden der Produkte</h3>
|
||||
<p>Es gab ein Problem beim Abrufen der Produktdaten.<br>Wir arbeiten bereits daran – bitte versuchen Sie es später erneut.</p>
|
||||
</div>`;
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- Fußzeiele -->
|
||||
<div id="footer"></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
59
public/shop/shop_oldtimer.html
Normal file
59
public/shop/shop_oldtimer.html
Normal file
@ -0,0 +1,59 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Shop - Oldtimer</title>
|
||||
<link rel="stylesheet" href="/Styles/styles-main.css">
|
||||
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
||||
<script src="/header_footer"></script>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Header -->
|
||||
<div id="header-placeholder"></div>
|
||||
|
||||
<!-- Hauptinhalt -->
|
||||
<section style="padding: 0px 30px; text-align: left;">
|
||||
<h1>Unsere Oldtimer Produkte</h1>
|
||||
</section>
|
||||
<section class="card-grid" id="products_oldtimer">
|
||||
<!-- Dynamische Produkte (filtern nach Motorrad) -->
|
||||
</section>
|
||||
|
||||
<script>
|
||||
fetch('/api/products/oldtimer')
|
||||
.then(res => res.json())
|
||||
.then(products => {
|
||||
const container = document.getElementById('products_oldtimer');
|
||||
container.innerHTML = ''; // sicherheitshalber leeren
|
||||
|
||||
products.forEach(product => {
|
||||
const card = document.createElement('div');
|
||||
card.classList.add('card');
|
||||
card.innerHTML = `
|
||||
<img src="${product.image_url}" alt="${product.name}">
|
||||
<h3>${product.name}</h3>
|
||||
<p>Preis: ${product.price}€</p>
|
||||
<p>${product.description}</p>
|
||||
<button class="add-to-cart" data-id="${product.id}">Zum Warenkorb hinzufügen</button>
|
||||
`;
|
||||
container.appendChild(card);
|
||||
});
|
||||
})
|
||||
.catch(err => {
|
||||
console.error('Fehler beim Laden der Produkte:', err);
|
||||
|
||||
const container = document.getElementById('products_oldtimer');
|
||||
container.innerHTML =
|
||||
`<div class="error-message">
|
||||
<h3>Fehler beim Laden der Produkte</h3>
|
||||
<p>Es gab ein Problem beim Abrufen der Produktdaten.<br>Wir arbeiten bereits daran – bitte versuchen Sie es später erneut.</p>
|
||||
</div>`;
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- Fußzeiele -->
|
||||
<div id="footer"></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
64
public/shop/shop_sportwagen.html
Normal file
64
public/shop/shop_sportwagen.html
Normal file
@ -0,0 +1,64 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Shop - Sportwagen</title>
|
||||
<link rel="stylesheet" href="/Styles/styles-main.css">
|
||||
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
||||
<script src="/header_footer"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<!-- Header -->
|
||||
<div id="header-placeholder"></div>
|
||||
|
||||
<!-- Hauptinhalt -->
|
||||
<section style="padding: 0px 30px; text-align: left;">
|
||||
<h1>Unsere Sportwagen Produkte</h1>
|
||||
</section>
|
||||
|
||||
<section class="card-grid" id="products_sportwagen">
|
||||
<!-- Dynamische Produkte oder Fehlermeldung -->
|
||||
</section>
|
||||
|
||||
<!-- Footer -->
|
||||
<div id="footer"></div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
fetch('/api/products/sportwagen')
|
||||
.then(res => res.json())
|
||||
.then(products => {
|
||||
const container = document.getElementById('products_sportwagen');
|
||||
container.innerHTML = '';
|
||||
|
||||
products.forEach(product => {
|
||||
const card = document.createElement('div');
|
||||
card.classList.add('card');
|
||||
card.innerHTML = `
|
||||
<img src="${product.image_url}" alt="${product.name}">
|
||||
<h3>${product.name}</h3>
|
||||
<p>Preis: ${product.price}€</p>
|
||||
<p>${product.description}</p>
|
||||
<button class="add-to-cart" data-id="${product.id}">Zum Warenkorb hinzufügen</button>
|
||||
`;
|
||||
container.appendChild(card);
|
||||
});
|
||||
})
|
||||
.catch(err => {
|
||||
console.error('Fehler beim Laden der Produkte:', err);
|
||||
|
||||
const container = document.getElementById('products_sportwagen');
|
||||
container.innerHTML = `
|
||||
<div class="error-message">
|
||||
<h3>Fehler beim Laden der Produkte</h3>
|
||||
<p>Es gab ein Problem beim Abrufen der Produktdaten.<br>
|
||||
Wir arbeiten bereits daran – bitte versuchen Sie es später erneut.</p>
|
||||
</div>
|
||||
`;
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@ -3,11 +3,99 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Autohändler Webshop</title>
|
||||
<link rel="stylesheet" href="./Styles/startseite/startseite.css">
|
||||
<title>Modellauto - Startseite</title>
|
||||
<link rel="stylesheet" href="./Styles/styles-main.css">
|
||||
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
||||
<script src="/header_footer"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<!-- Header -->
|
||||
<div id="header-placeholder"></div>
|
||||
|
||||
<main>
|
||||
<!-- Infobereich -->
|
||||
<section style="padding: 40px 20px; text-align: center; background: #fff;">
|
||||
<h2>Willkommen beim Modellauto-Shop</h2>
|
||||
<p>Bei uns finden Sie hochwertige Modellautos – ob Oldtimer, Sportwagen, Lkw's oder Motorräder.
|
||||
Perfekt für Sammler, Bastler und Fans.
|
||||
</p>
|
||||
</section>
|
||||
|
||||
<!-- Hauptinhalt -->
|
||||
<h1>Unsere Neusten Produkte: </h1>
|
||||
<section class="card-grid" id="latest-products">
|
||||
<!-- Dynamische Produkte (5 aktuelle Produkte) -->
|
||||
</section>
|
||||
|
||||
<!-- JavaScript zum Abrufen und Anzeigen der neuesten Produkte -->
|
||||
<script>
|
||||
// API-Aufruf
|
||||
fetch('/api/products/new')
|
||||
// Antwort als JSON parsen
|
||||
.then(res => res.json())
|
||||
.then(products => {
|
||||
const container = document.getElementById('latest-products');
|
||||
container.innerHTML = ''; // sicherheitshalber leeren
|
||||
|
||||
// Für jedes Produkt eine Karte erzeugen
|
||||
products.forEach(product => {
|
||||
const card = document.createElement('div');
|
||||
card.classList.add('card');
|
||||
// HTML-Inhalt der Karte mit Produktdaten füllen
|
||||
card.innerHTML = `
|
||||
<img src="${product.image_url}" alt="${product.name}">
|
||||
<h3>${product.name}</h3>
|
||||
<p>Preis: ${product.price}€</p>
|
||||
<p>${product.description}</p>
|
||||
<button class="add-to-cart" data-id="${product.id}">Zum Warenkorb hinzufügen</button>
|
||||
`;
|
||||
// Karte in Container einfügen
|
||||
container.appendChild(card);
|
||||
});
|
||||
})
|
||||
.catch(err => {
|
||||
console.error('Fehler beim Laden der neuesten Produkte:', err);
|
||||
|
||||
const container = document.getElementById('latest-products');
|
||||
container.innerHTML =
|
||||
`<div class="error-message">
|
||||
<h3>Fehler beim Laden der Produkte</h3>
|
||||
<p>Es gab ein Problem beim Abrufen der Produktdaten.<br>Wir arbeiten bereits daran – bitte versuchen Sie es später erneut.</p>
|
||||
</div>`;
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<!-- Info-Sektion -->
|
||||
<section class="info-cards-section">
|
||||
<div class="info-card">
|
||||
<i class='bx bx-package'></i>
|
||||
<h3>Versandkostenfrei ab 50€</h3>
|
||||
<p>Schneller & sicherer Versand mit Sendungsverfolgung.</p>
|
||||
</div>
|
||||
<div class="info-card">
|
||||
<i class='bx bx-credit-card'></i>
|
||||
<h3>Flexible Zahlungsmethoden</h3>
|
||||
<p>PayPal, Kreditkarte, Klarna, Vorkasse – Sie haben die Wahl.</p>
|
||||
</div>
|
||||
<div class="info-card">
|
||||
<i class='bx bx-undo'></i>
|
||||
<h3>14 Tage Rückgaberecht</h3>
|
||||
<p>Unzufrieden? Kein Problem – Rückgabe einfach & unkompliziert.</p>
|
||||
</div>
|
||||
<div class="info-card">
|
||||
<i class='bx bx-star'></i>
|
||||
<h3>Top-Bewertungen</h3>
|
||||
<p>Unsere Kunden lieben uns – überzeugen Sie sich selbst!</p>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<!-- Fußzeiele -->
|
||||
<div id="footer"></div>
|
||||
|
||||
</div>
|
||||
<!-- Wrapper für die gesamte Seite -->
|
||||
<div class="wrapper">
|
||||
<!-- Header -->
|
||||
|
||||
41
scripts/einfügenHeaderFooter.js
Normal file
41
scripts/einfügenHeaderFooter.js
Normal file
@ -0,0 +1,41 @@
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
// Header laden
|
||||
const headerTarget = document.getElementById("header-placeholder");
|
||||
if (headerTarget) {
|
||||
fetch("/header")
|
||||
.then(response => {
|
||||
if (!response.ok) throw new Error("Header nicht gefunden");
|
||||
return response.text();
|
||||
})
|
||||
.then(data => {
|
||||
headerTarget.innerHTML = data;
|
||||
})
|
||||
.catch(error => {
|
||||
headerTarget.innerHTML = `
|
||||
<div style="background: #ffdede; color: #a00; padding: 10px; text-align: center;">
|
||||
Fehler beim Laden des Headers.
|
||||
</div>`;
|
||||
console.error(error);
|
||||
});
|
||||
}
|
||||
|
||||
// Footer laden
|
||||
const footerTarget = document.getElementById("footer");
|
||||
if (footerTarget) {
|
||||
fetch("/footer")
|
||||
.then(response => {
|
||||
if (!response.ok) throw new Error("Footer nicht gefunden");
|
||||
return response.text();
|
||||
})
|
||||
.then(data => {
|
||||
footerTarget.innerHTML = data;
|
||||
})
|
||||
.catch(error => {
|
||||
footerTarget.innerHTML = `
|
||||
<div style="background: #ffdede; color: #a00; padding: 10px; text-align: center;">
|
||||
Fehler beim Laden der Fußzeile.
|
||||
</div>`;
|
||||
console.error(error);
|
||||
});
|
||||
}
|
||||
});
|
||||
@ -1,6 +1,7 @@
|
||||
const path = require('path');
|
||||
const router = require('express').Router();
|
||||
|
||||
// Route - Startseite
|
||||
router.get('/', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, '../../../public/startseite/startseite.html'));
|
||||
})
|
||||
@ -9,14 +10,59 @@ router.get('/example', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, '../../../public/example/index.html'));
|
||||
})
|
||||
|
||||
// Route - Login
|
||||
router.get('/login', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, '../../../public/login/login.html'));
|
||||
})
|
||||
|
||||
// Route - Registrieren
|
||||
router.get('/registrieren', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, '../../../public/registrieren/registrieren.html'));
|
||||
})
|
||||
|
||||
// Route - HeaderFooter
|
||||
router.get('/header_footer', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, '../../../scripts/einfügenHeaderFooter.js'));
|
||||
})
|
||||
|
||||
// Route - Kopfzeile
|
||||
router.get('/header', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, '../../../public/header_footer/header.html'));
|
||||
})
|
||||
|
||||
// Route - Fußzeile
|
||||
router.get('/footer', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, '../../../public/header_footer/footer.html'));
|
||||
})
|
||||
|
||||
// Route - Shop (Alle Produkte)
|
||||
router.get('/shop', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, '../../../public/shop/shop.html'));
|
||||
})
|
||||
|
||||
// Route - Shop_Motorrad (Filtern nach Motorrad Produkten)
|
||||
router.get('/shop/motorrad', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, '../../../public/shop/shop_motorrad.html'));
|
||||
})
|
||||
|
||||
// Route - Shop_Oldtimer (Filtern nach Oldtimer Produkten)
|
||||
router.get('/shop/oldtimer', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, '../../../public/shop/shop_oldtimer.html'));
|
||||
})
|
||||
|
||||
// Route - Shop_Sportwagen (Filtern nach Sportwagen Produkten)
|
||||
router.get('/shop/sportwagen', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, '../../../public/shop/shop_sportwagen.html'));
|
||||
})
|
||||
|
||||
// Route - Shop_LKW (Filtern nach LKW Produkten)
|
||||
router.get('/shop/lkw', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, '../../../public/shop/shop_lkw.html'));
|
||||
})
|
||||
|
||||
router.get('/bestellformular', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, '../../../public/bestellformular/bestellformular.html'));
|
||||
})
|
||||
router.get('/Warenkorb', (req, res) => {
|
||||
res.sendFile(path.join(__dirname, '../../../public/warenkorb/warenkorb.html'));
|
||||
})
|
||||
|
||||
115
server.js
115
server.js
@ -6,6 +6,24 @@ const path = require('path');
|
||||
require('dotenv').config({path:'process.env'});
|
||||
|
||||
const app = express();
|
||||
const mysql = require('mysql');
|
||||
|
||||
// Datenbankverbindung
|
||||
const db = mysql.createConnection({
|
||||
host: 'localhost',
|
||||
user: 'root',
|
||||
password: '',
|
||||
database: 'webshop'
|
||||
});
|
||||
|
||||
// Verbindung zur MySQL-Datenbank herstellen
|
||||
db.connect(err => {
|
||||
if (err) {
|
||||
console.error('Fehler beim Verbinden zur Datenbank:', err);
|
||||
return;
|
||||
}
|
||||
console.log('Mit der Datenbank verbunden');
|
||||
});
|
||||
|
||||
app.use(session({
|
||||
secret: 'secret',
|
||||
@ -18,10 +36,105 @@ app.use(express.urlencoded({ extended: true }));
|
||||
app.use(express.static(path.join(__dirname, '/scripts')));
|
||||
app.use(express.static(path.join(__dirname, '/static')));
|
||||
|
||||
const getIndexRoute = require('./scripts/routes/other/route-index');
|
||||
// API-Route für Produkte
|
||||
app.get('/api/products', (req, res) => {
|
||||
// SQL-Abfrage für Produktdaten
|
||||
const sql = 'SELECT * FROM webshop.product';
|
||||
|
||||
// Abfrage ausführen
|
||||
db.query(sql, (err, results) => {
|
||||
if (err) {
|
||||
console.error('Fehler beim Abrufen der Produkte:', err);
|
||||
res.status(500).send('Fehler beim Abrufen der Produkte');
|
||||
return;
|
||||
}
|
||||
res.json(results); // Rückgabe der Produktdaten als JSON
|
||||
});
|
||||
});
|
||||
|
||||
app.get('/api/products/new', async (req, res) => {
|
||||
// SQL-Abfrage für Produktdaten
|
||||
const sql = 'SELECT * FROM webshop.product ORDER BY created_at DESC LIMIT 4';
|
||||
|
||||
// Abfrage ausführen
|
||||
db.query(sql, (err, results) => {
|
||||
if (err) {
|
||||
console.error('Fehler beim Abrufen der Produkte:', err);
|
||||
res.status(500).send('Fehler beim Abrufen der Produkte');
|
||||
return;
|
||||
}
|
||||
res.json(results); // Rückgabe der Produktdaten als JSON
|
||||
});
|
||||
});
|
||||
|
||||
app.get('/api/products/motorrad', async (req, res) => {
|
||||
// SQL-Abfrage für Produktdaten
|
||||
const sql = 'SELECT * FROM webshop.product WHERE category_id = 4';
|
||||
|
||||
// Abfrage ausführen
|
||||
db.query(sql, (err, results) => {
|
||||
if (err) {
|
||||
console.error('Fehler beim Abrufen der Produkte:', err);
|
||||
res.status(500).send('Fehler beim Abrufen der Produkte');
|
||||
return;
|
||||
}
|
||||
res.json(results); // Rückgabe der Produktdaten als JSON
|
||||
});
|
||||
});
|
||||
|
||||
app.get('/api/products/oldtimer', async (req, res) => {
|
||||
// SQL-Abfrage für Produktdaten
|
||||
const sql = 'SELECT * FROM webshop.product WHERE category_id = 2';
|
||||
|
||||
// Abfrage ausführen
|
||||
db.query(sql, (err, results) => {
|
||||
if (err) {
|
||||
console.error('Fehler beim Abrufen der Produkte:', err);
|
||||
res.status(500).send('Fehler beim Abrufen der Produkte');
|
||||
return;
|
||||
}
|
||||
res.json(results); // Rückgabe der Produktdaten als JSON
|
||||
});
|
||||
});
|
||||
|
||||
app.get('/api/products/lkw', async (req, res) => {
|
||||
// SQL-Abfrage für Produktdaten
|
||||
const sql = 'SELECT * FROM webshop.product WHERE category_id = 3';
|
||||
|
||||
// Abfrage ausführen
|
||||
db.query(sql, (err, results) => {
|
||||
if (err) {
|
||||
console.error('Fehler beim Abrufen der Produkte:', err);
|
||||
res.status(500).send('Fehler beim Abrufen der Produkte');
|
||||
return;
|
||||
}
|
||||
res.json(results); // Rückgabe der Produktdaten als JSON
|
||||
});
|
||||
});
|
||||
|
||||
app.get('/api/products/sportwagen', async (req, res) => {
|
||||
// SQL-Abfrage für Produktdaten
|
||||
const sql = 'SELECT * FROM webshop.product WHERE category_id = 1';
|
||||
|
||||
// Abfrage ausführen
|
||||
db.query(sql, (err, results) => {
|
||||
if (err) {
|
||||
console.error('Fehler beim Abrufen der Produkte:', err);
|
||||
res.status(500).send('Fehler beim Abrufen der Produkte');
|
||||
return;
|
||||
}
|
||||
res.json(results); // Rückgabe der Produktdaten als JSON
|
||||
});
|
||||
});
|
||||
|
||||
const getIndexRoute = require('./scripts/routes/other/route-index');
|
||||
app.use('/', getIndexRoute);
|
||||
|
||||
app.use((req, res) => {
|
||||
res.status(404).sendFile(path.join(__dirname, 'public', '404.html'));
|
||||
});
|
||||
|
||||
// Sever starten
|
||||
app.listen(process.env.APP_PORT, () => {
|
||||
console.log("\x1b[32m");
|
||||
console.log(`Server is running on http://localhost:${process.env.APP_PORT}`);
|
||||
|
||||
62
static/Styles/bestellformular/bestellformular.css
Normal file
62
static/Styles/bestellformular/bestellformular.css
Normal 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 */
|
||||
}
|
||||
|
||||
|
||||
@ -1,234 +0,0 @@
|
||||
/* Allgemeine Einstellungen */
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
font-family: "Poppins", sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
background: #f8f9fa;
|
||||
color: #333;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* Header */
|
||||
header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 15px 20px;
|
||||
width: 100%;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
font-size: 28px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.header-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
header .login-btn {
|
||||
font-size: 14px;
|
||||
text-decoration: none;
|
||||
color: white;
|
||||
background: #ff6600;
|
||||
padding: 10px 20px;
|
||||
border-radius: 25px;
|
||||
transition: background 0.3s ease;
|
||||
}
|
||||
|
||||
header .login-btn:hover {
|
||||
background: #e95b00;
|
||||
}
|
||||
|
||||
.cart {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
font-size: 24px;
|
||||
color: #ff6600;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.cart-count {
|
||||
position: absolute;
|
||||
top: -5px;
|
||||
right: -10px;
|
||||
background: #ff6600;
|
||||
color: white;
|
||||
font-size: 12px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* Navigation */
|
||||
.menu {
|
||||
background: #ffffff;
|
||||
width: 100%;
|
||||
margin-bottom: 20px;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.menu-list {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
padding: 15px 0;
|
||||
}
|
||||
|
||||
.menu-item {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.menu-item a {
|
||||
text-decoration: none;
|
||||
color: #333;
|
||||
font-size: 18px;
|
||||
padding: 10px 20px;
|
||||
transition: background 0.3s ease, color 0.3s ease;
|
||||
}
|
||||
|
||||
.menu-item a:hover {
|
||||
background: #ff6600;
|
||||
color: white;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
/* Submenu */
|
||||
.submenu {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
background: #ffffff;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
display: none;
|
||||
list-style: none;
|
||||
min-width: 200px;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.submenu li {
|
||||
padding: 10px 20px;
|
||||
}
|
||||
|
||||
.submenu li a {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.submenu li a:hover {
|
||||
color: white;
|
||||
background: #ff6600;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.menu-item:hover .submenu {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Suchleiste */
|
||||
.search-bar {
|
||||
display: flex;
|
||||
gap: 15px;
|
||||
width: 100%;
|
||||
padding: 20px;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
position: sticky;
|
||||
top: 65px;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.search-bar input,
|
||||
.search-bar select {
|
||||
padding: 12px;
|
||||
font-size: 16px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 5px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.search-bar button {
|
||||
padding: 12px 20px;
|
||||
background: #ff6600;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
transition: background 0.3s ease;
|
||||
}
|
||||
|
||||
.search-bar button:hover {
|
||||
background: #e95b00;
|
||||
}
|
||||
|
||||
/* Karten */
|
||||
.card-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||
gap: 20px;
|
||||
width: 100%;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.card {
|
||||
background: #ffffff;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.card img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
border-radius: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.card h3 {
|
||||
font-size: 20px;
|
||||
color: #333;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.card p {
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
margin: 5px 0;
|
||||
}
|
||||
|
||||
.add-to-cart {
|
||||
background: #ff6600;
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 12px 20px;
|
||||
border-radius: 25px;
|
||||
margin-top: 10px;
|
||||
cursor: pointer;
|
||||
transition: background 0.3s ease;
|
||||
}
|
||||
|
||||
.add-to-cart:hover {
|
||||
background: #e95b00;
|
||||
}
|
||||
@ -1,109 +1,68 @@
|
||||
/* Allgemeine Einstellungen */
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
font-family: "Poppins", sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
background: #f8f9fa;
|
||||
color: #333;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* Wrapper */
|
||||
.wrapper {
|
||||
background: #ffffff;
|
||||
padding: 40px;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
max-width: 400px;
|
||||
.login-container {
|
||||
background-color: #fff;
|
||||
padding: 40px 30px;
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 24px;
|
||||
max-width: 400px;
|
||||
text-align: center;
|
||||
color: #333;
|
||||
margin-bottom: 20px;
|
||||
margin: 50px auto; /* Zentriert das Formular */
|
||||
}
|
||||
|
||||
/* Input-Box */
|
||||
.input-box {
|
||||
.login-title {
|
||||
font-size: 26px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 25px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.login-form .input-group {
|
||||
position: relative;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.input-box input {
|
||||
.login-form input {
|
||||
width: 100%;
|
||||
padding: 12px 40px 12px 15px;
|
||||
padding: 12px 15px 12px 15px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 5px;
|
||||
border-radius: 8px;
|
||||
font-size: 16px;
|
||||
color: #333;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
/* Styling für das Schloss-Icon */
|
||||
.input-box i {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 15px;
|
||||
transform: translateY(-50%);
|
||||
color: #888;
|
||||
font-size: 20px;
|
||||
cursor: pointer;
|
||||
.login-form .icon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Remember and Forgot */
|
||||
.remember-forgot {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 20px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.remember-forgot a {
|
||||
color: #ff6600;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.remember-forgot a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Button */
|
||||
.btn {
|
||||
.login-btn {
|
||||
width: 100%;
|
||||
padding: 12px 20px;
|
||||
padding: 12px;
|
||||
background: #ff6600;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
border-radius: 25px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: background 0.3s ease;
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
.login-btn:hover {
|
||||
background: #e95b00;
|
||||
}
|
||||
|
||||
/* Register-Link */
|
||||
.register-link {
|
||||
text-align: center;
|
||||
.register-text {
|
||||
margin-top: 20px;
|
||||
font-size: 14px;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.register-link a {
|
||||
.register-text a {
|
||||
color: #ff6600;
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.register-link a:hover {
|
||||
.register-text a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,129 +1,83 @@
|
||||
/* Allgemeine Einstellungen */
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
font-family: "Poppins", sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
background: #f8f9fa;
|
||||
color: #333;
|
||||
min-height: 100vh;
|
||||
.page-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* Wrapper für das Formular */
|
||||
.wrapper {
|
||||
width: 100%;
|
||||
max-width: 400px;
|
||||
margin: 50px auto;
|
||||
padding: 20px;
|
||||
background: #fff;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
width: 100%;
|
||||
padding: 30px;
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
h1 {
|
||||
.content-wrapper {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 40px 20px;
|
||||
}
|
||||
.registration-container {
|
||||
max-width: 400px;
|
||||
margin: 60px auto;
|
||||
padding: 30px;
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.registration-container h2 {
|
||||
text-align: center;
|
||||
margin-bottom: 20px;
|
||||
color: #333;
|
||||
font-size: 1.8em;
|
||||
}
|
||||
|
||||
/* Eingabefelder */
|
||||
.input-box {
|
||||
position: relative;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
/* Textfelder */
|
||||
.input-box input {
|
||||
.registration-container input[type="text"],
|
||||
.registration-container input[type="email"],
|
||||
.registration-container input[type="password"] {
|
||||
width: 100%;
|
||||
padding: 12px 15px;
|
||||
font-size: 16px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 5px;
|
||||
outline: none;
|
||||
padding-left: 40px; /* Platz für das Icon */
|
||||
padding: 10px 12px;
|
||||
margin-bottom: 15px;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 8px;
|
||||
font-size: 1em;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Positionierung der Icons */
|
||||
.input-box i {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 10px;
|
||||
transform: translateY(-50%);
|
||||
font-size: 18px;
|
||||
color: #888;
|
||||
}
|
||||
|
||||
/* Passwortfeld */
|
||||
.input-box input[type="password"] {
|
||||
padding-right: 40px; /* Platz für das Passwort-Symbol rechts */
|
||||
}
|
||||
|
||||
/* Positionierung des Passwort-Symbols */
|
||||
#toggleRegPassword {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 10px;
|
||||
transform: translateY(-50%);
|
||||
font-size: 18px;
|
||||
color: #888;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Passwort Sicherheitsbalken */
|
||||
.password-strength-bar {
|
||||
.registration-container button[type="submit"] {
|
||||
width: 100%;
|
||||
height: 5px;
|
||||
background-color: #ddd;
|
||||
border-radius: 5px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
/* Sicherheitsstufen */
|
||||
.password-strength-bar.weak {
|
||||
background-color: #f44336; /* Rot für schwach */
|
||||
}
|
||||
|
||||
.password-strength-bar.medium {
|
||||
background-color: #ff9800; /* Orange für mittel */
|
||||
}
|
||||
|
||||
.password-strength-bar.strong {
|
||||
background-color: #4caf50; /* Grün für stark */
|
||||
}
|
||||
|
||||
/* Button */
|
||||
.btn {
|
||||
width: 100%;
|
||||
padding: 12px;
|
||||
background: #ff6600;
|
||||
padding: 10px;
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 25px;
|
||||
font-size: 16px;
|
||||
border-radius: 8px;
|
||||
font-size: 1em;
|
||||
cursor: pointer;
|
||||
transition: background 0.3s ease;
|
||||
transition: background-color 0.3s ease;
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
background: #e95b00;
|
||||
.registration-container button[type="submit"]:hover {
|
||||
background-color: #0056b3;
|
||||
}
|
||||
|
||||
/* Registrierung-Link */
|
||||
.register-link {
|
||||
text-align: center;
|
||||
margin-top: 20px;
|
||||
font-size: 14px;
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.register-link a {
|
||||
text-decoration: none;
|
||||
color: #ff6600;
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.register-link a:hover {
|
||||
color: #e95b00;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
|
||||
@ -1,234 +0,0 @@
|
||||
/* Allgemeine Einstellungen */
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
font-family: "Poppins", sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
background: #f8f9fa;
|
||||
color: #333;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* Header */
|
||||
header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 15px 20px;
|
||||
width: 100%;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
font-size: 28px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.header-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
header .login-btn {
|
||||
font-size: 14px;
|
||||
text-decoration: none;
|
||||
color: white;
|
||||
background: #ff6600;
|
||||
padding: 10px 20px;
|
||||
border-radius: 25px;
|
||||
transition: background 0.3s ease;
|
||||
}
|
||||
|
||||
header .login-btn:hover {
|
||||
background: #e95b00;
|
||||
}
|
||||
|
||||
.cart {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
font-size: 24px;
|
||||
color: #ff6600;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.cart-count {
|
||||
position: absolute;
|
||||
top: -5px;
|
||||
right: -10px;
|
||||
background: #ff6600;
|
||||
color: white;
|
||||
font-size: 12px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* Navigation */
|
||||
.menu {
|
||||
background: #ffffff;
|
||||
width: 100%;
|
||||
margin-bottom: 20px;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.menu-list {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
padding: 15px 0;
|
||||
}
|
||||
|
||||
.menu-item {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.menu-item a {
|
||||
text-decoration: none;
|
||||
color: #333;
|
||||
font-size: 18px;
|
||||
padding: 10px 20px;
|
||||
transition: background 0.3s ease, color 0.3s ease;
|
||||
}
|
||||
|
||||
.menu-item a:hover {
|
||||
background: #ff6600;
|
||||
color: white;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
/* Submenu */
|
||||
.submenu {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
background: #ffffff;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
display: none;
|
||||
list-style: none;
|
||||
min-width: 200px;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.submenu li {
|
||||
padding: 10px 20px;
|
||||
}
|
||||
|
||||
.submenu li a {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.submenu li a:hover {
|
||||
color: white;
|
||||
background: #ff6600;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.menu-item:hover .submenu {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Suchleiste */
|
||||
.search-bar {
|
||||
display: flex;
|
||||
gap: 15px;
|
||||
width: 100%;
|
||||
padding: 20px;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
position: sticky;
|
||||
top: 65px;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.search-bar input,
|
||||
.search-bar select {
|
||||
padding: 12px;
|
||||
font-size: 16px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 5px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.search-bar button {
|
||||
padding: 12px 20px;
|
||||
background: #ff6600;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
transition: background 0.3s ease;
|
||||
}
|
||||
|
||||
.search-bar button:hover {
|
||||
background: #e95b00;
|
||||
}
|
||||
|
||||
/* Karten */
|
||||
.card-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||
gap: 20px;
|
||||
width: 100%;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.card {
|
||||
background: #ffffff;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.card img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
border-radius: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.card h3 {
|
||||
font-size: 20px;
|
||||
color: #333;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.card p {
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
margin: 5px 0;
|
||||
}
|
||||
|
||||
.add-to-cart {
|
||||
background: #ff6600;
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 12px 20px;
|
||||
border-radius: 25px;
|
||||
margin-top: 10px;
|
||||
cursor: pointer;
|
||||
transition: background 0.3s ease;
|
||||
}
|
||||
|
||||
.add-to-cart:hover {
|
||||
background: #e95b00;
|
||||
}
|
||||
@ -1,26 +1,404 @@
|
||||
|
||||
/*
|
||||
===============
|
||||
Fonts
|
||||
===============
|
||||
*/
|
||||
@import url("https://fonts.googleapis.com/css?family=Open+Sans|Roboto:400,700&display=swap");
|
||||
|
||||
/*
|
||||
===============
|
||||
Variables
|
||||
===============
|
||||
*/
|
||||
:root {
|
||||
--demo-clr: #ff0000;
|
||||
/* ========== Allgemeine Einstellungen ========== */
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
font-family: "Poppins", sans-serif;
|
||||
}
|
||||
|
||||
/*
|
||||
===============
|
||||
Global Styles
|
||||
===============
|
||||
*/
|
||||
html, body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
background: #f8f9fa;
|
||||
color: #333;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* ========== Header ========== */
|
||||
header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0px 20px;
|
||||
width: 100%;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.logo-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.logo-img {
|
||||
height: 70px;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
font-size: 30px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.header-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.login-btn {
|
||||
font-size: 14px;
|
||||
text-decoration: none;
|
||||
color: white;
|
||||
background: #ff6600;
|
||||
padding: 10px 20px;
|
||||
border-radius: 25px;
|
||||
transition: background 0.3s ease;
|
||||
}
|
||||
|
||||
.login-btn:hover {
|
||||
background: #e95b00;
|
||||
}
|
||||
|
||||
/* ========== Warenkorb Icon ========== */
|
||||
.cart {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
font-size: 24px;
|
||||
color: #ff6600;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.cart-count {
|
||||
position: absolute;
|
||||
top: -5px;
|
||||
right: -10px;
|
||||
background: #ff6600;
|
||||
color: white;
|
||||
font-size: 12px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* ========== Navigation ========== */
|
||||
.menu {
|
||||
background: #ffffff;
|
||||
width: 100%;
|
||||
margin-bottom: 20px;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.menu-list {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
padding: 15px 0;
|
||||
}
|
||||
|
||||
.menu-item {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.menu-item a {
|
||||
text-decoration: none;
|
||||
color: #333;
|
||||
font-size: 18px;
|
||||
padding: 10px 20px;
|
||||
transition: background 0.3s ease, color 0.3s ease;
|
||||
}
|
||||
|
||||
.menu-item a:hover {
|
||||
background: #ff6600;
|
||||
color: white;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.submenu {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
background: #ffffff;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
display: none;
|
||||
list-style: none;
|
||||
min-width: 200px;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.submenu li {
|
||||
padding: 10px 20px;
|
||||
}
|
||||
|
||||
.submenu li a {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.submenu li a:hover {
|
||||
color: white;
|
||||
background: #ff6600;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.menu-item:hover .submenu {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* ========== Suchleiste ========== */
|
||||
.search-bar {
|
||||
display: flex;
|
||||
gap: 15px;
|
||||
width: 100%;
|
||||
padding: 20px;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
position: sticky;
|
||||
top: 65px;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.search-bar input,
|
||||
.search-bar select {
|
||||
padding: 12px;
|
||||
font-size: 16px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 5px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.search-bar button {
|
||||
padding: 12px 20px;
|
||||
background: #ff6600;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
transition: background 0.3s ease;
|
||||
}
|
||||
|
||||
.search-bar button:hover {
|
||||
background: #e95b00;
|
||||
}
|
||||
|
||||
/* ========== Karten ========== */
|
||||
.card-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||
gap: 20px;
|
||||
width: 100%;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.card {
|
||||
background: #ffffff;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.card img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
border-radius: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.card h3 {
|
||||
font-size: 20px;
|
||||
color: #333;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.card p {
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
margin: 5px 0;
|
||||
}
|
||||
|
||||
.add-to-cart {
|
||||
background: #ff6600;
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 12px 20px;
|
||||
border-radius: 25px;
|
||||
margin-top: 10px;
|
||||
cursor: pointer;
|
||||
transition: background 0.3s ease;
|
||||
}
|
||||
|
||||
.add-to-cart:hover {
|
||||
background: #e95b00;
|
||||
}
|
||||
|
||||
/* ========== Footer ========== */
|
||||
.footer {
|
||||
background: #222;
|
||||
color: #fff;
|
||||
padding: 30px 20px;
|
||||
text-align: center;
|
||||
margin-top: 40px;
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
main {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.footer a {
|
||||
color: #ff6600;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.footer a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* ========== Formulare und Buttons allgemein ========== */
|
||||
.input-box {
|
||||
position: relative;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.input-box input {
|
||||
width: 100%;
|
||||
padding: 12px 40px 12px 15px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 5px;
|
||||
font-size: 16px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.input-box i {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 15px;
|
||||
transform: translateY(-50%);
|
||||
color: #888;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
width: 100%;
|
||||
padding: 12px 20px;
|
||||
background: #ff6600;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
transition: background 0.3s ease;
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
background: #e95b00;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: var(--demo-clr);
|
||||
}
|
||||
font-size: 24px;
|
||||
color: #333;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.info-cards-section {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: 30px;
|
||||
padding: 50px 20px;
|
||||
background: #f8f9fa;
|
||||
}
|
||||
|
||||
.info-card {
|
||||
background: #ffffff;
|
||||
border-radius: 15px;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
||||
padding: 30px 25px;
|
||||
width: 320px;
|
||||
min-height: 50px;
|
||||
text-align: center;
|
||||
transition: transform 0.3s ease;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.info-card:hover {
|
||||
transform: translateY(-5px);
|
||||
}
|
||||
|
||||
.info-card i {
|
||||
font-size: 50px;
|
||||
color: #ff6600;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.info-card h3 {
|
||||
font-size: 22px;
|
||||
color: #333;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.info-card p {
|
||||
font-size: 16px;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
/* ========== Error Nachricht (Header und Footer) ========== */
|
||||
.error-message {
|
||||
max-width: 600px;
|
||||
margin: 40px auto;
|
||||
padding: 30px;
|
||||
background-color: #fff5f5;
|
||||
color: #b00020;
|
||||
border: 1px solid #ffcccc;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
||||
text-align: center;
|
||||
font-family: inherit;
|
||||
animation: fadeIn 0.6s ease-in-out;
|
||||
}
|
||||
|
||||
.error-message h3 {
|
||||
margin-bottom: 10px;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.error-message p {
|
||||
font-size: 1rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
/* Optional: weiche Animation beim Einblenden */
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; transform: translateY(20px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 534 KiB |
BIN
static/images/Logo.png
Normal file
BIN
static/images/Logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 MiB |
Loading…
x
Reference in New Issue
Block a user