diff --git a/src/app/login/page.tsx b/src/app/login/page.tsx index c9be261..0558517 100644 --- a/src/app/login/page.tsx +++ b/src/app/login/page.tsx @@ -1,44 +1,69 @@ -import Image from "next/image"; + import { Suspense } from "react"; import { redirect } from "next/navigation"; import { getCurrentUser } from "@/lib/auth"; import { firstParam, safeNextPath } from "@/lib/utils"; import { LoginForm } from "./login-form"; -export default function LoginPage({ searchParams }: PageProps<"/login">) { +export default function LoginPage({ + searchParams, +}: PageProps<"/login">) { return ( -
-
-

Sign in to find your team.

-

- We'll email you a sign-in code. No password to remember at 3am. +

+ + {/* Left: Introduction */} +
+

+ + Sign in to find your team. +

+ +

+ No password to remember at 3am.

- }> +
+ + {/* Right: Login */} +
+

+ We'll email you a sign-in code. +

+ + + } + > -
- -
- The bronze Tommy Trojan statue on the USC campus, sword raised, in front of red-brick university buildings. -
Tommy Trojan, USC campus.
-
+ +
); } -async function Login({ searchParams }: Pick, "searchParams">) { +async function Login({ + searchParams, +}: Pick, "searchParams">) { const params = await searchParams; - const next = safeNextPath(firstParam(params.next), "/profile"); + const next = safeNextPath( + firstParam(params.next), + "/profile" + ); - if (await getCurrentUser()) redirect(next); + if (await getCurrentUser()) { + redirect(next); + } - return ; + return ( + + ); }