Skip to content

ADR-0246: The site home follows one message down a road, built from VitePress components ​

  • Status: accepted
  • Date: 2026-12-05
  • Deciders: Mahdi Amirabdollahi
  • Supersedes: the story decision of ADR-0217 (one on-call night across Kafka and Artemis) and the decision of ADR-0121 that the English home is one hand-written static file; the rest of ADR-0217 stands

Context ​

ADR-0217 kept the home one hand-written file, site/src/public/index.html, and told a night on call across a Kafka group and an Artemis dead-letter queue. Three things moved. RabbitMQ shipped, so a story of two systems under-tells a product of three. The page is 68 KB of inline CSS and script that shares nothing with the docs: its colours, its fonts declaration and its light and dark switch were copies, its internal links were checked by nothing (a renamed guide would ship a 404), and the docs' brand teal #0c8599 fails AA for link text on white (4.35:1). And a night of pager cards repeats the shape of every infrastructure landing page, while the name means road-keeper and the brand mark is a road cut through two blocks.

Decision ​

  1. The home follows one made-up order across the three brokers on a scroll-driven road drawn in the brand mark's own geometry: a channel of empty space between two walls, never painted a colour. The message is one dot, the only accent on the page. At each stop one honest thing the console does is shown (Kafka browse and lag as an estimate, a RabbitMQ disk alarm, an Artemis request with no reply and the SQL console that finds it), then the reader's own hand: a real press and hold of the product's 1.5 s (ADR-0186) that deletes the backlog and lets the order through, with the audit rows it wrote. The camera then lifts to the estate Dashboard. Every scene is an illustration drawn in the page and says so, and every claim comes from a guide. A reader who scrolls past the hold sees the order still waiting, down to the install section.
  2. The home is Vue single-file components inside the VitePress theme (layout road), server-rendered at build, so every word is in the HTML before any script runs. It shares tokens, fonts and the colour-scheme switch with the docs. site/src/public/index.html is deleted. site/scripts/check-home.ts runs before the build and fails it when an internal link of the home resolves to no page, when the quickstart shown differs from the README's line for line, when a source names an origin outside the allowlist, or when copy holds an em dash, an en dash or a middle dot.
  3. One accent, two cuts of one family. Keeper teal (#0b7285 on light, #7ceaf5 and #22b8cf on dark); Atkinson Hyperlegible Next for reading and Mono for what a machine reads. The docs' brand colour moves to the same values. Amber and red appear only where the product itself would show them.
  4. Motion is CSS first. Scroll-driven animations (animation-timeline) and the Web Animations API with ScrollTimeline drive the dot; an IntersectionObserver tier plays each scene once where the timeline is unsupported; prefers-reduced-motion gets a designed still page, with the hold kept at 1.5 s and a numeric readout in place of the fill. No animation library and no new dependency.
  5. Rules of ADR-0217 kept: no third-party origin of any kind (no CDN, font service or analytics), self-hosted OFL fonts, every scene a labelled illustration, a complete still page, and the 1.5 s hold in every tier.
  6. Product captures shown by the site are one ratio, 16:10 at 1600 x 1000, light and dark, shown in the reader's scheme.

Consequences ​

  • The home costs VitePress' runtime, shared with the docs, where the static page cost none, and the docs and the home now change together: a docs colour change reaches the home.
  • The old localStorage theme key is dropped for VitePress' own appearance setting.
  • Without JavaScript the home is complete text, but the road itself is drawn on the client from measured positions, so a no-script reader reads the story without the drawing.
  • Scroll-linked motion needs animation-timeline and ScrollTimeline; other browsers get the entry tier, and a reader who asks for reduced motion gets the still page.
  • The road ends at the warehouse: after the pull-back the page returns to ordinary sections.
  • ADR-0217's status line and the index point here; ADR-0121 is already superseded.

Alternatives considered ​

Another hand-written static file. It cannot share the docs theme, nothing checks its links, and nine scenes of inline CSS and script in one file is hard to review.

A second night on call with new incidents. It repeats the current page's shape and leaves the name's meaning unused.

An animation library (GSAP, Motion). Everything the page moves is transform, opacity, offset-distance and clip-path, which the platform animates without a script from another origin or a dependency to track.

Apache-2.0. Apache Kafka, Apache ActiveMQ and Apache ActiveMQ Artemis are trademarks of the Apache Software Foundation. RabbitMQ is a trademark of its owner. Rahdar is an independent project, not produced by, endorsed by, or affiliated with the ASF or the owner of RabbitMQ.