42 lines
2.0 KiB
HTML
42 lines
2.0 KiB
HTML
<!doctype html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
|
|
<meta name="color-scheme" content="dark">
|
|
<meta name="theme-color" content="#0e0f11">
|
|
<title>Pocketwatch</title>
|
|
<link rel="stylesheet" href="/static/app.css">
|
|
</head>
|
|
<body class="auth-body">
|
|
<main class="auth-shell">
|
|
<section class="auth-card" aria-labelledby="auth-title">
|
|
<div class="brand brand-large"><span class="brand-dot"></span><span>pocketwatch</span></div>
|
|
<div id="login-panel">
|
|
<p class="eyebrow">SELF-HOSTED TIME TRACKING</p>
|
|
<h1 id="auth-title">Anmelden</h1>
|
|
<p class="muted">Deine Zeiten bleiben auf deinem Server.</p>
|
|
<form id="login-form" class="form-stack">
|
|
<label>Benutzername<input name="username" autocomplete="username" required autofocus></label>
|
|
<label>Passwort<input name="password" type="password" autocomplete="current-password" required></label>
|
|
<button class="btn primary wide" type="submit">Anmelden</button>
|
|
</form>
|
|
</div>
|
|
<div id="setup-panel" hidden>
|
|
<p class="eyebrow">ERSTEINRICHTUNG</p>
|
|
<h1>Admin anlegen</h1>
|
|
<p class="muted">Der erste Benutzer wird Administrator. Weitere Konten legst du später in den Einstellungen an.</p>
|
|
<form id="setup-form" class="form-stack">
|
|
<label>Benutzername<input name="username" minlength="3" maxlength="64" autocomplete="username" required autofocus></label>
|
|
<label>Anzeigename<input name="displayName" maxlength="120" autocomplete="name"></label>
|
|
<label>Passwort<input name="password" type="password" minlength="10" autocomplete="new-password" required></label>
|
|
<button class="btn primary wide" type="submit">Instanz einrichten</button>
|
|
</form>
|
|
</div>
|
|
<p id="auth-error" class="error-box" role="alert" hidden></p>
|
|
</section>
|
|
</main>
|
|
<script src="/static/login.js" defer></script>
|
|
</body>
|
|
</html>
|