Skip to content

About

Portfolio Site

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

scaranman.github.io

Portfolio site. Static HTML rendered client-side by support.js.

npm install
npm run dev

Adding a case study

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.

  1. Add an object to projects in data/projects.json:

    {
      "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": "…" }
      ]
    }

    Homepage cards use heroImage unless you add an optional card.cover. The assistant reads every string in sections, plus the short role / team / problem / constraints / process / impact fields for structured answers.

  2. Drop the images in assets/projects/<Name>/ and list them under artifacts. Any artifact with a slot can be placed in the body by naming that slot.

  3. Optional: to link the case study from a role in the experience timeline, add its id to that entry's caseStudies array in data/experience.json. The link card's title and thumbnail come from the homepage card.

Editing the experience timeline

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.

The sections schema

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, caption
  • figure-grid — columns, height, items. An item with title + body renders a labelled step; an item with caption renders as a plain figure.
  • split — text beside a tall image: badge, heading, body, slot, height
  • before-after — title, note, height, before, after (two slot names)
  • cards — columns, items. Each item has an eyebrow plus either title + body or a bulleted items array.
  • media-row — side-by-side videos: items: [{ slot, title, body, aria }]
  • link-card — outbound link: href, title, body, cta
  • group — gap plus nested blocks, 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.

About

Portfolio Site

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages