39 lines
1.5 KiB
TypeScript
39 lines
1.5 KiB
TypeScript
import PortalProductIdentity from '@/components/portal-product-identity';
|
|
import { Link } from '@inertiajs/react';
|
|
import { home } from '@/routes';
|
|
import type { AuthLayoutProps } from '@/types';
|
|
|
|
export default function AuthSimpleLayout({
|
|
children,
|
|
title,
|
|
description,
|
|
}: AuthLayoutProps) {
|
|
return (
|
|
<div className="bg-background flex min-h-[28rem] flex-col items-center justify-start gap-6 p-6 md:p-8">
|
|
<div className="w-full max-w-sm">
|
|
<div className="flex flex-col gap-8">
|
|
<div className="flex flex-col items-center gap-4">
|
|
<Link
|
|
href={home()}
|
|
className="flex flex-col items-center gap-2 font-medium"
|
|
>
|
|
<div className="mb-1 flex min-h-12 items-center justify-center">
|
|
<PortalProductIdentity />
|
|
</div>
|
|
<span className="sr-only">{title}</span>
|
|
</Link>
|
|
|
|
<div className="space-y-2 text-center">
|
|
<h1 className="text-xl font-medium">{title}</h1>
|
|
<p className="text-muted-foreground text-center text-sm">
|
|
{description}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
{children}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|