This commit is contained in:
Tomas Dvorak
2025-06-18 09:45:29 +02:00
parent 4146410c4b
commit 8958d3f4eb
8 changed files with 469 additions and 79 deletions
+149 -32
View File
@@ -4,85 +4,202 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Login - PP Kunovice</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
<style>
body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
:root {
--primary: #2563eb; /* Blue-600 from Tailwind */
--primary-hover: #1d4ed8; /* Blue-700 */
--error: #ef4444;
--text: #1f2937; /* Gray-800 */
--text-light: #6b7280; /* Gray-500 */
--bg: #f3f4f6; /* Gray-100 */
--card-bg: #ffffff;
--border: #e5e7eb; /* Gray-200 */
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
background-color: var(--bg);
color: var(--text);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
padding: 1.5rem;
line-height: 1.5;
}
.login-container {
background-color: white;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
background: var(--card-bg);
padding: 2.5rem;
border-radius: 1rem;
box-shadow: var(--shadow);
width: 100%;
max-width: 400px;
max-width: 420px;
transition: all 0.3s ease;
border-top: 4px solid var(--primary);
border-bottom: 1px solid var(--border);
border-left: 1px solid var(--border);
border-right: 1px solid var(--border);
}
.login-header {
text-align: center;
margin-bottom: 2rem;
margin-bottom: 2.5rem;
}
.login-header h1 {
color: #333;
margin: 0;
color: var(--primary);
font-size: 1.75rem;
font-weight: 700;
margin-bottom: 0.5rem;
display: block;
text-align: center;
}
.login-header p {
color: var(--text-light);
font-size: 0.95rem;
}
.form-group {
margin-bottom: 1.5rem;
margin-bottom: 1.25rem;
position: relative;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
color: #555;
color: var(--text);
font-size: 0.9375rem;
font-weight: 500;
font-family: 'Inter', sans-serif;
}
.form-group input {
width: 100%;
padding: 0.75rem;
border: 1px solid #ddd;
border-radius: 4px;
padding: 0.75rem 1rem;
border: 1px solid var(--border);
border-radius: 0.375rem;
font-size: 1rem;
transition: all 0.2s ease;
background-color: white;
color: var(--text);
font-family: 'Inter', sans-serif;
}
.form-group input:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
border-left-width: 2px;
border-left-color: var(--primary);
}
.login-button {
width: 100%;
padding: 0.75rem;
background-color: #4CAF50;
padding: 0.75rem 1.5rem;
background-color: var(--primary);
color: white;
border: none;
border-radius: 4px;
border-radius: 0.5rem;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s;
}
.login-button:hover {
background-color: #45a049;
}
.error-message {
color: #f44336;
text-align: center;
transition: all 0.2s ease;
margin-top: 1rem;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
}
.login-button:hover {
background-color: var(--primary-hover);
transform: translateY(-1px);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.login-button:active {
transform: translateY(0);
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.error-message {
color: var(--error);
text-align: center;
margin: 1.25rem 0 0;
padding: 0.75rem 1rem;
background-color: #fef2f2;
border: 1px solid #fecaca;
border-radius: 0.5rem;
display: none;
animation: fadeIn 0.3s ease;
font-size: 0.9375rem;
font-weight: 500;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}
.forgot-password {
display: block;
text-align: center;
margin-top: 1.5rem;
color: var(--primary);
text-decoration: none;
font-size: 0.9375rem;
font-weight: 500;
transition: all 0.2s ease;
}
.forgot-password:hover {
text-decoration: underline;
color: var(--primary-hover);
}
@media (max-width: 480px) {
.login-container {
padding: 2rem 1.5rem;
}
.login-header h1 {
font-size: 1.5rem;
}
}
</style>
</head>
<body>
<div class="login-container">
<div class="login-header">
<h1>Admin Login</h1>
<h1>Přihlášení do administrace</h1>
<p>Pro pokračování se prosím přihlaste</p>
</div>
<form id="loginForm">
<div class="form-group">
<label for="username">Uživatelské jméno</label>
<input type="text" id="username" name="username" required>
<input type="text" id="username" name="username" required
placeholder="Zadejte své uživatelské jméno">
</div>
<div class="form-group">
<label for="password">Heslo</label>
<input type="password" id="password" name="password" required>
<input type="password" id="password" name="password" required
placeholder="Zadejte své heslo">
</div>
<button type="submit" class="login-button">Přihlásit se</button>
<button type="submit" class="login-button">
<i class="fas fa-sign-in-alt"></i>
<span>Přihlásit se</span>
</button>
<div id="errorMessage" class="error-message">
Chybné přihlašovací údaje
</div>