Skip to content
Klarhimmel UI

Products, grid with picture foot

Products, grid with picture foot previewProducts, grid with picture foot preview

Install

npx shadcn add @klarhimmel/products-grid-picture-foot
DetailsAbout, usage, props and more

A heading with a lead on the left and two actions on the right, a row of icon cards each with a title, a line and a small link, and one wide captioned picture under the…

Import

Import

import Block from '@/components/klarhimmel/blocks/products-grid-picture-foot';
Also called
  • products/grid-picture-foot
About
A heading with a lead on the left and two actions on the right, a row of icon cards each with a title, a line and a small link, and one wide captioned picture under the cards. On a phone everything stacks.
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 when a products or services section needs a header with its actions at the right, a short row of icon cards that each link on, and one wide captioned picture closing the section. When the picture belongs above the grid and there are no header actions use features-grid; for one product with its price use products-featured-split.

Writing for it

- The title holds 120 characters, the lead 240 and each card title 60 with a line of 200. One to six cards; three fill the row. - Every card has an icon from the list and a small link label of 40 characters; empty the label and the link is dropped. - The caption holds 160 characters and says what the wide picture shows.

Watch out for

The picture is cropped to a wide strip, so choose one whose subject sits in the middle band. Keep card lines to the same length or the row looks ragged. Do not put a long heading beside the actions, or the actions drop below it.

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 ProductsGridPictureFoot from '@/components/klarhimmel/blocks/products-grid-picture-foot';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <ProductsGridPictureFoot props={{
          "eyebrow": "Name the section",
          "title": "Say what the visitor can choose from",
          "description": "Say in one or two sentences what the cards below have in common.",
          "primary": {
            "label": "Main action",
            "href": "#start"
          },
          "secondary": {
            "label": "Second action",
            "href": "#contact"
          },
          "items": [
            {
              "icon": "clock",
              "title": "Name the first item",
              "description": "Say what the visitor gets from this item in one line.",
              "link": {
                "label": "Link label",
                "href": "#first"
              }
            },
            {
              "icon": "layers",
              "title": "Name the second item",
              "description": "Say what the visitor gets from this item in one line.",
              "link": {
                "label": "Link label",
                "href": "#second"
              }
            }
          ],
          "media": {
            "src": "/pictures/photo-piano1.avif",
            "alt": "A piano in a sunlit room"
          },
          "caption": "Say what the wide picture shows."
        }} />
      </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'Name the section'Text, up to 60 characters.
titlestring'Say what the visitor can choose from'Text, up to 120 characters.
descriptionstring'Say in one or two sentences what th…'Text, up to 240 characters.
primaryLink{…}See the type.
secondaryLink{…}See the type.
items{ icon, title, description, link }[]3 itemsList of 1 to 6. Each item: icon ('zap' | 'shield' | 'layers' | 'globe' | 'sparkles' | 'clock' | 'code' | 'palette' | 'lock' | 'chart' | 'users' | 'mail' | 'heart' | 'rocket' | 'search' | 'settings' | 'check' | 'star' | 'book' | 'box' | 'cloud' | 'compass' | 'leaf' | 'gauge'), title, description, link.
mediaMedia{…}See the type.
captionstring'Say what the wide picture shows.'Text, up to 160 characters.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.