import Link from 'next/link' import Image from 'next/image' import { getAllPosts } from '@/lib/markdown' import { formatDate } from '@/lib/utils' import { ThemeToggle } from '@/components/theme-toggle' export default async function HomePage() { const allPosts = await getAllPosts() const featuredPosts = allPosts.slice(0, 6) return (
{/* Hero Section - from worktree-agent-2 */}
{/* Logo */}
Logo TERMINAL:// V2.0
[BLOG] [ABOUT]

DOCUMENT LEVEL-1 //

BUILD. WRITE.
SHARE.

> Explore ideas

[CHECK POSTS] [ABOUT ME]
{/* Featured Posts Grid - from worktree-agent-1 */}

ARCHIVE ACCESS // RECENT ENTRIES

> RECENT ENTRIES

{featuredPosts.map((post, index) => (
{post.frontmatter.image ? ( {post.frontmatter.title} ) : (
#{String(index + 1).padStart(2, '0')}
)}
FILE#{String(index + 1).padStart(3, '0')} // {post.frontmatter.category}

{post.frontmatter.title}

{post.frontmatter.description}

{formatDate(post.frontmatter.date)} // {post.readingTime} MIN
[ACCESEAZĂ] >>
))}
{allPosts.length > 6 && ( [SEE POSTS] >> )} [SEE ALL TAGS] >>
{/* Stats Section - from worktree-agent-1 */} {/*

SYSTEM STATISTICS // DATABASE METRICS

> METRICS

{allPosts.length}+

PUBLISHED

50K+

CITITORI LUNARI

99%

SATISFACȚIE

*/} {/* Newsletter CTA - from worktree-agent-1 */} {/*

NEWSLETTER SUBSCRIPTION

> RĂMÂI LA CURENT_

Primește cele mai noi articole direct în inbox

// Fără spam. Dezabonare oricând.

*/}
) }