Krizaka UI
Krizaka UI
Patrons

Cover hero

The first screen of a shop or a place: its cover — a photo, or a muted loop that stays a still under reduced motion — behind the name, a one-line promise, a few true facts and the main action. Without a cover, the brand's colours.

Web · ✓Mobile · n/aBureau · ✓BêtaBlocs
import { CoverHero } from "@krizaka/ui/cover-hero";

Web uniquement — React, depuis @krizaka/ui/cover-hero. Bêta : son API peut encore changer à une version mineure.

  • Mobile · n/a. A shop's public storefront is a web page. → Profile card

Pourquoi il est là. Used by Akinaza.

Quand l’utiliser

  • The top of a business's public page, where its own photo or loop sells it before any text is read.
  • Any page whose subject has a cover image: a place, a venue, a profile.

Quand ne pas l’utiliser

  • The first screen of a documentation or marketing page of the product itself.À la place : Page hero
  • A product's overview with its window beside the words.

Installation

Installer

npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcss

Styles

@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";

Importer

import { CoverHero } from "@krizaka/ui/cover-hero";

Exemples

Shop

A cover photo, the name, the promise, open-now and the neighbourhood, and the main action.

Without a cover

The brand's colours stand in for the photo.

Props

A shop's first screen: the cover, the name, the promise, the facts and the main action.

PropTypeDéfautDescription
titlerequisReactNode—The name: the page's h1.
actionsReactNode—The main action (ButtonLink).
back{ href: string; label: string; }—The way back, above the eyebrow.
coverCoverMedia—The cover. Without it the hero wears the brand's colours.
eyebrowReactNode—A short mono line above the name (where the shop is: Saint-Henri · Montréal).
factsReactNode—Chips under the lead: open now, the neighbourhood, a rating — only what is true.
leadReactNode—One line: what it promises.
linkAsLinkComponent—The app's link component for the back link.

Accessibilité

  • A header with the h1; the loop is aria-hidden and never focusable, and it is not rendered at all under reduced motion.
  • The text sits on a veil made of the scrim tokens, readable over any cover in dark and light.

Bonnes pratiques

  • Use the business's own media; with none, leave cover out — the hero still reads as designed.
  • Give the still real alt text when it shows something that matters; leave it empty when it only sets a mood.
  • Keep the facts to what is true now (open now, the neighbourhood, a rating that exists) — never a placeholder.
  • One main action; pair it with StickyAction so a phone keeps it in reach.
  • Keep the loop short (under 10 s, a few hundred kB): the still is what most readers see first.

Générée depuis le code de @krizaka/ui 3.63.1 : son meta.ts, ses exemples et ses types.Modifier cette documentation sur GitHub

Sur cette page