New API + API Token Updates

This commit is contained in:
2026-01-16 13:20:11 -07:00
parent 756ab2a38f
commit 4412229990
26 changed files with 1661 additions and 1012 deletions

View File

@@ -7,48 +7,48 @@ if (Astro.locals.user) {
---
<Layout title="Login - Chronus">
<div class="flex justify-center items-center min-h-screen bg-gradient-to-br from-base-100 via-base-200 to-base-300">
<div class="flex justify-center items-center min-h-screen bg-base-100">
<div class="card bg-base-100 shadow-2xl w-full max-w-md mx-4">
<div class="card-body">
<img src="/src/assets/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>
<form action="/api/auth/login" method="POST" class="space-y-4">
<label class="form-control">
<div class="label">
<span class="label-text font-medium">Email</span>
</div>
<input
type="email"
name="email"
placeholder="your@email.com"
class="input input-bordered w-full"
required
<input
type="email"
name="email"
placeholder="your@email.com"
class="input input-bordered w-full"
required
/>
</label>
<label class="form-control">
<div class="label">
<span class="label-text font-medium">Password</span>
</div>
<input
type="password"
name="password"
placeholder="Enter your password"
class="input input-bordered w-full"
required
<input
type="password"
name="password"
placeholder="Enter your password"
class="input input-bordered w-full"
required
/>
</label>
<button class="btn btn-primary w-full mt-6">Sign In</button>
</form>
<div class="divider">OR</div>
<div class="text-center">
<p class="text-sm text-base-content/70">
Don't have an account?
Don't have an account?
<a href="/signup" class="link link-primary font-semibold">Create one</a>
</p>
</div>