- Add segment-level loading.tsx for dashboard, search, admin, and auth routes - Add segment-level error.tsx with Vietnamese error messages for all route groups - Add skip-to-content navigation link in root layout - Add id="main-content" to all layout main elements - Add aria-label to nav elements and mobile menu buttons - Improve dashboard nav responsiveness (icon-only on mobile) - Hide user name on small screens in dashboard layout Co-Authored-By: Paperclip <noreply@paperclip.ing>
8 lines
278 B
TypeScript
8 lines
278 B
TypeScript
export default function AuthLayout({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<main id="main-content" className="flex min-h-screen items-center justify-center bg-muted/40 px-4 py-12">
|
|
<div className="w-full max-w-md">{children}</div>
|
|
</main>
|
|
);
|
|
}
|