Skip to main content

  • Foundations
    • Border radius
    • Breakpoints
    • Colours
    • Colour scheme
    • Elevation
    • Focus and outline
    • Sizing and spacing
    • Layout
    • Motion
    • Typography
    • Z-index
  • Elements
    • Buttons
    • Code
    • Icons
    • Figure and caption
    • Forms
    • Links
    • Lists
    • Media
    • Tables
  • Components
    • Accordion
    • Alerts
    • Avatar
    • Blockquote
    • Breadcrumbs
    • Card
    • Chiplets
    • Details and summary
    • Dialog
    • Empty state
    • Stats
    • Global footer
    • Horizontal rule
    • Kanban
    • Key-value list
    • Meter
    • Objects
    • Pagination
    • Polka background
    • Post-it note
    • Progress
    • Speech bubbles
    • Status dot
    • Skeleton
    • Skip link
    • Spinner
    • Toggles
    • Tooltip
    • Webmentions
  • Patterns
    • Article header
    • Author card
    • App list and app sheet
    • Error page
    • Related posts
    • Search results
    • Utilities

John Peart

  • Search
  • Menu
John Peart

Objects

Decorative SVG illustrations — Game Boy, Switch, iPod, calendars, Polaroid and more.

Objects are decorative SVG illustrations used at the top of posts. Each SVG already carries the object and object--{kind} classes that control its sizing.

Game Boy

Objects A Game Boy Game Pak showing the artwork for Objects
{% include "components/objects/game-boy.svg" %}

Switch

Objects A Nintendo Switch game cartridge with cover art work for Objects

PlayStation

Objects A PS5 jewel case with cover art work for Objects

PC

Objects A PC monitor showing cover art work for Objects

iOS

The iOS app icon has a squircle background driven by object.color.{h,s,l} on the post's frontmatter. The SVG composes those values into an hsl() fill, multiplying l by 0.8. If no colour is provided, the fill falls back to currentColor. An optional object.image is clipped inside the squircle; without one, the default /images/me/me.svg is used.

Objects The iOS app icon for Objects
object:
  type: "iOS"
  platform: "iOS"
  color:
    h: 35
    s: 97
    l: 65
  image: "/images/games/mini-motorways.jpeg"

iPod nano

iPod nano A silver iPod nano displaying album artwork.

Calendar — now

: Now A desktop calendar block with the date and the word “Now” written on it. 01 JAN

Calendar — weeknotes

: Now A desktop calendar block with the date and the word “Weeknotes” written on it. 01 JAN

Polaroid

Objects A polaroid picture.

Pocket

The pocket SVG has a live <image> element on its screen. The image URL is composed from object.screenshot (a directory), screenshotCount (defaults to 001), and screenshotFormat (defaults to .png). Pass any of them via the post's frontmatter object, or as loose Liquid variables.

Game Boy A black Game Boy. On the screen is a game.
object:
  platform: "Game Boy"
  trophy: "100%"
  image: "/images/games/super-mario-land-2-6-golden-coins/label-art.jpg"
  screenshot: "/images/games/super-mario-land-2-6-golden-coins/"

Note

A short note on yellow paper.
<div class="object object--note">
  <div class="post-it yellow">A short note on yellow paper.</div>
</div>

List

Things to do

  • Feed the fox
  • Walk the dog
  • Nap
<div class="object object--list">
  <header class="list-header">
    <h1 class="list-title">Things to do</h1>
  </header>
  <ul class="list-body">
    <li class="list-item list-item--done">Feed the fox</li>
    <li class="list-item">Walk the dog</li>
    <li class="list-item list-item--secondary">Nap</li>
  </ul>
</div>
A line drawing of John Peart

John Peart

www.johnpe.art

Mastodon logo

Mastodon

BlueSky logo

Bluesky

LinkedIn logo

LinkedIn

Github logo

GitHub