Files
WatchLink/src/app/login/page.tsx
MrSphay d3e84feedd
Some checks failed
Build / build (push) Failing after 1m29s
Release Dry Run / release-dry-run (push) Successful in 1m24s
Template Compliance / compliance (push) Failing after 5s
Initial WatchLink scaffold
2026-05-15 03:11:41 +02:00

32 lines
989 B
TypeScript

import Link from "next/link";
import { loginUser } from "@/lib/user-actions";
export default function LoginPage() {
return (
<main className="auth-page">
<section className="auth-card">
<div className="title-block" style={{ marginBottom: 18 }}>
<h1>Login</h1>
<p>Enter WatchLink with your username and password.</p>
</div>
<form className="form" action={loginUser}>
<label>
Username
<input className="input" name="username" autoComplete="username" required />
</label>
<label>
Password
<input className="input" name="password" type="password" autoComplete="current-password" required />
</label>
<button className="button primary" type="submit">
Login
</button>
<Link className="button" href="/register">
Create account
</Link>
</form>
</section>
</main>
);
}