diff options
author | 2024-08-11 13:18:53 -0700 | |
---|---|---|
committer | 2024-08-11 13:18:53 -0700 | |
commit | 18b7853ed8909c08bf7d545613dd111a3387a1ca (patch) | |
tree | 45fc90bc762f1de1154266d4aede37d209f3f81f /frontend/src/app/page.tsx | |
parent | f35fb7715984148990b3195d7ea8c5b355223387 (diff) | |
parent | a9ec4cdbdab6f8026128728c34afa3150663a18b (diff) | |
download | ibd-trader-18b7853ed8909c08bf7d545613dd111a3387a1ca.tar.gz ibd-trader-18b7853ed8909c08bf7d545613dd111a3387a1ca.tar.zst ibd-trader-18b7853ed8909c08bf7d545613dd111a3387a1ca.zip |
Merge remote-tracking branch 'frontend/main'
Diffstat (limited to 'frontend/src/app/page.tsx')
-rw-r--r-- | frontend/src/app/page.tsx | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx new file mode 100644 index 0000000..13777a9 --- /dev/null +++ b/frontend/src/app/page.tsx @@ -0,0 +1,31 @@ +import Image from "next/image"; +import { Metadata } from "next"; +import Link from "next/link"; +import { getSession } from "@auth0/nextjs-auth0"; +import { redirect } from "next/navigation"; + +export const metadata: Metadata = { + title: "IBD Trader", +}; + +export default async function Home() { + const user = await getSession(); + + if (user) { + redirect("/dashboard"); + } + + return ( + <div className="min-h-screen flex flex-col items-center justify-center bg-gray-100"> + <main className="flex flex-col items-center justify-center w-full flex-1 px-20 text-center"> + <div className="flex justify-center"> + <Image src="/logo.svg" alt="IBD Trader" width={200} height={200} /> + </div> + <h1 className="text-6xl font-bold mt-4">Trader</h1> + <button className="mt-16 px-6 py-3 bg-blue-500 text-white rounded-md hover:bg-blue-600"> + <Link href="/api/auth/login">Login</Link> + </button> + </main> + </div> + ); +} |