Files
zeropost-web/components/Header.js
T
Alexey Pavlov 6dfe8b8afa 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
2026-05-31 08:50:35 +03:00

25 lines
1.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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>
);
}