5.1 앱 레이아웃/헤더/푸터/사이드바 구성
This commit is contained in:
9
src/app/components/AppFooter.tsx
Normal file
9
src/app/components/AppFooter.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
export function AppFooter() {
|
||||
return (
|
||||
<footer style={{ padding: 12, borderTop: "1px solid #eee", marginTop: 24 }}>
|
||||
© msg App
|
||||
</footer>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
13
src/app/components/AppHeader.tsx
Normal file
13
src/app/components/AppHeader.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
export function AppHeader() {
|
||||
return (
|
||||
<header style={{ display: "flex", justifyContent: "space-between", padding: 12 }}>
|
||||
<div>msg App</div>
|
||||
<nav style={{ display: "flex", gap: 12 }}>
|
||||
<a href="/">홈</a>
|
||||
<a href="/boards">게시판</a>
|
||||
</nav>
|
||||
</header>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
12
src/app/components/AppSidebar.tsx
Normal file
12
src/app/components/AppSidebar.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
export function AppSidebar() {
|
||||
return (
|
||||
<aside style={{ width: 200, borderRight: "1px solid #eee", padding: 12 }}>
|
||||
<ul style={{ display: "flex", flexDirection: "column", gap: 8 }}>
|
||||
<li><a href="/boards">게시판</a></li>
|
||||
<li><a href="/admin">관리</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user