aboutsummaryrefslogtreecommitdiff
path: root/web/src/app/page.js
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2025-03-25 14:13:06 -0400
committerAndrew Lee <andrew@alee14.me>2025-03-25 14:13:06 -0400
commit1c12d378d66b92b1674acd17640f2bac752da289 (patch)
treebc8a1ef5047be1ed2400f2204a0222a840375851 /web/src/app/page.js
parentad768e2b25b58d62a44aa2daeb1429a651d488e5 (diff)
downloadAleeBot-1c12d378d66b92b1674acd17640f2bac752da289.tar.gz
AleeBot-1c12d378d66b92b1674acd17640f2bac752da289.tar.bz2
AleeBot-1c12d378d66b92b1674acd17640f2bac752da289.zip
Converted public dashboard to admin dashboard; Made API have a consistent output message
Diffstat (limited to 'web/src/app/page.js')
-rw-r--r--web/src/app/page.js42
1 files changed, 28 insertions, 14 deletions
diff --git a/web/src/app/page.js b/web/src/app/page.js
index 76e5d27..99556e8 100644
--- a/web/src/app/page.js
+++ b/web/src/app/page.js
@@ -1,19 +1,33 @@
-import { redirect } from "next/navigation";
-import { auth } from "@/lib/auth";
+export default function Home() {
-export default async function Home() {
- const session = await auth();
- if (session) redirect("/dashboard");
- return (
- <>
- <main className="flex justify-center items-center h-screen">
- <form className="flex flex-col gap-4 w-80">
- <input for='username' type='text' placeholder='Username' />
- <input for='password' type='password' placeholder='Password' />
- <input for='api' type='url' placeholder='API URL' />
- <input type="submit" value="Login" />
+ return (
+ <main className="flex flex-col space-y-5 justify-center items-center h-screen">
+ <h1 className="text-4xl font-medium">AleeBot</h1>
+ <form className="flex flex-col gap-4 w-80">
+ <input
+ name="username"
+ type="text"
+ placeholder="Username"
+ required
+ />
+ <input
+ name="password"
+ type="password"
+ placeholder="Password"
+ required
+ />
+ <input
+ name="apiUrl"
+ type="url"
+ placeholder="API URL"
+ required
+ />
+ <button
+ type="submit"
+ className="bg-blue-500 hover:bg-blue-700 text-white py-2 px-4 rounded"
+ >Login
+ </button>
</form>
</main>
- </>
);
}