Restructure project for Docker: move app to src/, add Helm chart and Fleet config

This commit is contained in:
eka
2026-03-01 10:32:26 +05:00
parent b8b822e578
commit 649ec54886
17 changed files with 240 additions and 61 deletions

28
src/templates/login.html Normal file
View File

@@ -0,0 +1,28 @@
<!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>