feat: แกไขสวน backend ใหเขากบ frontend
This commit is contained in:
33
frontend/app/(auth)/layout.jsx
Normal file
33
frontend/app/(auth)/layout.jsx
Normal file
@@ -0,0 +1,33 @@
|
||||
// frontend/app/(auth)/layout.jsx
|
||||
|
||||
export const metadata = {
|
||||
title: "Authentication | DMS",
|
||||
description:
|
||||
"Login and user authentication pages for Document Management System",
|
||||
};
|
||||
|
||||
export default function AuthLayout({ children }) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<body className="min-h-screen flex items-center justify-center bg-gradient-to-br from-sky-50 to-sky-100">
|
||||
<div className="w-full max-w-md rounded-2xl shadow-lg bg-white p-6">
|
||||
{/* Header */}
|
||||
<div className="mb-6 text-center">
|
||||
<h1 className="text-2xl font-bold text-sky-800">
|
||||
Document Management System
|
||||
</h1>
|
||||
<p className="text-sm text-sky-600">LCBP3 Project</p>
|
||||
</div>
|
||||
|
||||
{/* Main content (children = page.jsx ของ login/register) */}
|
||||
<main>{children}</main>
|
||||
|
||||
{/* Footer */}
|
||||
<div className="mt-6 text-center text-xs text-gray-500">
|
||||
© {new Date().getFullYear()} np-dms.work
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user