);
}
function NextNav({ slug }) {
const { prev, next } = getNeighbors(slug);
return (
);
}
function Section({ num, title, italWord, children }) {
const parts = italWord ? title.split(italWord) : [title];
return (
● {num}
{parts[0]}
{italWord && {italWord}}
{parts[1]}
{children}
);
}
function DetailPage({ slug, lede, children }) {
const p = getProject(slug);
if (!p) return
Project not found
;
// Set theme accent to project accent for this page
React.useEffect(() => {
document.documentElement.style.setProperty('--accent', p.accent);
}, [p]);
return (