StealThis .dev

Wiki — Encyclopedia Landing (Wikipedia-style)

A Wikipedia-style main page for the fictional Compendia encyclopedia, built in HTML, CSS, and vanilla JS. A welcome banner with an animated article-count stat, a central search bar with a live preview dropdown, a two-column Featured article plus Did you know and In the news layout, an On this day list, a CSS-drawn featured picture, a colour-coded portals grid, sister-project tiles, and a languages footer band. Shuffle buttons rotate the featured article and facts, with toasts and a slash keyboard shortcut.

Lab에서 열기
html css vanilla-js
Targets: JS HTML

Code

Encyclopedia Landing (Wikipedia-style)

A scholarly main page for Compendia, a fictional free encyclopedia, dressed in the classic Wikipedia-style trade: a serif body in Source Serif 4 for the dense, authoritative article prose, Inter for the chrome and navigation, and JetBrains Mono for keyboard hints, all over a clean white ground with classic wiki-blue links. A sticky top bar carries the logo mark, a central search field, and account links, while a welcome banner counts up to 6,481,003 articles and stamps the day’s edit total. Below it, tinted main-page panels lay out a Featured article beside Did you know and In the news, with a separate row for On this day and a CSS-drawn featured picture of terraced hydro-gardens beneath a drifting aurora.

The search field powers a live preview dropdown over a small in-page article index: it filters and highlights matches as you type, supports arrow-key navigation with Enter to open and Esc to close, and a / shortcut focuses it from anywhere. Two Shuffle controls rotate through several featured articles and Did you know facts — the facts also auto-advance gently — and clicking a featured headline expands or collapses its full preview. A colour-coded portals grid (Science, History, Geography, Arts, and more) lifts and tints on hover, sister-project tiles and a ten-language footer band round out the page, and every illustrative link fires a small toast() confirmation.

The layout collapses cleanly from a two-column desktop main page to a single stacked column on narrow screens, floats unwrap below ~520px, and all motion respects prefers-reduced-motion. Landmarks, visible focus rings, aria-live regions, and AA-contrast link blue keep it keyboard- and screen-reader-friendly.

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