m0x.it/templates/admin_login.html

79 lines
2 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>m0x.it // Admin Login</title>
<link rel="icon" type="image/svg+xml" href="{{ url_for('static', filename='image/favicon.svg') }}">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
* { box-sizing: border-box; }
body {
margin: 0;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: #0d1117;
color: #e6edf3;
font-family: ui-monospace, "SF Mono", Consolas, monospace;
}
.card {
background: #161b22;
border: 1px solid #30363d;
border-radius: 10px;
padding: 2.5rem;
width: 320px;
}
h1 {
font-size: 1.1rem;
margin: 0 0 1.5rem;
color: #58a6ff;
}
input {
width: 100%;
padding: 0.6rem 0.7rem;
background: #0d1117;
border: 1px solid #30363d;
border-radius: 6px;
color: #e6edf3;
font-family: inherit;
font-size: 0.95rem;
}
button {
width: 100%;
margin-top: 1rem;
padding: 0.6rem;
background: #238636;
border: none;
border-radius: 6px;
color: white;
font-family: inherit;
font-size: 0.95rem;
cursor: pointer;
}
button:hover { background: #2ea043; }
.flash {
margin-bottom: 1rem;
padding: 0.5rem 0.7rem;
border-radius: 6px;
font-size: 0.85rem;
}
.flash.error { background: #3d1a1a; color: #f85149; border: 1px solid #5c2626; }
</style>
</head>
<body>
<div class="card">
<h1>m0x.it/admin</h1>
{% with messages = get_flashed_messages(with_categories=true) %}
{% for category, message in messages %}
<div class="flash {{ category }}">{{ message }}</div>
{% endfor %}
{% endwith %}
<form method="POST">
<input type="password" name="password" placeholder="Passwort" autofocus required>
<button type="submit">Login</button>
</form>
</div>
</body>
</html>