diff options
Diffstat (limited to 'frontend/src/app')
-rw-r--r-- | frontend/src/app/api/auth/[auth0]/route.ts | 2 | ||||
-rw-r--r-- | frontend/src/app/dashboard/page.tsx | 18 | ||||
-rw-r--r-- | frontend/src/app/globals.css | 6 | ||||
-rw-r--r-- | frontend/src/app/layout.tsx | 30 | ||||
-rw-r--r-- | frontend/src/app/page.tsx | 44 |
5 files changed, 50 insertions, 50 deletions
diff --git a/frontend/src/app/api/auth/[auth0]/route.ts b/frontend/src/app/api/auth/[auth0]/route.ts index fc08676..3ce09af 100644 --- a/frontend/src/app/api/auth/[auth0]/route.ts +++ b/frontend/src/app/api/auth/[auth0]/route.ts @@ -1,3 +1,3 @@ -import {handleAuth} from '@auth0/nextjs-auth0'; +import { handleAuth } from "@auth0/nextjs-auth0"; export const GET = handleAuth(); diff --git a/frontend/src/app/dashboard/page.tsx b/frontend/src/app/dashboard/page.tsx index 910ccc7..8ca17c6 100644 --- a/frontend/src/app/dashboard/page.tsx +++ b/frontend/src/app/dashboard/page.tsx @@ -1,15 +1,15 @@ -import {Metadata} from "next"; +import { Metadata } from "next"; import Link from "next/link"; export const metadata: Metadata = { - title: "IBD Trader Dashboard", -} + title: "IBD Trader Dashboard", +}; export default function Dashboard() { - return ( - <div> - <h1>Dashboard</h1> - <Link href="/api/auth/logout">Logout</Link> - </div> - ) + return ( + <div> + <h1>Dashboard</h1> + <Link href="/api/auth/logout">Logout</Link> + </div> + ); } diff --git a/frontend/src/app/globals.css b/frontend/src/app/globals.css index 79008c2..39a9271 100644 --- a/frontend/src/app/globals.css +++ b/frontend/src/app/globals.css @@ -3,7 +3,7 @@ @tailwind utilities; @layer utilities { - .text-balance { - text-wrap: balance; - } + .text-balance { + text-wrap: balance; + } } diff --git a/frontend/src/app/layout.tsx b/frontend/src/app/layout.tsx index 00da3a9..7eae606 100644 --- a/frontend/src/app/layout.tsx +++ b/frontend/src/app/layout.tsx @@ -1,21 +1,23 @@ -import type {Metadata} from "next"; -import {Inter} from "next/font/google"; +import type { Metadata } from "next"; +import { Inter } from "next/font/google"; import "./globals.css"; -import {UserProvider} from "@auth0/nextjs-auth0/client"; +import { UserProvider } from "@auth0/nextjs-auth0/client"; -const inter = Inter({subsets: ["latin"]}); +const inter = Inter({ subsets: ["latin"] }); export const metadata: Metadata = { - title: "Create Next App", - description: "Generated by create next app", + title: "Create Next App", + description: "Generated by create next app", }; -export default function RootLayout({children,}: Readonly<{ children: React.ReactNode; }>) { - return ( - <html lang="en"> - <UserProvider> - <body className={inter.className}>{children}</body> - </UserProvider> - </html> - ); +export default function RootLayout({ + children, +}: Readonly<{ children: React.ReactNode }>) { + return ( + <html lang="en"> + <UserProvider> + <body className={inter.className}>{children}</body> + </UserProvider> + </html> + ); } diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx index 9f42d3a..13777a9 100644 --- a/frontend/src/app/page.tsx +++ b/frontend/src/app/page.tsx @@ -1,33 +1,31 @@ import Image from "next/image"; -import {Metadata} from "next"; +import { Metadata } from "next"; import Link from "next/link"; -import {getSession} from "@auth0/nextjs-auth0"; -import {redirect} from "next/navigation"; +import { getSession } from "@auth0/nextjs-auth0"; +import { redirect } from "next/navigation"; export const metadata: Metadata = { - title: "IBD Trader", -} + title: "IBD Trader", +}; export default async function Home() { - const user = await getSession(); + const user = await getSession(); - if (user) { - redirect("/dashboard") - } + 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> + 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> + ); } |