Merge pull request 'StartseiteHtml' (#20) from StartseiteHtml into develop
Reviewed-on: https://gitea.vexhosting.dynv6.net/Berufsschule/Webshop/pulls/20
This commit is contained in:
commit
c6751101c5
2
.idea/dataSources.xml
generated
2
.idea/dataSources.xml
generated
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<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="56bf5b3c-7ea3-4d6d-b409-8711f3e52989">
|
<data-source source="LOCAL" name="@localhost" uuid="fd7d9aa1-1427-4fa7-afe9-9730b93129bb">
|
||||||
<driver-ref>mysql.8</driver-ref>
|
<driver-ref>mysql.8</driver-ref>
|
||||||
<synchronize>true</synchronize>
|
<synchronize>true</synchronize>
|
||||||
<jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
|
<jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
|
||||||
|
|||||||
30
package-lock.json
generated
30
package-lock.json
generated
@ -9,8 +9,8 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dotenv": "^16.4.5",
|
"dotenv": "^16.4.7",
|
||||||
"express": "^4.21.1",
|
"express": "^4.21.2",
|
||||||
"express-session": "^1.18.1",
|
"express-session": "^1.18.1",
|
||||||
"mysql": "^2.18.1",
|
"mysql": "^2.18.1",
|
||||||
"path": "^0.12.7"
|
"path": "^0.12.7"
|
||||||
@ -169,9 +169,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/dotenv": {
|
"node_modules/dotenv": {
|
||||||
"version": "16.4.5",
|
"version": "16.4.7",
|
||||||
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz",
|
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz",
|
||||||
"integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==",
|
"integrity": "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==",
|
||||||
"license": "BSD-2-Clause",
|
"license": "BSD-2-Clause",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12"
|
"node": ">=12"
|
||||||
@ -226,9 +226,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/express": {
|
"node_modules/express": {
|
||||||
"version": "4.21.1",
|
"version": "4.21.2",
|
||||||
"resolved": "https://registry.npmjs.org/express/-/express-4.21.1.tgz",
|
"resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz",
|
||||||
"integrity": "sha512-YSFlK1Ee0/GC8QaO91tHcDxJiE/X4FbpAyQWkxAvG6AXCuR65YzK8ua6D9hvi/TzUfZMpc+BwuM1IPw8fmQBiQ==",
|
"integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==",
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"accepts": "~1.3.8",
|
"accepts": "~1.3.8",
|
||||||
"array-flatten": "1.1.1",
|
"array-flatten": "1.1.1",
|
||||||
@ -249,7 +250,7 @@
|
|||||||
"methods": "~1.1.2",
|
"methods": "~1.1.2",
|
||||||
"on-finished": "2.4.1",
|
"on-finished": "2.4.1",
|
||||||
"parseurl": "~1.3.3",
|
"parseurl": "~1.3.3",
|
||||||
"path-to-regexp": "0.1.10",
|
"path-to-regexp": "0.1.12",
|
||||||
"proxy-addr": "~2.0.7",
|
"proxy-addr": "~2.0.7",
|
||||||
"qs": "6.13.0",
|
"qs": "6.13.0",
|
||||||
"range-parser": "~1.2.1",
|
"range-parser": "~1.2.1",
|
||||||
@ -264,6 +265,10 @@
|
|||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.10.0"
|
"node": ">= 0.10.0"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"type": "opencollective",
|
||||||
|
"url": "https://opencollective.com/express"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/express-session": {
|
"node_modules/express-session": {
|
||||||
@ -589,9 +594,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/path-to-regexp": {
|
"node_modules/path-to-regexp": {
|
||||||
"version": "0.1.10",
|
"version": "0.1.12",
|
||||||
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.10.tgz",
|
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz",
|
||||||
"integrity": "sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w=="
|
"integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==",
|
||||||
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/process": {
|
"node_modules/process": {
|
||||||
"version": "0.11.10",
|
"version": "0.11.10",
|
||||||
|
|||||||
@ -11,8 +11,8 @@
|
|||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"description": "Webshop Autohändler",
|
"description": "Webshop Autohändler",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dotenv": "^16.4.5",
|
"dotenv": "^16.4.7",
|
||||||
"express": "^4.21.1",
|
"express": "^4.21.2",
|
||||||
"express-session": "^1.18.1",
|
"express-session": "^1.18.1",
|
||||||
"mysql": "^2.18.1",
|
"mysql": "^2.18.1",
|
||||||
"path": "^0.12.7"
|
"path": "^0.12.7"
|
||||||
|
|||||||
@ -1,41 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<title>Homepage</title>
|
|
||||||
<link rel="stylesheet" href="./Styles/example.css">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="mySidebar" class="sidebar">
|
|
||||||
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
|
|
||||||
<a href="#">About</a>
|
|
||||||
<a href="#">Services</a>
|
|
||||||
<a href="#">Clients</a>
|
|
||||||
<a href="#">Contact</a>
|
|
||||||
</div>
|
|
||||||
<div id="main">
|
|
||||||
<div class="content">
|
|
||||||
<div class="grid-container">
|
|
||||||
<div class="header">
|
|
||||||
<p>header</p>
|
|
||||||
</div>
|
|
||||||
<div class="left">
|
|
||||||
<button class="openbtn" onclick="toggleNav()">☰</button>
|
|
||||||
</div>
|
|
||||||
<div class="main">
|
|
||||||
<p>main</p>
|
|
||||||
</div>
|
|
||||||
<div class="right">
|
|
||||||
<p>right</p>
|
|
||||||
</div>
|
|
||||||
<div class="footer">
|
|
||||||
<p>footer</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- scripts -->
|
|
||||||
<script src="example.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@ -1,14 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, X-Content-Type-Options=nosniff">
|
|
||||||
<title>Document</title>
|
|
||||||
<link rel="stylesheet" href="./Styles/styles-main.css">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>Hello there...</h1>
|
|
||||||
<a href="/example">Test</a>
|
|
||||||
<a href="/login">Login</a>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@ -1,49 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en" xmlns="http://www.w3.org/1999/html">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<link rel="stylesheet" href="./Styles/login/style.css">
|
|
||||||
<link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'>
|
|
||||||
<title>Login</title>
|
|
||||||
<style>
|
|
||||||
input::-ms-reveal,
|
|
||||||
input::-ms-clear {
|
|
||||||
display: none;
|
|
||||||
}</style>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<div class="wrapper">
|
|
||||||
<form action="">
|
|
||||||
<h1>Login</h1>
|
|
||||||
<div class="input-box">
|
|
||||||
<label>
|
|
||||||
<input type="text" placeholder="Username" required>
|
|
||||||
</label>
|
|
||||||
<i class='bx bxs-user'></i>
|
|
||||||
</div>
|
|
||||||
<div class="input-box">
|
|
||||||
<input type="password" placeholder="Passwort" required>
|
|
||||||
<i class='bx bxs-lock-alt'></i>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="remember-forgot">
|
|
||||||
<label><input type="checkbox"> Passwort merken </label>
|
|
||||||
<a href="#">Passwort vergessen?</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<button type="submit" class="btn">Login</button>
|
|
||||||
|
|
||||||
<div class="register-link">
|
|
||||||
<p>Noch keinen Account? <a href="#">Registrieren</a></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- scripts -->
|
|
||||||
<script src="login.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
33
public/login/login.html
Normal file
33
public/login/login.html
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="de">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<link rel="stylesheet" href="./Styles/login/login.css">
|
||||||
|
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
||||||
|
<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>
|
||||||
|
|
||||||
|
<button type="submit" class="btn">Login</button>
|
||||||
|
|
||||||
|
<div class="register-link">
|
||||||
|
<br>
|
||||||
|
<p>Noch keinen Account? <a href="/registrieren">Registrieren</a></p>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<script src="./script.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
45
public/registrieren/passwordValidation.js
Normal file
45
public/registrieren/passwordValidation.js
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
// 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("");
|
||||||
|
}
|
||||||
|
});
|
||||||
51
public/registrieren/registrieren.html
Normal file
51
public/registrieren/registrieren.html
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="de">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<link rel="stylesheet" href="./Styles/registrieren/registrieren.css">
|
||||||
|
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
||||||
|
<title>Registrieren</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="wrapper">
|
||||||
|
<form action="register.php" method="POST">
|
||||||
|
<h1>Registrieren</h1>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
|
||||||
|
<div class="input-box">
|
||||||
|
<input type="password" id="confirmPassword" name="confirmPassword" placeholder="Passwort bestätigen" required>
|
||||||
|
<i class='bx bxs-lock-alt'></i>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Sicherheitsbalken -->
|
||||||
|
<div id="passwordStrengthBar" class="password-strength-bar"></div>
|
||||||
|
|
||||||
|
|
||||||
|
<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>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
87
public/startseite/startseite.html
Normal file
87
public/startseite/startseite.html
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="de">
|
||||||
|
<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">
|
||||||
|
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<!-- Wrapper für die gesamte Seite -->
|
||||||
|
<div class="wrapper">
|
||||||
|
<!-- Header -->
|
||||||
|
<header>
|
||||||
|
<h1>Autohändler Webshop</h1>
|
||||||
|
<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>
|
||||||
|
|
||||||
|
<!-- Navigationsleiste -->
|
||||||
|
<nav class="menu">
|
||||||
|
<ul class="menu-list">
|
||||||
|
<li class="menu-item">
|
||||||
|
<a href="#">Startseite</a>
|
||||||
|
</li>
|
||||||
|
<li class="menu-item">
|
||||||
|
<a href="#">Neuwagen</a>
|
||||||
|
</li>
|
||||||
|
<li class="menu-item">
|
||||||
|
<a href="#">Gebrauchtwagen</a>
|
||||||
|
</li>
|
||||||
|
<li class="menu-item">
|
||||||
|
<a href="#">Angebote</a>
|
||||||
|
</li>
|
||||||
|
<li class="menu-item">
|
||||||
|
<a href="#">Kontakt</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<!-- Hauptinhalt -->
|
||||||
|
<main>
|
||||||
|
<div class="search-bar">
|
||||||
|
<input type="text" placeholder="Marke oder Modell eingeben">
|
||||||
|
<select>
|
||||||
|
<option>Fahrzeugtyp</option>
|
||||||
|
<option>SUV</option>
|
||||||
|
<option>Limousine</option>
|
||||||
|
<option>Kombi</option>
|
||||||
|
</select>
|
||||||
|
<select>
|
||||||
|
<option>Preisspanne</option>
|
||||||
|
<option>Bis 10.000€</option>
|
||||||
|
<option>Bis 20.000€</option>
|
||||||
|
<option>Bis 50.000€</option>
|
||||||
|
</select>
|
||||||
|
<button>Suchen</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<section class="card-grid">
|
||||||
|
<div class="card">
|
||||||
|
<img src="https://via.placeholder.com/150" alt="Auto">
|
||||||
|
<h3>BMW 3er Limousine</h3>
|
||||||
|
<p>Preis: 35.000€</p>
|
||||||
|
<p>Baujahr: 2020 | Kilometerstand: 20.000 km</p>
|
||||||
|
<button class="add-to-cart">Zum Warenkorb hinzufügen</button>
|
||||||
|
</div>
|
||||||
|
<div class="card">
|
||||||
|
<img src="https://via.placeholder.com/150" alt="Auto">
|
||||||
|
<h3>Audi Q5</h3>
|
||||||
|
<p>Preis: 50.000€</p>
|
||||||
|
<p>Baujahr: 2022 | Kilometerstand: 10.000 km</p>
|
||||||
|
<button class="add-to-cart">Zum Warenkorb hinzufügen</button>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Scripts -->
|
||||||
|
<script src="startseite.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -2,7 +2,7 @@ const path = require('path');
|
|||||||
const router = require('express').Router();
|
const router = require('express').Router();
|
||||||
|
|
||||||
router.get('/', (req, res) => {
|
router.get('/', (req, res) => {
|
||||||
res.sendFile(path.join(__dirname, '../../../public/index.html'));
|
res.sendFile(path.join(__dirname, '../../../public/startseite/startseite.html'));
|
||||||
})
|
})
|
||||||
|
|
||||||
router.get('/example', (req, res) => {
|
router.get('/example', (req, res) => {
|
||||||
@ -10,7 +10,11 @@ router.get('/example', (req, res) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
router.get('/login', (req, res) => {
|
router.get('/login', (req, res) => {
|
||||||
res.sendFile(path.join(__dirname, '../../../public/login/index.html'));
|
res.sendFile(path.join(__dirname, '../../../public/login/login.html'));
|
||||||
|
})
|
||||||
|
|
||||||
|
router.get('/registrieren', (req, res) => {
|
||||||
|
res.sendFile(path.join(__dirname, '../../../public/registrieren/registrieren.html'));
|
||||||
})
|
})
|
||||||
|
|
||||||
module.exports = router;
|
module.exports = router;
|
||||||
@ -1,100 +1,234 @@
|
|||||||
/* The sidebar menu */
|
/* Allgemeine Einstellungen */
|
||||||
.sidebar {
|
* {
|
||||||
height: 100%; /* 100% Full-height */
|
margin: 0;
|
||||||
width: 0; /* 0 width - change this with JavaScript */
|
padding: 0;
|
||||||
position: fixed; /* Stay in place */
|
box-sizing: border-box;
|
||||||
z-index: 1; /* Stay on top */
|
font-family: "Poppins", sans-serif;
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
background-color: #111; /* Black*/
|
|
||||||
overflow-x: hidden; /* Disable horizontal scroll */
|
|
||||||
padding-top: 60px; /* Place content 60px from the top */
|
|
||||||
transition: 0.5s; /* 0.5 second transition effect to slide in the sidebar */
|
|
||||||
font-family: "Agency FB";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The sidebar links */
|
body {
|
||||||
.sidebar a {
|
background: #f8f9fa;
|
||||||
padding: 8px 8px 8px 32px;
|
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;
|
text-decoration: none;
|
||||||
font-size: 25px;
|
|
||||||
color: #818181;
|
|
||||||
display: block;
|
|
||||||
transition: 0.3s;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* When you mouse over the navigation links, change their color */
|
|
||||||
.sidebar a:hover {
|
|
||||||
color: #f1f1f1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Position and style the close button (top right corner) */
|
|
||||||
.sidebar .closebtn {
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
right: 25px;
|
|
||||||
font-size: 36px;
|
|
||||||
margin-left: 50px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* The button used to open the sidebar */
|
|
||||||
.openbtn {
|
|
||||||
font-size: 20px;
|
|
||||||
cursor: pointer;
|
|
||||||
background-color: #111;
|
|
||||||
color: white;
|
color: white;
|
||||||
padding: 10px 15px;
|
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: none;
|
||||||
|
border-radius: 5px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.openbtn:hover {
|
.search-bar button:hover {
|
||||||
background-color: #444;
|
background: #e95b00;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
|
/* Karten */
|
||||||
#main {
|
.card-grid {
|
||||||
transition: margin-left .5s; /* If you want a transition effect */
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||||
|
gap: 20px;
|
||||||
|
width: 100%;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
|
.card {
|
||||||
@media screen and (max-height: 450px) {
|
background: #ffffff;
|
||||||
.sidebar {
|
border-radius: 10px;
|
||||||
padding-top: 15px;
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||||
}
|
text-align: center;
|
||||||
|
padding: 20px;
|
||||||
.sidebar a {
|
height: 100%;
|
||||||
font-size: 18px;
|
display: flex;
|
||||||
}
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card img {
|
||||||
/* grid layout for the content */
|
max-width: 100%;
|
||||||
.grid-container {
|
height: auto;
|
||||||
display: grid;
|
border-radius: 10px;
|
||||||
grid-template-areas: 'left header header'
|
margin-bottom: 10px;
|
||||||
'left main right'
|
|
||||||
'footer footer footer';
|
|
||||||
grid-template-columns: [left] 80px [line2] calc(100% - 160px) [line3] 80px [right];
|
|
||||||
grid-template-rows: [top] 80px [line2] calc(100% - 160px) [line3] 80px [bottom];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.left {
|
.card h3 {
|
||||||
grid-area: left;
|
font-size: 20px;
|
||||||
|
color: #333;
|
||||||
|
margin: 10px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.right {
|
.card p {
|
||||||
grid-area: right;
|
font-size: 14px;
|
||||||
|
color: #666;
|
||||||
|
margin: 5px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.add-to-cart {
|
||||||
grid-area: header;
|
background: #ff6600;
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
padding: 12px 20px;
|
||||||
|
border-radius: 25px;
|
||||||
|
margin-top: 10px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main {
|
.add-to-cart:hover {
|
||||||
grid-area: main;
|
background: #e95b00;
|
||||||
}
|
|
||||||
|
|
||||||
.footer {
|
|
||||||
grid-area: footer;
|
|
||||||
}
|
}
|
||||||
109
static/Styles/login/login.css
Normal file
109
static/Styles/login/login.css
Normal file
@ -0,0 +1,109 @@
|
|||||||
|
/* 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;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 24px;
|
||||||
|
text-align: center;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Input-Box */
|
||||||
|
.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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 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 {
|
||||||
|
width: 100%;
|
||||||
|
padding: 12px 20px;
|
||||||
|
background: #ff6600;
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
border-radius: 5px;
|
||||||
|
font-size: 16px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn:hover {
|
||||||
|
background: #e95b00;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Register-Link */
|
||||||
|
.register-link {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.register-link a {
|
||||||
|
color: #ff6600;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.register-link a:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
@ -1,102 +0,0 @@
|
|||||||
{
|
|
||||||
margin: 0
|
|
||||||
;
|
|
||||||
padding: 0
|
|
||||||
;
|
|
||||||
box-sizing: border-box
|
|
||||||
;
|
|
||||||
font-family: "Poppins", sans-serif
|
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
min-height: 100vh;
|
|
||||||
background: url("../../images/LoginBackround.jpg");
|
|
||||||
}
|
|
||||||
|
|
||||||
.wrapper {
|
|
||||||
width: 420px;
|
|
||||||
background: lightgrey;
|
|
||||||
color: #111111;
|
|
||||||
border-radius: 15px;
|
|
||||||
padding: 45px 25px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wrapper h1 {
|
|
||||||
font-size: 36px;
|
|
||||||
text-align: center;
|
|
||||||
margin-bottom: 40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wrapper .input-box {
|
|
||||||
position: relative;
|
|
||||||
width: 89%;
|
|
||||||
height: 50px;
|
|
||||||
margin: 20px 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.input-box input {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
outline: none;
|
|
||||||
border: 2px solid rgba(255, 255, 255, .2);
|
|
||||||
border-radius: 40px;
|
|
||||||
font-size: 16px;
|
|
||||||
padding: 0 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wrapper .input-box input::placeholder {
|
|
||||||
color: #111111;
|
|
||||||
}
|
|
||||||
|
|
||||||
.input-box i {
|
|
||||||
position: absolute;
|
|
||||||
left: 390px;
|
|
||||||
top: 50%;
|
|
||||||
transform: translateY(-50%);
|
|
||||||
font-size: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wrapper .remember-forgot {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
font-size: 16.5px;
|
|
||||||
margin: 10px 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.remember-forgot a {
|
|
||||||
color: #111111;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.remember-forgot a:hover {
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wrapper .register-link {
|
|
||||||
font-size: 14px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.register-link a {
|
|
||||||
color: #111111;
|
|
||||||
text-decoration: none;
|
|
||||||
margin: -1px 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.register-link a:hover {
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wrapper .btn {
|
|
||||||
width: 100%;
|
|
||||||
height: 50px;
|
|
||||||
border: none;
|
|
||||||
outline: none;
|
|
||||||
margin-top: 40px;
|
|
||||||
border-radius: 40px;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
129
static/Styles/registrieren/registrieren.css
Normal file
129
static/Styles/registrieren/registrieren.css
Normal file
@ -0,0 +1,129 @@
|
|||||||
|
/* 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 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);
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Eingabefelder */
|
||||||
|
.input-box {
|
||||||
|
position: relative;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Textfelder */
|
||||||
|
.input-box input {
|
||||||
|
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 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 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 {
|
||||||
|
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;
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
border-radius: 25px;
|
||||||
|
font-size: 16px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn:hover {
|
||||||
|
background: #e95b00;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Registrierung-Link */
|
||||||
|
.register-link {
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.register-link a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: #ff6600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.register-link a:hover {
|
||||||
|
color: #e95b00;
|
||||||
|
}
|
||||||
234
static/Styles/startseite/startseite.css
Normal file
234
static/Styles/startseite/startseite.css
Normal file
@ -0,0 +1,234 @@
|
|||||||
|
/* 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;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user