Portfolio site. Static HTML rendered client-side by support.js.
npm install
npm run dev
data/projects.json is the single registry, and it is the only file you edit.
An entry there gives you the homepage card, its position in the grid, the
prev/next pager on project.html, the breadcrumb and chat context labels, the
chat assistant's knowledge of the project, and the case study page itself.
case-studies.js derives the site chrome from the registry and
case-study-sections.js renders the page body, so no HTML needs editing.
-
Add an object to
projectsindata/projects.json:Homepage cards use
heroImageunless you add an optionalcard.cover. The assistant reads every string insections, plus the shortrole/team/problem/constraints/process/impactfields for structured answers. -
Drop the images in
assets/projects/<Name>/and list them underartifacts. Any artifact with aslotcan be placed in the body by naming that slot. -
Optional: to link the case study from a role in the experience timeline, add its
idto that entry'scaseStudiesarray indata/experience.json. The link card's title and thumbnail come from the homepage card.
The "How I got here" timeline on the homepage is rendered entirely from
entries in data/experience.json, top to bottom in array order, with cards
alternating sides automatically. No HTML needs editing.
{
"id": "acme", // unique key
"kind": "work", // "work" or "education"
"logoSrc": "./assets/logos/acme.svg",
"logoWidth": 52, // optional; defaults to 36 (px) for square logos
"company": "Acme",
"roleTitle": "UX Designer",
"dates": "Jan 2026 – Present", // large purple line beside the dot
"location": "Remote", // small line under the dates
"summary": "Text shown on the timeline card.",
"caseStudies": ["my-case-study"], // optional; project ids from projects.json
"bullets": ["…"] // work only; used by the chat assistant, not shown on the timeline
}The chat assistant reads work entries only.
A case study body is an ordered list of sections. Padding, the alternating
white/grey background, and the divider rules are derived from each section's
position, so you only write content. Rendering lives in
case-study-sections.js.
| Section | Fields |
|---|---|
hero |
title, summary, alt, meta: [{ label, value }] — the image comes from heroImage |
overview |
heading, blocks: [{ heading, body }], aside: [callout | stats | list] |
content |
heading?, intro?, blocks: [...] |
outcome |
heading, statement, takeaways: [{ title, body }] |
Aside blocks are { "type": "callout", eyebrow, value, body } (the purple
panel), { "type": "stats", items: [{ label, value }] }, or
{ "type": "list", eyebrow, items: [string] }.
Content blocks:
figure— one full-width image with a grey caption:slot,height,captionfigure-grid—columns,height,items. An item withtitle+bodyrenders a labelled step; an item withcaptionrenders as a plain figure.split— text beside a tall image:badge,heading,body,slot,heightbefore-after—title,note,height,before,after(two slot names)cards—columns,items. Each item has aneyebrowplus eithertitle+bodyor a bulleteditemsarray.media-row— side-by-side videos:items: [{ slot, title, body, aria }]link-card— outbound link:href,title,body,ctagroup—gapplus nestedblocks, when a set of blocks needs its own spacing
Every slot must match a slot on one of the project's artifacts; that
artifact is injected into the placeholder and becomes zoomable in the lightbox.
The projectId enum in the data-props attribute of
project.html's logic script only feeds the visual editor's dropdown.
{ "id": "my-case-study", // also the ?id= in the URL "title": "My Case Study", "shortTitle": "My Case Study", // optional; cards/pager/breadcrumb when shorter than title "order": 4, // grid and pager position "type": "Case study", "year": 2026, "heroImage": { "src": "./assets/projects/Mine.png", "alt": "…" }, "card": { "eyebrow": "Enterprise UX · Redesign", "summary": "One paragraph shown on the homepage card." }, "role": ["…"], "team": "…", "problem": "…", "constraints": [], "process": [], "impact": [], "skills": [], "tags": ["enterprise"], "sections": [ /* the page body — see below */ ], "artifacts": [ { "label": "Before: Home", "slot": "mine-home", "kind": "image", "src": "./assets/projects/Mine/home.png", "alt": "…" } ] }