AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import { Link, usePage } from '@inertiajs/react';
  2. import AppLogoIcon from '@/components/app-logo-icon';
  3. import { home } from '@/routes';
  4. import type { AuthLayoutProps } from '@/types';
  5. export default function AuthSplitLayout({
  6. children,
  7. title,
  8. description,
  9. }: AuthLayoutProps) {
  10. const { name } = usePage().props;
  11. return (
  12. <div className="relative grid h-dvh flex-col items-center justify-center px-8 sm:px-0 lg:max-w-none lg:grid-cols-2 lg:px-0">
  13. <div className="relative hidden h-full flex-col bg-muted p-10 text-white lg:flex dark:border-r">
  14. <div className="absolute inset-0 bg-zinc-900" />
  15. <Link
  16. href={home()}
  17. className="relative z-20 flex items-center text-lg font-medium"
  18. >
  19. <AppLogoIcon className="mr-2 size-8 fill-current text-white" />
  20. {name}
  21. </Link>
  22. </div>
  23. <div className="w-full lg:p-8">
  24. <div className="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]">
  25. <Link
  26. href={home()}
  27. className="relative z-20 flex items-center justify-center lg:hidden"
  28. >
  29. <AppLogoIcon className="h-10 fill-current text-black sm:h-12" />
  30. </Link>
  31. <div className="flex flex-col items-start gap-2 text-left sm:items-center sm:text-center">
  32. <h1 className="text-xl font-medium">{title}</h1>
  33. <p className="text-sm text-balance text-muted-foreground">
  34. {description}
  35. </p>
  36. </div>
  37. {children}
  38. </div>
  39. </div>
  40. </div>
  41. );
  42. }