function WorkPage({ go }) { const { SectionHeader, ProjectGrid, CTASection } = window.NotHumanDesignSystem_3e0b8e; return (
({ ...p, href: '#/work/' + p.id, category: p.index + ' / ' + p.category }))} onSelect={(p) => go('work/' + p.id)} />
); } function CaseStudyPage({ id, go }) { const { CaseStudyHeader, CaseStudySection, CTASection, Button } = window.NotHumanDesignSystem_3e0b8e; const i = Math.max(0, NH_PROJECTS.findIndex((p) => p.id === id)); const p = NH_PROJECTS[i]; const next = NH_PROJECTS[(i + 1) % NH_PROJECTS.length]; const L = p.plateLabel; return (
go('work')} backHref="#/work" facts={[{ label: 'Category', value: p.category }, { label: 'Character', value: L }, { label: 'Services', value: p.services }, { label: 'Year', value: p.year }]} />
Next project
{next.name} — {next.description.replace(/\.$/, '')}
); } Object.assign(window, { WorkPage, CaseStudyPage });