Huntarr/templates/login.html

59 lines
2.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
<title>Huntarr Login</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
*, *::before, *::after { box-sizing: border-box; }
html { background: #030507; }
body {
background: #030507;
color: #94a3b8;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
}
input {
background: #0d1117;
border: 1px solid #1a2035;
color: #e2e8f0;
outline: none;
transition: border-color 0.2s;
}
input:focus {
border-color: #3b82f6;
}
</style>
</head>
<body class="flex items-center justify-center min-h-screen p-4">
<div class="w-full max-w-sm flex flex-col gap-6">
<div class="text-center">
<h1 class="text-2xl font-black tracking-tighter text-slate-100">Huntarr</h1>
<p class="text-xs text-slate-500 mt-1">Sign in with Jellyfin</p>
</div>
{% if error %}
<div class="bg-red-500/10 border border-red-500/20 rounded p-3 text-center">
<p class="text-xs font-semibold text-red-400">{{ error }}</p>
</div>
{% endif %}
<form action="/login" method="POST" class="flex flex-col gap-4">
<div class="flex flex-col gap-1.5">
<label class="text-2xs font-bold text-slate-600 uppercase tracking-widest">Username</label>
<input type="text" name="username" required autofocus class="px-3 py-2.5 rounded-lg text-sm w-full">
</div>
<div class="flex flex-col gap-1.5">
<label class="text-2xs font-bold text-slate-600 uppercase tracking-widest">Password</label>
<input type="password" name="password" required class="px-3 py-2.5 rounded-lg text-sm w-full">
</div>
<button type="submit" class="mt-2 w-full py-2.5 rounded-lg font-bold text-sm bg-slate-100 hover:bg-white text-slate-950 transition-colors">
Sign In
</button>
</form>
</div>
</body>
</html>