import { getTranslations, getLocale } from 'next-intl/server'; import Link from 'next/link'; import Image from 'next/image'; import { Calendar, Tag, ExternalLink } from 'lucide-react'; // Project data embedded directly for SSG const projectsData = [ { slug: 'ai-data-reader', title: 'AI Document Reader', excerpt: 'KI-gestützte Dokumentenanalyse mit OLLAMA und Python', date: '2024-01', technologies: ['Python', 'OLLAMA', 'FastAPI', 'React'], category: 'AI Development', }, { slug: 'smart-warehouse', title: 'Smart Warehouse RFID', excerpt: 'RFID-basiertes Lagerverwaltungssystem mit IoT-Integration', date: '2024-02', technologies: ['Python', 'RFID', 'IoT', 'PostgreSQL'], category: 'IoT', }, { slug: 'website-mit-ki', title: 'Portfolio mit KI', excerpt: 'Moderne Portfolio-Website mit KI-Integration', date: '2024-03', technologies: ['Next.js', 'TypeScript', 'Tailwind', 'Supabase'], category: 'Full-Stack', }, ]; const Projects = async () => { const t = await getTranslations('pages.home.projects'); const locale = await getLocale(); return (

{t('title')}

{t('viewAll')}
{projectsData.map((project) => (
{/* Image Container */}
{project.title}
{/* Content */}
{project.date && (
{project.date}
)} {project.technologies.length > 0 && (
{project.technologies.length} Technologies
)}

{project.title}

{project.excerpt}

{/* Tags */}
{project.technologies.slice(0, 3).map((tag, tagIndex) => ( {tag} ))} {project.technologies.length > 3 && ( +{project.technologies.length - 3} more )}
{/* Link Icon */}
))}
); }; export default Projects;