mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-05 10:56:28 +00:00
39 lines
1.6 KiB
TypeScript
39 lines
1.6 KiB
TypeScript
import { Metadata } from "next";
|
|
import { ReactNode } from "react"
|
|
import Logo from "../(dashboard)/components/Logo";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Sign-in to your account",
|
|
}
|
|
|
|
export default async function AuthenticationLayout({
|
|
children, // will be a page or nested layout
|
|
}: {
|
|
children: ReactNode,
|
|
}) {
|
|
|
|
return (
|
|
<>
|
|
<main className="flex justify-center items-center min-h-screen">
|
|
<div className="w-full 2xl:max-w-[1400px] h-screen sm:h-[800px] px-8 dark:border dark:border-zinc-800 sm:rounded-2xl shadow relative flex flex-col items-center justify-center md:grid lg:max-w-none lg:grid-cols-2 lg:px-0 bg-white dark:bg-zinc-950 lg:bg-none">
|
|
|
|
<div className="relative h-full flex-col p-10 text-white dark:border-r border-zinc-800 hidden lg:flex">
|
|
<div className="absolute inset-0 bg-zinc-900 2xl:rounded-l-2xl" />
|
|
<Logo className="z-20" />
|
|
<div className="relative z-20 mt-auto">
|
|
<blockquote className="space-y-2">
|
|
<p className="text-lg">
|
|
“Once a new technology rolls over you, if you're not part of the steamroller, you're part of the road.”
|
|
</p>
|
|
<footer className="text-sm">Stewart Brand</footer>
|
|
</blockquote>
|
|
</div>
|
|
</div>
|
|
|
|
{children}
|
|
</div>
|
|
|
|
</main>
|
|
</>
|
|
);
|
|
} |