Moar
All checks were successful
Docker Deploy / build-and-push (push) Successful in 4m6s

This commit is contained in:
2026-02-09 02:28:54 -07:00
parent 12d59bb42f
commit caf763aa1e
24 changed files with 1003 additions and 1169 deletions

View File

@@ -18,63 +18,57 @@ const errorMessage =
<Layout title="Login - Chronus">
<div class="flex justify-center items-center flex-1 bg-base-100">
<div class="card bg-base-100 shadow-2xl w-full max-w-md mx-4">
<div class="card-body">
<img src="/logo.webp" alt="Chronus" class="h-16 w-16 mx-auto mb-4" />
<h2 class="text-3xl font-bold text-center mb-2">Welcome Back</h2>
<p class="text-center text-base-content/60 mb-6">Sign in to continue to Chronus</p>
<div class="card card-border bg-base-100 w-full max-w-sm mx-4">
<div class="card-body gap-0">
<img src="/logo.webp" alt="Chronus" class="h-14 w-14 mx-auto mb-3" />
<h2 class="text-2xl font-extrabold tracking-tight text-center">Welcome Back</h2>
<p class="text-center text-base-content/60 text-sm mt-1 mb-5">Sign in to continue to Chronus</p>
{errorMessage && (
<div role="alert" class="alert alert-error mb-4">
<Icon name="heroicons:exclamation-circle" class="w-6 h-6" />
<div role="alert" class="alert alert-error mb-4 text-sm">
<Icon name="heroicons:exclamation-circle" class="w-5 h-5" />
<span>{errorMessage}</span>
</div>
)}
<form action="/api/auth/login" method="POST" class="space-y-4">
<div class="form-control">
<label class="label font-medium" for="email">
Email
</label>
<form action="/api/auth/login" method="POST" class="space-y-3">
<fieldset class="fieldset">
<legend class="fieldset-legend text-xs">Email</legend>
<input
type="email"
id="email"
name="email"
placeholder="your@email.com"
class="input input-bordered w-full"
class="input w-full"
autocomplete="email"
required
/>
</div>
</fieldset>
<div class="form-control">
<label class="label font-medium" for="password">
Password
</label>
<fieldset class="fieldset">
<legend class="fieldset-legend text-xs">Password</legend>
<input
type="password"
id="password"
name="password"
placeholder="Enter your password"
class="input input-bordered w-full"
class="input w-full"
autocomplete="current-password"
required
/>
</div>
</fieldset>
<button class="btn btn-primary w-full mt-6">Sign In</button>
<button class="btn btn-primary w-full my-4">Sign In</button>
</form>
<PasskeyLogin client:idle />
<div class="divider">OR</div>
<div class="divider text-xs">OR</div>
<div class="text-center">
<p class="text-sm text-base-content/70">
Don't have an account?
<a href="/signup" class="link link-primary font-semibold">Create one</a>
</p>
</div>
<p class="text-center text-sm text-base-content/60">
Don't have an account?
<a href="/signup" class="link link-primary font-semibold">Create one</a>
</p>
</div>
</div>
</div>