aboutsummaryrefslogtreecommitdiff
path: root/web/src/app/dashboard
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/dashboard
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/dashboard')
-rw-r--r--web/src/app/dashboard/page.js65
1 files changed, 35 insertions, 30 deletions
diff --git a/web/src/app/dashboard/page.js b/web/src/app/dashboard/page.js
index bab3bd8..a252958 100644
--- a/web/src/app/dashboard/page.js
+++ b/web/src/app/dashboard/page.js
@@ -1,39 +1,44 @@
-import { redirect } from "next/navigation";
-import { auth } from "@/lib/auth";
-import SignOut from "@/app/components/sign-out";
-import Guilds from "@/app/components/Guilds";
-
-export default async function Home() {
- const session = await auth();
- if (!session) redirect("/");
+import Navbar from "@/app/components/Navbar";
+export default function Dashboard() {
return (
<>
- <nav className="bg-gray-900 text-white">
- <div className="max-w-screen-xl flex items-center justify-between mx-auto p-4">
- <div className="flex items-center">
- <h1 className="text-xl font-medium">AleeBot</h1>
+ <Navbar />
+ <div className="flex flex-col gap-4 p-12">
+ <h1 className="text-3xl">Guilds</h1>
+ <div className="grid grid-cols-2 md:grid-cols-4 gap-4">
+ <div className="p-4 bg-gray-900 rounded-md">
+ <h2 className="text-lg font-medium">Server 1</h2>
+ <p>ID: 23893249843983489 - Members: 30</p>
+ <span>Leave</span> {/* Add an "are you sure prompt" */}
</div>
-
- <div className="flex items-center space-x-4">
- <p className="text-sm md:text-base">Welcome {session.user?.username}!</p>
- <SignOut />
+ <div className="p-4 bg-gray-900 rounded-md">
+ <h2 className="text-lg font-medium">Server 2</h2>
+ <p>ID: 23893249843983489 - Members: 30</p>
+ <span>Leave</span>
+ </div>
+ <div className="p-4 bg-gray-900 rounded-md">
+ <h2 className="text-lg font-medium">Server 3</h2>
+ <p>ID: 23893249843983489 - Members: 30</p>
+ <span>Leave</span>
+ </div>
+ <div className="p-4 bg-gray-900 rounded-md">
+ <h2 className="text-lg font-medium">Server 4</h2>
+ <p>ID: 23893249843983489 - Members: 30</p>
+ <span>Leave</span>
+ </div>
+ <div className="p-4 bg-gray-900 rounded-md">
+ <h2 className="text-lg font-medium">Server 5</h2>
+ <p>ID: 23893249843983489 - Members: 30</p>
+ <span>Leave</span>
+ </div>
+ <div className="p-4 bg-gray-900 rounded-md">
+ <h2 className="text-lg font-medium">Server 6</h2>
+ <p>ID: 23893249843983489 - Members: 30</p>
+ <span>Leave</span>
</div>
- </div>
- </nav>
- <div className="flex">
- <div>
- <div>Settings</div>
- <Guilds session={session} />
- </div>
- <div>
- <h1 className="text-2xl">Logging</h1>
- <h2>Channel 1</h2>
- <h2>Channel 2</h2>
- <h1 className="text-2xl">Quote of the Day</h1>
- <h1 className="text-2xl">LLM Chatbot</h1>
</div>
</div>
</>
- )
+ );
}