forked from Nixius/authelia
91 lines
2.8 KiB
HTML
91 lines
2.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>a250.ca - Activate</title>
|
|
<style>
|
|
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
:root {
|
|
--bg: #0f1117;
|
|
--surface: #1a1d27;
|
|
--border: #2a2d3a;
|
|
--text: #e4e4e7;
|
|
--muted: #a1a1aa;
|
|
--accent: #6366f1;
|
|
--accent-hover: #818cf8;
|
|
--green: #22c55e;
|
|
}
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 2rem;
|
|
}
|
|
.container { max-width: 520px; width: 100%; }
|
|
.logo { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 0.5rem; }
|
|
.subtitle { font-size: 1.1rem; font-weight: 600; margin-bottom: 2rem; }
|
|
.subtitle-green { color: var(--green); }
|
|
.subtitle-muted { color: var(--muted); }
|
|
.card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
padding: 2rem;
|
|
text-align: center;
|
|
}
|
|
.card h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.75rem; }
|
|
.card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.5rem; }
|
|
.btn {
|
|
display: inline-block;
|
|
background: var(--accent);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 8px;
|
|
padding: 0.75rem 2rem;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
transition: background 0.2s;
|
|
}
|
|
.btn:hover { background: var(--accent-hover); }
|
|
.icon {
|
|
font-size: 3rem;
|
|
margin-bottom: 1rem;
|
|
display: block;
|
|
}
|
|
</style>
|
|
{{template "analytics"}}
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="logo">a250.ca</div>
|
|
{{if .NeedLogin}}
|
|
<div class="subtitle subtitle-muted">Almost there</div>
|
|
<div class="card">
|
|
<span class="icon">🔒</span>
|
|
<h2>Sign In First</h2>
|
|
<p>You need to sign in with your new password before activating your stack. If you haven't set your password yet, do that first.</p>
|
|
<a href="{{.AutheliaURL}}" class="btn">Sign In</a>
|
|
</div>
|
|
{{else if .Ready}}
|
|
<div class="subtitle subtitle-green">Welcome, {{.User}}</div>
|
|
<div class="card">
|
|
<span class="icon">⚡</span>
|
|
<h2>Activate Your Stack</h2>
|
|
<p>Your account is verified. Click below to provision your dedicated environment and get full access.</p>
|
|
<form method="POST" action="/activate">
|
|
<button type="submit" class="btn">Activate Now</button>
|
|
</form>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</body>
|
|
</html>
|