feat: 카드뉴스 포스트(관리자 admin/, /v1/card API, 피드 이미지 슬라이드), 인스타 홍보 기획 문서
This commit is contained in:
1 parent
96cbd19c61
commit
739a8c59eb
107 files changed
+17684
-19
No files matched your search
@@ -0,0 +1,39 @@
|
||||
import { NavLink, Outlet } from 'react-router'
|
||||
|
||||
const NAV = [
|
||||
{ to: '/', label: '인스타 카드', end: true },
|
||||
{ to: '/history', label: '만든 카드', end: false },
|
||||
]
|
||||
|
||||
export function AdminLayout() {
|
||||
return (
|
||||
<div className="flex min-h-full flex-col">
|
||||
<header className="sticky top-0 z-10 border-b border-line bg-rail/95 backdrop-blur-sm">
|
||||
<div className="mx-auto flex h-14 max-w-[1440px] items-center gap-6 px-4 sm:px-6">
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="relative block size-5 rounded-full bg-orange shadow-[0_2px_0_var(--color-rust)]" aria-hidden="true" />
|
||||
<span className="font-brand text-[21px] leading-none">날씨각</span>
|
||||
<span className="ml-1 rounded-md bg-panel px-1.5 py-0.5 text-[11px] font-semibold text-ink-soft">관리자</span>
|
||||
</div>
|
||||
<nav className="flex gap-1">
|
||||
{NAV.map((n) => (
|
||||
<NavLink
|
||||
key={n.to}
|
||||
to={n.to}
|
||||
end={n.end}
|
||||
className={({ isActive }) =>
|
||||
`rounded-lg px-3 py-1.5 text-[14px] font-semibold transition-colors duration-150 ${isActive ? 'bg-panel text-ink shadow-[0_1px_2px_#28304a14]' : 'text-ink-soft hover:bg-panel/60'}`
|
||||
}
|
||||
>
|
||||
{n.label}
|
||||
</NavLink>
|
||||
))}
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
<main className="min-w-0 flex-1">
|
||||
<Outlet />
|
||||
</main>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user