From 15748d41c71fa296f905ef8a587b2cd2432c6eca Mon Sep 17 00:00:00 2001 From: Jake Ruesink Date: Wed, 2 Dec 2026 16:02:06 -0600 Subject: [PATCH 1/3] SBO-41: Fix schedule jumps, header tones, and gallery links --- README.md | 8 +- docs/blocks-audit.md | 6 +- package-lock.json | 4 +- package.json | 2 +- public/r/article.json | 4 +- public/r/collection.json | 4 +- public/r/features-editorial.json | 2 +- public/r/footer-columns.json | 2 +- public/r/footer-cta.json | 2 +- public/r/form-status.json | 2 +- public/r/header-editorial.json | 2 +- public/r/header-floating.json | 2 +- public/r/header-minimal.json | 10 +- public/r/header-transparent.json | 2 +- public/r/hero-editorial.json | 2 +- public/r/hero-front-desk.json | 2 +- public/r/hero-immersive.json | 2 +- public/r/hero-program.json | 2 +- public/r/hero-split.json | 2 +- public/r/hero-typographic.json | 2 +- public/r/locations-visit.json | 2 +- public/r/pairing-editorial.json | 4 +- public/r/pairing-product.json | 4 +- public/r/pairing-warm.json | 2 +- public/r/registry.json | 60 ++--- public/r/schedule.json | 8 +- registry.json | 60 ++--- scripts/screenshots.mjs | 12 + src/components/blocks/HeaderMinimal.astro | 31 ++- src/components/blocks/Schedule.astro | 32 +-- .../examples/alternating-rows.astro | 2 +- src/components/examples/article.astro | 12 +- src/components/examples/breadcrumbs.astro | 6 +- src/components/examples/button.astro | 10 +- src/components/examples/collection.astro | 30 +-- src/components/examples/compare.astro | 6 +- src/components/examples/cut-edges.astro | 2 +- src/components/examples/facts.astro | 4 +- src/components/examples/features-bento.astro | 1 - .../examples/features-editorial.astro | 4 +- src/components/examples/footer-columns.astro | 15 +- src/components/examples/footer-cta.astro | 10 +- src/components/examples/footer-minimal.astro | 6 +- src/components/examples/footer-wordmark.astro | 8 +- .../examples/header-editorial.astro | 12 +- .../examples/header-editorial.stage.astro | 2 +- src/components/examples/header-floating.astro | 10 +- .../examples/header-floating.stage.astro | 2 +- src/components/examples/header-minimal.astro | 10 +- .../examples/header-minimal.stage.astro | 6 +- .../examples/header-transparent.astro | 8 +- .../examples/header-transparent.stage.astro | 2 +- src/components/examples/hero-editorial.astro | 4 +- src/components/examples/hero-front-desk.astro | 16 +- src/components/examples/hero-immersive.astro | 4 +- src/components/examples/hero-program.astro | 12 +- src/components/examples/hero-split.astro | 4 +- .../examples/hero-typographic.astro | 8 +- src/components/examples/locations-visit.astro | 2 - src/components/examples/pager.astro | 19 +- src/components/examples/schedule.astro | 4 +- src/data/catalog.json | 223 +++++++++--------- src/data/gallery-catalog.json | 6 +- .../canvas/service-grammar/[direction].astro | 9 +- src/pages/compositions.astro | 29 +-- src/pages/techniques.astro | 33 +-- 66 files changed, 418 insertions(+), 402 deletions(-) diff --git a/README.md b/README.md index 66454df..caab2a0 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Polished website sections for Astro, distributed as source you own. Every block Astro Blocks is a [shadcn](https://ui.shadcn.com/docs/registry)-compatible registry. Installing a block copies ordinary, editable files into your project. Nothing stays linked: no runtime package, no hidden updates. Change anything. ```sh -npx shadcn@latest add lambda-curry/astro-blocks/hero-split#v0.1.19 +npx shadcn@latest add lambda-curry/astro-blocks/hero-split#v0.1.20 ``` That writes `src/components/blocks/HeroSplit.astro` and its one dependency, `src/components/ui/Button.astro`. It works in any Astro project, without Tailwind, React or a `components.json`. Then: @@ -39,15 +39,15 @@ import HeroSplit from "../components/blocks/HeroSplit.astro"; List, search or inspect them from the CLI: ```sh -npx shadcn@latest list lambda-curry/astro-blocks#v0.1.19 -npx shadcn@latest view lambda-curry/astro-blocks/timeline#v0.1.19 +npx shadcn@latest list lambda-curry/astro-blocks#v0.1.20 +npx shadcn@latest view lambda-curry/astro-blocks/timeline#v0.1.20 ``` Each item in [`registry.json`](registry.json) says when to use it and, as importantly, when not to. A numbered list is for a real sequence, a bento grid is for related items of different weight, and a giant footer wordmark is for a short name on an otherwise quiet site. ## Design -- **Tokens, not themes.** Blocks read semantic custom properties: `--color-bg`, `--color-surface`, `--color-text`, `--color-muted`, `--color-accent`, `--color-on-accent`, `--font-display`, `--font-body`, the `--step-*` type scale, `--leading-display` and `--leading-tight`, `--space-gutter`, `--section-gap`, `--radius-sm` and `--radius-lg`. Set them once, in your own theme, and every block follows. Each block also falls back to the neutral defaults in [`tokens.css`](src/styles/tokens.css) (`npx shadcn@latest add lambda-curry/astro-blocks/tokens#v0.1.19`), so nothing breaks without them. One more is optional and absent from `tokens.css`: `--color-rule` recolors every structural hairline (row and table rules, dividers, header and footer rules, and the outlines of bars, panels and tiles). Unset, each keeps its own translucent mix of the text color. Write it with `currentColor`, such as `--color-rule: color-mix(in oklab, currentColor 20%, transparent)`, so rules stay right on inverse footers. Forms read one more optional token, `--color-error`, for error text, borders and the error summary. Unset, it is a red mixed with the text color, which measured at least 4.7:1 on the background and surface of the four gallery themes (default, paper, ink and grove). Check it against a theme with a strongly colored surface, and set the token there if needed. +- **Tokens, not themes.** Blocks read semantic custom properties: `--color-bg`, `--color-surface`, `--color-text`, `--color-muted`, `--color-accent`, `--color-on-accent`, `--font-display`, `--font-body`, the `--step-*` type scale, `--leading-display` and `--leading-tight`, `--space-gutter`, `--section-gap`, `--radius-sm` and `--radius-lg`. Set them once, in your own theme, and every block follows. Each block also falls back to the neutral defaults in [`tokens.css`](src/styles/tokens.css) (`npx shadcn@latest add lambda-curry/astro-blocks/tokens#v0.1.20`), so nothing breaks without them. One more is optional and absent from `tokens.css`: `--color-rule` recolors every structural hairline (row and table rules, dividers, header and footer rules, and the outlines of bars, panels and tiles). Unset, each keeps its own translucent mix of the text color. Write it with `currentColor`, such as `--color-rule: color-mix(in oklab, currentColor 20%, transparent)`, so rules stay right on inverse footers. Forms read one more optional token, `--color-error`, for error text, borders and the error summary. Unset, it is a red mixed with the text color, which measured at least 4.7:1 on the background and surface of the four gallery themes (default, paper, ink and grove). Check it against a theme with a strongly colored surface, and set the token there if needed. - **Optional type.** Sixteen curated self-hosted typefaces, each its own `font-*` item installing a small stylesheet that loads pinned WOFF2 by sha256, plus three pairings built from them (`pairing-editorial`, `pairing-product`, `pairing-warm`) that set only type tokens. Installs stay on the system font until a site adds one. See [docs/type-pairings.md](docs/type-pairings.md) and the live specimens at `/typography`. - **Optional techniques.** Thirteen visual devices in the `technique` category, each with one job. Ten are one small CSS file each: install it, `@import "./techniques/.css";` in your theme, and tune it with custom properties: surfaces (`grain`, `color-field`, `line-work`), photo treatments (`duotone`, `image-mount`, `diptych`), type (`type-lockup`, `marginalia`), an object (`cut-edges`) and one scroll accent (`scroll-reveal`). `screen-tone`, `seal` and `annotated-figure` are components. All use no JavaScript, keep text full-contrast, and drop their decoration under forced colors (and, where it touches text, more contrast). `/techniques` renders each in contrasting brands, plus compositions from none to three techniques; `/compositions` opens one site's content five ways with the hero blocks. - **Container queries.** Blocks lay out from the width they are given, so they work full-width or inside a narrow column. diff --git a/docs/blocks-audit.md b/docs/blocks-audit.md index c6d40f9..99d8204 100644 --- a/docs/blocks-audit.md +++ b/docs/blocks-audit.md @@ -8,6 +8,8 @@ **Form kit (2026-11-30, unreleased):** three `primitive` items for a site's own `
`, after an audit of AI-built sites found a 72px input beside a 56px one, a raw radio dot inside a filled pill, and a green banner above a re-armed empty form. `field` (one labelled native control), `choice-group` (radio or checkbox chips) and `form-status` (a receipt that replaces the form, or an error summary above it). No client JavaScript and no backend; `action` and `method` stay on the site's form. Measured on a scratch page at 390 and 1440, with and without a `box-sizing` reset: two fields side by side, one with a wrapping error and one with a hint, keep identical control tops and heights (44px at 390, 46.4px at 1440), as do date beside select and url beside number, in a grid and in a stretching flex row. Chips and error-summary links are 44px tall. Contrast, lowest of default, paper, ink and grove: error text 4.78 (grove, on the surface), control and chip borders 3.62 (grove, on the surface). `--color-border` in `tokens.css` measures 2.97 on white (2.75 in ink), under WCAG 1.4.11's 3:1, so controls draw their border from the text color instead. `header-minimal` gains a `brand` slot (the home link keeps `brand` as its accessible name); its default example renders 0 px different from v0.1.9 in all four themes at both widths, and below 44rem the brand and action share row 1 with the links on row 2. `npm run shots -- --themes default,paper,ink,grove --sheet --interact --stress field choice-group form-status header-minimal`: 0 problems. +**v0.1.20 (2026-12-02):** **`schedule` `0.1.3`** wraps every day link onto visible rows and breaks long labels inside their targets. The day navigation stays in flow so a tall row group cannot cover the programme. Wide track headings still stick below the site header. **`header-minimal` `0.1.7`** takes the same `tone` as the page opening, including nav, current-page underline, focus and the outline action. Base keeps the existing rendering and mobile links stay visible on their own row. **Gallery:** examples now use real gallery destinations or static copy for fictional actions and contacts; the pager updates its current page. The built gallery was crawled at 390px and 1440px across all four themes. + **v0.1.19 (2026-12-02):** composition range and finish, from an audit of all 60 items for overlap. **Audit decisions:** the three heroes all converged on split or full-bleed openings, and no opening served a visitor who arrives with a task or for a date, so three new heroes cover jobs no existing item does (`hero-front-desk`, `hero-editorial`, `hero-program`), while poster and placement needs became variants of existing heroes rather than new items. A price list and a multi-location visit section had no home (`features-editorial` carries sentences, not prices; `footer-columns` carries links, not hours), so `menu-list` and `locations-visit` are new; a mosaic archive is a `gallery` layout, not a new block, because the semantic job (captioned figures) is the same. **New blocks** (`0.1.0`): `hero-front-desk` (status, three to six large task targets, a ruled facts strip), `hero-editorial` (twelve-column spread, the picture stepping below the title, colophon rail), `hero-program` (season identity, dates and the next sessions as dated rows), `menu-list` (groups, dotted or ruled leaders meeting the price on the last line of a wrapped name, tags; no disclosure widgets), `locations-visit` (ruled cards, hours, directions and call actions aligned at the foot). **Variants:** `hero-typographic` 0.1.5 adds `layout="poster"`, a `meta` dateline and `tone`; `hero-immersive` 0.1.5 adds `align="top" | "middle"` with scrims that follow the copy and a `caption` label; `gallery` 0.1.1 adds `layout="mosaic"` (a hole-free nine-figure rhythm) and `tone`; `schedule` 0.1.2 adds `tone`, handing the band's roles to its children so the sticky day bar follows. Existing defaults are unchanged: with no new prop set, every existing example renders as before. **New techniques** (`0.1.0`, one CSS file each, no JavaScript): `type-lockup`, `image-mount`, `diptych`, `marginalia`, `line-work` (Site Boulder's gradient line-work card plus a ledger), `color-field`, `scroll-reveal` (the narrative scroll accent card's milestone rule plus a media settle, transform and opacity only, behind `@supports (animation-timeline: view())` and `prefers-reduced-motion: no-preference`). **Asset:** `duotone`'s example and `/techniques` hotlinked a commit-pinned `raw.githubusercontent.com` photo, which a `default-src 'self'` capture blocks; both now use `public/gallery/bench-by-the-window.svg`, drawn for this repository (MIT, provenance in the file), which syncs with the gallery's other SVGs. The annotated-figure markers were re-placed on it. **Gallery:** `/techniques` covers fourteen techniques in four brands (adding a photo-free civic office and a dark modern studio) and three new compositions, one with no techniques at all; new `/compositions` opens one library's content five ways in four brands, then shows mosaic, visit, schedule and menu sections in the same identities. Layouts link `/gallery/favicon.svg`, so no page 404s on `/favicon.ico`. **Fixed, pre-existing:** the production build's CSS minifier (lightningcss) folds `animation-timeline` into the `animation` shorthand, which browsers reject, so every scroll-driven animation was dropped from built pages while working in `astro dev`: `header-transparent`'s solid-on-scroll (now 0.1.6), `compare`'s sticky-column edge (now 0.1.2) and the techniques page's route draw-in. All of them, and `scroll-reveal`, now write longhands; a computed-style probe on the built preview reads each `animation-name` and timeline back. **v0.1.18 (2026-12-02):** the installable visual vocabulary becomes one `technique` category. **New CSS items** (`technique`, `0.1.0`, `placement: inline`), each one small stylesheet under `src/styles/techniques/`, installed with `registry_add` and imported from the theme: **`cut-edges`**, **`grain`** and **`duotone`**, carried over from Site Boulder's render-checked recipe cards with the selectors and invariants unchanged: notches cut a decorative `::before` so content and focus rings are never cropped, `:dir(rtl)` mirroring, a 1px `CanvasText` outline under forced colors, an `@supports` oklab ramp with the `--ramp-solid`/`--ramp-ink` pair under `prefers-contrast: more`, and a greyscale fallback for duotone under forced colors. The only edits: explicit token fallbacks (required by the build), and the card's bare `.ticket` rule scoped to `.cut.ticket`. **Recategorised:** `screen-tone`, `seal` and `annotated-figure` move from `primitive` to `technique` (sources unchanged). `screen-tone` drops its `grain`, `grainy gradient` and `textured gradient` tags, which now belong to `grain`, and each docs line points to the other. **`hero-typographic`:** `useWhen` and `summary` frame the words as the focal material (a poster headline, or real hours and terms), no longer a fallback for missing imagery. **Build:** `technique` is a valid category, and usage rewrites `import "../../styles/` for a page in `src/pages/`. **Gallery:** `/techniques` imports the three stylesheets the registry installs instead of inlining them, drops the one-surface-one-device cap in favor of "each technique needs its own source and job", and adds *Techniques working together*: a restrained editorial quarterly (duotone and seal), a bakery (grain and a scalloped slip) and a single-screen cinema (grain ramp, screen tone and ticket stubs). The index gains a Techniques category. `CodeBlock`'s Copy button no longer wraps mid-word at 390px (`white-space: nowrap`, `flex-shrink: 0`). **Platform follow-up:** Site Boulder's `registry_search` ranks only `foundation` and `primitive` items after sections, so `technique` items now lead an unfiltered browse until its pinned snapshot and that rule are updated. @@ -176,7 +178,7 @@ The shared fix for pasted URLs (finding 2) shipped in v0.1.3 on all 16 block roo | header-floating | polish, **fixed in v0.1.3** | Before/after table below; `qa/fix-after` passes every check | Ship in v0.1.3 | | header-editorial | polish, **fixed in v0.1.3** | Wordmark link 37px at 390. The nav wraps to two rows and holds | `.wordmark`: `display: inline-flex; align-items: center; min-block-size: 44px` | | header-transparent | polish, **fixed in v0.1.3** | Its mobile panel has the same nesting as header-floating's: a `--radius-lg` panel around a `--radius-sm` CTA, with 0.5rem padding. The scrolled state needs `animation-timeline` and stays non-fixed without it, which is correct | Apply the same concentric radius to `.links:popover-open` | -| header-minimal | keep | Clean at both widths. With long copy at 390, the brand is squeezed beside the CTA | Optional: let the CTA wrap below the brand under 22rem. Form kit: a `brand` slot for composed marks, announced by `brand`; default rendering unchanged. | +| header-minimal | keep | Base is pixel-identical at 390 and 1440. Inverse and accent share the opening’s surface and ink. | The phone nav remains inline. Across four gallery themes, measured text contrast is at least 6.30:1 and focus at least 6.80:1. | | hero-split | polish, review | The media-start layout mirrors the original split. Copy still comes first on mobile, with a shorter action-to-meta gap. The frame takes an overlay border and outside shadow. See `qa/sbo18-sbo41-after/sheet-hero-split.png`. | Review both media positions and the custom frames in the composed gallery. | | hero-immersive | polish, **fixed in v0.1.3** | At 390 the headline sits over the light sail, under about a 50% scrim | Under about 40rem, keep the scrim above 70% across the copy block. Verify with a light image v0.1.4: title reads `--leading-tight`. v0.1.7: narrow containers (under 40rem) turn the picture into a band above the copy, framed by the new optional `narrowPosition`, so the subject clears the headline; lighter overall shade, with the strong scrim still behind the text; the narrow band is in the flow and takes the height the copy leaves, so a short headline in a tall hero shows more picture instead of a dark gap; stacked actions share one width; a fixed dark ground, so a broken image in a dark theme keeps white text legible. v0.1.19: `align="top"` (scrim from above, copy high) and `align="middle"` (a full-width 60% band fading out above and below), `caption` on a 72% dark label in the far corner and after the copy in narrow containers; default `start` unchanged. | | hero-typographic | keep | Strong in every theme | v0.1.4: title reads `--leading-tight`. v0.1.7: on containers over 60rem the proof row grows to step-1 with wider spacing. v0.1.19: `layout="poster"` (centered lockup, title to 11.5rem, dateline and facts spaced across rules, stacked under 34rem), `meta`, `tone`; checked at 390/1440 on the accent band. | @@ -191,7 +193,7 @@ The shared fix for pasted URLs (finding 2) shipped in v0.1.3 on all 16 block roo | collection | new, review | `sheet-collection.png`: cards and list in four themes at 390/1440, interact and stress, 0 problems. Also checked: imageless cards, undated rows (meta moves to the rail), no title, unlinked items, keyboard ring around a card | Design review of the contact sheet | | article | new, review | `sheet-article.png`: same run, 0 problems. Also checked: no headings (no contents), a 120-character title, no image, code blocks scrolling at 390, `headingLevel={2}`, the narrow disclosure open | Design review; Safari and Firefox for the sticky rail | | facts | polish, review | Ledger columns grow from 18rem. Labels stack over values until a group has room for both. The full workshop email fits a desktop contact column. See `qa/sbo18-sbo41-after/sheet-facts.png`. | Review the visit, hours and contact band. | -| schedule | new, 0.1.0 | Agenda: one time gutter per day, shared by every slot through subgrid. Tracks: columns from 52rem, cards placed by an inline `--track`, rows per start time; narrow falls back to the agenda grouped by time with the track as a label. Day links stay sticky; no JavaScript | Review fixes: one time gutter for the whole programme (every day subgrids `.days`); day bar at `--sticky-top`, track names sticky below it from 52rem; day ids slug any script and append the position only when repeated or empty, with an `id` prop for the prefix; track names trimmed; the dash is hidden and a visually hidden `toLabel` is read; `timezoneLabel`, `untilLabel`, `daysLabel` replace fixed English. v0.1.2: `tone` repaints the band and hands its children the band's roles (`--color-bg`, surface, text, muted, accent), so the sticky day bar and track tints follow; checked on the civic inverse band in `/compositions`. | +| schedule | keep | All day links wrap in flow with 44px targets. Track headings still stick at the site header offset from 52rem. | Reproduced Low Tide’s clipped Sunday at 390px. Verified 648 jump links across 2–7 days, four tones and widths of 320, 390 and 1440px, including long labels. | | compare | new, 0.1.0 | Table: a real ``, a `tbody` per group under a spanning `rowgroup` header, fixed layout so options share the width equally, scrolling sideways below label + 8.5rem per option. Labels, caption and group titles stay in view while it scrolls; the label column's edge shadow is scroll-driven where supported; the right-edge shadow is the `local`/`scroll` background. The keyboard ring is drawn by a frame above the sticky cells. Recommended: a 3px accent rule over the name, a 7% accent tint down the column and the word. Cards: rows on shared subgrid tracks, so a row lines up across every card. No sticky header: the region is the sticky scrollport, so it couldn't stick to the page | Design review of `sheet-compare.png`. Safari and Firefox: the label edge shadow (scroll-driven) | | gallery | new, 0.1.1 | v0.1.1: `layout="mosaic"`: six columns from 56rem with the first and eighth of every nine figures at 4×2 cells, closing a set that stops mid-rhythm; two columns from 34rem; one below. `tone` added. Checked with five figures on an inverse band at 390/1440 | | | menu-list | new, 0.1.0 | Name, leader and price share the last baseline, so a wrapped name's leader meets its price; two groups in columns from 46rem, three from 72rem; no `
`. Checked at 390/1440 in stock and warm brands | | diff --git a/package-lock.json b/package-lock.json index 6c92d9a..f36efd2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "astro-blocks", - "version": "0.1.14", + "version": "0.1.20", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "astro-blocks", - "version": "0.1.14", + "version": "0.1.20", "license": "MIT", "devDependencies": { "@astrojs/check": "0.9.10", diff --git a/package.json b/package.json index b6ec06c..698b501 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "astro-blocks", - "version": "0.1.19", + "version": "0.1.20", "private": true, "description": "Open-source, Astro-first, shadcn-compatible source registry of polished website blocks.", "license": "MIT", diff --git a/public/r/article.json b/public/r/article.json index f986980..f61b733 100644 --- a/public/r/article.json +++ b/public/r/article.json @@ -5,8 +5,8 @@ "author": "Lambda Curry ", "description": "A long-form reading layout: a strong title and dek over quiet facts, an optional lead figure with a caption, prose styles for the body and a contents list that becomes a sticky rail on wide screens.", "registryDependencies": [ - "lambda-curry/astro-blocks/breadcrumbs#v0.1.19", - "lambda-curry/astro-blocks/pager#v0.1.19" + "lambda-curry/astro-blocks/breadcrumbs#v0.1.20", + "lambda-curry/astro-blocks/pager#v0.1.20" ], "files": [ { diff --git a/public/r/collection.json b/public/r/collection.json index 5858f17..96bf179 100644 --- a/public/r/collection.json +++ b/public/r/collection.json @@ -5,8 +5,8 @@ "author": "Lambda Curry ", "description": "An index of things the visitor opens, such as articles, events, projects, records or top tasks: image-led cards in as many columns as fit, ruled rows with a date rail, or a compact grid of task links. Each card or row is one link.", "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19", - "lambda-curry/astro-blocks/pager#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20", + "lambda-curry/astro-blocks/pager#v0.1.20" ], "files": [ { diff --git a/public/r/features-editorial.json b/public/r/features-editorial.json index dc7e019..c276c48 100644 --- a/public/r/features-editorial.json +++ b/public/r/features-editorial.json @@ -5,7 +5,7 @@ "author": "Lambda Curry ", "description": "A large heading and intro that stay in view beside a ruled list of offers, each with a title, a sentence or two and an optional label.", "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20" ], "files": [ { diff --git a/public/r/footer-columns.json b/public/r/footer-columns.json index 8efb829..f1256a7 100644 --- a/public/r/footer-columns.json +++ b/public/r/footer-columns.json @@ -5,7 +5,7 @@ "author": "Lambda Curry ", "description": "A brand block with description and action beside titled link columns, over a bottom bar for copyright, legal links and a credit.", "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20" ], "files": [ { diff --git a/public/r/footer-cta.json b/public/r/footer-cta.json index 9306b2d..4efe815 100644 --- a/public/r/footer-cta.json +++ b/public/r/footer-cta.json @@ -5,7 +5,7 @@ "author": "Lambda Curry ", "description": "A closing band with one invitation and up to two actions, merged with a compact footer row, in inverse, accent or surface tone.", "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20" ], "files": [ { diff --git a/public/r/form-status.json b/public/r/form-status.json index 6065a40..3861564 100644 --- a/public/r/form-status.json +++ b/public/r/form-status.json @@ -5,7 +5,7 @@ "author": "Lambda Curry ", "description": "The outcome of a submission: a calm receipt that replaces the form once it is sent, with what happens next; or an error summary above a form that keeps its answers, linking to each field to fix.", "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20" ], "files": [ { diff --git a/public/r/header-editorial.json b/public/r/header-editorial.json index 9caaa7f..1b2d0a6 100644 --- a/public/r/header-editorial.json +++ b/public/r/header-editorial.json @@ -5,7 +5,7 @@ "author": "Lambda Curry ", "description": "A magazine masthead: a centered wordmark with tagline, a top line for an issue or place, and section links between double rules that wrap instead of hiding.", "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20" ], "files": [ { diff --git a/public/r/header-floating.json b/public/r/header-floating.json index 6e7ba09..d98171f 100644 --- a/public/r/header-floating.json +++ b/public/r/header-floating.json @@ -5,7 +5,7 @@ "author": "Lambda Curry ", "description": "A detached, rounded navigation bar that floats below the top edge with a translucent surface and a native popover menu on narrow screens.", "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20" ], "files": [ { diff --git a/public/r/header-minimal.json b/public/r/header-minimal.json index fb9e360..8431668 100644 --- a/public/r/header-minimal.json +++ b/public/r/header-minimal.json @@ -5,18 +5,18 @@ "author": "Lambda Curry ", "description": "A single quiet row: name, two to five links and an optional action. Links wrap onto their own row on narrow screens instead of hiding in a menu.", "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20" ], "files": [ { "path": "src/components/blocks/HeaderMinimal.astro", - "content": "---\n// Astro Blocks — header-minimal — MIT — https://github.com/lambda-curry/astro-blocks\nimport type { HTMLAttributes } from \"astro/types\";\nimport Button from \"../ui/Button.astro\";\n\ninterface Link {\n label: string;\n href: string;\n /** Where it opens, such as \"_blank\" for another tab, which also gets rel=\"noopener noreferrer\". */\n target?: string;\n}\ninterface Props extends HTMLAttributes<\"header\"> {\n /** Site name. Used as the home link text, or as the logo's alt text. With a brand slot it names the home link for screen readers. */\n brand: string;\n homeHref?: string;\n logo?: { src: string; alt?: string; width?: number; height?: number };\n /** Two to five links. They wrap onto their own row on narrow screens instead of hiding in a menu. */\n links?: Link[];\n action?: Link;\n /** Draw a hairline under the header. */\n divider?: boolean;\n /** Names the header's navigation for screen readers, such as \"Primary\". */\n navLabel?: string;\n}\n\nconst { brand, homeHref = \"/\", logo, links = [], action, divider = true, navLabel = \"Primary\", class: className, ...attrs } = Astro.props;\n// \"_blank\" opens another tab without handing it this page: rel=\"noopener noreferrer\".\nconst opens = (target?: string) => (target ? { target, rel: target === \"_blank\" ? \"noopener noreferrer\" : undefined } : {});\nconst trim = (path: string) => path.replace(/\\/$/, \"\") || \"/\";\nconst here = trim(Astro.url.pathname);\n// A composed mark (the brand slot) is announced as the brand name, whatever it contains.\nconst composed = Astro.slots.has(\"brand\");\nconst isCurrent = (href: string) => (href.startsWith(\"/\") && !href.startsWith(\"//\") && trim(href) === here ? \"page\" : undefined);\n---\n\n
\n
\n \n {logo ? {logo.alt : brand}\n \n {\n links.length > 0 && (\n \n )\n }\n {action && }\n
\n
\n\n\n", + "content": "---\n// Astro Blocks — header-minimal — MIT — https://github.com/lambda-curry/astro-blocks\nimport type { HTMLAttributes } from \"astro/types\";\nimport Button from \"../ui/Button.astro\";\n\ninterface Link {\n label: string;\n href: string;\n /** Where it opens, such as \"_blank\" for another tab, which also gets rel=\"noopener noreferrer\". */\n target?: string;\n}\ninterface Props extends HTMLAttributes<\"header\"> {\n /** Site name. Used as the home link text, or as the logo's alt text. With a brand slot it names the home link for screen readers. */\n brand: string;\n homeHref?: string;\n logo?: { src: string; alt?: string; width?: number; height?: number };\n /** Two to five links. They wrap onto their own row on narrow screens instead of hiding in a menu. */\n links?: Link[];\n action?: Link;\n /** Match the opening's surface. Base inherits the page background. */\n tone?: \"base\" | \"surface\" | \"inverse\" | \"accent\";\n /** Draw a hairline under the header. */\n divider?: boolean;\n /** Names the header's navigation for screen readers, such as \"Primary\". */\n navLabel?: string;\n}\n\nconst { brand, homeHref = \"/\", logo, links = [], action, tone = \"base\", divider = true, navLabel = \"Primary\", class: className, ...attrs } = Astro.props;\n// \"_blank\" opens another tab without handing it this page: rel=\"noopener noreferrer\".\nconst opens = (target?: string) => (target ? { target, rel: target === \"_blank\" ? \"noopener noreferrer\" : undefined } : {});\nconst trim = (path: string) => path.replace(/\\/$/, \"\") || \"/\";\nconst here = trim(Astro.url.pathname);\n// A composed mark (the brand slot) is announced as the brand name, whatever it contains.\nconst composed = Astro.slots.has(\"brand\");\nconst isCurrent = (href: string) => (href.startsWith(\"/\") && !href.startsWith(\"//\") && trim(href) === here ? \"page\" : undefined);\n---\n\n
\n
\n \n {logo ? {logo.alt : brand}\n \n {\n links.length > 0 && (\n \n )\n }\n {action && }\n
\n
\n\n\n", "type": "registry:file", "target": "~/src/components/blocks/HeaderMinimal.astro" } ], "meta": { - "version": "0.1.6", + "version": "0.1.7", "tags": [ "navigation", "minimal", @@ -26,9 +26,9 @@ "useWhen": "There are only a few destinations and every one should stay visible, especially on phones.", "avoidWhen": "There are more than five links, or the header should overlay imagery.", "placement": "page-start", - "summary": "default nav with a few visible links (brand, logo?, links?[{label,href,target?}], action?, divider?)" + "summary": "default nav with a few visible links (brand, logo?, links?[{label,href,target?}], action?, tone?, divider?)" }, - "docs": "Import from src/components/blocks/HeaderMinimal.astro. To compose a mark (an inline SVG, or an SVG beside the name), put it in the brand slot: …. brand still names the home link for screen readers. Below 44rem the brand and action share the first row and the links wrap onto the second.", + "docs": "Import from src/components/blocks/HeaderMinimal.astro. To compose a mark (an inline SVG, or an SVG beside the name), put it in the brand slot: …. brand still names the home link for screen readers. Below 44rem the brand and action share the first row and the links wrap onto the second. Use the opening’s tone (base, surface, inverse or accent) to share its surface; pass divider={false} for a continuous band.", "categories": [ "header" ], diff --git a/public/r/header-transparent.json b/public/r/header-transparent.json index ac22c66..b516b02 100644 --- a/public/r/header-transparent.json +++ b/public/r/header-transparent.json @@ -5,7 +5,7 @@ "author": "Lambda Curry ", "description": "A header that overlays the opening image in light or dark ink, with a native popover menu on narrow screens and, where supported, a solid surface that fades in while scrolling.", "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20" ], "files": [ { diff --git a/public/r/hero-editorial.json b/public/r/hero-editorial.json index b944c98..2e833cd 100644 --- a/public/r/hero-editorial.json +++ b/public/r/hero-editorial.json @@ -5,7 +5,7 @@ "author": "Lambda Curry ", "description": "An asymmetric spread: a display headline on a twelve-column grid, a tall framed photograph that starts lower so the two step past each other, the lede beside it, and a colophon rail of quiet facts.", "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20" ], "files": [ { diff --git a/public/r/hero-front-desk.json b/public/r/hero-front-desk.json index 2ed4116..fa3b77f 100644 --- a/public/r/hero-front-desk.json +++ b/public/r/hero-front-desk.json @@ -5,7 +5,7 @@ "author": "Lambda Curry ", "description": "A task-first opening: the place's name and today's status beside the three to six things most visitors come to do, each one large target, with a ruled strip of hours, phone and address under both.", "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20" ], "files": [ { diff --git a/public/r/hero-immersive.json b/public/r/hero-immersive.json index f85dd08..87f47d4 100644 --- a/public/r/hero-immersive.json +++ b/public/r/hero-immersive.json @@ -5,7 +5,7 @@ "author": "Lambda Curry ", "description": "A full-bleed photograph or artwork with the headline, lede and actions in white over a contrast-safe scrim, placed low, high or centered to suit the picture, with an optional caption in the far corner.", "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20" ], "files": [ { diff --git a/public/r/hero-program.json b/public/r/hero-program.json index 8e63a69..d53d9f9 100644 --- a/public/r/hero-program.json +++ b/public/r/hero-program.json @@ -5,7 +5,7 @@ "author": "Lambda Curry ", "description": "A programme-first opening: the venue, festival or season name set large with its dates, beside the next two to four sessions as dated rows with time, place and a link, and a route to the full programme.", "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20" ], "files": [ { diff --git a/public/r/hero-split.json b/public/r/hero-split.json index 14dd802..6d17af2 100644 --- a/public/r/hero-split.json +++ b/public/r/hero-split.json @@ -5,7 +5,7 @@ "author": "Lambda Curry ", "description": "Headline, lede and actions beside one framed image or artwork, stacking copy-first on narrow screens.", "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20" ], "files": [ { diff --git a/public/r/hero-typographic.json b/public/r/hero-typographic.json index 4931efa..b2464ef 100644 --- a/public/r/hero-typographic.json +++ b/public/r/hero-typographic.json @@ -5,7 +5,7 @@ "author": "Lambda Curry ", "description": "A large statement headline with one accented phrase, an optional dateline, lede, actions and a ruled row of facts. Poster layout centers the lockup and lets a name, date or sentence command the full width.", "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20" ], "files": [ { diff --git a/public/r/locations-visit.json b/public/r/locations-visit.json index 03393ec..c634339 100644 --- a/public/r/locations-visit.json +++ b/public/r/locations-visit.json @@ -5,7 +5,7 @@ "author": "Lambda Curry ", "description": "Where to go and what to do next for one location or several: each a ruled card with the name, address, a visitor note, the hours, and direct actions for directions and calling.", "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20" ], "files": [ { diff --git a/public/r/pairing-editorial.json b/public/r/pairing-editorial.json index 9f76284..07a716d 100644 --- a/public/r/pairing-editorial.json +++ b/public/r/pairing-editorial.json @@ -5,8 +5,8 @@ "author": "Lambda Curry ", "description": "Instrument Serif headings over Instrument Sans text. Installs font-instrument-serif and font-instrument-sans, plus a 1 KB token stylesheet.", "registryDependencies": [ - "lambda-curry/astro-blocks/font-instrument-serif#v0.1.19", - "lambda-curry/astro-blocks/font-instrument-sans#v0.1.19" + "lambda-curry/astro-blocks/font-instrument-serif#v0.1.20", + "lambda-curry/astro-blocks/font-instrument-sans#v0.1.20" ], "files": [ { diff --git a/public/r/pairing-product.json b/public/r/pairing-product.json index 9531498..9ac4c90 100644 --- a/public/r/pairing-product.json +++ b/public/r/pairing-product.json @@ -5,8 +5,8 @@ "author": "Lambda Curry ", "description": "Funnel Display headings over Funnel Sans text, one superfamily at two volumes. Installs font-funnel-display and font-funnel-sans, plus a 1 KB token stylesheet.", "registryDependencies": [ - "lambda-curry/astro-blocks/font-funnel-display#v0.1.19", - "lambda-curry/astro-blocks/font-funnel-sans#v0.1.19" + "lambda-curry/astro-blocks/font-funnel-display#v0.1.20", + "lambda-curry/astro-blocks/font-funnel-sans#v0.1.20" ], "files": [ { diff --git a/public/r/pairing-warm.json b/public/r/pairing-warm.json index b3b945f..3d3f1b9 100644 --- a/public/r/pairing-warm.json +++ b/public/r/pairing-warm.json @@ -5,7 +5,7 @@ "author": "Lambda Curry ", "description": "Bricolage Grotesque in two optical sizes, a tight display cut and an open text cut. Installs font-bricolage-grotesque, plus a 1 KB token stylesheet.", "registryDependencies": [ - "lambda-curry/astro-blocks/font-bricolage-grotesque#v0.1.19" + "lambda-curry/astro-blocks/font-bricolage-grotesque#v0.1.20" ], "files": [ { diff --git a/public/r/registry.json b/public/r/registry.json index d577935..0ca76ad 100644 --- a/public/r/registry.json +++ b/public/r/registry.json @@ -55,8 +55,8 @@ "summary": "editorial serif display + sans body (link both font stylesheets, @import pairing CSS: Instrument Serif / Instrument Sans)" }, "registryDependencies": [ - "lambda-curry/astro-blocks/font-instrument-serif#v0.1.19", - "lambda-curry/astro-blocks/font-instrument-sans#v0.1.19" + "lambda-curry/astro-blocks/font-instrument-serif#v0.1.20", + "lambda-curry/astro-blocks/font-instrument-sans#v0.1.20" ], "files": [ { @@ -90,8 +90,8 @@ "summary": "precise sans display + body (link both font stylesheets, @import pairing CSS: Funnel Display / Funnel Sans)" }, "registryDependencies": [ - "lambda-curry/astro-blocks/font-funnel-display#v0.1.19", - "lambda-curry/astro-blocks/font-funnel-sans#v0.1.19" + "lambda-curry/astro-blocks/font-funnel-display#v0.1.20", + "lambda-curry/astro-blocks/font-funnel-sans#v0.1.20" ], "files": [ { @@ -125,7 +125,7 @@ "summary": "approachable display + body (link the font stylesheet, @import pairing CSS: Bricolage Grotesque optical sizes)" }, "registryDependencies": [ - "lambda-curry/astro-blocks/font-bricolage-grotesque#v0.1.19" + "lambda-curry/astro-blocks/font-bricolage-grotesque#v0.1.20" ], "files": [ { @@ -1622,7 +1622,7 @@ "primitive" ], "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20" ], "docs": "Import from src/components/ui/FormStatus.astro. state=\"sent\": render it instead of the form, never above an emptied one; it has role=\"status\", the theme's surface, an accent check, the title, text, next (an ordered list under nextLabel) and an optional action link. state=\"invalid\": render it above the form and render the form with the submitted values and each field's error; it has role=\"alert\", tabindex=\"-1\" and an error-colored border, and errors links to each field's id, such as { label: \"Enter an email address\", href: \"#email\" }. Give it an id and point the form's action at it (action=\"/contact#form-errors\") so the browser moves focus to the summary when the page returns. headingLevel is 2 or 3. It fills its parent's width, so place it in the form's column.", "meta": { @@ -2180,7 +2180,7 @@ "header" ], "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20" ], "docs": "Import from src/components/blocks/HeaderFloating.astro. The narrow-screen menu uses the HTML popover attribute and needs no JavaScript.", "meta": { @@ -2215,7 +2215,7 @@ "header" ], "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20" ], "docs": "Import from src/components/blocks/HeaderEditorial.astro.", "meta": { @@ -2251,7 +2251,7 @@ "header" ], "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20" ], "docs": "Import from src/components/blocks/HeaderTransparent.astro and put a full-bleed opening such as hero-immersive directly after it.", "meta": { @@ -2287,11 +2287,11 @@ "header" ], "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20" ], - "docs": "Import from src/components/blocks/HeaderMinimal.astro. To compose a mark (an inline SVG, or an SVG beside the name), put it in the brand slot: …. brand still names the home link for screen readers. Below 44rem the brand and action share the first row and the links wrap onto the second.", + "docs": "Import from src/components/blocks/HeaderMinimal.astro. To compose a mark (an inline SVG, or an SVG beside the name), put it in the brand slot: …. brand still names the home link for screen readers. Below 44rem the brand and action share the first row and the links wrap onto the second. Use the opening’s tone (base, surface, inverse or accent) to share its surface; pass divider={false} for a continuous band.", "meta": { - "version": "0.1.6", + "version": "0.1.7", "tags": [ "navigation", "minimal", @@ -2301,7 +2301,7 @@ "useWhen": "There are only a few destinations and every one should stay visible, especially on phones.", "avoidWhen": "There are more than five links, or the header should overlay imagery.", "placement": "page-start", - "summary": "default nav with a few visible links (brand, logo?, links?[{label,href,target?}], action?, divider?)" + "summary": "default nav with a few visible links (brand, logo?, links?[{label,href,target?}], action?, tone?, divider?)" }, "files": [ { @@ -2321,7 +2321,7 @@ "hero" ], "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20" ], "docs": "Import from src/components/blocks/HeroSplit.astro. Pass image, or use the media slot for a picture, video or SVG. The slot is also the natural home for original artwork drawn in SVG or CSS, a signature piece made for the site, when there is no photograph worth showing. With tone=\"base\", place it inside the page’s content column. For surface, inverse or accent, place it in a full-width parent; the block provides the content rail. In the site theme, use --frame-border and --frame-shadow to style the artwork’s edge.", "meta": { @@ -2353,7 +2353,7 @@ "hero" ], "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20" ], "docs": "Import from src/components/blocks/HeroImmersive.astro. It breaks out of a centered column and clips the page's horizontal overflow. align places the copy: start (low, the default), center (low and centered), top (high, for a subject in the lower half) or middle (centered on a 60% band, for a poster-like title). The strong scrim follows the placement, so white text keeps 4.5:1 over any image. caption sets one line about the picture (place, date, credit) on a small dark label in the far corner; in narrow containers it follows the copy. Set position and narrowPosition to keep the subject in frame.", "meta": { @@ -2392,7 +2392,7 @@ "hero" ], "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20" ], "docs": "Import from src/components/blocks/HeroTypographic.astro. Set emphasis to a phrase that appears in title. layout=\"poster\" centers the lockup, sets the title across the width and frames it with meta (a dateline above, such as issue, dates and venue) and facts (below). tone fills a band (surface, inverse or accent) and insets the content rail; on inverse and accent the emphasis becomes an underline. It fills its parent, so render it inside your page's content column (on Site Boulder, the `.wrap`).", "meta": { @@ -2432,7 +2432,7 @@ "hero" ], "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20" ], "docs": "Import from src/components/blocks/HeroFrontDesk.astro. tasks are verb-phrase links in order of how often people need them, each with an optional effort line (\"Online, about 5 minutes\"). status states today in one line; statusKind open, closed or notice changes its mark. details sets two to four practical facts on a ruled strip; give a phone or map an href. actions hold one or two quieter routes (book, call) for visitors who aren't here for a listed task. tone fills a band. No client JavaScript. It fills its parent, so render it inside your page's content column (on Site Boulder, the `.wrap`).", "meta": { @@ -2477,7 +2477,7 @@ "hero" ], "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20" ], "docs": "Import from src/components/blocks/HeroEditorial.astro. Pass one tall image (or the media slot) with caption and credit; ratio sets the frame (3 / 4 by default) and mediaSide which side it holds. notes become a colophon rail beside the body on wide screens and a ruled row under it on phones. kicker names the discipline or issue. Without media the title keeps the full spread. It fills its parent, so render it inside your page's content column (on Site Boulder, the `.wrap`).", "meta": { @@ -2520,7 +2520,7 @@ "hero" ], "registryDependencies": [ - "lambda-curry/astro-blocks/button#v0.1.19" + "lambda-curry/astro-blocks/button#v0.1.20" ], "docs": "Import from src/components/blocks/HeroProgram.astro. sessions are the soonest few, each with day, date (and datetime for
\n \n \n \n \n \n \n \n \n
AdhesiveReversibleDries inUse it for
Wheat starch pasteYes, with water2–4 hoursTissue repairs, hinges
Methyl celluloseYes, with water1–2 hoursDelicate or coated paper
PVA glueNo20 minutesCovers and boards, never pages
\n
\n

Every repair should be one the next person can undo. If you can't take it apart again, don't put it together that way.

\n The rule we teach on the first day\n
\n\n

When to stop

\n

\n Stop if the paper crumbles at the edge of a tear, if you smell mould, or if the book is the only copy of something. Damp and brittle paper need a conservator's bench, and the first\n attempt is the one that matters. Bring it to us; we look at books every Thursday afternoon, free.\n

\n\n
\n

Footnotes

\n
    \n
  1. Paste on the page soaks in and cockles it. Paste on the tissue stays where you put it. ↩

  2. \n
\n
\n\n", - "install": "npx shadcn@latest add lambda-curry/astro-blocks/article#v0.1.19" + "usage": "---\nimport Article from \"../components/blocks/Article.astro\";\n// Placeholder art, inlined so this example renders in any project. Replace it with your own images.\nconst bench = \"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='xMidYMid slice'%3E%3Crect width='1600' height='900' fill='%23d8d1c2'/%3E%3Crect y='560' width='1600' height='340' fill='%238b6a4a'/%3E%3Crect y='560' width='1600' height='14' fill='%236d5139'/%3E%3Cg transform='rotate(-6 760 470)'%3E%3Crect x='520' y='300' width='520' height='330' fill='%23f6f1e6'/%3E%3Crect x='780' y='300' width='4' height='330' fill='%23cfc5b2'/%3E%3Cg fill='%23a59b8a'%3E%3Crect x='560' y='350' width='180' height='8'/%3E%3Crect x='560' y='375' width='190' height='8'/%3E%3Crect x='560' y='400' width='160' height='8'/%3E%3Crect x='820' y='350' width='180' height='8'/%3E%3Crect x='820' y='375' width='170' height='8'/%3E%3C/g%3E%3Cpath d='M880 430l60 120' stroke='%23a8432b' stroke-width='5'/%3E%3C/g%3E%3Crect x='1130' y='470' width='240' height='36' rx='18' fill='%232b4a3f'/%3E%3Crect x='1180' y='440' width='26' height='60' fill='%23e9e2d3'/%3E%3Ccircle cx='300' cy='520' r='70' fill='%23c9b28a'/%3E%3Ccircle cx='300' cy='520' r='40' fill='%23efe7d4'/%3E%3C/svg%3E\";\nconst tear = \"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 700' preserveAspectRatio='xMidYMid slice'%3E%3Crect width='1200' height='700' fill='%23e4ddcd'/%3E%3Cpath d='M250 120h700v460H250z' fill='%23f8f4ea'/%3E%3Cpath d='M600 120l-30 90 40 60-30 80 50 70-20 160' fill='none' stroke='%23b8ab93' stroke-width='6'/%3E%3Cg fill='%239b9283'%3E%3Crect x='300' y='180' width='220' height='10'/%3E%3Crect x='300' y='210' width='240' height='10'/%3E%3Crect x='300' y='240' width='200' height='10'/%3E%3Crect x='680' y='180' width='220' height='10'/%3E%3Crect x='680' y='210' width='200' height='10'/%3E%3C/g%3E%3Crect x='560' y='300' width='90' height='140' fill='%23efe3c4' opacity='.85'/%3E%3C/svg%3E\";\n// With Markdown or MDX, pass these straight through: const { Content, headings } = await render(entry);\nconst headings = [\n { depth: 2, slug: \"before-you-start\", text: \"Before you start\" },\n { depth: 2, slug: \"loose-pages\", text: \"Loose pages\" },\n { depth: 2, slug: \"tears\", text: \"Tears\" },\n { depth: 3, slug: \"clean-tears\", text: \"Clean tears\" },\n { depth: 3, slug: \"torn-corners\", text: \"Torn corners\" },\n { depth: 2, slug: \"adhesives\", text: \"Choosing an adhesive\" },\n { depth: 2, slug: \"when-to-stop\", text: \"When to stop\" },\n];\n---\n\n\n

\n A book that is falling apart is usually asking for less than you think. Most of what goes wrong with a well-loved paperback or an old hardback is mechanical: a page has come loose, a sheet has\n torn along a fold, a corner has worn through. Those you can mend at a kitchen table. Tape is not one of the tools.\n

\n\n

Before you start

\n

Work on a clean, dry surface in good light, and give yourself more time than the repair seems to need. Paste dries slowly, and the most common mistake is lifting a weight too soon.

\n
    \n
  • Wheat starch paste, or methyl cellulose if you can't cook the paste
  • \n
  • Japanese tissue, thin enough to read through
  • \n
  • A bone folder, a soft brush and a few sheets of blotting paper
  • \n
  • Something flat and heavy: a board and two dictionaries will do
  • \n
\n\n

Loose pages

\n

\n A single loose leaf goes back with a hinge: a strip of tissue, three or four millimetres wide, pasted half to the leaf and half to its neighbour. Paste the strip, not the page, and use\n less than you think you need.1\n

\n\n

Tears

\n

How a tear is cut decides how it mends. Look at its edge against the light before you reach for anything.

\n

Clean tears

\n

A straight tear with no overlap is the easiest repair there is. Close it on blotting paper, lay a strip of tissue over it, and brush paste through the tissue from the centre out.

\n
\n \"A\n
Tissue laid across a clean tear. Its torn, feathered edges disappear into the paper once the paste dries.
\n
\n

Torn corners

\n

A missing corner needs a fill: a piece of paper of the same weight, torn rather than cut so its fibres can overlap the page.

\n\n

Choosing an adhesive

\n \n \n \n \n \n \n \n \n \n
AdhesiveReversibleDries inUse it for
Wheat starch pasteYes, with water2–4 hoursTissue repairs, hinges
Methyl celluloseYes, with water1–2 hoursDelicate or coated paper
PVA glueNo20 minutesCovers and boards, never pages
\n
\n

Every repair should be one the next person can undo. If you can't take it apart again, don't put it together that way.

\n The rule we teach on the first day\n
\n\n

When to stop

\n

\n Stop if the paper crumbles at the edge of a tear, if you smell mould, or if the book is the only copy of something. Damp and brittle paper need a conservator's bench, and the first\n attempt is the one that matters. Bring it to a conservator for an assessment.\n

\n\n
\n

Footnotes

\n
    \n
  1. Paste on the page soaks in and cockles it. Paste on the tissue stays where you put it. ↩

  2. \n
\n
\n\n", + "install": "npx shadcn@latest add lambda-curry/astro-blocks/article#v0.1.20" }, { "name": "gallery", @@ -4258,7 +4265,7 @@ "slots": [], "clientScript": false, "usage": "---\nimport Gallery from \"../components/blocks/Gallery.astro\";\n// Placeholder art, inlined so this example renders in any project. Replace it with your own images.\nconst kiln = \"data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1600 1000%22 preserveAspectRatio=%22xMidYMid slice%22%3E%3Cdefs%3E%3CradialGradient id=%22g%22%3E%3Cstop offset=%220%22 stop-color=%22%23ffd27a%22/%3E%3Cstop offset=%221%22 stop-color=%22%23e0823c%22 stop-opacity=%220%22/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width=%221600%22 height=%221000%22 fill=%22%232b2622%22/%3E%3Crect x=%22520%22 y=%22160%22 width=%22560%22 height=%22620%22 rx=%2224%22 fill=%22%234a3f37%22/%3E%3Crect x=%22580%22 y=%22230%22 width=%22440%22 height=%22470%22 rx=%2212%22 fill=%22%23e0823c%22/%3E%3Crect x=%22580%22 y=%22230%22 width=%22440%22 height=%22470%22 rx=%2212%22 fill=%22url(%23g)%22/%3E%3Cg fill=%22%237a3f22%22%3E%3Cpath d=%22M640 690c0-90 20-150 40-170c20 20 40 80 40 170z%22/%3E%3Cpath d=%22M760 690c0-90 20-150 40-170c20 20 40 80 40 170z%22/%3E%3Cpath d=%22M880 690c0-90 20-150 40-170c20 20 40 80 40 170z%22/%3E%3C/g%3E%3Crect x=%22560%22 y=%22440%22 width=%22480%22 height=%2214%22 fill=%22%235a4a3e%22/%3E%3Crect y=%22780%22 width=%221600%22 height=%22220%22 fill=%22%233a332d%22/%3E%3C/svg%3E\";\nconst vase = \"data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 900 1300%22 preserveAspectRatio=%22xMidYMid slice%22%3E%3Crect width=%22900%22 height=%221300%22 fill=%22%23e7e2d6%22/%3E%3Crect y=%22980%22 width=%22900%22 height=%22320%22 fill=%22%23d2cbbb%22/%3E%3Cpath d=%22M370 300c-20 80 40 120 40 200s-120 180-110 330c8 120 80 170 150 170s142-50 150-170c10-150-110-250-110-330s60-120 40-200z%22 fill=%22%233e5a6b%22/%3E%3Cpath d=%22M360 300h180%22 stroke=%22%232c4250%22 stroke-width=%2216%22/%3E%3Cpath d=%22M330 760c90 30 150 30 240 0%22 stroke=%22%23e7e2d6%22 stroke-width=%226%22 opacity=%22.5%22 fill=%22none%22/%3E%3C/svg%3E\";\nconst raw = \"data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 900 1100%22 preserveAspectRatio=%22xMidYMid slice%22%3E%3Crect width=%22900%22 height=%221100%22 fill=%22%23ebe6dc%22/%3E%3Crect y=%22820%22 width=%22900%22 height=%22280%22 fill=%22%23d8d1c3%22/%3E%3Cpath d=%22M300 380c0 60 30 90 30 160s-60 140-60 230c0 70 70 110 180 110s180-40 180-110c0-90-60-160-60-230s30-100 30-160z%22 fill=%22%23d9cdb8%22/%3E%3Cpath d=%22M300 380h300%22 stroke=%22%23c4b69c%22 stroke-width=%2210%22/%3E%3C/svg%3E\";\nconst glazed = \"data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 900 1100%22 preserveAspectRatio=%22xMidYMid slice%22%3E%3Crect width=%22900%22 height=%221100%22 fill=%22%23ebe6dc%22/%3E%3Crect y=%22820%22 width=%22900%22 height=%22280%22 fill=%22%23d8d1c3%22/%3E%3Cpath d=%22M300 380c0 60 30 90 30 160s-60 140-60 230c0 70 70 110 180 110s180-40 180-110c0-90-60-160-60-230s30-100 30-160z%22 fill=%22%235d7f6e%22/%3E%3Cpath d=%22M300 380h300%22 stroke=%22%2345634f%22 stroke-width=%2210%22/%3E%3Cpath d=%22M290 660c60 40 260 40 320 0v60c-60 40-260 40-320 0z%22 fill=%22%23c98a3c%22 opacity=%22.85%22/%3E%3C/svg%3E\";\nconst studio = \"data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1600 900%22 preserveAspectRatio=%22xMidYMid slice%22%3E%3Crect width=%221600%22 height=%22900%22 fill=%22%23efe9de%22/%3E%3Crect x=%22980%22 y=%22120%22 width=%22460%22 height=%22420%22 fill=%22%23cfdfe0%22/%3E%3Cpath d=%22M1210 120v420M980 330h460%22 stroke=%22%23efe9de%22 stroke-width=%2214%22/%3E%3Crect x=%22120%22 y=%22300%22 width=%22620%22 height=%2216%22 fill=%22%237a6650%22/%3E%3Crect x=%22120%22 y=%22470%22 width=%22620%22 height=%2216%22 fill=%22%237a6650%22/%3E%3Cpath d=%22M170 300c0-50 14-80 30-90 16 10 30 40 30 90z%22 fill=%22%233e5a6b%22/%3E%3Cpath d=%22M280 300c0-50 14-80 30-90 16 10 30 40 30 90z%22 fill=%22%23d9cdb8%22/%3E%3Cpath d=%22M390 300c0-50 14-80 30-90 16 10 30 40 30 90z%22 fill=%22%238a5a3c%22/%3E%3Cpath d=%22M500 300c0-50 14-80 30-90 16 10 30 40 30 90z%22 fill=%22%235d7f6e%22/%3E%3Cpath d=%22M610 300c0-50 14-80 30-90 16 10 30 40 30 90z%22 fill=%22%23d9cdb8%22/%3E%3Cellipse cx=%22200%22 cy=%22455%22 rx=%2244%22 ry=%2216%22 fill=%22%238a5a3c%22/%3E%3Cellipse cx=%22320%22 cy=%22455%22 rx=%2244%22 ry=%2216%22 fill=%22%23efe6d4%22/%3E%3Cellipse cx=%22440%22 cy=%22455%22 rx=%2244%22 ry=%2216%22 fill=%22%233e5a6b%22/%3E%3Cellipse cx=%22560%22 cy=%22455%22 rx=%2244%22 ry=%2216%22 fill=%22%23c98a3c%22/%3E%3Cellipse cx=%22680%22 cy=%22455%22 rx=%2244%22 ry=%2216%22 fill=%22%23efe6d4%22/%3E%3Crect y=%22700%22 width=%221600%22 height=%22200%22 fill=%22%23c7b79c%22/%3E%3Ccircle cx=%221180%22 cy=%22700%22 r=%22120%22 fill=%22%236e5b48%22/%3E%3Cellipse cx=%221180%22 cy=%22600%22 rx=%2290%22 ry=%2222%22 fill=%22%23a08a6e%22/%3E%3C/svg%3E\";\nconst bowls = \"data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1200 1200%22 preserveAspectRatio=%22xMidYMid slice%22%3E%3Crect width=%221200%22 height=%221200%22 fill=%22%23cdd3c8%22/%3E%3Crect y=%22760%22 width=%221200%22 height=%22440%22 fill=%22%23b5bdb0%22/%3E%3Cpath d=%22M220 620h360c0 140-80 220-180 220s-180-80-180-220z%22 fill=%22%23efe6d4%22/%3E%3Cellipse cx=%22400%22 cy=%22620%22 rx=%22180%22 ry=%2234%22 fill=%22%23d9c9a8%22/%3E%3Cpath d=%22M640 680h340c0 120-76 190-170 190s-170-70-170-190z%22 fill=%22%238a5a3c%22/%3E%3Cellipse cx=%22810%22 cy=%22680%22 rx=%22170%22 ry=%2230%22 fill=%22%236d4630%22/%3E%3C/svg%3E\";\n---\n\n\n\n\n\n\n", - "install": "npx shadcn@latest add lambda-curry/astro-blocks/gallery#v0.1.19" + "install": "npx shadcn@latest add lambda-curry/astro-blocks/gallery#v0.1.20" }, { "name": "facts", @@ -4357,15 +4364,15 @@ "media" ], "clientScript": false, - "usage": "---\nimport Facts from \"../components/blocks/Facts.astro\";\n---\n\n\n", - "install": "npx shadcn@latest add lambda-curry/astro-blocks/facts#v0.1.19" + "usage": "---\nimport Facts from \"../components/blocks/Facts.astro\";\n---\n\n\n", + "install": "npx shadcn@latest add lambda-curry/astro-blocks/facts#v0.1.20" }, { "name": "schedule", "title": "Schedule", - "description": "Days, times and places: each day under its own heading with a time gutter, parallel sessions in track columns on wide screens, quiet break rows and a sticky bar of day links. No JavaScript.", + "description": "Days, times and places: each day under its own heading with a time gutter, parallel sessions in track columns on wide screens, quiet break rows and a wrapping bar of day links. No JavaScript.", "category": "content", - "version": "0.1.2", + "version": "0.1.3", "tags": [ "programme", "agenda", @@ -4390,8 +4397,8 @@ "files": [ { "target": "src/components/blocks/Schedule.astro", - "bytes": 24327, - "sha256": "273315b76d1760235d35119e2cffa571e8a2190f055e797aecab6ad712498996" + "bytes": 23904, + "sha256": "8e89873f12a6d0eba24690fcb090f71a8a2780221272f5777a58dc8bdb5cae6b" } ], "import": "../components/blocks/Schedule.astro", @@ -4488,8 +4495,8 @@ }, "slots": [], "clientScript": false, - "usage": "---\nimport Schedule from \"../components/blocks/Schedule.astro\";\n---\n\n\n", - "install": "npx shadcn@latest add lambda-curry/astro-blocks/schedule#v0.1.19" + "usage": "---\nimport Schedule from \"../components/blocks/Schedule.astro\";\n---\n\n\n", + "install": "npx shadcn@latest add lambda-curry/astro-blocks/schedule#v0.1.20" }, { "name": "compare", @@ -4633,8 +4640,8 @@ }, "slots": [], "clientScript": false, - "usage": "---\nimport Compare from \"../components/blocks/Compare.astro\";\n---\n\n\n\n\n", - "install": "npx shadcn@latest add lambda-curry/astro-blocks/compare#v0.1.19" + "usage": "---\nimport Compare from \"../components/blocks/Compare.astro\";\n---\n\n\n\n\n", + "install": "npx shadcn@latest add lambda-curry/astro-blocks/compare#v0.1.20" }, { "name": "menu-list", @@ -4726,7 +4733,7 @@ "slots": [], "clientScript": false, "usage": "---\nimport MenuList from \"../components/blocks/MenuList.astro\";\n---\n\n\n", - "install": "npx shadcn@latest add lambda-curry/astro-blocks/menu-list#v0.1.19" + "install": "npx shadcn@latest add lambda-curry/astro-blocks/menu-list#v0.1.20" }, { "name": "locations-visit", @@ -4824,8 +4831,8 @@ }, "slots": [], "clientScript": false, - "usage": "---\nimport LocationsVisit from \"../components/blocks/LocationsVisit.astro\";\n---\n\n\n", - "install": "npx shadcn@latest add lambda-curry/astro-blocks/locations-visit#v0.1.19" + "usage": "---\nimport LocationsVisit from \"../components/blocks/LocationsVisit.astro\";\n---\n\n\n", + "install": "npx shadcn@latest add lambda-curry/astro-blocks/locations-visit#v0.1.20" }, { "name": "footer-minimal", @@ -4898,8 +4905,8 @@ }, "slots": [], "clientScript": false, - "usage": "---\nimport FooterMinimal from \"../components/blocks/FooterMinimal.astro\";\n---\n\n\n", - "install": "npx shadcn@latest add lambda-curry/astro-blocks/footer-minimal#v0.1.19" + "usage": "---\nimport FooterMinimal from \"../components/blocks/FooterMinimal.astro\";\n---\n\n\n", + "install": "npx shadcn@latest add lambda-curry/astro-blocks/footer-minimal#v0.1.20" }, { "name": "footer-columns", @@ -4990,8 +4997,8 @@ }, "slots": [], "clientScript": false, - "usage": "---\nimport FooterColumns from \"../components/blocks/FooterColumns.astro\";\n---\n\n\n", - "install": "npx shadcn@latest add lambda-curry/astro-blocks/footer-columns#v0.1.19" + "usage": "---\nimport FooterColumns from \"../components/blocks/FooterColumns.astro\";\n---\n\n\n", + "install": "npx shadcn@latest add lambda-curry/astro-blocks/footer-columns#v0.1.20" }, { "name": "footer-wordmark", @@ -5077,8 +5084,8 @@ }, "slots": [], "clientScript": false, - "usage": "---\nimport FooterWordmark from \"../components/blocks/FooterWordmark.astro\";\n---\n\n\n", - "install": "npx shadcn@latest add lambda-curry/astro-blocks/footer-wordmark#v0.1.19" + "usage": "---\nimport FooterWordmark from \"../components/blocks/FooterWordmark.astro\";\n---\n\n\n", + "install": "npx shadcn@latest add lambda-curry/astro-blocks/footer-wordmark#v0.1.20" }, { "name": "footer-cta", @@ -5172,8 +5179,8 @@ }, "slots": [], "clientScript": false, - "usage": "---\nimport FooterCta from \"../components/blocks/FooterCta.astro\";\n---\n\n\n", - "install": "npx shadcn@latest add lambda-curry/astro-blocks/footer-cta#v0.1.19" + "usage": "---\nimport FooterCta from \"../components/blocks/FooterCta.astro\";\n---\n\n\n", + "install": "npx shadcn@latest add lambda-curry/astro-blocks/footer-cta#v0.1.20" }, { "name": "detail-dialog", @@ -5271,7 +5278,7 @@ ], "clientScript": true, "usage": "---\nimport DetailDialog from \"../components/blocks/DetailDialog.astro\";\n---\n\n\n", - "install": "npx shadcn@latest add lambda-curry/astro-blocks/detail-dialog#v0.1.19" + "install": "npx shadcn@latest add lambda-curry/astro-blocks/detail-dialog#v0.1.20" }, { "name": "filter-collection", @@ -5395,7 +5402,7 @@ "slots": [], "clientScript": true, "usage": "---\nimport FilterCollection from \"../components/blocks/FilterCollection.astro\";\n---\n\n\n", - "install": "npx shadcn@latest add lambda-curry/astro-blocks/filter-collection#v0.1.19" + "install": "npx shadcn@latest add lambda-curry/astro-blocks/filter-collection#v0.1.20" }, { "name": "compare-tray", @@ -5505,7 +5512,7 @@ "slots": [], "clientScript": true, "usage": "---\nimport CompareTray from \"../components/blocks/CompareTray.astro\";\n---\n\n\n", - "install": "npx shadcn@latest add lambda-curry/astro-blocks/compare-tray#v0.1.19" + "install": "npx shadcn@latest add lambda-curry/astro-blocks/compare-tray#v0.1.20" } ] } diff --git a/src/data/gallery-catalog.json b/src/data/gallery-catalog.json index fa38746..4bbec16 100644 --- a/src/data/gallery-catalog.json +++ b/src/data/gallery-catalog.json @@ -1,4 +1,4 @@ -{"name":"astro-blocks","version":"0.1.19","repository":"lambda-curry/astro-blocks","items":[ +{"name":"astro-blocks","version":"0.1.20","repository":"lambda-curry/astro-blocks","items":[ {"name":"tokens","title":"Semantic tokens","description":"The color, type, space, shape and motion custom properties every block reads, with neutral defaults.","category":"foundation","tags":["theme","tokens","css variables"],"useWhen":"A project has no theme yet and you want one place to set colors, fonts, type scale, spacing and radius for every block.","avoidWhen":"The site already defines these roles, as every Site Boulder starter does. Keep the site's own tokens.","dependencies":[],"files":[{"target":"src/styles/tokens.css"}]}, {"name":"pairing-editorial","title":"Type pairing: Editorial","description":"Instrument Serif headings over Instrument Sans text. Installs font-instrument-serif and font-instrument-sans, plus a 1 KB token stylesheet.","category":"foundation","tags":["typography","fonts","serif","editorial","pairing"],"useWhen":"The site earns trust through writing and scale contrast: publications, studios, practices, hospitality, cultural work. Headings can be large and few.","avoidWhen":"Dense product UI, long button labels or many small headings; a brand that already has fonts; text in scripts beyond Latin and Latin Extended.","dependencies":["font-instrument-serif","font-instrument-sans"],"files":[{"target":"src/styles/pairings/editorial.css"}]}, {"name":"pairing-product","title":"Type pairing: Product","description":"Funnel Display headings over Funnel Sans text, one superfamily at two volumes. Installs font-funnel-display and font-funnel-sans, plus a 1 KB token stylesheet.","category":"foundation","tags":["typography","fonts","sans","software","pairing"],"useWhen":"Software, tools, services and fintech that want precise, confident type without a serif.","avoidWhen":"Warm, handmade or literary brands, where it reads cold; a brand that already has fonts; scripts beyond Latin and Latin Extended.","dependencies":["font-funnel-display","font-funnel-sans"],"files":[{"target":"src/styles/pairings/product.css"}]}, @@ -44,7 +44,7 @@ {"name":"header-floating","title":"Floating header","description":"A detached, rounded navigation bar that floats below the top edge with a translucent surface and a native popover menu on narrow screens.","category":"header","tags":["navigation","floating","sticky","translucent","popover menu"],"useWhen":"The site has four to six destinations plus one primary action, and the page below has imagery or color the bar can float over.","avoidWhen":"The site is a quiet single page, or the brand needs a large masthead. Use header-minimal or header-editorial instead.","placement":"page-start","dependencies":["button"],"props":[{"name":"brand","type":"string","required":true,"description":"Site name. Used as the home link text, or as the logo's alt text."},{"name":"homeHref","type":"string","required":false,"default":"\"/\""},{"name":"logo","type":"{ src: string; alt?: string; width?: number; height?: number }","required":false},{"name":"links","type":"Link[]","required":false,"default":"[]"},{"name":"action","type":"Link","required":false,"description":"One primary action. It sits in the bar and moves into the menu on the narrowest screens."},{"name":"sticky","type":"boolean","required":false,"default":"true","description":"Keep the bar pinned below the top edge while scrolling."},{"name":"menuId","type":"string","required":false,"default":"\"site-menu\"","description":"Unique id for the narrow-screen menu when a page has two headers."},{"name":"menuLabel","type":"string","required":false,"default":"\"Menu\"","description":"The narrow-screen menu button's text."},{"name":"navLabel","type":"string","required":false,"default":"\"Primary\"","description":"Names the header's navigation for screen readers, such as \"Primary\"."}],"passthrough":["header"],"types":{"Link":"{ label: string; href: string; target?: string }"},"slots":[],"files":[{"target":"src/components/blocks/HeaderFloating.astro"}],"example":true}, {"name":"header-editorial","title":"Editorial header","description":"A magazine masthead: a centered wordmark with tagline, a top line for an issue or place, and section links between double rules that wrap instead of hiding.","category":"header","tags":["navigation","masthead","editorial","publication","centered","no javascript"],"useWhen":"The site publishes writing or has distinct sections, and the name deserves to be the loudest thing at the top.","avoidWhen":"The site needs a primary action in the header more than a wordmark, or the name is long. Use header-floating or header-minimal.","placement":"page-start","dependencies":["button"],"props":[{"name":"brand","type":"string","required":true,"description":"Publication or site name, set as a large centered wordmark."},{"name":"homeHref","type":"string","required":false,"default":"\"/\""},{"name":"logo","type":"{ src: string; alt?: string; width?: number; height?: number }","required":false},{"name":"tagline","type":"string","required":false,"description":"One line under the wordmark, such as what the publication covers."},{"name":"meta","type":"string","required":false,"description":"A short line at the top left, such as an issue, date or place."},{"name":"links","type":"Link[]","required":false,"default":"[]","description":"Sections. They stay visible and wrap onto more lines on narrow screens."},{"name":"action","type":"Link","required":false,"description":"One action at the top right, such as Subscribe."},{"name":"navLabel","type":"string","required":false,"default":"\"Sections\"","description":"Names the section navigation for screen readers, such as \"Sections\"."}],"passthrough":["header"],"types":{"Link":"{ label: string; href: string; target?: string }"},"slots":[],"files":[{"target":"src/components/blocks/HeaderEditorial.astro"}],"example":true}, {"name":"header-transparent","title":"Transparent header","description":"A header that overlays the opening image in light or dark ink, with a native popover menu on narrow screens and, where supported, a solid surface that fades in while scrolling.","category":"header","tags":["navigation","transparent","overlay","immersive","popover menu","photography"],"useWhen":"The page opens with a full-bleed photograph or artwork that should start at the very top.","avoidWhen":"The opening is text on a plain background, or the image is busy where the header sits. Use header-minimal or header-floating.","placement":"page-start","dependencies":["button"],"props":[{"name":"brand","type":"string","required":true,"description":"Site name. Used as the home link text, or as the logo's alt text."},{"name":"homeHref","type":"string","required":false,"default":"\"/\""},{"name":"logo","type":"{ src: string; alt?: string; width?: number; height?: number }","required":false},{"name":"links","type":"Link[]","required":false,"default":"[]"},{"name":"action","type":"Link","required":false},{"name":"tone","type":"\"light\" | \"dark\"","required":false,"default":"\"light\"","description":"light: white text for dark imagery. dark: text color for light imagery."},{"name":"solidOnScroll","type":"boolean","required":false,"default":"true","description":"Pin the header and fade in a solid surface while scrolling, where the browser supports scroll-driven animation."},{"name":"menuId","type":"string","required":false,"default":"\"site-menu\"","description":"Unique id for the narrow-screen menu when a page has two headers."},{"name":"menuLabel","type":"string","required":false,"default":"\"Menu\"","description":"The narrow-screen menu button's text."},{"name":"navLabel","type":"string","required":false,"default":"\"Primary\"","description":"Names the header's navigation for screen readers, such as \"Primary\"."}],"passthrough":["header"],"types":{"Link":"{ label: string; href: string; target?: string }"},"slots":[],"files":[{"target":"src/components/blocks/HeaderTransparent.astro"}],"example":true}, -{"name":"header-minimal","title":"Minimal header","description":"A single quiet row: name, two to five links and an optional action. Links wrap onto their own row on narrow screens instead of hiding in a menu.","category":"header","tags":["navigation","minimal","quiet","no javascript"],"useWhen":"There are only a few destinations and every one should stay visible, especially on phones.","avoidWhen":"There are more than five links, or the header should overlay imagery.","placement":"page-start","dependencies":["button"],"props":[{"name":"brand","type":"string","required":true,"description":"Site name. Used as the home link text, or as the logo's alt text. With a brand slot it names the home link for screen readers."},{"name":"homeHref","type":"string","required":false,"default":"\"/\""},{"name":"logo","type":"{ src: string; alt?: string; width?: number; height?: number }","required":false},{"name":"links","type":"Link[]","required":false,"default":"[]","description":"Two to five links. They wrap onto their own row on narrow screens instead of hiding in a menu."},{"name":"action","type":"Link","required":false},{"name":"divider","type":"boolean","required":false,"default":"true","description":"Draw a hairline under the header."},{"name":"navLabel","type":"string","required":false,"default":"\"Primary\"","description":"Names the header's navigation for screen readers, such as \"Primary\"."}],"passthrough":["header"],"types":{"Link":"{ label: string; href: string; target?: string }"},"slots":["brand"],"files":[{"target":"src/components/blocks/HeaderMinimal.astro"}],"example":true}, +{"name":"header-minimal","title":"Minimal header","description":"A single quiet row: name, two to five links and an optional action. Links wrap onto their own row on narrow screens instead of hiding in a menu.","category":"header","tags":["navigation","minimal","quiet","no javascript"],"useWhen":"There are only a few destinations and every one should stay visible, especially on phones.","avoidWhen":"There are more than five links, or the header should overlay imagery.","placement":"page-start","dependencies":["button"],"props":[{"name":"brand","type":"string","required":true,"description":"Site name. Used as the home link text, or as the logo's alt text. With a brand slot it names the home link for screen readers."},{"name":"homeHref","type":"string","required":false,"default":"\"/\""},{"name":"logo","type":"{ src: string; alt?: string; width?: number; height?: number }","required":false},{"name":"links","type":"Link[]","required":false,"default":"[]","description":"Two to five links. They wrap onto their own row on narrow screens instead of hiding in a menu."},{"name":"action","type":"Link","required":false},{"name":"tone","type":"\"base\" | \"surface\" | \"inverse\" | \"accent\"","required":false,"default":"\"base\"","description":"Match the opening's surface. Base inherits the page background."},{"name":"divider","type":"boolean","required":false,"default":"true","description":"Draw a hairline under the header."},{"name":"navLabel","type":"string","required":false,"default":"\"Primary\"","description":"Names the header's navigation for screen readers, such as \"Primary\"."}],"passthrough":["header"],"types":{"Link":"{ label: string; href: string; target?: string }"},"slots":["brand"],"files":[{"target":"src/components/blocks/HeaderMinimal.astro"}],"example":true}, {"name":"hero-split","title":"Split hero","description":"Headline, lede and actions beside one framed image or artwork, stacking copy-first on narrow screens.","category":"hero","tags":["opening","image","two column"],"useWhen":"One strong image of the actual work, place or product deserves equal weight with the headline, and the page has a clear first action. Use tone for a full-width opening or a frame token to give the media an edge; pair with duotone or image-mount when the photos are uneven.","avoidWhen":"There is no genuine image (use hero-typographic rather than a stock or decorative picture), or it is the default because nothing else was considered: visitors who arrive with a task suit hero-front-desk, dated programmes hero-program, a studio's strong picture hero-editorial, and a picture that deserves the whole screen hero-immersive.","placement":"section","dependencies":["button"],"props":[{"name":"title","type":"string","required":true},{"name":"lede","type":"string","required":false},{"name":"actions","type":"Action[]","required":false,"default":"[]","description":"The first action is the primary one; keep it to one or two."},{"name":"image","type":"{ src: string; alt: string; width?: number; height?: number }","required":false,"description":"One real image. Use the media slot instead for a picture, video or SVG artwork."},{"name":"mediaSide","type":"\"start\" | \"end\"","required":false,"default":"\"end\""},{"name":"ratio","type":"string","required":false,"default":"\"4 / 5\"","description":"CSS aspect-ratio of the media frame on wide screens."},{"name":"align","type":"\"center\" | \"end\"","required":false,"default":"\"center\"","description":"Vertical alignment of the copy against the media."},{"name":"tone","type":"\"base\" | \"surface\" | \"inverse\" | \"accent\"","required":false,"default":"\"base\"","description":"Base sits in a content column. Other tones fill the parent and inset their own content rail."},{"name":"headingLevel","type":"1 | 2","required":false,"default":"1"}],"passthrough":["section"],"types":{"Action":"{ label: string; href: string; variant?: \"solid\" | \"outline\" | \"quiet\" }"},"slots":["default","meta","media"],"files":[{"target":"src/components/blocks/HeroSplit.astro"}],"example":true}, {"name":"hero-immersive","title":"Immersive hero","description":"A full-bleed photograph or artwork with the headline, lede and actions in white over a contrast-safe scrim, placed low, high or centered to suit the picture, with an optional caption in the far corner.","category":"hero","tags":["opening","full bleed","photography","image led","dark","art directed","caption","landscape","venue"],"useWhen":"There is a striking, high-quality photograph or artwork of the real place, product or experience, and its composition decides where the words go: a quiet sky (top), a calm lower band (start or center), an empty middle (middle).","avoidWhen":"The image is a stock photo, low resolution, or busy everywhere the copy would sit. Use hero-split to frame it beside the text, or hero-editorial to give it a tall frame on the page.","placement":"section","dependencies":["button"],"props":[{"name":"title","type":"string","required":true},{"name":"lede","type":"string","required":false},{"name":"actions","type":"Action[]","required":false,"default":"[]"},{"name":"image","type":"{ src: string; alt: string; width?: number; height?: number }","required":false,"description":"A full-bleed photograph or artwork. Use the media slot instead for a picture or video element."},{"name":"position","type":"string","required":false,"default":"\"center\"","description":"CSS object-position for the image, to keep the subject in frame as the crop changes."},{"name":"narrowPosition","type":"string","required":false,"description":"object-position in narrow containers, where the image becomes a band above the copy and its sides crop hard.\nSet it whenever the subject is off-centre, such as \"20% 40%\", or the band may lose it. Defaults to `position`."},{"name":"height","type":"\"screen\" | \"tall\" | \"medium\"","required":false,"default":"\"tall\""},{"name":"scrim","type":"\"strong\" | \"soft\"","required":false,"default":"\"strong\"","description":"How strongly the image darkens behind the text. Keep strong unless the image is already dark at the bottom."},{"name":"align","type":"\"start\" | \"center\" | \"top\" | \"middle\"","required":false,"default":"\"start\"","description":"Where the copy sits over the picture. start: low and to the start, the default. center: low and centered. top: high and\nto the start, for a subject in the lower half. middle: centered on a quiet band of the picture, for a poster-like title."},{"name":"caption","type":"string","required":false,"description":"One line about the picture: place, date or credit, such as \"Holloway Pier, 6:10am. Photo: Ana Ruiz\". Set small in the far corner."},{"name":"headingLevel","type":"1 | 2","required":false,"default":"1"}],"passthrough":["section"],"types":{"Action":"{ label: string; href: string; variant?: \"solid\" | \"outline\" | \"quiet\" }"},"slots":["media","default","meta"],"files":[{"target":"src/components/blocks/HeroImmersive.astro"}],"example":true}, {"name":"hero-typographic","title":"Typographic hero","description":"A large statement headline with one accented phrase, an optional dateline, lede, actions and a ruled row of facts. Poster layout centers the lockup and lets a name, date or sentence command the full width.","category":"hero","tags":["opening","type led","statement","poster","editorial","typography","no photos","dateline","festival","event","positioning"],"useWhen":"The words are the focal material: a positioning sentence worth setting large, a name and its dates (poster), or real hours, prices or terms that matter more than any picture. Strong for photo-free sites; pair with type-lockup or color-field when the band needs presence.","avoidWhen":"The headline runs past about fourteen words, or a photo of the real work would say more (hero-split, hero-editorial). A poster needs a short name or sentence; a long one wraps into a wall of display type.","placement":"section","dependencies":["button"],"props":[{"name":"title","type":"string","required":true,"description":"One statement sentence. The headline is the hero, so keep it under about 14 words."},{"name":"emphasis","type":"string","required":false,"description":"A word or phrase from the title to set in the accent color."},{"name":"lede","type":"string","required":false},{"name":"actions","type":"Action[]","required":false,"default":"[]"},{"name":"facts","type":"string[]","required":false,"default":"[]","description":"Two to four short facts shown on a ruled line, such as place, hours or founding year."},{"name":"meta","type":"string[]","required":false,"default":"[]","description":"A dateline above the title: date, venue, issue or edition, such as [\"No. 14\", \"Spring 2027\", \"Free entry\"]."},{"name":"align","type":"\"start\" | \"center\"","required":false,"default":"\"start\""},{"name":"layout","type":"\"statement\" | \"poster\"","required":false,"default":"\"statement\"","description":"statement: a headline set large in the column. poster: a centered lockup whose title commands the full width, framed by the\nmeta line above and the facts below, for a name, a date or a single sentence."},{"name":"tone","type":"\"base\" | \"surface\" | \"inverse\" | \"accent\"","required":false,"default":"\"base\"","description":"Base sits in a content column. Other tones fill the parent and inset their own content rail."},{"name":"headingLevel","type":"1 | 2","required":false,"default":"1"}],"passthrough":["section"],"types":{"Action":"{ label: string; href: string; variant?: \"solid\" | \"outline\" | \"quiet\" }"},"slots":["default"],"files":[{"target":"src/components/blocks/HeroTypographic.astro"}],"example":true}, @@ -60,7 +60,7 @@ {"name":"article","title":"Article","description":"A long-form reading layout: a strong title and dek over quiet facts, an optional lead figure with a caption, prose styles for the body and a contents list that becomes a sticky rail on wide screens.","category":"content","tags":["article","blog","post","guide","docs","long-form","reading","table of contents","prose","report","case study"],"useWhen":"One piece of long-form writing is the page: a journal post, a guide, documentation, a report or a case study, read top to bottom.","avoidWhen":"The text is short marketing copy split into sections, or a list of things to open; use the section blocks or collection. Don't nest it inside another article.","placement":"section","dependencies":["breadcrumbs","pager"],"props":[{"name":"title","type":"string","required":true},{"name":"dek","type":"string","required":false,"description":"The standfirst: one or two sentences under the title that say what the piece argues or covers."},{"name":"label","type":"string","required":false,"description":"A short line above the title, such as a section, a series or \"Guide\"."},{"name":"byline","type":"string","required":false,"description":"Written as it should read, such as \"By Ines Okafor, conservator\"."},{"name":"date","type":"string","required":false,"description":"An ISO date such as 2026-03-14, written into a time element's datetime and never parsed."},{"name":"dateLabel","type":"string","required":false,"description":"How the date reads, such as \"14 March 2026\". Without it the ISO date shows."},{"name":"updated","type":"string","required":false,"description":"An ISO date for the last revision."},{"name":"updatedLabel","type":"string","required":false,"description":"How the revision date reads, such as \"2 October 2026\". Shown after \"Updated\"."},{"name":"readingTime","type":"string","required":false,"description":"Such as \"9 min read\"."},{"name":"headings","type":"Heading[]","required":false,"default":"[]","description":"Exactly what Astro's render() returns for Markdown or MDX. The two levels below the title appear in the contents: h2 and h3, or h3 and h4 at headingLevel 2. Omit for no contents."},{"name":"image","type":"{ src: string; alt: string; width?: number; height?: number }","required":false,"description":"The lead figure. Use the media slot instead for a video, an embed or SVG artwork."},{"name":"caption","type":"string","required":false,"description":"The lead figure's caption and credit."},{"name":"contentsLabel","type":"string","required":false,"default":"\"Contents\"","description":"The contents list's name, such as \"On this page\"."},{"name":"updatedText","type":"string","required":false,"default":"\"Updated {date}\"","description":"The revision line; `{date}` is replaced by updatedLabel, or by updated."},{"name":"trail","type":"Link[]","required":false,"description":"The pages above this one, from the top, ending at the parent, such as Home, Journal, Conservation. Shown above the label."},{"name":"trailLabel","type":"string","required":false,"description":"Names the trail for screen readers."},{"name":"previous","type":"Link","required":false,"description":"The page before this one in a series, a guide or a course, shown by name after the body."},{"name":"next","type":"Link","required":false,"description":"The page after this one."},{"name":"pagerLabel","type":"string","required":false,"description":"Names the previous and next navigation for screen readers."},{"name":"previousLabel","type":"string","required":false},{"name":"nextLabel","type":"string","required":false},{"name":"headingLevel","type":"1 | 2","required":false,"default":"1","description":"1 when the article is the page; 2 when it sits inside a page that has its own h1. At 2, start the body's headings at h3."}],"passthrough":["article"],"types":{"Heading":"{ depth: number; slug: string; text: string }","Link":"{ label: string; href: string }"},"slots":["media","default"],"files":[{"target":"src/components/blocks/Article.astro"}],"example":true}, {"name":"gallery","title":"Gallery","description":"Captioned images in reading order: one column whose widths follow each image's orientation, a contact-sheet grid, a sideways rail, or a mosaic archive spread on a fixed rhythm. Each image is a real figure with one factual caption and a credit; two images can sit together as a pair.","category":"content","tags":["gallery","photos","images","figures","captions","credits","portfolio","project","case study","before and after","photo essay","exhibition","venue","mosaic","archive","index","spread"],"useWhen":"The pictures are the evidence: a project or case study, finished work, a photo essay, a venue or exhibition, or before and after. Sequence for a story read in order, grid for a contact sheet, mosaic for an archive or portfolio index with rhythm, rail for a browsable extra set.","avoidWhen":"Images that open records or pages; use collection. One image beside text; use hero-split or alternating-rows. A product's specification images; use facts with its media slot. Mosaic crops every image to its cell, so skip it when the whole frame matters (artwork, plans). Don't use the rail for images visitors must not miss.","placement":"section","dependencies":[],"props":[{"name":"title","type":"string","required":false},{"name":"intro","type":"string","required":false},{"name":"items","type":"(Figure | Pair)[]","required":true,"description":"Figures in reading order. A pair counts as two figures."},{"name":"layout","type":"\"sequence\" | \"grid\" | \"rail\" | \"mosaic\"","required":false,"default":"\"sequence\"","description":"sequence: one column whose widths follow each image's orientation. grid: a contact sheet. rail: one row that scrolls sideways.\nmosaic: an archive spread on a fixed rhythm, the first and eighth of every nine set large, every image cropped to its cell;\na pair takes a full row and resets the rhythm cleanly on either side."},{"name":"rhythm","type":"\"center\" | \"alternate\"","required":false,"default":"\"center\"","description":"In a sequence, center every figure or alternate narrower ones between the start and end."},{"name":"counter","type":"boolean","required":false,"default":"false","description":"Number each figure (\"03 / 12\") before its caption, so visitors know how long the set is."},{"name":"ratio","type":"string","required":false,"description":"Crop every grid image to one CSS aspect-ratio, such as \"4 / 3\". Without it images keep their own shape."},{"name":"tone","type":"\"base\" | \"surface\" | \"inverse\" | \"accent\"","required":false,"default":"\"base\"","description":"Base sits in a content column. Other tones fill the parent and inset their own content rail."},{"name":"headingLevel","type":"2 | 3","required":false,"default":"2"}],"passthrough":["section"],"types":{"Figure":"{ src: string; alt: string; width?: number; height?: number; caption?: string; credit?: string }","Pair":"{ pair: [Figure, Figure]; caption?: string }"},"slots":[],"files":[{"target":"src/components/blocks/Gallery.astro"}],"example":true}, {"name":"facts","title":"Facts","description":"A detail or spec sheet: labelled values in titled groups, beside the object's image or as ruled columns, with an optional short summary and the full record under All details.","category":"content","tags":["details","specifications","record","museum","product","property","course","data","key figures","hours","opening hours","address","location","contact details"],"useWhen":"Visitors need one record or a quick reference. Use a sheet for an object or specification, or a ledger band for visit, hours and contact details. Add summaryCount to lead with key facts.","avoidWhen":"The facts are really selling points that need a sentence each; use features-editorial. Comparing several things side by side needs a real table. Fewer than three facts read better as a sentence.","placement":"section","dependencies":[],"props":[{"name":"title","type":"string","required":false},{"name":"intro","type":"string","required":false},{"name":"groups","type":"Group[]","required":true,"description":"One record, in groups."},{"name":"variant","type":"\"sheet\" | \"ledger\"","required":false,"default":"\"sheet\"","description":"sheet: one record beside the media slot. ledger: the groups as ruled columns that fit the width."},{"name":"tone","type":"\"base\" | \"surface\" | \"inverse\" | \"accent\"","required":false,"default":"\"base\"","description":"Base sits in a content column. Other tones fill the parent and inset their own content rail."},{"name":"headingLevel","type":"2 | 3","required":false,"default":"2"},{"name":"summaryCount","type":"number","required":false,"description":"Show only the first facts, then the whole record, those facts included, under `moreLabel`. In a ledger they show as key figures."},{"name":"moreLabel","type":"string","required":false,"default":"\"All details\"","description":"The disclosure that opens the whole record after a summary."}],"passthrough":["section"],"types":{"Fact":"{ label: string; value: string; href?: string; datetime?: string; note?: string }","Group":"{ title?: string; facts: Fact[] }"},"slots":["media"],"files":[{"target":"src/components/blocks/Facts.astro"}],"example":true}, -{"name":"schedule","title":"Schedule","description":"Days, times and places: each day under its own heading with a time gutter, parallel sessions in track columns on wide screens, quiet break rows and a sticky bar of day links. No JavaScript.","category":"content","tags":["programme","agenda","timetable","event","conference","festival","course","itinerary","venue","times","classes","lineup","sessions","calendar"],"useWhen":"Visitors need to find a time or a place: a festival or conference programme, a course timetable, an itinerary or a venue's programme. Every day stays on the page, so it prints and works with find-in-page.","avoidWhen":"Dates tell a story, such as a history or a project's phases; use timeline. Only the next few sessions belong in the opening; use hero-program and link here. More than four parallel tracks, or a programme that changes daily, belongs in a real listings page.","placement":"section","dependencies":[],"props":[{"name":"id","type":"string","required":false,"description":"The section's id, used as written to start its day ids. Without it, day ids start with the title's slug; set it when two schedules share a page."},{"name":"title","type":"string","required":false},{"name":"intro","type":"string","required":false},{"name":"days","type":"Day[]","required":true,"description":"Every day stays on the page; more than one adds a bar of day links."},{"name":"tracks","type":"string[]","required":false,"description":"Track names in column order. Defaults to the tracks the sessions name, in order of appearance."},{"name":"timezone","type":"string","required":false,"description":"Stated in text, such as \"British Summer Time (BST)\"."},{"name":"variant","type":"\"agenda\" | \"tracks\"","required":false,"default":"\"agenda\"","description":"agenda: one column of times. tracks: parallel sessions in track columns on wide screens."},{"name":"tone","type":"\"base\" | \"surface\" | \"inverse\" | \"accent\"","required":false,"default":"\"base\"","description":"Base sits in a content column. Other tones fill the parent and inset their own content rail; the day bar follows the band."},{"name":"headingLevel","type":"2 | 3","required":false,"default":"2"},{"name":"timezoneLabel","type":"string","required":false,"default":"\"All times are {timezone}.\"","description":"The sentence that states the timezone; `{timezone}` is replaced by it."},{"name":"untilLabel","type":"string","required":false,"default":"\"Until {time}\"","description":"Before the end time of a session that ends earlier than its slot; `{time}` is replaced by it."},{"name":"toLabel","type":"string","required":false,"default":"\"to\"","description":"Read between a slot's start and end times, in place of the dash."},{"name":"daysLabel","type":"string","required":false,"default":"\"Days\"","description":"Names the bar of day links, after the title when there is one."}],"passthrough":["section"],"types":{"Session":"{ time: string; end?: string; datetime?: string; title: string; href?: string; place?: string; people?: string; text?: string; tag?: string; track?: string; kind?: \"session\" | \"break\" }","Day":"{ label: string; date?: string; sessions: Session[] }"},"slots":[],"files":[{"target":"src/components/blocks/Schedule.astro"}],"example":true}, +{"name":"schedule","title":"Schedule","description":"Days, times and places: each day under its own heading with a time gutter, parallel sessions in track columns on wide screens, quiet break rows and a wrapping bar of day links. No JavaScript.","category":"content","tags":["programme","agenda","timetable","event","conference","festival","course","itinerary","venue","times","classes","lineup","sessions","calendar"],"useWhen":"Visitors need to find a time or a place: a festival or conference programme, a course timetable, an itinerary or a venue's programme. Every day stays on the page, so it prints and works with find-in-page.","avoidWhen":"Dates tell a story, such as a history or a project's phases; use timeline. Only the next few sessions belong in the opening; use hero-program and link here. More than four parallel tracks, or a programme that changes daily, belongs in a real listings page.","placement":"section","dependencies":[],"props":[{"name":"id","type":"string","required":false,"description":"The section's id, used as written to start its day ids. Without it, day ids start with the title's slug; set it when two schedules share a page."},{"name":"title","type":"string","required":false},{"name":"intro","type":"string","required":false},{"name":"days","type":"Day[]","required":true,"description":"Every day stays on the page; more than one adds a bar of day links."},{"name":"tracks","type":"string[]","required":false,"description":"Track names in column order. Defaults to the tracks the sessions name, in order of appearance."},{"name":"timezone","type":"string","required":false,"description":"Stated in text, such as \"British Summer Time (BST)\"."},{"name":"variant","type":"\"agenda\" | \"tracks\"","required":false,"default":"\"agenda\"","description":"agenda: one column of times. tracks: parallel sessions in track columns on wide screens."},{"name":"tone","type":"\"base\" | \"surface\" | \"inverse\" | \"accent\"","required":false,"default":"\"base\"","description":"Base sits in a content column. Other tones fill the parent and inset their own content rail; the day bar follows the band."},{"name":"headingLevel","type":"2 | 3","required":false,"default":"2"},{"name":"timezoneLabel","type":"string","required":false,"default":"\"All times are {timezone}.\"","description":"The sentence that states the timezone; `{timezone}` is replaced by it."},{"name":"untilLabel","type":"string","required":false,"default":"\"Until {time}\"","description":"Before the end time of a session that ends earlier than its slot; `{time}` is replaced by it."},{"name":"toLabel","type":"string","required":false,"default":"\"to\"","description":"Read between a slot's start and end times, in place of the dash."},{"name":"daysLabel","type":"string","required":false,"default":"\"Days\"","description":"Names the bar of day links, after the title when there is one."}],"passthrough":["section"],"types":{"Session":"{ time: string; end?: string; datetime?: string; title: string; href?: string; place?: string; people?: string; text?: string; tag?: string; track?: string; kind?: \"session\" | \"break\" }","Day":"{ label: string; date?: string; sessions: Session[] }"},"slots":[],"files":[{"target":"src/components/blocks/Schedule.astro"}],"example":true}, {"name":"compare","title":"Compare","description":"Compare a few options on the same rows: a real table with grouped rows, a sticky label column, a quietly tinted recommendation and numbered notes, or one card per option with the rows aligned across them.","category":"content","tags":["comparison","table","decision guide","routes","venues","courses","editions","support matrix","options","choose"],"useWhen":"Visitors choose between two to six things on the same measures: routes, crossings, venues, courses, editions, tools, or what a version supports. Decision guides, reviews and reports.","avoidWhen":"More than about six options; use collection and let each have a page. Rows that most options don't share read better as facts per option. Don't use it for tier pricing with a checkmark grid.","placement":"section","dependencies":[],"props":[{"name":"caption","type":"string","required":true,"description":"Names the comparison for every reader, such as \"Three routes up Ben Arran, compared\". Shown above it."},{"name":"title","type":"string","required":false},{"name":"intro","type":"string","required":false},{"name":"options","type":"Option[]","required":true,"description":"The things compared, two to six."},{"name":"groups","type":"Group[]","required":true,"description":"Rows every option shares, in groups."},{"name":"notes","type":"string[]","required":false,"default":"[]","description":"Footnotes, such as a source or how a figure was measured. Rows point at them by number."},{"name":"variant","type":"\"table\" | \"cards\"","required":false,"default":"\"table\"","description":"table: a real table that scrolls sideways when narrow. cards: one card per option, for two to four."},{"name":"headingLevel","type":"2 | 3","required":false,"default":"2"},{"name":"id","type":"string","required":false,"description":"The section's id, also the prefix for the ids notes link to. The prefix defaults to the caption, slugged; set it when two comparisons share a caption."},{"name":"yesLabel","type":"string","required":false,"default":"\"Yes\""},{"name":"noLabel","type":"string","required":false,"default":"\"No\""},{"name":"notApplicableLabel","type":"string","required":false,"default":"\"Not applicable\"","description":"Read aloud for a null value, which shows as a dash."},{"name":"recommendedLabel","type":"string","required":false,"default":"\"Recommended\""},{"name":"notesLabel","type":"string","required":false,"default":"\"Notes\""},{"name":"noteLabel","type":"string","required":false,"default":"\"Note\"","description":"Read aloud before a note's number, as in \"Note 1\"."},{"name":"backLabel","type":"string","required":false,"default":"\"Back to\"","description":"Read aloud before the row a note returns to, as in \"Back to Total ascent\"."}],"passthrough":["section"],"types":{"Option":"{ name: string; note?: string; href?: string; recommended?: boolean }","Row":"{ label: string; values: (string | boolean | null)[]; note?: number }","Group":"{ title?: string; rows: Row[] }"},"slots":[],"files":[{"target":"src/components/blocks/Compare.astro"}],"example":true}, {"name":"menu-list","title":"Menu list","description":"A menu or price list: titled groups of items, each a name meeting its price across a dotted or ruled leader, a line of description and small tags such as V or GF, in columns on wide screens and one crisp column on phones.","category":"content","tags":["menu","price list","prices","restaurant","cafe","bakery","bar","salon","barber","services","rates","food","drinks","dietary","allergens"],"useWhen":"Visitors compare items by name and price: a restaurant, café or bar menu, a bakery's counter, a salon or barber's services, a repair shop's rates. The real menu exists and changes rarely enough to keep on the page.","avoidWhen":"Items need photos, filters or comparison; use collection or filter-collection. Three to seven offers that need a sentence each; use features-editorial. Don't paste a PDF menu's every modifier: keep it to what people choose between.","placement":"section","dependencies":[],"props":[{"name":"title","type":"string","required":false},{"name":"intro","type":"string","required":false},{"name":"groups","type":"Group[]","required":true,"description":"Groups in menu order: starters, mains; or services by type. Two or more sit in columns on wide screens."},{"name":"leader","type":"\"dots\" | \"rule\" | \"none\"","required":false,"default":"\"dots\"","description":"How each name meets its price: a dotted leader, a hairline rule, or space alone."},{"name":"note","type":"string","required":false,"description":"A practical line after the menu: what the tags mean, allergens, service charge."},{"name":"tone","type":"\"base\" | \"surface\" | \"inverse\" | \"accent\"","required":false,"default":"\"base\"","description":"Base sits in a content column. Other tones fill the parent and inset their own content rail."},{"name":"headingLevel","type":"2 | 3","required":false,"default":"2"}],"passthrough":["section"],"types":{"Item":"{ name: string; price?: string; description?: string; tags?: string[] }","Group":"{ title: string; note?: string; items: Item[] }"},"slots":[],"files":[{"target":"src/components/blocks/MenuList.astro"}],"example":true}, {"name":"locations-visit","title":"Locations and visit","description":"Where to go and what to do next for one location or several: each a ruled card with the name, address, a visitor note, the hours, and direct actions for directions and calling.","category":"content","tags":["visit","locations","contact","address","hours","directions","map","phone","branches","shops","clinic","bakery","multi location","find us","opening hours"],"useWhen":"People need to get there: a shop or bakery with one or more branches, a clinic's sites, a venue's entrances, a library's branches. Each location has real hours, a phone and an address, and something visitors must know (parking, step-free access).","avoidWhen":"Only an email or a form; use the site's contact page or footer-columns. More than about six locations needs a searchable finder. Don't add an embedded map just to fill space: the directions link opens the visitor's own map.","placement":"section","dependencies":["button"],"props":[{"name":"title","type":"string","required":false},{"name":"intro","type":"string","required":false},{"name":"locations","type":"Location[]","required":true,"description":"One location gets a wide card; two or more sit side by side when there's room."},{"name":"directionsLabel","type":"string","required":false,"default":"\"Directions\""},{"name":"callLabel","type":"string","required":false,"default":"\"Call\""},{"name":"detailsLabel","type":"string","required":false,"default":"\"Details\""},{"name":"tone","type":"\"base\" | \"surface\" | \"inverse\" | \"accent\"","required":false,"default":"\"base\"","description":"Base sits in a content column. Other tones fill the parent and inset their own content rail."},{"name":"headingLevel","type":"2 | 3","required":false,"default":"2"}],"passthrough":["section"],"types":{"Hours":"{ days: string; time: string }","Location":"{ name: string; address: string[]; hours?: Hours[]; phone?: string; email?: string; directions?: string; href?: string; note?: string }"},"slots":[],"files":[{"target":"src/components/blocks/LocationsVisit.astro"}],"example":true}, diff --git a/src/pages/canvas/service-grammar/[direction].astro b/src/pages/canvas/service-grammar/[direction].astro index fd5ef64..2cc446c 100644 --- a/src/pages/canvas/service-grammar/[direction].astro +++ b/src/pages/canvas/service-grammar/[direction].astro @@ -13,8 +13,6 @@ if (direction !== "editorial" && direction !== "workshop") { const workshop = direction === "workshop"; const directionName = workshop ? "Workshop Utility" : "Editorial Practice"; const email = "bench@cedarstreetcycles.example"; -const emailLink = `mailto:${email}`; -const phoneLink = "tel:+15035550138"; --- @@ -90,8 +88,8 @@ const phoneLink = "tel:+15035550138"; { title: "Contact", facts: [ - { label: "Email", value: email, href: emailLink }, - { label: "Phone", value: "(503) 555-0138", href: phoneLink }, + { label: "Email", value: email }, + { label: "Phone", value: "(503) 555-0138" }, ], }, ]} @@ -105,8 +103,7 @@ const phoneLink = "tel:+15035550138"; name="Cedar Street Cycles" year={2026} actions={[ - { label: "Email the workshop", href: emailLink }, - { label: "Check opening hours", href: "#visit", variant: "quiet" }, + { label: "Workshop hours and contact details", href: "#visit" }, ]} /> diff --git a/src/pages/compositions.astro b/src/pages/compositions.astro index d2d4e78..1269cd7 100644 --- a/src/pages/compositions.astro +++ b/src/pages/compositions.astro @@ -28,14 +28,14 @@ const brands = { }; const room = { src: "/gallery/atelier.svg", alt: "The reading room: a tall arched window, a long oak table and a fig tree", width: 1200, height: 1500 }; const tasks = [ - { label: "Renew or reserve a book", href: "#renew", text: "Online with your card number" }, - { label: "Book a computer", href: "#computers", text: "One hour, free, printing 10p a page" }, - { label: "Join the library", href: "#join", text: "Bring proof of address; it takes five minutes" }, + { label: "Check branch hours", href: "#visit", text: "Eastside and Harbor share one card" }, + { label: "Find the repair café", href: "#repair-day", text: "Bring one broken thing" }, + { label: "Browse the building archive", href: "#archive", text: "Drawings and photographs from 1927 to now" }, ]; const sessions = [ - { day: "Thu", date: "12", datetime: "2027-03-12", title: "Author talk: Writing the river", time: "18:30", place: "Reading room", tag: "Free", href: "#talk" }, - { day: "Sat", date: "14", datetime: "2027-03-14", title: "Storytime for under-fives", time: "10:30", place: "Children's corner", href: "#storytime" }, - { day: "Sun", date: "15", datetime: "2027-03-15", title: "Repair café", time: "13:00–16:00", place: "Basement", tag: "Bring one item", href: "#repair" }, + { day: "Thu", date: "12", datetime: "2027-03-12", title: "Author talk: Writing the river", time: "18:30", place: "Reading room", tag: "Free" }, + { day: "Sat", date: "14", datetime: "2027-03-14", title: "Storytime for under-fives", time: "10:30", place: "Children's corner" }, + { day: "Sun", date: "15", datetime: "2027-03-15", title: "Repair café", time: "13:00–16:00", place: "Basement", tag: "Bring one item", href: "#repair-day" }, ]; const openings = [ { id: "front-desk", block: "hero-front-desk", brand: "civic", label: "Task first, civic", note: "For a library most people visit to do something. The three common jobs are one tap each, and today's hours lead." }, @@ -80,10 +80,9 @@ const openings = [ lede="Books, computers, quiet tables and a repair café, five minutes from the market." status="Open today until 20:00" tasks={tasks} - actions={[{ label: "Ask a librarian", href: "#ask" }]} + actions={[{ label: "See library events", href: "#program" }]} details={[ { label: "Hours", value: "Mon–Sat 9:00–20:00" }, - { label: "Phone", value: "555 0190", href: "tel:5550190" }, { label: "Address", value: "220 Market Street" }, ]} /> @@ -96,9 +95,9 @@ const openings = [ title="Spring at Eastside" dates="March to May 2027" lede="Talks, storytimes and a monthly repair café, all free, all in the building." - actions={[{ label: "See every event", href: "#events" }]} + actions={[{ label: "Plan a visit", href: "#visit" }]} sessions={sessions} - more={{ label: "Full spring programme", href: "#events" }} + more={{ label: "See the repair café schedule", href: "#repair-day" }} /> )} {opening.block === "hero-typographic" && ( @@ -109,7 +108,7 @@ const openings = [ meta={["1927", "Eastside Library", "2027"]} title="A hundred years on Market Street" lede="A year of open evenings, a new reading room and every borrowing record since 1927, online." - actions={[{ label: "The centenary year", href: "#centenary" }]} + actions={[{ label: "Browse the centenary archive", href: "#archive" }]} facts={["Free to join", "Open six days", "Step-free throughout"]} /> )} @@ -119,7 +118,7 @@ const openings = [ kicker="Eastside Library · Civic Trust award 2026" title="A room built around one window" lede="The reading room faces north through a single six-metre arch, so the light is even all day and the street disappears." - actions={[{ label: "Read the write-up", href: "#award" }]} + actions={[{ label: "See the reopening poster", href: "#immersive" }]} image={room} caption="Reading room, north window, March." credit="Drawing: library archive" @@ -164,6 +163,7 @@ const openings = [
diff --git a/src/pages/techniques.astro b/src/pages/techniques.astro index f25e30a..7738e52 100644 --- a/src/pages/techniques.astro +++ b/src/pages/techniques.astro @@ -284,7 +284,7 @@ const photo = {

Commuter tune-up

Green Raleigh, ready Thursday after 2 pm.

- Check status +

Ready for pickup

@@ -309,7 +309,7 @@ const photo = {

The late set

Doors 22:30 · table B4 · trio with guest tenor.

- Book seats +

Tickets at the door

@@ -734,11 +734,11 @@ const photo = {

Two films, one ticket, every Friday in December

Fri 1219:00
-

Noir night · 35mm

Book seats
+

Noir night · 35mm

Tickets at the door

Fri 1919:00
-

Musicals · sing-along

Book seats
+

Musicals · sing-along

Tickets at the door

@@ -1226,18 +1226,8 @@ const photo = { .d-ticket-body p { margin: 0; } - .d-ticket-body a { - display: inline-flex; - align-items: center; - justify-self: start; - min-block-size: 44px; - color: var(--color-text); + .ticket-note { font-weight: 600; - text-underline-offset: 0.3em; - } - .d-ticket-body a:focus-visible { - outline: 2px solid var(--color-focus); - outline-offset: 2px; } .d-tag { display: grid; @@ -1729,19 +1719,6 @@ const photo = { .c-ticket-body p { margin: 0; } - .c-ticket-body a { - display: inline-flex; - align-items: center; - justify-self: start; - min-block-size: 44px; - color: #15131a; - font-weight: 600; - text-underline-offset: 0.3em; - } - .c-ticket-body a:focus-visible { - outline: 2px solid #15131a; - outline-offset: 2px; - } @media (prefers-contrast: more) { .c-rialto .c-label { color: inherit; From ef3519d20524e59818fac02fe2516fec324205a3 Mon Sep 17 00:00:00 2001 From: Jake Ruesink Date: Wed, 2 Dec 2026 16:19:40 -0600 Subject: [PATCH 2/3] SBO-41: Keep gallery routing out of customer examples --- README.md | 4 +- docs/blocks-audit.md | 6 +- public/r/header-minimal.json | 2 +- public/r/registry.json | 4 +- public/r/schedule.json | 6 +- registry.json | 4 +- scripts/gallery-sync.mjs | 1 + src/components/blocks/HeaderMinimal.astro | 3 +- src/components/blocks/Schedule.astro | 44 ++++++- .../examples/alternating-rows.astro | 2 +- src/components/examples/article.astro | 12 +- src/components/examples/breadcrumbs.astro | 6 +- src/components/examples/button.astro | 10 +- src/components/examples/button.stage.astro | 7 + src/components/examples/collection.astro | 30 +++-- src/components/examples/compare.astro | 6 +- src/components/examples/cut-edges.astro | 4 +- src/components/examples/facts.astro | 4 +- src/components/examples/features-bento.astro | 1 + .../examples/features-editorial.astro | 4 +- src/components/examples/footer-columns.astro | 15 ++- src/components/examples/footer-cta.astro | 10 +- src/components/examples/footer-minimal.astro | 6 +- src/components/examples/footer-wordmark.astro | 8 +- .../examples/header-editorial.astro | 12 +- .../examples/header-editorial.stage.astro | 2 +- src/components/examples/header-floating.astro | 10 +- .../examples/header-floating.stage.astro | 2 +- src/components/examples/header-minimal.astro | 8 +- .../examples/header-minimal.stage.astro | 3 +- .../examples/header-transparent.astro | 8 +- .../examples/header-transparent.stage.astro | 2 +- src/components/examples/hero-editorial.astro | 4 +- src/components/examples/hero-front-desk.astro | 16 +-- src/components/examples/hero-immersive.astro | 4 +- src/components/examples/hero-program.astro | 12 +- src/components/examples/hero-split.astro | 4 +- .../examples/hero-typographic.astro | 8 +- src/components/examples/locations-visit.astro | 2 + src/components/examples/pager.astro | 19 +-- src/components/examples/pager.stage.astro | 22 ++++ src/components/examples/schedule.astro | 4 +- src/components/gallery/BlockExample.astro | 4 +- src/data/catalog.json | 66 +++++----- src/data/gallery-catalog.json | 2 +- src/pages/[...example].astro | 121 ++++++++++++++++++ .../canvas/service-grammar/[direction].astro | 9 +- src/pages/compositions.astro | 26 ++-- src/pages/techniques.astro | 33 ++++- 49 files changed, 406 insertions(+), 196 deletions(-) create mode 100644 src/components/examples/button.stage.astro create mode 100644 src/components/examples/pager.stage.astro create mode 100644 src/pages/[...example].astro diff --git a/README.md b/README.md index caab2a0..da2dd6b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Astro Blocks -Polished website sections for Astro, distributed as source you own. Every block is a native `.astro` component with scoped CSS, typed props, and semantic design tokens; all 32 static blocks ship zero client JavaScript, while three optional interactive blocks (`detail-dialog`, `filter-collection`, `compare-tray`) load exact-pinned `@ui-sdk/web` scripts. +Polished website sections for Astro, distributed as source you own. Every block is a native `.astro` component with scoped CSS, typed props, and semantic design tokens; most blocks ship zero client JavaScript. Three optional interactive blocks (`detail-dialog`, `filter-collection`, `compare-tray`) load exact-pinned `@ui-sdk/web` scripts. Astro Blocks is a [shadcn](https://ui.shadcn.com/docs/registry)-compatible registry. Installing a block copies ordinary, editable files into your project. Nothing stays linked: no runtime package, no hidden updates. Change anything. @@ -51,7 +51,7 @@ Each item in [`registry.json`](registry.json) says when to use it and, as import - **Optional type.** Sixteen curated self-hosted typefaces, each its own `font-*` item installing a small stylesheet that loads pinned WOFF2 by sha256, plus three pairings built from them (`pairing-editorial`, `pairing-product`, `pairing-warm`) that set only type tokens. Installs stay on the system font until a site adds one. See [docs/type-pairings.md](docs/type-pairings.md) and the live specimens at `/typography`. - **Optional techniques.** Thirteen visual devices in the `technique` category, each with one job. Ten are one small CSS file each: install it, `@import "./techniques/.css";` in your theme, and tune it with custom properties: surfaces (`grain`, `color-field`, `line-work`), photo treatments (`duotone`, `image-mount`, `diptych`), type (`type-lockup`, `marginalia`), an object (`cut-edges`) and one scroll accent (`scroll-reveal`). `screen-tone`, `seal` and `annotated-figure` are components. All use no JavaScript, keep text full-contrast, and drop their decoration under forced colors (and, where it touches text, more contrast). `/techniques` renders each in contrasting brands, plus compositions from none to three techniques; `/compositions` opens one site's content five ways with the hero blocks. - **Container queries.** Blocks lay out from the width they are given, so they work full-width or inside a narrow column. -- **Zero JS for static blocks; opt-in `@ui-sdk/web` for interactive blocks.** Narrow-screen menus use the HTML `popover` attribute, the transparent header turns solid via CSS scroll-driven animation, and the wordmark footer sizes with container units—shipping 0 B JS across all 32 static blocks. Only `detail-dialog`, `filter-collection`, and `compare-tray` import exact-pinned `@ui-sdk/core@0.1.0-beta.23` and `@ui-sdk/web@0.1.0-beta.23` in `\n\n\n", "type": "registry:file", "target": "~/src/components/blocks/Schedule.astro" } @@ -35,7 +35,7 @@ "placement": "section", "summary": "programme or itinerary (title?, intro?, days[{label,date?,sessions[{time,title,end?,place?,track?}]}], tracks?, timezone?, variant?, tone?)" }, - "docs": "Import from src/components/blocks/Schedule.astro. Pass days of sessions with time, title and optional end, place, people, tag and track; kind: \"break\" makes a quiet row. variant=\"tracks\" with two or more tracks sets parallel sessions in columns on wide containers and falls back to the agenda, grouped by start time, when narrow. State the timezone with timezone. tone fills a band (surface, inverse or accent) and the day links, track tints and rules follow it. It fills its parent, so render it inside your page's content column (on Site Boulder, the `.wrap`).", + "docs": "Import from src/components/blocks/Schedule.astro. Pass days of sessions with time, title and optional end, place, people, tag and track; kind: \"break\" makes a quiet row. variant=\"tracks\" with two or more tracks sets parallel sessions in columns on wide containers and falls back to the agenda, grouped by start time, when narrow. State the timezone with timezone. tone fills a band (surface, inverse or accent) and the day links, track tints and rules follow it. The day bar stays sticky at 64rem of available width and up when the links fit on one row. It fills its parent, so render it inside your page's content column (on Site Boulder, the `.wrap`).", "categories": [ "content" ], diff --git a/registry.json b/registry.json index 0ca76ad..f180185 100644 --- a/registry.json +++ b/registry.json @@ -2898,12 +2898,12 @@ "name": "schedule", "type": "registry:item", "title": "Schedule", - "description": "Days, times and places: each day under its own heading with a time gutter, parallel sessions in track columns on wide screens, quiet break rows and a wrapping bar of day links. No JavaScript.", + "description": "Days, times and places: each day under its own heading with a time gutter, parallel sessions in track columns on wide screens, quiet break rows and a wrapping bar of day links that sticks when it fits on one row in a wide container.", "author": "Lambda Curry ", "categories": [ "content" ], - "docs": "Import from src/components/blocks/Schedule.astro. Pass days of sessions with time, title and optional end, place, people, tag and track; kind: \"break\" makes a quiet row. variant=\"tracks\" with two or more tracks sets parallel sessions in columns on wide containers and falls back to the agenda, grouped by start time, when narrow. State the timezone with timezone. tone fills a band (surface, inverse or accent) and the day links, track tints and rules follow it. It fills its parent, so render it inside your page's content column (on Site Boulder, the `.wrap`).", + "docs": "Import from src/components/blocks/Schedule.astro. Pass days of sessions with time, title and optional end, place, people, tag and track; kind: \"break\" makes a quiet row. variant=\"tracks\" with two or more tracks sets parallel sessions in columns on wide containers and falls back to the agenda, grouped by start time, when narrow. State the timezone with timezone. tone fills a band (surface, inverse or accent) and the day links, track tints and rules follow it. The day bar stays sticky at 64rem of available width and up when the links fit on one row. It fills its parent, so render it inside your page's content column (on Site Boulder, the `.wrap`).", "meta": { "version": "0.1.3", "tags": [ diff --git a/scripts/gallery-sync.mjs b/scripts/gallery-sync.mjs index ccee227..457a6b1 100644 --- a/scripts/gallery-sync.mjs +++ b/scripts/gallery-sync.mjs @@ -52,6 +52,7 @@ async function manifest() { "src/pages/typography.astro", "src/pages/techniques.astro", "src/pages/compositions.astro", + "src/pages/[...example].astro", "src/pages/blocks/[name].astro", "src/pages/canvas/[name].astro", ...(await list("public/gallery", /\.svg$/)), diff --git a/src/components/blocks/HeaderMinimal.astro b/src/components/blocks/HeaderMinimal.astro index 99d4cac..c241682 100644 --- a/src/components/blocks/HeaderMinimal.astro +++ b/src/components/blocks/HeaderMinimal.astro @@ -78,11 +78,12 @@ const isCurrent = (href: string) => (href.startsWith("/") && !href.startsWith("/ --_ink: var(--color-on-accent, #ffffff); } .header-minimal:not(.tone-base) { + --color-rule: color-mix(in oklab, var(--_ink) 18%, transparent); background: var(--_band); color: var(--_ink); } .header-minimal:not(.tone-base) .row { - --color-muted: var(--_ink); + --color-muted: color-mix(in oklab, var(--_ink) 82%, var(--_band)); --color-accent: var(--_ink); --color-focus: var(--_ink); } diff --git a/src/components/blocks/Schedule.astro b/src/components/blocks/Schedule.astro index 9c73112..5fc9259 100644 --- a/src/components/blocks/Schedule.astro +++ b/src/components/blocks/Schedule.astro @@ -178,7 +178,7 @@ const styleText = (value: unknown) => } { schedule.length > 1 && ( -
+ + diff --git a/src/pages/canvas/service-grammar/[direction].astro b/src/pages/canvas/service-grammar/[direction].astro index 2cc446c..fd5ef64 100644 --- a/src/pages/canvas/service-grammar/[direction].astro +++ b/src/pages/canvas/service-grammar/[direction].astro @@ -13,6 +13,8 @@ if (direction !== "editorial" && direction !== "workshop") { const workshop = direction === "workshop"; const directionName = workshop ? "Workshop Utility" : "Editorial Practice"; const email = "bench@cedarstreetcycles.example"; +const emailLink = `mailto:${email}`; +const phoneLink = "tel:+15035550138"; --- @@ -88,8 +90,8 @@ const email = "bench@cedarstreetcycles.example"; { title: "Contact", facts: [ - { label: "Email", value: email }, - { label: "Phone", value: "(503) 555-0138" }, + { label: "Email", value: email, href: emailLink }, + { label: "Phone", value: "(503) 555-0138", href: phoneLink }, ], }, ]} @@ -103,7 +105,8 @@ const email = "bench@cedarstreetcycles.example"; name="Cedar Street Cycles" year={2026} actions={[ - { label: "Workshop hours and contact details", href: "#visit" }, + { label: "Email the workshop", href: emailLink }, + { label: "Check opening hours", href: "#visit", variant: "quiet" }, ]} />
diff --git a/src/pages/compositions.astro b/src/pages/compositions.astro index 1269cd7..13e878d 100644 --- a/src/pages/compositions.astro +++ b/src/pages/compositions.astro @@ -28,13 +28,13 @@ const brands = { }; const room = { src: "/gallery/atelier.svg", alt: "The reading room: a tall arched window, a long oak table and a fig tree", width: 1200, height: 1500 }; const tasks = [ - { label: "Check branch hours", href: "#visit", text: "Eastside and Harbor share one card" }, - { label: "Find the repair café", href: "#repair-day", text: "Bring one broken thing" }, - { label: "Browse the building archive", href: "#archive", text: "Drawings and photographs from 1927 to now" }, + { label: "Renew or reserve a book", href: "/account/loans", text: "Online with your card number" }, + { label: "Book a computer", href: "/visit/computers", text: "One hour, free, printing 10p a page" }, + { label: "Join the library", href: "/library-card", text: "Bring proof of address; it takes five minutes" }, ]; const sessions = [ - { day: "Thu", date: "12", datetime: "2027-03-12", title: "Author talk: Writing the river", time: "18:30", place: "Reading room", tag: "Free" }, - { day: "Sat", date: "14", datetime: "2027-03-14", title: "Storytime for under-fives", time: "10:30", place: "Children's corner" }, + { day: "Thu", date: "12", datetime: "2027-03-12", title: "Author talk: Writing the river", time: "18:30", place: "Reading room", tag: "Free", href: "/events/writing-the-river" }, + { day: "Sat", date: "14", datetime: "2027-03-14", title: "Storytime for under-fives", time: "10:30", place: "Children's corner", href: "/events/storytime" }, { day: "Sun", date: "15", datetime: "2027-03-15", title: "Repair café", time: "13:00–16:00", place: "Basement", tag: "Bring one item", href: "#repair-day" }, ]; const openings = [ @@ -80,9 +80,10 @@ const openings = [ lede="Books, computers, quiet tables and a repair café, five minutes from the market." status="Open today until 20:00" tasks={tasks} - actions={[{ label: "See library events", href: "#program" }]} + actions={[{ label: "Ask a librarian", href: "/ask-a-librarian" }]} details={[ { label: "Hours", value: "Mon–Sat 9:00–20:00" }, + { label: "Phone", value: "555 0190", href: "tel:5550190" }, { label: "Address", value: "220 Market Street" }, ]} /> @@ -95,9 +96,9 @@ const openings = [ title="Spring at Eastside" dates="March to May 2027" lede="Talks, storytimes and a monthly repair café, all free, all in the building." - actions={[{ label: "Plan a visit", href: "#visit" }]} + actions={[{ label: "See every event", href: "/events" }]} sessions={sessions} - more={{ label: "See the repair café schedule", href: "#repair-day" }} + more={{ label: "Full spring programme", href: "/events" }} /> )} {opening.block === "hero-typographic" && ( @@ -108,7 +109,7 @@ const openings = [ meta={["1927", "Eastside Library", "2027"]} title="A hundred years on Market Street" lede="A year of open evenings, a new reading room and every borrowing record since 1927, online." - actions={[{ label: "Browse the centenary archive", href: "#archive" }]} + actions={[{ label: "The centenary year", href: "/centenary" }]} facts={["Free to join", "Open six days", "Step-free throughout"]} /> )} @@ -118,7 +119,7 @@ const openings = [ kicker="Eastside Library · Civic Trust award 2026" title="A room built around one window" lede="The reading room faces north through a single six-metre arch, so the light is even all day and the street disappears." - actions={[{ label: "See the reopening poster", href: "#immersive" }]} + actions={[{ label: "Read the write-up", href: "/journal/reading-room-award" }]} image={room} caption="Reading room, north window, March." credit="Drawing: library archive" @@ -163,7 +164,6 @@ const openings = [
diff --git a/src/pages/techniques.astro b/src/pages/techniques.astro index 7738e52..e754e8a 100644 --- a/src/pages/techniques.astro +++ b/src/pages/techniques.astro @@ -284,7 +284,7 @@ const photo = {

Commuter tune-up

Green Raleigh, ready Thursday after 2 pm.

-

Ready for pickup

+ Check status
@@ -309,7 +309,7 @@ const photo = {

The late set

Doors 22:30 · table B4 · trio with guest tenor.

-

Tickets at the door

+ Book seats
@@ -734,11 +734,11 @@ const photo = {

Two films, one ticket, every Friday in December

Fri 1219:00
-

Noir night · 35mm

Tickets at the door

+

Noir night · 35mm

Book seats
Fri 1919:00
-

Musicals · sing-along

Tickets at the door

+

Musicals · sing-along

Book seats
@@ -1226,8 +1226,18 @@ const photo = { .d-ticket-body p { margin: 0; } - .ticket-note { + .d-ticket-body a { + display: inline-flex; + align-items: center; + justify-self: start; + min-block-size: 44px; + color: var(--color-text); font-weight: 600; + text-underline-offset: 0.3em; + } + .d-ticket-body a:focus-visible { + outline: 2px solid var(--color-focus); + outline-offset: 2px; } .d-tag { display: grid; @@ -1719,6 +1729,19 @@ const photo = { .c-ticket-body p { margin: 0; } + .c-ticket-body a { + display: inline-flex; + align-items: center; + justify-self: start; + min-block-size: 44px; + color: #15131a; + font-weight: 600; + text-underline-offset: 0.3em; + } + .c-ticket-body a:focus-visible { + outline: 2px solid #15131a; + outline-offset: 2px; + } @media (prefers-contrast: more) { .c-rialto .c-label { color: inherit; From 14b43f1dc39860b44d647d0c0baabb2a2cf401d9 Mon Sep 17 00:00:00 2001 From: Jake Ruesink Date: Wed, 2 Dec 2026 16:31:39 -0600 Subject: [PATCH 3/3] SBO-41: Keep Schedule static and generate gallery destinations --- README.md | 4 +- docs/blocks-audit.md | 4 +- public/r/registry.json | 4 +- public/r/schedule.json | 6 +- registry.json | 4 +- scripts/build-registry.mjs | 15 ++- src/components/blocks/Schedule.astro | 61 ++++++------ src/components/examples/footer-minimal.astro | 2 +- src/components/examples/header-minimal.astro | 2 - .../examples/header-minimal.stage.astro | 14 ++- src/data/catalog.json | 12 +-- src/data/gallery-catalog.json | 4 +- src/pages/[...example].astro | 93 +------------------ 13 files changed, 80 insertions(+), 145 deletions(-) diff --git a/README.md b/README.md index da2dd6b..bc03cde 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Astro Blocks -Polished website sections for Astro, distributed as source you own. Every block is a native `.astro` component with scoped CSS, typed props, and semantic design tokens; most blocks ship zero client JavaScript. Three optional interactive blocks (`detail-dialog`, `filter-collection`, `compare-tray`) load exact-pinned `@ui-sdk/web` scripts. +Polished website sections for Astro, distributed as source you own. Every block is a native `.astro` component with scoped CSS, typed props, and semantic design tokens; all 32 static blocks ship zero client JavaScript. Three optional interactive blocks (`detail-dialog`, `filter-collection`, `compare-tray`) load exact-pinned `@ui-sdk/web` scripts. Astro Blocks is a [shadcn](https://ui.shadcn.com/docs/registry)-compatible registry. Installing a block copies ordinary, editable files into your project. Nothing stays linked: no runtime package, no hidden updates. Change anything. @@ -51,7 +51,7 @@ Each item in [`registry.json`](registry.json) says when to use it and, as import - **Optional type.** Sixteen curated self-hosted typefaces, each its own `font-*` item installing a small stylesheet that loads pinned WOFF2 by sha256, plus three pairings built from them (`pairing-editorial`, `pairing-product`, `pairing-warm`) that set only type tokens. Installs stay on the system font until a site adds one. See [docs/type-pairings.md](docs/type-pairings.md) and the live specimens at `/typography`. - **Optional techniques.** Thirteen visual devices in the `technique` category, each with one job. Ten are one small CSS file each: install it, `@import "./techniques/.css";` in your theme, and tune it with custom properties: surfaces (`grain`, `color-field`, `line-work`), photo treatments (`duotone`, `image-mount`, `diptych`), type (`type-lockup`, `marginalia`), an object (`cut-edges`) and one scroll accent (`scroll-reveal`). `screen-tone`, `seal` and `annotated-figure` are components. All use no JavaScript, keep text full-contrast, and drop their decoration under forced colors (and, where it touches text, more contrast). `/techniques` renders each in contrasting brands, plus compositions from none to three techniques; `/compositions` opens one site's content five ways with the hero blocks. - **Container queries.** Blocks lay out from the width they are given, so they work full-width or inside a narrow column. -- **Native layouts and controls.** Narrow-screen menus use the HTML `popover` attribute, the transparent header uses CSS scroll-driven animation, and the wordmark footer sizes with container units. Schedule uses a resize observer to enable sticky day links only when they fit on one row in a wide container. Only `detail-dialog`, `filter-collection`, and `compare-tray` import exact-pinned `@ui-sdk/core@0.1.0-beta.23` and `@ui-sdk/web@0.1.0-beta.23` in `\n\n\n", + "content": "---\n// Astro Blocks — schedule — MIT — https://github.com/lambda-curry/astro-blocks\nimport type { HTMLAttributes } from \"astro/types\";\n\ninterface Session {\n /** Start time as shown, such as \"09:30\". */\n time: string;\n /** End time as shown, such as \"10:15\". */\n end?: string;\n /** Machine-readable start, such as \"2026-06-11T09:30+01:00\". Derived from the day's date when the time is HH:MM. */\n datetime?: string;\n title: string;\n href?: string;\n place?: string;\n /** Speakers, hosts or performers, as one line. */\n people?: string;\n text?: string;\n /** A short label, such as \"Workshop\" or \"Booking needed\". */\n tag?: string;\n /** One of the schedule's tracks, matched after trimming spaces. Leave it out for a session every track shares, such as a keynote. */\n track?: string;\n /** A break is a quiet row: doors, coffee, lunch, changeover. */\n kind?: \"session\" | \"break\";\n}\ninterface Day {\n /** The visible day, such as \"Thursday 11 June\". */\n label: string;\n /** ISO date, such as \"2026-06-11\", for
- -