"use client" import { Navigation } from "@/components/navigation" import { Footer } from "@/components/footer" import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" import { Badge } from "@/components/ui/badge" import { Button } from "@/components/ui/button" import Link from "next/link" import Image from "next/image" import { ArrowRight, Calendar, Clock } from "lucide-react" import { useLanguage } from "@/components/language-context" import { useTranslation } from "@/lib/i18n" import { blogPosts } from "@/lib/content" export default function HomePage() { const { currentLang } = useLanguage() const { t } = useTranslation(currentLang) const featuredPost = blogPosts[0] const recentPosts = blogPosts.slice(1, 3) return (

{t("heroTitle")} {t("heroTitleAccent")}

{t("heroDescription")}

{featuredPost && (

{t("featuredArticle")}

{t("latest")}
{featuredPost.title}
{featuredPost.category} {featuredPost.title} {featuredPost.excerpt}
{featuredPost.date}
{featuredPost.readTime}
{featuredPost.tags.map((tag) => ( {tag} ))}
)} {recentPosts.length > 0 && (

{t("recentArticles")}

{recentPosts.map((post) => (
{post.title} {post.category}
{post.title} {post.excerpt}
{post.date}
{post.readTime}
{post.tags.map((tag) => ( {tag} ))}
))}
)}

{t("stayConnected")}

{t("newsletterDescription")}

) }