Skip to content

Commit be1f475

Browse files
committed
Add UI for signup form
1 parent 1217073 commit be1f475

File tree

2 files changed

+62
-2
lines changed

2 files changed

+62
-2
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import SignupForm from "@/app/components/auth/SignUpForm";
2+
13
export default function SignUpPage() {
24
return (
3-
<div>
4-
SignUp Page
5+
<div className="h-screen flex items-center justify-center">
6+
<SignupForm/>
57
</div>
68
)
79
}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
"use client";
2+
3+
import { Button } from "@/components/ui/button";
4+
import { Card, CardTitle, CardHeader, CardContent } from "@/components/ui/card";
5+
import { Input } from "@/components/ui/input";
6+
import { Label } from "@/components/ui/label";
7+
8+
export default function SignupForm() {
9+
10+
function NavigateToLogin() {
11+
window.location.href = "/auth/login";
12+
};
13+
14+
return (
15+
<Card className="min-h-[50%] min-w-[40%]">
16+
<CardHeader className="mt-5">
17+
<CardTitle className="text-center text-4xl font-bold">
18+
Register an account
19+
</CardTitle>
20+
</CardHeader>
21+
22+
<CardContent className="px-15 pt-10">
23+
<form>
24+
<div className="flex flex-col gap-4">
25+
<div>
26+
<Label className="m-2">
27+
Email
28+
</Label>
29+
<Input name="email" type="email" required>
30+
</Input>
31+
</div>
32+
<div>
33+
<Label className="m-2">
34+
Password
35+
</Label>
36+
<Input name="password" type="password" required>
37+
</Input>
38+
</div>
39+
40+
<div className="flex justify-center ">
41+
<Button className="w-full">
42+
Register
43+
</Button>
44+
</div>
45+
46+
<div>
47+
<Button onClick={() => NavigateToLogin()}>
48+
Back
49+
</Button>
50+
</div>
51+
52+
</div>
53+
</form>
54+
</CardContent>
55+
56+
</Card>
57+
)
58+
}

0 commit comments

Comments
 (0)