defuss-shadcn / Website / website-news
News
Blocks for a newsroom, a press page or a changelog front: the header with its topics, a ticker of the latest headlines and the stories themselves - as the lead, as rows with thumbnails, or as a compact list. Every block is CSS-only and built from the library's components and tokens.
On this page (3)
§The template
The News blocks composed into one page - the source is the page. The section links are routes of defuss-dom-router (#/section/engineering) that show a section's stories, and every headline opens its story (#/story/passkeys): one view filled from the page's data block - the full text, the reporter, the stories around it and the way to the previous and the next one. The language switch translates the frame with defuss-i18n and the stories with it - the data block holds each one in English and German, and the dates are formatted for the language. Subscribe and Send a tip open Dialogs.
§A news front
The sections are routes (#/section/product), every headline opens its story (#/story/acme-4); the switch translates the frame and the stories. A Site Header, the News Header (masthead) and a breaking News Ticker above a lead story, a compact headline list beside it and story rows below; the story view composes Article Header, Article Body, Author Bio and Article Navigation; a Site Footer closes the paper.
§The blocks
News Header
Introduces a news collection with its title and editorial context - kicker, dateline, topic links, or a newspaper masthead.
News Item
Previews one news story with its headline, date, and summary - a row with a thumbnail, the lead story, or a compact headline list.
News Ticker
Displays a compact stream of linked news headlines - a seamless CSS marquee that pauses on hover and focus, and stops for reduced motion.
Comments, ideas or improvements? Edit this page's source on GitHub