Files
sigra/src/templates/login.html

29 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>Вход в админку</title>
<style>
body { font-family: Arial, sans-serif; background: #1a1a2e; color: #eaeaea; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; }
.login-form { background: #0f3460; padding: 30px; border-radius: 10px; text-align: center; }
h1 { color: #e94560; margin-bottom: 20px; }
input { width: 100%; padding: 10px; margin: 10px 0; background: #1a1a2e; color: #eaeaea; border: 1px solid #e94560; border-radius: 4px; }
.btn { background: #e94560; color: white; padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; width: 100%; }
.btn:hover { background: #c73e54; }
.error { color: #f87171; margin-top: 10px; }
</style>
</head>
<body>
<div class="login-form">
<h1>Вход в админку</h1>
<form method="POST" action="/admin/login">
<input type="password" name="password" placeholder="Введите пароль" required>
<button type="submit" class="btn">Войти</button>
</form>
{% if error %}
<p class="error">{{ error }}</p>
{% endif %}
</div>
</body>
</html>