Skip to content

Commit 6877fde

Browse files
added a login page
1 parent fa85f2a commit 6877fde

1 file changed

Lines changed: 59 additions & 0 deletions

File tree

client/src/pages/login.tsx

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
import { Button } from "@/components/ui/button";
2+
import {
3+
Card,
4+
CardContent,
5+
CardDescription,
6+
CardFooter,
7+
CardHeader,
8+
CardTitle,
9+
} from "@/components/ui/card";
10+
import { Input } from "@/components/ui/input";
11+
12+
export default function Login() {
13+
return (
14+
<div className="flex min-h-screen items-center justify-center bg-muted">
15+
<Card className="w-full max-w-sm">
16+
<CardHeader>
17+
<CardTitle>Login to your account</CardTitle>
18+
<CardDescription>
19+
Enter your email below to login to your account
20+
</CardDescription>
21+
<Button variant="link">Sign Up</Button>
22+
</CardHeader>
23+
<CardContent>
24+
<form>
25+
<div className="flex flex-col gap-6">
26+
<div className="grid gap-2">
27+
<Input
28+
id="email"
29+
type="email"
30+
placeholder="m@example.com"
31+
required
32+
/>
33+
</div>
34+
<div className="grid gap-2">
35+
<div className="flex items-center">
36+
<a
37+
href="#"
38+
className="ml-auto inline-block text-sm underline-offset-4 hover:underline"
39+
>
40+
Forgot your password?
41+
</a>
42+
</div>
43+
<Input id="password" type="password" required />
44+
</div>
45+
</div>
46+
</form>
47+
</CardContent>
48+
<CardFooter className="flex-col gap-2">
49+
<Button type="submit" className="w-full">
50+
Login
51+
</Button>
52+
<Button variant="outline" className="w-full">
53+
Login with Google
54+
</Button>
55+
</CardFooter>
56+
</Card>
57+
</div>
58+
);
59+
}

0 commit comments

Comments
 (0)