- Create professional login page with two-column desktop layout - Add reusable LoginForm component with validation - Implement show/hide password toggle - Add loading state and error handling with next-auth - Create auth layout with gradient background and decorative patterns - Include branding with Padel Pro logo and feature highlights - Responsive design: stacked layout on mobile Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
32 lines
1.3 KiB
TypeScript
32 lines
1.3 KiB
TypeScript
import { AuthProvider } from '@/components/providers/auth-provider';
|
|
|
|
export default function AuthLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<AuthProvider>
|
|
<div className="min-h-screen flex items-center justify-center bg-gradient-to-br from-primary-900 via-primary-800 to-primary-700 relative overflow-hidden">
|
|
{/* Decorative pattern background */}
|
|
<div className="absolute inset-0 opacity-10">
|
|
<div
|
|
className="absolute inset-0"
|
|
style={{
|
|
backgroundImage: `url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,
|
|
backgroundSize: '60px 60px',
|
|
}}
|
|
/>
|
|
</div>
|
|
|
|
{/* Decorative shapes */}
|
|
<div className="absolute top-0 left-0 w-96 h-96 bg-accent/20 rounded-full blur-3xl -translate-x-1/2 -translate-y-1/2" />
|
|
<div className="absolute bottom-0 right-0 w-96 h-96 bg-primary-500/30 rounded-full blur-3xl translate-x-1/2 translate-y-1/2" />
|
|
|
|
{/* Content */}
|
|
<div className="relative z-10 w-full">{children}</div>
|
|
</div>
|
|
</AuthProvider>
|
|
);
|
|
}
|