StealThis .dev
Seiten Medium

Wiki — Docs Page (dev-docs layout + code)

A polished developer-docs page in the Stripe and Tailwind docs vein, built as a self-contained three-column shell for a fictional Aurora DB knowledge base. A collapsible doc-tree sidebar sits left, the readable serif article column runs down the center with breadcrumbs, callouts, tables, and syntax-highlighted-looking code blocks, and a scrollspy table of contents tracks the right rail. Code blocks carry a copy button and a curl/JavaScript/Python tab switcher, and a header light or dark toggle persists across reloads.

In Lab öffnen
html css vanilla-js
Targets: JS HTML

Code

Docs Page (dev-docs layout + code)

A full developer-documentation page modeled on the Stripe and Tailwind docs feel and rendered for a fictional Aurora DB SDK reference. The shell is a three-column grid: a collapsible doc-tree navigation on the left with expandable branches, a centered article column capped near 760px that mixes an Inter UI chrome with a Source Serif 4 reading body, and a right-rail table of contents. The article carries breadcrumbs, an eyebrow and lede, Note / Tip / Warning callouts, a typed-columns reference table, a pull quote, and prev/next page links.

The code blocks are the centerpiece: each one is wrapped in a tabbed panel that swaps between cURL, JavaScript, and Python samples, with faux syntax-token coloring in JetBrains Mono and a copy button that writes the active snippet to the clipboard and confirms with a toast. A header theme toggle flips the whole page between a clean white and a dark palette and remembers the choice in localStorage, falling back to the OS preference on first load.

Interactions are pure vanilla JS: language tabs, clipboard copy with a graceful execCommand fallback, doc-tree collapse, an IntersectionObserver scrollspy that highlights the current TOC entry, a / shortcut that focuses search, page-helpfulness voting, and a mobile drawer with a scrim that collapses the sidebar below 820px down to 360px.

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