import { home } from '@/routes';
import { Link } from '@inertiajs/react';
import { type PropsWithChildren } from 'react';

export default function AuthCardLayout({
    children,
    title,
    description,
}: PropsWithChildren<{
    name?: string;
    title?: string;
    description?: string;
}>) {
    return (
        <div className="flex min-h-svh flex-col items-center justify-center gap-6 bg-gradient-to-br from-sky-100 via-violet-100 to-emerald-200 p-6 md:p-10">
            <div className="flex w-full max-w-sm flex-col gap-6">
                <Link
                    href={home()}
                    className="flex items-center gap-2 self-center font-medium"
                >
                    <div className="flex flex-col items-center justify-center">
                        <img
                            src="/2.png"
                            alt="Logo"
                            className="w-12 object-contain"
                        />
                        <span className="mt-5 text-sm font-bold text-emerald-500 uppercase">
                            sistem informasi{' '}
                            <span className="text-primary dark:text-black">
                                perencanaan
                            </span>
                        </span>
                    </div>
                </Link>
                <div className="flex flex-col gap-4">{children}</div>
            </div>
        </div>
    );
}
