The demo
The first website built with Pattern Dump, read in the order a visitor would: its landing page, its articles, an article, and the style guide behind them, with a recorded tour.
The demo is a short tour of what Pattern Dump is, and the first website built with it. Its site holds pages and images only: how it looks comes from its style guide, a pattern package the site names in its config. Read it in the order a visitor would, from the landing page to the style guide behind it.
The landing page
The landing page is pages/index.md, with layout: deck in its frontmatter. deck is a component in the style guide's layouts/ folder, which makes it a layout. The page sets the words on the cover, an eyebrow, a title and a standfirst, and its markdown places the slides, one pd-components-slide tag each.
Play the tour of the demo's landing page, from its cover through its eleven slides
The player is a component of this site's style guide, components/video, placed with one pd-components-video tag: the poster shows first, and the video loads only when it is played.
The articles
articles/index.md uses the listing layout, sets sort: date and has one line of text. The list under that line is written on no page. The layout declares page.children, so on a folder's index.md Pattern Dump gives it the folder's pages, here newest first. Each entry brings its title, description, date and tags, and the layout shows it as an article card. A new page in articles/ is in the list without a change to any other page.
An article
articles/why-style-guides-matter.md uses the page layout, also from the style guide. Its frontmatter sets a date and three tags. The layout declares page.date and page.tags and shows both under the standfirst, each tag by its label. Because the page has a date of its own, Pattern Dump also marks it as an article in its link-preview tags and its structured data.
The style guide behind it
The demo's style guide is published beside it, in a workbench of its own. The deck layout of the landing page is a component there like any other, shown with its sample data and documented in the Inspector. The Sunset palette, under foundations/colors, holds the colours of every page: the waves, the cream and night text, and the colours of highlighted code.