aboutsummaryrefslogtreecommitdiff
path: root/web/src/app/dashboard/page.js
blob: bab3bd8f2d29aacc9822ee1b578555d00debcaca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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("/");

    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>
                    </div>

                    <div className="flex items-center space-x-4">
                        <p className="text-sm md:text-base">Welcome {session.user?.username}!</p>
                        <SignOut />
                    </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>
        </>
    )
}