aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/app/signin/page.tsx
blob: 4dc91becefacdd0bf93b15f5415387d534915b09 (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
import { redirect } from "next/dist/client/components/navigation";
import HoarderLogo from "@/components/HoarderIcon";
import SignInForm from "@/components/signin/SignInForm";
import { getServerAuthSession } from "@/server/auth";

export default async function SignInPage() {
  const session = await getServerAuthSession();
  if (session) {
    redirect("/");
  }

  return (
    <div className="grid min-h-screen grid-rows-6 justify-center">
      <span className="row-span-1" />
      <div className="row-span-1 flex w-96 items-center justify-center space-x-2">
        <HoarderLogo height={100} />
      </div>
      <div className="row-span-4 px-3">
        <SignInForm />
      </div>
    </div>
  );
}