import { Link } from '@/src/i18n/navigation' import Image from 'next/image' import { getAllPosts } from '@/lib/markdown' import { formatDate } from '@/lib/utils' import { HeroHeader } from '@/components/layout/hero-header' import { setRequestLocale, getTranslations } from 'next-intl/server' type Props = { params: Promise<{ locale: string }> } export default async function HomePage({ params }: Props) { const { locale } = await params setRequestLocale(locale) const t = await getTranslations('Home') const tNav = await getTranslations('Navigation') const allPosts = await getAllPosts() const featuredPosts = allPosts.slice(0, 6) return (
{/* Hero Section - from worktree-agent-2 */}
{/* Logo */}

{t('documentLevel')}

{t('heroTitle')}

{t('heroSubtitle')}

{t('checkPostsButton')} {t('aboutMeButton')}
{/* Featured Posts Grid - from worktree-agent-1 */}

{t('recentEntriesLabel')}

{t('recentEntriesTitle')}

{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
{t('accessButton')}
))}
{allPosts.length > 6 && ( {t('seePostsButton')} )} {t('seeAllTagsButton')}
{/* 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.

*/}
) }