Files
KlipperAnywhere/web/static/login.html
T
2026-05-14 02:27:26 +01:00

47 lines
1.7 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Sign in - KlipperAnywhere</title>
<meta name="description" content="Sign in to KlipperAnywhere.">
<link rel="stylesheet" href="/static/styles.css">
<link rel="icon" href="/favicon.ico">
<link rel="icon" type="image/png" href="/static/assets/favicon.png">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
</head>
<body class="auth-page">
<main class="auth-shell">
<a class="brand auth-brand" href="/">
<span class="brand-mark" aria-hidden="true">K</span>
<span>KlipperAnywhere</span>
</a>
<section class="auth-panel" aria-labelledby="login-title">
<p class="eyebrow">Private access</p>
<h1 id="login-title" class="auth-title">Sign in</h1>
<p class="auth-copy">Access connected printers, health checks, and proxied Moonraker endpoints.</p>
<p class="form-error" id="form-error" hidden>Invalid username or password.</p>
<form class="login-form" method="post" action="/login">
<label>
<span>Username</span>
<input name="username" autocomplete="username" required>
</label>
<label>
<span>Password</span>
<input name="password" type="password" autocomplete="current-password" required>
</label>
<button class="button primary" type="submit">Sign in</button>
</form>
</section>
</main>
<script>
if (new URLSearchParams(window.location.search).has("error")) {
document.getElementById("form-error").hidden = false;
}
</script>
</body>
</html>