StealThis .dev
Pages Medium

Wiki — Wiki Article (sidebar · TOC · body)

A full encyclopedia-style article page in a clean, dense knowledge-base aesthetic. A persistent left sidebar carries the logo, a live nav filter, section links, and a language list; the centered serif body opens with a lead paragraph and a right-floated, collapsible infobox, then runs through layered sections with inline links, a CSS-drawn Raft-quorum figure, syntax-tinted code blocks, note and caution callouts, a comparison table, references, and category chips. A sticky right-rail table of contents tracks the reader with scrollspy.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Wiki Article (sidebar · TOC · body)

An encyclopedia-style article page for the fictional Aurora DB, built in the clean, high-density knowledge-base tradition. A persistent left sidebar holds the Verdant logo, a search box that live-filters the navigation, grouped section links, and a wrapped list of languages. The centered article column sets long-form prose in a serif face with a generous 1.65 line-height, opening with a title, a From the Verdant Encyclopedia subtitle, an article meta row, and a lead paragraph threaded with link-blue inline references. A right-floated infobox summarizes the subject in collapsible General, Technical, and Adoption sections.

The body runs through layered h2/h3 sections — Overview, Architecture, Consistency model, Deployment, Reception, References — with a CSS-drawn Raft-quorum figure, syntax-tinted code blocks, a pull quote, note and caution callouts, an isolation-levels comparison table, numbered references, and a row of category chips. A sticky right-rail table of contents mirrors the structure.

The script wires a scrollspy that highlights the active section in both the TOC and the sidebar via an IntersectionObserver (with a scroll fallback), smooth-scrolls and focuses in-page anchors, collapses infobox sections, fires a decorative [edit] link per heading, filters the sidebar from the search box (with a no matching links state and a / hotkey to focus it), and toggles a sidebar drawer with a scrim on mobile. A small toast() helper confirms actions, and the layout collapses the TOC, then the sidebar, down to 360px.

Illustrative UI only — fictional articles, products, and data.