Krizaka UI
Krizaka UI

Marketing layout

A site's page: the link that skips to the content, the floating bar, the page made of a PageHero and Sections in one frame, the footer.

Web · ✓Mobile · n/aBureau · n/aBêtaMises en page
Niveau de support
Bêta
Taille
0.9 kB gzip, budget 0.8 kB
Qui l'utilise
Aucun produit en production ne l'importe encore Compté dans l'inventaire daté du 2026-11-23.
import { MarketingLayout } from "@krizaka/ui/marketing-layout";

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

  • Mobile · n/a. A whole page of a public site; a phone app's screens are built from Screen, Header and the native primitives.
  • Bureau · n/a. A public site's page, not a window of the Mac app.

Pourquoi il est là. krizaka.com migrating its pages to the specialised template (TPL): the frame of every public page.

Quand l’utiliser

  • Every public page of a Krizaka site: a product, pricing, a hub, a story.
  • A product's public landing.

Quand ne pas l’utiliser

  • For a signed-in screen.À la place : App shell
  • For a documentation page with a sidebar.À la place : Docs layout

Installation

Installer

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

Styles

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

Importer

import { MarketingLayout } from "@krizaka/ui/marketing-layout";

Exemples

A product page

Sovkora's page on the product-page blocks: the hero in depth, reasons, decisions, the limits beside the owl, the closing call.

Pricing and credits

Plans side by side, what a credit buys, the credits left.

A documentation hub

Groups of compact link cards under the hero.

The layout alone

Skip link, bar, hero, a section and a footer.

Props

A site's page: skip link, floating bar, the page, the footer.

PropTypeDéfautDescription
headerrequisReactNode—The site's bar (a floating NavBar of @krizaka /ui/nav-bar).
skipLabelrequisstring—The words of the link that skips to the content (Skip to content).
footerReactNode—The site's footer.

Accessibilité

  • main#content receives the focus from the skip link.
  • The bar floats over the hero: --kz-hero-top keeps the title clear of it.

Clavier

TouchesAction
TabThe first stop is the skip link, which jumps to the page's content.

Bonnes pratiques

  • One PageHero per page, then Sections; the main action of the page is the only one with shimmer.
  • Give the bar the frame's width (--kz-page-max): its edges are the content's.
  • Templates show complete pages: copy one, keep its order.

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

Sur cette page