Skip to Content

Magazine Cover

Magazine cover hero: a full-screen cover on cream paper with grain, an inset hairline frame, monospace corner text for masthead, issue and tagline, and an oversized centered title. Art goes underneath.

Installation

pnpm dlx shadcn@latest add @01orbital/magazine-cover

Usage

import { MagazineCover } from "@/components/hero/magazine-cover"

export default function MagazineCoverDemo() {
  return (
    <MagazineCover
      title="Atlas"
      masthead={
        <>
          <span>Zaira</span>
          <span>Issue No. 01 — MMXXVI</span>
        </>
      }
      issue="Vol. I"
      tagline="A field guide to the quiet parts"
    />
  )
}

This example installs with everything it uses:

pnpm dlx shadcn@latest add @01orbital/magazine-cover-demo

API reference

A full-screen magazine cover: a huge title with a masthead, issue and tagline in the corners. The title is sized from the viewport width, and the frame and corner labels move out 8px from the md breakpoint. Pass the art as children; omit it for plain paper.

Cream stock with ink to match, both literal so the paper never flips with the page's mode; pass dark bg-transparent text-foreground for dark paper.

Prop

Type

It also accepts the HTML attributes of the element it renders.

Dependencies

npm: cn. The CLI installs it for you.

Requires these pieces. The CLI adds each one that is missing and won't replace a file you already have unless you choose to:

  • font-geist-mono

Last updated on