StealThis .dev
Seiten Medium

Wiki — Search Results (faceted)

A faceted knowledge-base search results page for the fictional Aurora KB. A sticky search bar echoes the active query and live result count, a left facet rail filters by result type (Article, Doc, API, Tutorial), section, and last-updated window with per-option counts, and a sorted list of result cards shows highlighted title and snippet matches, a breadcrumb path, a colour-coded type badge, and a relative last-updated stamp. Checkboxes filter the list live, an active-filters chip row supports one-click removal and clear-all, sort toggles Relevance or Newest, and an empty state appears when nothing matches.

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

Code

Search Results (faceted)

A clean, dense search results page for the fictional Aurora Knowledge Base, built in the classic docs tradition: a sticky top search bar carrying the live query and result count, a persistent left facet rail, and a centered column of result cards. The query replication lag is matched across fourteen encyclopedic entries spanning Aurora DB, Project Nimbus, the Verdant Mesh, and Platform Ops — each tagged as an Article, Doc, API reference, or Tutorial. Every card pairs a breadcrumb path, a colour-coded type badge, a serif snippet with the search terms bolded, and a relative last-updated stamp.

The facet rail filters the list live. Toggling the type or section checkboxes narrows the results and updates every other group’s counts so the numbers always reflect what’s still reachable, while the Last updated radio group scopes results to a recency window. Each active filter is mirrored as a removable chip above the list, with a Clear all action; a Sort dropdown reorders by relevance score or newest, and removing every match swaps in a dedicated empty state with a one-tap reset. Press / to jump to the search box, and submit the form to re-run highlighting for a new query.

The layout is fully responsive: on narrow viewports the facet rail collapses into a slide-in drawer behind a toggle button with a scrim, the brand label and keyboard hint fold away, and cards reflow to a single dense column down to 360px. All controls are keyboard-operable with visible focus rings, the result count is announced via an aria-live region, and a small toast confirms sorting and filter changes.

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