startseite.html und registrieren.html erstellt.
Keine 100%.
This commit is contained in:
parent
e8a0823631
commit
96378d1ad6
@ -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,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>
|
||||||
@ -4,7 +4,7 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Autohändler Webshop</title>
|
<title>Autohändler Webshop</title>
|
||||||
<link rel="stylesheet" href="./Styles/startseite/style.css">
|
<link rel="stylesheet" href="./Styles/startseite/startseite.css">
|
||||||
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@ -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/startseite.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;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar a {
|
.card img {
|
||||||
font-size: 18px;
|
max-width: 100%;
|
||||||
}
|
height: auto;
|
||||||
|
border-radius: 10px;
|
||||||
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card h3 {
|
||||||
/* grid layout for the content */
|
font-size: 20px;
|
||||||
.grid-container {
|
color: #333;
|
||||||
display: grid;
|
margin: 10px 0;
|
||||||
grid-template-areas: 'left header header'
|
|
||||||
'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 p {
|
||||||
grid-area: left;
|
font-size: 14px;
|
||||||
|
color: #666;
|
||||||
|
margin: 5px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.right {
|
.add-to-cart {
|
||||||
grid-area: right;
|
background: #ff6600;
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
padding: 12px 20px;
|
||||||
|
border-radius: 25px;
|
||||||
|
margin-top: 10px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.add-to-cart:hover {
|
||||||
grid-area: header;
|
background: #e95b00;
|
||||||
}
|
|
||||||
|
|
||||||
.main {
|
|
||||||
grid-area: main;
|
|
||||||
}
|
|
||||||
|
|
||||||
.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;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user