refactor(admin): top nav → left sidebar with grouped sections

Top horizontal nav was getting cramped at 8 items. Sidebar:
- 240px fixed left, full-height
- 3 groups: Контент (Статьи / Черновики / Заметки / Зеро),
  Публикации (Каналы / Автогенерация), Система (Настройки)
- Сайт + Выход pinned at bottom
- Mobile: hides off-screen with hamburger toggle + backdrop overlay

Layout: main now pl-60 on md+ (slides under sidebar), no padding on mobile
since sidebar overlays. Content keeps max-w-6xl + mx-auto, so visual layout
on individual pages doesn't change.
This commit is contained in:
Aleksei Pavlov
2026-06-19 11:45:24 +03:00
parent 4c0942d11b
commit 0b4895bb97
2 changed files with 114 additions and 42 deletions
+6 -2
View File
@@ -8,8 +8,12 @@ export default async function AdminLayout({ children }) {
return (
<div className="min-h-screen bg-stone-50 dark:bg-neutral-950">
<AdminNav />
<main className="max-w-6xl mx-auto px-4 py-8">
{children}
{/* Отступ слева под фиксированный sidebar (240px = w-60); на мобилке без отступа,
sidebar выезжает поверх контента через бэкдроп */}
<main className="md:pl-60">
<div className="max-w-6xl mx-auto px-4 py-8 pt-14 md:pt-8">
{children}
</div>
</main>
</div>
);