Login form added
This commit is contained in:
parent
e72b33052c
commit
d185ced427
24
login_form/framework1/index.html
Normal file
24
login_form/framework1/index.html
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="de">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>Login</title>
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
|
</head>
|
||||||
|
<body class="bg-light">
|
||||||
|
|
||||||
|
<div class="container mt-5">
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<form class="card p-4">
|
||||||
|
<h3 class="text-center">Login</h3>
|
||||||
|
<input class="form-control mb-3" type="text" placeholder="Benutzername">
|
||||||
|
<input class="form-control mb-3" type="password" placeholder="Passwort">
|
||||||
|
<button class="btn btn-primary w-100">Anmelden</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
20
login_form/frameworks2/index.html
Normal file
20
login_form/frameworks2/index.html
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="de">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>Login</title>
|
||||||
|
<script src="https://cdn.tailwindcss.com"></script>
|
||||||
|
</head>
|
||||||
|
<body class="bg-gray-100 flex items-center justify-center h-screen">
|
||||||
|
|
||||||
|
<form class="bg-white p-6 rounded shadow-md w-80">
|
||||||
|
<h2 class="text-xl text-center mb-4">Login</h2>
|
||||||
|
<input class="border w-full p-2 mb-3" type="text" placeholder="Benutzername">
|
||||||
|
<input class="border w-full p-2 mb-3" type="password" placeholder="Passwort">
|
||||||
|
<button class="bg-blue-500 text-white w-full p-2 rounded">
|
||||||
|
Anmelden
|
||||||
|
</button>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
16
login_form/ohne_framework/index.html
Normal file
16
login_form/ohne_framework/index.html
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="de">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>Login</title>
|
||||||
|
<link rel="stylesheet" href="style.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form class="login-form">
|
||||||
|
<h2>Login</h2>
|
||||||
|
<input type="text" placeholder="Benutzername" required>
|
||||||
|
<input type="password" placeholder="Passwort" required>
|
||||||
|
<button type="submit">Anmelden</button>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
122
login_form/ohne_framework/style.css
Normal file
122
login_form/ohne_framework/style.css
Normal file
@ -0,0 +1,122 @@
|
|||||||
|
/* =========================
|
||||||
|
CSS RESET
|
||||||
|
========================= */
|
||||||
|
*,
|
||||||
|
*::before,
|
||||||
|
*::after {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================
|
||||||
|
ROOT VARIABLES
|
||||||
|
========================= */
|
||||||
|
:root {
|
||||||
|
--bg-gradient: linear-gradient(135deg, #667eea, #764ba2);
|
||||||
|
--card-bg: #ffffff;
|
||||||
|
--primary: #667eea;
|
||||||
|
--primary-hover: #5a67d8;
|
||||||
|
--text-main: #333333;
|
||||||
|
--text-muted: #666666;
|
||||||
|
--border: #dddddd;
|
||||||
|
--radius: 12px;
|
||||||
|
--shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================
|
||||||
|
PAGE LAYOUT
|
||||||
|
========================= */
|
||||||
|
body {
|
||||||
|
min-height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
|
||||||
|
Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
|
||||||
|
sans-serif;
|
||||||
|
background: var(--bg-gradient);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================
|
||||||
|
LOGIN CARD
|
||||||
|
========================= */
|
||||||
|
.login-form {
|
||||||
|
background: var(--card-bg);
|
||||||
|
width: 320px;
|
||||||
|
padding: 2rem;
|
||||||
|
border-radius: var(--radius);
|
||||||
|
box-shadow: var(--shadow);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================
|
||||||
|
HEADING
|
||||||
|
========================= */
|
||||||
|
.login-form h2 {
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--text-main);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================
|
||||||
|
INPUT FIELDS
|
||||||
|
========================= */
|
||||||
|
.login-form input {
|
||||||
|
width: 100%;
|
||||||
|
padding: 0.75rem 0.85rem;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
font-size: 1rem;
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-radius: 8px;
|
||||||
|
color: var(--text-main);
|
||||||
|
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-form input::placeholder {
|
||||||
|
color: var(--text-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-form input:focus {
|
||||||
|
outline: none;
|
||||||
|
border-color: var(--primary);
|
||||||
|
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================
|
||||||
|
BUTTON
|
||||||
|
========================= */
|
||||||
|
.login-form button {
|
||||||
|
width: 100%;
|
||||||
|
padding: 0.75rem;
|
||||||
|
margin-top: 0.5rem;
|
||||||
|
border: none;
|
||||||
|
border-radius: 8px;
|
||||||
|
background: var(--primary);
|
||||||
|
color: white;
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: 600;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.2s ease, transform 0.1s ease,
|
||||||
|
box-shadow 0.1s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-form button:hover {
|
||||||
|
background: var(--primary-hover);
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-form button:active {
|
||||||
|
transform: translateY(1px);
|
||||||
|
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) inset;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================
|
||||||
|
RESPONSIVE (MOBILE)
|
||||||
|
========================= */
|
||||||
|
@media (max-width: 400px) {
|
||||||
|
.login-form {
|
||||||
|
width: 90%;
|
||||||
|
padding: 1.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user