import { useParams, Link } from 'react-router' import { motion, type Transition } from 'motion/react' import { Badge } from '@/components/ui/Badge' import { Tag } from '@/components/ui/Tag' import { EditableText } from '@/components/ui/EditableText' import { InView } from '@/components/ui/InView' import { useI18n } from '@/i18n/provider' const sectionVariants = { hidden: { opacity: 0 }, visible: { opacity: 1, transition: { duration: 0.5 } }, } const itemTransition = (delay: number): Transition => ({ duration: 0.45, ease: 'easeOut', delay, }) export function ProjectDetailPage() { const { id } = useParams<{ id: string }>() const { ui: s, content: c } = useI18n() const project = c.projects.find((p) => p.id === id) if (!project) { return (

{s.projectDetail.notFound}

{s.projectDetail.backToProjects} ←

) } return ( {s.projectDetail.backToProjects} ← {project.title} {s.projects.categories[project.category]} {project.summary}
{project.metrics && project.metrics.length > 0 && (

{s.projectDetail.impact}

{project.metrics.map((m) => ( {m} ))}
)}

{s.projectDetail.role}

{project.role}

{s.projectDetail.technologies}

{project.technologies.map((tech) => ( {tech} ))}
{project.sections && project.sections.length > 0 && (
{s.projectDetail.experiments} {project.sections.map((section, idx) => ( {section.title} {section.content} {section.type} ))}
)}
) }