Skip to content
Klarhimmel UI

Products, oversized headline

Products, oversized headline previewProducts, oversized headline preview

Install

npx shadcn add @klarhimmel/products-oversized-headline
DetailsAbout, usage, props and more

A giant headline that runs across the page with a pill picture and a round picture set inline between its words, a lead line beside a picture, a row of three cards each…

Import

Import

import Block from '@/components/klarhimmel/blocks/products-oversized-headline';
Also called
  • products/oversized-headline
About
A giant headline that runs across the page with a pill picture and a round picture set inline between its words, a lead line beside a picture, a row of three cards each with a picture, a name, a line, check points and a link, and two…
Category
Things for sale as cards, rows or one featured item, each with a name, a price and its own action. New project? Set it up once: /get-started/installation.

Notes

When to use it

Pick it as an opening statement for a product range: a giant headline with pictures between its words, then a lead, a picture and three picture cards. For a hero with a single inline pill use hero-centered and its title picture, and for plain cards use features-image-cards.

Writing for it

- The headline is three runs of at most 40 characters each, with two pictures between them; short words only, since the type is very large. - Two to four cards with a name of 60, a line of 200 and up to four points of 80. Lead 240.

Watch out for

Long headline words wrap badly at this size. Use short words and leave a part empty rather than stretching it; empty pictures show the placeholder shape until a picture is set.

Usage

The block in a page, with its default content (long lists shortened). Every prop is in the table below.

section.tsx
import { Theme } from '@/components/klarhimmel/theme/style';
import { BlockSurface } from '@/components/klarhimmel/blocks/surface';
import ProductsOversizedHeadline from '@/components/klarhimmel/blocks/products-oversized-headline';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <ProductsOversizedHeadline props={{
          "eyebrow": "Section name",
          "title": "Open the",
          "titleMiddle": "headline with",
          "titleEnd": "a few words",
          "titlePill": {
            "src": "/pictures/photo-lily1.avif",
            "alt": "A white lily in soft light"
          },
          "titleDot": {
            "src": "/pictures/photo-optic1.avif",
            "alt": "Silver-framed glasses on a white table"
          },
          "description": "Say in one line what the visitor will find below.",
          "media": {
            "src": "/pictures/photo-party1.avif",
            "alt": "A party table with a cake and balloons"
          },
          "cards": [
            {
              "media": {
                "src": "/pictures/photo-patio2.avif",
                "alt": "A curved paved path beside a stone wall"
              },
              "name": "Name the first item",
              "description": "Say in two lines what the visitor gets from this item.",
              "points": [
                "Say one thing the visitor can count on"
              ],
              "link": {
                "label": "Text link",
                "href": "#first"
              }
            }
          ],
          "primary": {
            "label": "Main action",
            "href": "#start"
          },
          "secondary": {
            "label": "Second action",
            "href": "#contact"
          }
        }} />
      </BlockSurface>
    </Theme>
  );
}

Props

The type, default and text limit of every prop. On a real page, over-limit text is kept and checkSections flags it (Installation, Check a page before you ship); this live preview shows the default until it fits. The panel above edits all props.

PropTypeDefaultDescription
eyebrowstring'Section name'Text, up to 60 characters.
titlestring'Open the'Text, up to 40 characters.
titleMiddlestring'headline with'Text, up to 40 characters.
titleEndstring'a few words'Text, up to 40 characters.
titlePillMedia{…}See the type.
titleDotMedia{…}See the type.
descriptionstring'Say in one line what the visitor wi…'Text, up to 240 characters.
mediaMedia{…}See the type.
cards{ media, name, description, points, link }[]3 itemsList of 2 to 4. Each item: media, name, description, points, link.
primaryLink{…}See the type.
secondaryLink{…}See the type.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.