176 lines
5.9 KiB
Twig
176 lines
5.9 KiB
Twig
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Jormun Admin — Sign In</title>
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
|
<link href="https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:wght@300;400;500&display=swap" rel="stylesheet">
|
|
<style>
|
|
:root {
|
|
--jormun-teal: #0d9488;
|
|
--jormun-teal-mid: #14b8a6;
|
|
}
|
|
* { box-sizing: border-box; }
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
background: #f0fdfa;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-family: 'DM Mono', monospace;
|
|
}
|
|
|
|
/* Subtle background grid */
|
|
body::before {
|
|
content: '';
|
|
position: fixed;
|
|
inset: 0;
|
|
background-image:
|
|
linear-gradient(rgba(13,148,136,0.04) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(13,148,136,0.04) 1px, transparent 1px);
|
|
background-size: 32px 32px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.login-wrap {
|
|
width: 380px;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.login-logo {
|
|
text-align: center;
|
|
margin-bottom: 2rem;
|
|
}
|
|
.login-logo svg { width: 52px; height: 52px; }
|
|
.login-logo h1 {
|
|
font-family: 'Syne', sans-serif;
|
|
font-size: 1.6rem;
|
|
font-weight: 800;
|
|
color: var(--jormun-teal);
|
|
margin: 0.4rem 0 0.1rem;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
.login-logo p {
|
|
font-size: 0.72rem;
|
|
color: #64748b;
|
|
margin: 0;
|
|
}
|
|
|
|
.login-card {
|
|
background: #fff;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 10px;
|
|
padding: 2rem;
|
|
box-shadow: 0 4px 24px rgba(13,148,136,0.06);
|
|
}
|
|
|
|
.form-label {
|
|
font-size: 0.72rem;
|
|
font-weight: 500;
|
|
color: #374151;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
margin-bottom: 0.3rem;
|
|
}
|
|
.form-control {
|
|
font-family: 'DM Mono', monospace;
|
|
font-size: 0.82rem;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 5px;
|
|
padding: 0.5rem 0.75rem;
|
|
}
|
|
.form-control:focus {
|
|
border-color: var(--jormun-teal);
|
|
box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
|
|
}
|
|
.btn-login {
|
|
width: 100%;
|
|
background: var(--jormun-teal);
|
|
color: #fff;
|
|
border: none;
|
|
padding: 0.6rem;
|
|
border-radius: 6px;
|
|
font-family: 'Syne', sans-serif;
|
|
font-size: 0.88rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
transition: background 0.12s;
|
|
margin-top: 1.25rem;
|
|
}
|
|
.btn-login:hover { background: #059669; }
|
|
|
|
.alert-error {
|
|
background: #fef2f2;
|
|
border: 1px solid #fca5a5;
|
|
color: #991b1b;
|
|
border-radius: 5px;
|
|
padding: 0.5rem 0.75rem;
|
|
font-size: 0.78rem;
|
|
margin-bottom: 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
}
|
|
|
|
.login-footer {
|
|
text-align: center;
|
|
margin-top: 1.25rem;
|
|
font-size: 0.68rem;
|
|
color: #94a3b8;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="login-wrap">
|
|
<div class="login-logo">
|
|
<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M16 3C9.373 3 4 8.373 4 15c0 4.5 2.3 8.46 5.78 10.8" stroke="#0d9488" stroke-width="2.5" stroke-linecap="round"/>
|
|
<path d="M16 29c6.627 0 12-5.373 12-12 0-4.5-2.3-8.46-5.78-10.8" stroke="#14b8a6" stroke-width="2.5" stroke-linecap="round"/>
|
|
<path d="M9.78 25.8C11.5 27.2 13.65 28 16 28" stroke="#0d9488" stroke-width="2" stroke-linecap="round"/>
|
|
<path d="M22.22 6.2C20.5 4.8 18.35 4 16 4" stroke="#14b8a6" stroke-width="2" stroke-linecap="round"/>
|
|
<circle cx="9" cy="26" r="2" fill="#0d9488"/>
|
|
<circle cx="23" cy="6" r="2" fill="#14b8a6"/>
|
|
</svg>
|
|
<h1>JormunAdmin</h1>
|
|
<p>DynamoDB-compatible database administration</p>
|
|
</div>
|
|
|
|
<div class="login-card">
|
|
{% if error %}
|
|
<div class="alert-error">
|
|
<i class="bi bi-exclamation-triangle-fill"></i>
|
|
{{ error }}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<form method="POST" action="{{ path('login') }}">
|
|
<div class="mb-3">
|
|
<label class="form-label">Username</label>
|
|
<input type="text" name="username" class="form-control" placeholder="root" autofocus required>
|
|
</div>
|
|
<div class="mb-1">
|
|
<label class="form-label">Password</label>
|
|
<input type="password" name="password" class="form-control" placeholder="••••••" required>
|
|
</div>
|
|
<button type="submit" class="btn-login">
|
|
<i class="bi bi-shield-lock"></i>
|
|
Sign In
|
|
</button>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="login-footer">
|
|
Jormun Admin — JormunDB Administration Interface
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|