Skip to main content

molecules

Project card

A card for a project record that supplies title, image, video, client byline, and a deliverables line to the base card.

Specimens

Project with video

James Zabiela, Bluecadet

Connecting a World-Famous DJ with His Fans

Winner of Best Music Site at SXSW

Deliverables
Content Management, Development, Information Architecture, Interaction Design
{{ Project.render({
  project: (collections.projects | filterByKey("slug", "connecting-a-world-famous-dj-with-his-fans") | first)
}) }}
Project with an image only
OES (dragged)

GSA, Office of Evaluation Sciences, Bixal

Improving Access to Government Benefits and Services

Evaluating digital forms to enhance public access to critical services like healthcare, housing, and financial aid.

Deliverables
Competitive Analysis, Interaction Design, Personas, Product Design, Requirements Definition, Service Design
{{ Project.render({
  headingLevel: 4,
  project: (collections.projects | filterByKey("slug", "improving-access-to-government-benefits-and-services") | first)
}) }}

Params

ParamTypeDescription
projectobjectProject record: title, featuredImage, featuredVideo, url, abstract, organization (titles joined into the byline), rolesTitles, and activityTitles.
titlestringDefaults to project.title, then “Untitled project”.
imageSanity imageDefaults to project.featuredImage.
videoobjectDefaults to project.featuredVideo.
urlstringDefaults to project.url.
descriptionstringDefaults to project.abstract.
rolesstringRead to build a roles string that is never passed to the card. No effect.
activitiesstringDefaults to the joined project.activityTitles. Feeds the “Deliverables” meta row.
metaarrayDefaults to one row: { key: "Deliverables", value: activities }.
eagerbooleanPassed to the card.
stylesobjectPassed to the card. See the slot table.
SlotElement
imageThe card’s media element (<img> or <video>).

Notes

Pass the project record and the macro derives everything else. Params such as title, image, and meta override the record.