StealThis .dev
Pages Medium

Science — Popular-Science Magazine Landing

A lively, trustworthy popular-science magazine homepage with a bold cover feature, a colorful topic chip row, a filterable grid of story cards with category color tags and read times, a horizontal Explainers scroller, a gradient newsletter band, and a ranked trending sidebar. Vanilla JS powers topic filtering, instant search, count-up stats, an animated starfield hero, and email validation with toast feedback. Fully responsive down to 360px and keyboard-accessible.

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

Code

A homepage for Orbit, a fictional popular-science magazine that aims to feel energetic but credible. A sticky brand bar opens into an inline search field; below it, a hero feature pairs a slowly rotating SVG galaxy and generated starfield with a big serif headline, category kicker, byline, and read time. A colorful chip row (Space, Biology, Climate, Tech, Mind) sits above the fold, and a ranked “Trending now” rail counts up its yearly-story stat as it scrolls into view.

The featured grid renders from a small dataset of plausible-but-fictional stories — each with author, dek (units, redshifts, DOIs-in-spirit), category-tinted tag, and read time on a procedurally generated gradient cover. Clicking a chip filters the grid live; typing in search narrows it instantly with a match count. Below, an Explainers scroller offers snap-scrolling two-minute cards, and a gradient Subscribe band validates email inline and confirms with a toast.

Everything is vanilla JS with no external libraries: equations and figures are faked with inline SVG and CSS, cards and counters animate with requestAnimationFrame and IntersectionObserver, and all interactive elements are keyboard-operable with visible focus and ARIA labels.

Illustrative UI only — fictional authors, data, and figures; not real scientific results.