signup & login UI

This commit is contained in:
2025-02-08 22:09:30 +08:00
parent c0783ef4a5
commit 3fcddf2d20
4 changed files with 219 additions and 5 deletions

View File

@@ -0,0 +1,48 @@
import { Input, Checkbox, Button, Link } from "@heroui/react";
import { IconMail, IconLock } from "@tabler/icons-react";
export default function LoginView({ onSignup }: { onSignup: () => void }) {
return (
<div className="flex flex-col gap-6">
<div className="flex flex-col">
<p className="text-3xl">Welcome back!</p>
<p className="text-md opacity-50">
Let us know who you are, and we will let you in.
</p>
</div>
<div className="flex flex-col gap-2">
<Input endContent={<IconMail />} label="Email" />
<Input endContent={<IconLock />} label="Password" type="password" />
</div>
<div className="flex py-2 px-1 justify-between">
<Checkbox
classNames={{
label: "text-small",
}}
>
Remember me
</Checkbox>
<Link color="primary" href="#" size="sm">
Forgot password?
</Link>
</div>
<div className="flex flex-col gap-4 w-full">
<Button color="primary" className="w-full">
Login
</Button>
<div className="flex flex-row gap-2 w-full justify-center *:my-auto">
<p className="text-sm">Don't have an account?</p>
<Link
color="primary"
onPress={() => {
onSignup();
}}
className="text-sm"
>
Sign up
</Link>
</div>
</div>
</div>
);
}