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.
- Domain
- Page blocks & templates
- Support level
- Size
- 0.9 kB gzip, budget 0.8 kB
- Who uses it
- No live product imports it yet Counted in the dated inventory of 2026-11-23.
import { MarketingLayout } from "@krizaka/ui/marketing-layout";Web only — React, from @krizaka/ui/marketing-layout. Beta: its API may still change in a minor version.
- Mobile · n/a. A whole page of a public site; a phone app's screens are built from Screen, Header and the native primitives.
- Desktop · n/a. A public site's page, not a window of the Mac app.
Why it is here. krizaka.com migrating its pages to the specialised template (TPL): the frame of every public page.
When to use
- Every public page of a Krizaka site: a product, pricing, a hub, a story.
- A product's public landing.
When not to use
- For a signed-in screen.Use instead: App shell
- For a documentation page with a sidebar.Use instead: Docs layout
Installation
Install
npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcssStyles
@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";Import
import { MarketingLayout } from "@krizaka/ui/marketing-layout";Examples
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.
| Prop | Type | Default | Description |
|---|---|---|---|
headerrequired | ReactNode | — | The site's bar (a floating NavBar of @krizaka /ui/nav-bar). |
skipLabelrequired | string | — | The words of the link that skips to the content (Skip to content). |
footer | ReactNode | — | The site's footer. |
Accessibility
main#contentreceives the focus from the skip link.- The bar floats over the hero:
--kz-hero-topkeeps the title clear of it.
Keyboard
| Keys | Action |
|---|---|
| Tab | The first stop is the skip link, which jumps to the page's content. |
Best practices
- 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.
Related components
Generated from the code of @krizaka/ui 5.3.4: its meta.ts, its examples and its types.Edit this documentation on GitHub