A post here is one centered column, 45rem wide, like a page of a book. Markdown fills it with text. Written in MDX instead, a post can bring in a few of the kit’s components and set them between its paragraphs. Most of them stay in that column. A gallery or a video can open out.
A gallery
A Gallery shows each picture whole, at its own shape, across the width of the page, centered on the same line as the text. These are rows, so the bottom edges line up across each row, and the captions sit under them in the kit’s italic.
-
Moonrise over the wood -
Leaf and petal -
Copper current -
The reader -
Red sun, high peak -
Tiger in the peonies -
Totems -
Scroll
The text picks up again under it, back in the centered column.
A film from YouTube or Vimeo
A VideoEmbed takes the address you’d share and a title for screen readers. The YouTube player here runs the width of the page, like the gallery. With width="text", the Vimeo one below stays in the column. Each loads only as it nears the screen. Nothing plays until the reader presses play. YouTube comes from its no-cookie address and Vimeo with Do Not Track on, so neither sets a tracking cookie before then.
A player is 16:9 unless it’s told otherwise. This film is a little wider, 2048 by 1080, so the YouTube player takes ratio={2048 / 1080}. Vimeo shows the film’s poster at the poster’s own shape, 2:1, with black around it in a player of any other shape, so the Vimeo player takes ratio={2}: the poster then fills it, and the film plays with a thin black edge at each side.
Another post
A PostCard points to another post. It takes the post’s file name and finds its title, summary, date and cover itself, so the card stays right when that post changes. Only its title is a link.
Related post
How a pigment made with vinegar gave this theme its name, and why the kit keeps copper beside it.
Read next
Printers have long set a thick line and a thin one side by side. In this kit that pair opens every section.