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

auth-simple-layout.tsx 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { Link } 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 AuthSimpleLayout({
  6. children,
  7. title,
  8. description,
  9. }: AuthLayoutProps) {
  10. return (
  11. <div className="flex min-h-svh flex-col items-center justify-center gap-6 bg-background p-6 md:p-10">
  12. <div className="w-full max-w-sm">
  13. <div className="flex flex-col gap-8">
  14. <div className="flex flex-col items-center gap-4">
  15. <Link
  16. href={home()}
  17. className="flex flex-col items-center gap-2 font-medium"
  18. >
  19. <div className="mb-1 flex h-9 w-9 items-center justify-center rounded-md">
  20. <AppLogoIcon className="size-9 fill-current text-[var(--foreground)] dark:text-white" />
  21. </div>
  22. <span className="sr-only">{title}</span>
  23. </Link>
  24. <div className="space-y-2 text-center">
  25. <h1 className="text-xl font-medium">{title}</h1>
  26. <p className="text-center text-sm text-muted-foreground">
  27. {description}
  28. </p>
  29. </div>
  30. </div>
  31. {children}
  32. </div>
  33. </div>
  34. </div>
  35. );
  36. }