Skip to content
Patchwork
Start free
All docs pages

Docs · Content

Projects

The portfolio's fields, its pictures, and the tilted screen on the portfolio homepage.

Projects are files in src/content/projects/<language>/, one per project. The file name is the address: northline.md is /projects/northline/. The text under the frontmatter is the project page’s body. With projects: false in the settings there’s no portfolio.

The fields

The fields are described in src/config/collections.ts.

Field What it does
title, description The name, and one sentence for the card, the page and search engines.
category website, product or open-source: the filter on the overview.
year The year, on the card and the page.
tone violet, magenta or emerald: the colour of the drawn cover when there’s no picture.
cover, coverAlt A picture for the card and the page, in src/assets/, and its description.
hero A wider picture for the project page’s hero, about 2.4:1.
client, services Who it’s for, and what was done, as tags.
url, repo The live site and the code.
featured, order The featured project comes first, large; the rest go by order, lowest first.
draft true keeps it off the site.

Pictures

The project page’s hero is much wider than a card, so a 16:10 cover loses its top and bottom there. For a hero that shows all of it, give the project a hero picture of about 2.4:1, with the subject in the middle and room above and below. Without one, the hero uses cover.

A project without a cover gets a drawn one in its tone.

The tilted screen

With homepage: 'portfolio', the homepage’s hero shows a project in a tilted screen. It takes the first project with one of these:

  • screenVideo: a short recording, played muted and looping after the page has loaded. Give it a video and its poster under public/, with light-mode versions if you have them, and its size:

    screenVideo:
      src: /video/site-dark.mp4
      poster: /video/site-dark.jpg
      srcLight: /video/site-light.mp4
      posterLight: /video/site-light.jpg
      width: 1600
      height: 1000
    screenAlt: "The site's homepage, scrolling from the hero to the projects"

    The poster shows first. Reduced motion, and a browser asking to save data, keep the poster.

  • screen: a screenshot without a device around it, with screenAlt.

Without either, the screen shows the featured project’s cover.