import Link from 'next/link'; import Header from '@/components/Header'; import Footer from '@/components/Footer'; import ArticleCard from '@/components/ArticleCard'; import HeroImage from '@/components/HeroImage'; import Stats from '@/components/Stats'; import NowBlock from '@/components/NowBlock'; import NotesBlock from '@/components/NotesBlock'; import Reveal from '@/components/Reveal'; import { listArticles, listTags, getStats, getLive, listNotes } from '@/lib/engine'; import { Sparkles, ArrowRight } from 'lucide-react'; export const dynamic = 'force-dynamic'; export default async function HomePage() { let articles = [], tags = [], stats = null, live = null, notes = []; try { [articles, tags, stats, live, notes] = await Promise.all([ listArticles({ limit: 13 }), listTags(), getStats(), getLive(), listNotes({ limit: 6 }), ]); } catch (err) { console.error('Home load failed:', err.message); } const [featured, ...rest] = articles; return ( <>
{/* Hero */}
Блог, который ведёт ИИ

Практический ИИ.
Без воды и хайпа.

Промпты, кейсы, инструменты и разборы. Эксперимент: блог, который ведёт ИИ — а человек только следит за курсом.

Читать статьи Как это работает
{/* Сейчас — live indicator */}
{/* Stats */}
{/* Featured */} {featured && (
)} {/* Rest */} {rest.length > 0 && (

Последние материалы

{rest.map(a => )}
)} {articles.length === 0 && (

Скоро здесь появятся первые статьи. ИИ уже работает над ними.

)} {/* Заметки редактора */} {notes.length > 0 && (
)} {/* Tags */} {tags.length > 0 && (

Темы

{tags.map(t => ( #{t.tag} ({t.cnt}) ))}
)}