Demo page

One showcase at full width: the page head with the claim, the showcase in its frame with its honesty caption, more demos, the call to action.

Page · stable · v1.0.0 · owner: Site system lead · contract 19 of 20 points (open: figma)

Do and don't

Do: /demos/mini-audit/

Declared by demo.ts

A page declaration: page-head → prose-section → related → cta-section. Open associated page (declared association; rendered-page verification is separate).

Declared composition; rendered page verification is separate.

Do: /demos/audit-explorer/

Declared by demo.ts

A page declaration: page-head → prose-section → related → cta-section. Open associated page (declared association; rendered-page verification is separate).

Declared composition; rendered page verification is separate.

Do: /demos/agent-check/

Declared by demo.ts

A page declaration: page-head → prose-section → related → cta-section. Open associated page (declared association; rendered-page verification is separate).

Declared composition; rendered page verification is separate.

Do: /demos/agent-replay/

Declared by demo.ts

A page declaration: page-head → prose-section → related → cta-section. Open associated page (declared association; rendered-page verification is separate).

Declared composition; rendered page verification is separate.

Do: /demos/autonomy/

Declared by demo.ts

A page declaration: page-head → prose-section → related → cta-section. Open associated page (declared association; rendered-page verification is separate).

Declared composition; rendered page verification is separate.

Do: /demos/before-after/

Declared by demo.ts

A page declaration: page-head → prose-section → related → cta-section. Open associated page (declared association; rendered-page verification is separate).

Declared composition; rendered page verification is separate.

Do: /demos/layers/

Declared by demo.ts

A page declaration: page-head → prose-section → related → cta-section. Open associated page (declared association; rendered-page verification is separate).

Declared composition; rendered page verification is separate.

Do: /demos/ops-quarter/

Declared by demo.ts

A page declaration: page-head → prose-section → related → cta-section. Open associated page (declared association; rendered-page verification is separate).

Declared composition; rendered page verification is separate.

Do: /demos/repo-change/

Declared by demo.ts

A page declaration: page-head → prose-section → related → cta-section. Open associated page (declared association; rendered-page verification is separate).

Declared composition; rendered page verification is separate.

Don't: An unregistered block

Declared by demo.ts

A page declaration: page-head → prose-section → related → cta-section. No captured page instance is attached.

Pages compose only registered templates.

Don't: Two fields touching

Declared by demo.ts

A page declaration: page-head → prose-section → related → cta-section. No captured page instance is attached.

A field is always followed by cotton.

Rules

RuleWhyCheck
Built pages follow: header, page-head, prose-section, related?, cta-section, footer.A declared composition is what makes the page checkable and the site consistent.Automated: scripts/site/system/check-pages.ts (check_composition per page)

API

No props.

Contract details

The full contract: identity, anatomy, variants, states, tokens, layout, motion, accessibility, content, tests

Identity

AspectValue
Idpage-demo
LayerPages
Categorypage
OwnerSite system lead
Statusstable
Version1.0.0
Sourceapps/showcase/site/system/pages/demo.ts (private repository; the contract and the render function are this one module)
VersionDateChange
1.0.02026-10-26Demo page as one module: its markup moved out of the page builder (scripts/site) into the system.

Use when

  • Paths matching /^\/demos\/[a-z0-9-]+\/$/. Why: Every page of this kind is composed the same way, so readers learn it once.

Do not use when

  • For a page with a different job. Why: A new kind of page gets its own declaration and review.

Anatomy

PartWhat it is
1page-head
2prose-section
3related (optional)
4cta-section

Made of: header, page-head, prose-section, related, cta-section, footer.

Used in: pages directly.

Variants

VariantWhenWhy
defaultWherever the page declaration places it.One shape per job keeps pages predictable.

States

StateRendered or not applicable
defaultdefault
hoverNot applicable: The demo page is not interactive, so it has no hover state.
focus-visibleNot applicable: The demo page does not take focus; links and buttons inside it carry their own focus ring.
activeNot applicable: The demo page cannot be pressed.
disabledNot applicable: The demo page has nothing to disable.
loadingNot applicable: The demo page is rendered at build time and is complete when the page loads.
emptyNot applicable: The demo page is not rendered without content; the builder skips it.
errorNot applicable: The demo page shows no data that can fail.
currentNot applicable: The demo page has no current item.
visitedNot applicable: The demo page is not a link.
expandedNot applicable: The demo page does not open or close.

Tokens

PartToken
page.ground--cotton

Layout

AspectValue
breakpointsRequired review at 390, 768, 1024 and 1440 px; execution is not implied by this declaration; columns stack under 768 px; the wrap keeps a 16 px gutter on phones.
wrappingText wraps; nothing scrolls sideways.
textExpansionJapanese runs 20 to 40% longer; headings break between phrases (jaBreaks) and blocks grow downwards.

Spacing and rhythm

AspectValue
internalEach template's own padding.
externalNone.
rhythmField, cotton, field: never two fields touching; the woven edge at each join (D-SITE-002, D-SITE-003).

Motion

AspectValue
NoneNo intrinsic element animation. The optional claude-entrance consumer profile may translate below-fold structure once (20px, --dur-weave, --ease-enter, --stagger); reduced motion disables it. This preserved baseline entrance is separate from element playback.

Runtime and reuse

  1. Render-only element; mount any registered child enhancements separately. Preserve required Site CSS, fonts, responsive and locale rules from nativeElement.

Accessibility passport

AspectValue
rolea landmark or list, as stated in its parts
nameIts visible text
keyboardLinks and buttons inside, in reading order.
focusThe --focus ring on every link and button inside.
screenReaderRead in source order; decorative weaving is aria-hidden.
contrastInk on cotton 14:1; text on every dye field 4.5:1 or better (checked by check-brand).
targetLinks and buttons are 44 px tall.

Content

SlotLengthVoice
page-head: demo claimOne claim within Page head limits; identify what the reader can try.Describe the actual demonstration without implying client or production results.
prose-section: showcase frame and captionOne primary showcase with its honesty caption; related demos are optional before the closing action.Name sample inputs, simulated services and unrun real-world behavior where applicable.

Good: “Try the mini audit on the labelled sample and inspect what each check found.”

Bad: “A simulated agent replay presented as a live client deployment.”

Japanese: These specific interactive demo routes are English. The Japanese demos overview uses its own existing composition; do not infer Japanese runtime output or translated demo controls from this declaration.

Icons and illustrations

None: this element uses no icon or illustration of its own.

Decisions and exceptions

Usage

9 uses across the built pages (measured by npm run site:system).

Tests

AspectValue
unittests/unit/site-system.test.ts: renders every do and don't example through the registry and checks the classes it owns
visualNot yet: there are no screenshot baselines; the Library page is checked for sideways scroll at 1440 px by tests/site/system.spec.ts
a11ytests/site/system.spec.ts: axe (0 serious or critical) on the element's Library page in light and dark
parityscripts/site/system/check.ts: Library examples are rendered by the same render function the site imports

Figma

not-yet: The Loom Site Figma library is the last stage of the plan; this element is not mapped yet.

Start with a conversation about your system.

We read your system, show you what we found, and agree with your team what to fix first.