StealThis .dev
页面 簡單

News — Q&A / Interview Layout

A magazine Q&A spread for the fictional Meridian Review, opening on a duotone subject portrait, an oversized Playfair headline, an italic standfirst and a drop-cap intro, then the conversation set as styled Q/A pairs — bold red interviewer prompts against serif answers — broken by a full-width pull quote and a duotone harbour figure. A sticky reader bar offers a text-size stepper and a jump-to-question mini-nav, while a sidebar fact box carries the subject's bio, a side pull quote and a key-facts list. Pure vanilla JS, no frameworks.

在 Lab 開啟
html css vanilla-js
目標: JS HTML

程式碼

Q&A / Interview Layout

A feature interview spread for The Meridian Review, a fictional paper. The opener pairs a duotone “press portrait” of the subject with an oversized Playfair Display headline, an italic standfirst, a credited photo caption and a byline with dateline and reading time. A drop-capped intro paragraph sets the scene before the transcript begins. The conversation runs as styled Q/A pairs — a bold red Q. for the interviewer in tight Inter, serif answers led by an italic A. — with hairline rules separating each exchange. A full-width serif pull quote and a captioned, duotone harbour figure break the rhythm, and a right-hand fact box collects the subject’s bio, a side pull quote and a key-facts list.

A sticky reader bar gives the page two controls. A text-size stepper scales the body copy through five levels via a CSS custom property, announcing each change through an aria-live toast. A “jump to question” select is built from the markup at load — each Q/A block is read for its data-question label — and choosing one smooth-scrolls to that exchange and briefly flashes it. An IntersectionObserver keeps the nav aware of the reader’s position, and a back-to-top control returns focus to the top of the piece.

Everything is semantic and accessible: real <article>, <figure> and <dl> structure, a skip link, visible focus rings, AA-contrast type, and full prefers-reduced-motion support. The layout is a two-column grid that collapses to a single column under 920px and stays readable down to 360px. All copy — masthead, headline, byline, questions and answers — is original, clearly-fictional editorial writing.

Illustrative UI only — masthead, headlines, bylines, and articles are fictional; not a real news publication.