website refactor

This commit is contained in:
2026-01-14 10:51:05 +01:00
parent 4522d41aef
commit 0d89ad027e
291 changed files with 6887 additions and 3685 deletions

View File

@@ -1,6 +1,7 @@
import { headers } from 'next/headers';
import { redirect } from 'next/navigation';
import { createRouteGuard } from '@/lib/auth/createRouteGuard';
import { AuthContainer } from '@/components/ui/AuthContainer';
interface AuthLayoutProps {
children: React.ReactNode;
@@ -11,7 +12,7 @@ interface AuthLayoutProps {
*
* Provides authentication route protection for all auth routes.
* Uses RouteGuard to enforce access control server-side.
*
*
* Behavior:
* - Unauthenticated users can access auth pages (login, signup, etc.)
* - Authenticated users are redirected away from auth pages
@@ -26,9 +27,5 @@ export default async function AuthLayout({ children }: AuthLayoutProps) {
redirect(result.to);
}
return (
<div className="min-h-screen bg-deep-graphite flex items-center justify-center p-4">
{children}
</div>
);
return <AuthContainer>{children}</AuthContainer>;
}