251113_03_ENH : 베이스 아키텍처에 logout, main 추가

This commit is contained in:
2025-11-13 15:48:52 +09:00
parent 419f27eb9f
commit 0707c91d41
7 changed files with 69 additions and 27 deletions

20
src/app/(main)/layout.tsx Normal file
View File

@@ -0,0 +1,20 @@
const MainLayout = ({ children }: { children: React.ReactNode}) => {
return (
<div className="min-h-screen flex flex-col">
{/* 공통 헤더 */}
<header className="h-14 border-b px-4 flex items-center">
<h1 className="font-semibold">Contact Admin</h1>
</header>
{/* 메인 컨텐츠 영역 */}
<main className="flex-1 flex">
{/* 필요하면 사이드바 */}
{/* <aside className="w-60 border-r">사이드바</aside> */}
<section className="flex-1 p-4">{children}</section>
</main>
</div>
);
}
export default MainLayout;