Skip to content

Commit 3cc576a

Browse files
committed
Add placeholder logic to navigate to home page
1 parent be1f475 commit 3cc576a

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

frontend/src/app/components/auth/LoginForm.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"use cilent";
1+
"use client";
22

33
import { Button } from "@/components/ui/button";
44
import { Card, CardTitle, CardHeader, CardContent } from "@/components/ui/card";
@@ -9,6 +9,10 @@ import Link from "next/link";
99
export default function LoginForm() {
1010

1111

12+
function handleLogin() {
13+
window.location.href = "/home";
14+
};
15+
1216
return (
1317
<Card className="min-h-[50%] min-w-[40%]">
1418
<CardHeader className="mt-5">
@@ -36,14 +40,14 @@ export default function LoginForm() {
3640
</div>
3741

3842
<div className="flex justify-center ">
39-
<Button className="w-full">
43+
<Button onClick={() => handleLogin()} className="w-full">
4044
Login
4145
</Button>
4246
</div>
4347

4448
<div className="flex">
4549
<div>
46-
Don't have an account?
50+
Do not have an account?
4751
</div>
4852
<Link href="/auth/signup" className="ml-3 text-blue-500 hover:underline">
4953
Signup

frontend/src/app/home/page.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export default function HomePage() {
2+
return (
3+
<div>
4+
This is a home page
5+
</div>
6+
)
7+
}

0 commit comments

Comments
 (0)