feat: zeropost-web — публичный AI-блог на zeropost.ru

- Next.js 16, Tailwind с @tailwindcss/typography
- Главная: hero, featured-статья, сетка карточек, облако тегов
- /blog/[slug]: статья со SSG + revalidate 60s, prose typography
- /tag/[name]: фильтр по тегам
- /about: про проект
- /api/cron/generate: endpoint для авто-генерации (защищён x-cron-token)
- SEO: dynamic metadata, OG, sitemap-ready
- Лента грузится с zeropost-engine /api/articles
This commit is contained in:
Alexey Pavlov
2026-05-31 08:50:35 +03:00
parent adea4b80de
commit 6dfe8b8afa
20 changed files with 2913 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
import Link from 'next/link';
import { Sparkles, Github } from 'lucide-react';
export default function Header() {
return (
<header className="border-b border-border/60 sticky top-0 z-20 bg-bg/85 backdrop-blur-md">
<div className="container-wide flex items-center justify-between py-4">
<Link href="/" className="flex items-center gap-2 group">
<div className="w-8 h-8 rounded-lg bg-accent/15 flex items-center justify-center group-hover:bg-accent/25 transition-colors">
<Sparkles className="w-4 h-4 text-accent" />
</div>
<span className="font-bold text-lg tracking-tight">ZeroPost</span>
</Link>
<nav className="flex items-center gap-1 sm:gap-4 text-sm">
<Link href="/" className="btn-ghost text-sm py-1.5">Статьи</Link>
<Link href="/about" className="btn-ghost text-sm py-1.5">О проекте</Link>
<a href="https://app.zeropost.ru" className="btn-primary text-sm py-1.5">
Открыть кабинет
</a>
</nav>
</div>
</header>
);
}