Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Magazine Front Blog Highlights About Block for React

The front page of a newsletter platform's blog laid out like a magazine: a category filter, a featured story with a drawn typographic cover, two small stories and a wide one, and the other categories dimmed when one is chosen.

Framework
UI library

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

Overview

A magazine front for React with Base UI, written for Inkbarn, a fictional newsletter platform, and its blog the Inkbarn Review. A compact header has a category filter at its end: All, Product, Craft and Culture, a single choice that can't be switched off. Below it, four stories are cells whose lines overshoot their corners on wide screens: a featured story over two rows with a typographic cover drawn in greyscale, two small stories beside it and a wide one under them, each with a category badge, the headline as the cell's one link, the author and the reading time. Choosing a category dims the other stories to a tint and a lighter cover; they stay readable and linked. Below lg the cells are bands ruled from rail to rail, and a line about the next issue with a text link closes the block. It's built from Toggle Group, Badge, Avatar and Guides, with CSS for the entrance and your theme's tokens for every colour. For about pages and company blogs that want a front page, not a feed. The stories and authors are example data.

FAQ

How do I change the stories and the categories?

The stories are FEATURED, DRAFTS, INBOX and SUBJECT at the top of the file: an author with initials, a category, a one-sentence dek, a title and the minutes it takes to read. The categories are CATEGORIES. Each cover is its own small component (FeaturedCover, StripesCover, RingsCover, TypeCover) passed to its cell, drawn from type, lines and tints, never a photo.

What does the filter do?

It dims, it doesn't hide. The stories outside the chosen category take a solid tint, a lighter cover and quieter text, and a polite line says how many match. Nothing is removed or moved, so the block keeps its height, and the dimmed stories keep their links. The single choice can't be switched off: press All to see everything.

Why are the covers drawn and not photos?

A photo needs a picture and goes missing, and a grey box looks unfinished. Each cover is a small drawing in your theme's greyscale (a masthead and a headline in serif type, hairline stripes with a numeral, rings, a type specimen) and is hidden from assistive technology because the headline beside it says the same thing.

How is it read by a screen reader?

The block has one h2 and each story is an article with an h3 holding its one link, with a stretched hit area and a focus ring around the whole cell. The category badge comes first, then the title, the author and the reading time. The filter is a group of toggles named "Category".

How does it fit on a phone?

The filter sits in a two by two shell under the header and the stories stack as bands, the featured cover at four by three and the small ones at a short height. The closing line takes the last band. Nothing scrolls sideways at 320 pixels, and in a right-to-left layout the reading times keep their order.

What moves, and what happens with reduced motion?

The header and the cells fade up once on load and the dimming is a short colour transition, all with CSS. With reduced motion the entrance is off and a filter changes the tints at once.

  • Pro

    Sortable Media Mentions About

    Press and recognition

    An index of eight press mentions for a PR tool as two-line rows, each with the masthead, the kind of piece, the day and the headline as a link, and the reach at its end; a Select sorts them by newest or by reach.

  • Pro

    Podcast Show Notes About

    Press and recognition

    Show notes for a podcast hosting company's own show: a scrolling vertical list of eight episodes at the start and the chosen episode's notes at the end, with a summary, chapters drawn to scale and listed with time stamps, and a Listen link.

  • Pro

    Pull Quotes and Press Kit About

    Press and recognition

    A press page for a ticketing company: three pull quotes set as headlines with the outlet in serif lettering, and a press kit of three real files that download from the page, a boilerplate with a Copy button and a press contact.

  • Pro

    A release summary for a release-notes tool: a segmented bar of what changed since launch (added, improved, fixed) with counts, a filter by type and the latest four releases as rows.

  • Pro

    Blog Footer

    Content and updates

    A blog footer for a data-engineering blog: topic pills with post counts, the two latest posts and an RSS link on one side, two link groups on the other.

  • Pro

    A scroll-snap row of five case-study covers, each with a drawn wordmark, a giant result figure, two tags and a link, and a wider first card.