StealThis .dev
Páginas Difícil

News — Front Page

A full newspaper front page with a Playfair Display nameplate, dateline, edition and price strip framed by hairline rules, then a strict multi-column lead grid. One dominant lead story carries a deck, drop-cap lede, captioned duotone hero figure and an oversized pull quote, flanked by secondary stories with column rules, a More-on-the-front sidebar, a five-day outlook, and a four-up briefs strip. Vanilla JS drives a live dateline clock, an A-/A+ body-type control, and a scroll-spy section-jump nav.

Abrir en Lab
html css vanilla-js
Targets: JS HTML

Código

Front Page

A complete broadsheet front page for The Meridian Courier, a fictional daily. The nameplate sets the paper’s name in heavy Playfair Display between two hairline strips — an “Est. 1887 / Vol. CXXXIX” masthead line above and a dateline-and-edition strip below carrying the day, a live clock, weather, the edition mark, and the cover price. Beneath a sticky section nav, the page resolves into a strict three-column grid: a dominant lead story with a deck, drop-cap lede, a captioned duotone “press photo” hero and an oversized serif pull quote; a secondary column of stories separated by thin rules; and a sidebar of “More on the Front” links, a portrait figure, and a five-day outlook box. A four-up “In Brief” strip closes the sheet.

The layout leans on rules rather than shadows — hairlines between columns, a double rule above the briefs, a red rule on every caption — with a single accent red reserved for kickers, breaking dots, and links. Figures are simulated entirely in CSS with layered linear and radial gradients to read like muted, duotone-ink press imagery, each with an italic caption and a credit line. Body text is justified with hyphenation, and the lead column splits into two CSS columns on wider screens, collapsing cleanly to a single column under ~720px and holding together down to ~360px.

Three vanilla-JS interactions bring it to life: a live clock that ticks in the dateline (and keeps the day and date in sync), an A-/A+ / reset control that scales the body type via a --type-scale custom property and remembers the choice in localStorage, and a section-jump nav with smooth scrolling, focus management, and an IntersectionObserver scroll-spy that highlights the current section. A small toast() helper surfaces feedback for each action.

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