import { useParams, Link } from 'react-router' import { Badge } from '@/components/ui/Badge' import { Tag } from '@/components/ui/Tag' import { projects } from '@/data/projects' const categoryLabels: Record = { 'software-engineering': 'Software Engineering', logistics: 'Logistics', 'ai-ml': 'AI / ML', 'computer-vision': 'Computer Vision', architecture: 'Architecture', experiment: 'Experiment', } export function ProjectDetailPage() { const { id } = useParams<{ id: string }>() const project = projects.find((p) => p.id === id) if (!project) { return (

Project Not Found

← Back to Projects

) } return (
← Back to Projects

{project.title}

{categoryLabels[project.category] || project.category}

{project.summary}

{project.metrics && project.metrics.length > 0 && (

Impact

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

Role

{project.role}

Technologies

{project.technologies.map((tech) => ( {tech} ))}
{project.sections && project.sections.length > 0 && (

Engineering Experiments

{project.sections.map((section, idx) => (

{section.title}

{section.content}

{section.type}
))}
)}
) }