- redaktionskern (src/): schlanker Kern — App-Fabrik, Plugin-Loader (Entry-Points + plugins/-Verzeichnis), Migrations-Laufzeit (schema_migrations pro Plugin, SQLite-/Postgres-portabel), Auth mit Argon2id + Session-Cookies, Rollen admin/redakteur/rezensent, Benutzerverwaltung für Admins - plugins/: 8 ladbare Stubs (neuheiten, dedup, planung, archiv, erinnerung, benachrichtigung, audit-log, export) nach Plugin-Vertrag - Frontend: Jinja2 + Tailwind (CDN) + HTMX + Alpine.js, UI deutsch - Tests: 28 pytest-Fälle (Loader, Lifecycle, Entry-Points, Migrations- Idempotenz, Login/Logout, Rollen-Zugriff, Benutzerverwaltung) - Docker/Podman: Compose (Traefik-Labels) + Dockerfile (uv) - README.md mit Setup-Anleitung
37 lines
1.6 KiB
HTML
37 lines
1.6 KiB
HTML
<!doctype html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Anmelden — {{ app_name }}</title>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
</head>
|
|
<body class="bg-slate-100 text-slate-800 min-h-screen flex items-center justify-center px-4">
|
|
<div class="bg-white shadow-md rounded-xl p-8 w-full max-w-sm">
|
|
<h1 class="text-xl font-bold mb-1">🎳 {{ app_name }}</h1>
|
|
<p class="text-sm text-slate-500 mb-6">Bitte anmelden.</p>
|
|
{% if fehler %}
|
|
<div class="mb-4 rounded-lg border border-red-300 bg-red-50 text-red-700 text-sm px-3 py-2" role="alert">
|
|
{{ fehler }}
|
|
</div>
|
|
{% endif %}
|
|
<form method="post" action="/login" class="space-y-4">
|
|
<div>
|
|
<label for="username" class="block text-sm font-medium mb-1">Benutzername</label>
|
|
<input id="username" name="username" value="{{ username }}" required autocomplete="username"
|
|
class="w-full border border-slate-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-emerald-500">
|
|
</div>
|
|
<div>
|
|
<label for="password" class="block text-sm font-medium mb-1">Passwort</label>
|
|
<input id="password" name="password" type="password" required autocomplete="current-password"
|
|
class="w-full border border-slate-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-emerald-500">
|
|
</div>
|
|
<button type="submit"
|
|
class="w-full bg-emerald-600 hover:bg-emerald-700 text-white font-medium rounded-lg px-3 py-2">
|
|
Anmelden
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html>
|