AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

auth-card-layout.tsx 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import { Link } from '@inertiajs/react';
  2. import type { PropsWithChildren } from 'react';
  3. import AppLogoIcon from '@/components/app-logo-icon';
  4. import {
  5. Card,
  6. CardContent,
  7. CardDescription,
  8. CardHeader,
  9. CardTitle,
  10. } from '@/components/ui/card';
  11. import { home } from '@/routes';
  12. export default function AuthCardLayout({
  13. children,
  14. title,
  15. description,
  16. }: PropsWithChildren<{
  17. name?: string;
  18. title?: string;
  19. description?: string;
  20. }>) {
  21. return (
  22. <div className="flex min-h-svh flex-col items-center justify-center gap-6 bg-muted p-6 md:p-10">
  23. <div className="flex w-full max-w-md flex-col gap-6">
  24. <Link
  25. href={home()}
  26. className="flex items-center gap-2 self-center font-medium"
  27. >
  28. <div className="flex h-9 w-9 items-center justify-center">
  29. <AppLogoIcon className="size-9 fill-current text-black dark:text-white" />
  30. </div>
  31. </Link>
  32. <div className="flex flex-col gap-6">
  33. <Card className="rounded-xl">
  34. <CardHeader className="px-10 pt-8 pb-0 text-center">
  35. <CardTitle className="text-xl">{title}</CardTitle>
  36. <CardDescription>{description}</CardDescription>
  37. </CardHeader>
  38. <CardContent className="px-10 py-8">
  39. {children}
  40. </CardContent>
  41. </Card>
  42. </div>
  43. </div>
  44. </div>
  45. );
  46. }