feat: แกไขสวน backend ใหเขากบ frontend

This commit is contained in:
admin
2025-09-27 11:30:31 +07:00
parent 4cb7801fe8
commit db7030883f
7 changed files with 693 additions and 333 deletions

View 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">
&copy; {new Date().getFullYear()} np-dms.work
</div>
</div>
</body>
</html>
);
}