@krizaka/ui 4.2.1 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -374,7 +374,7 @@
374
374
  }
375
375
  ],
376
376
  "dependencies": [
377
- "@krizaka/tokens@^4.2.1"
377
+ "@krizaka/tokens@^4.4.0"
378
378
  ],
379
379
  "registryDependencies": [
380
380
  "account-menu",
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,45 @@
1
+ "use client";
2
+
3
+ // registry/examples/landing-page/showcase.tsx
4
+ import { Button } from "@krizaka/ui/button";
5
+ import { LandingPage } from "@krizaka/ui/landing-page";
6
+ import { MediaCarousel } from "@krizaka/ui/media-carousel";
7
+ import { Section } from "@krizaka/ui/page";
8
+ import { jsx } from "react/jsx-runtime";
9
+ var PIC = (a, b) => `data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='${a}'/><stop offset='1' stop-color='${b}'/></linearGradient></defs><rect width='1600' height='900' fill='url(#g)'/></svg>`)}`;
10
+ function LandingPageShowcase() {
11
+ return /* @__PURE__ */ jsx(
12
+ LandingPage,
13
+ {
14
+ backdrop: "quiet",
15
+ title: "An AI that never leaves your server",
16
+ lead: "Chat, image and voice on your own machine, every run recorded.",
17
+ actions: /* @__PURE__ */ jsx(Button, { variant: "primary", size: "lg", children: "Install" }),
18
+ proofs: [
19
+ { value: "0", label: "calls to the outside" },
20
+ { value: "128", label: "runs measured, each with its record" }
21
+ ],
22
+ showcase: /* @__PURE__ */ jsx(Section, { spacing: "sm", title: "See it work", id: "showcase-title", lead: "Three minutes, no cuts.", children: /* @__PURE__ */ jsx(
23
+ MediaCarousel,
24
+ {
25
+ label: "Sovkora at work",
26
+ autoplay: true,
27
+ caption: "bar",
28
+ textVersion: true,
29
+ slides: [
30
+ { id: "a", src: PIC("#1d3f6b", "#4d7fb8"), alt: "A chat answered on the local server", caption: "Fig. 1a \u2014 a chat, answered locally" },
31
+ { id: "b", src: PIC("#23496f", "#6b9bc9"), alt: "The run's cost and model, side by side", caption: "Fig. 1b \u2014 the run, accounted for" }
32
+ ]
33
+ }
34
+ ) }),
35
+ featuresHeading: { title: "What it does" },
36
+ features: [
37
+ { id: "chat", size: "lg", title: "Chat", text: "Answers from models that run on your server." },
38
+ { id: "image", title: "Image", text: "Generated and kept in your storage." }
39
+ ]
40
+ }
41
+ );
42
+ }
43
+ export {
44
+ LandingPageShowcase as default
45
+ };
@@ -0,0 +1,42 @@
1
+ import { Button } from "@krizaka/ui/button";
2
+ import { LandingPage } from "@krizaka/ui/landing-page";
3
+ import { MediaCarousel } from "@krizaka/ui/media-carousel";
4
+ import { Section } from "@krizaka/ui/page";
5
+
6
+ const PIC = (a: string, b: string) => `data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='${a}'/><stop offset='1' stop-color='${b}'/></linearGradient></defs><rect width='1600' height='900' fill='url(#g)'/></svg>`)}`;
7
+
8
+ // TEMPLATE — a home that leads with words and a full-width demo: no `visual` (a single-column hero), the quiet backdrop,
9
+ // a carousel in `showcase` between the proofs and the features.
10
+ export default function LandingPageShowcase() {
11
+ return (
12
+ <LandingPage
13
+ backdrop="quiet"
14
+ title="An AI that never leaves your server"
15
+ lead="Chat, image and voice on your own machine, every run recorded."
16
+ actions={<Button variant="primary" size="lg">Install</Button>}
17
+ proofs={[
18
+ { value: "0", label: "calls to the outside" },
19
+ { value: "128", label: "runs measured, each with its record" },
20
+ ]}
21
+ showcase={
22
+ <Section spacing="sm" title="See it work" id="showcase-title" lead="Three minutes, no cuts.">
23
+ <MediaCarousel
24
+ label="Sovkora at work"
25
+ autoplay
26
+ caption="bar"
27
+ textVersion
28
+ slides={[
29
+ { id: "a", src: PIC("#1d3f6b", "#4d7fb8"), alt: "A chat answered on the local server", caption: "Fig. 1a — a chat, answered locally" },
30
+ { id: "b", src: PIC("#23496f", "#6b9bc9"), alt: "The run's cost and model, side by side", caption: "Fig. 1b — the run, accounted for" },
31
+ ]}
32
+ />
33
+ </Section>
34
+ }
35
+ featuresHeading={{ title: "What it does" }}
36
+ features={[
37
+ { id: "chat", size: "lg", title: "Chat", text: "Answers from models that run on your server." },
38
+ { id: "image", title: "Image", text: "Generated and kept in your storage." },
39
+ ]}
40
+ />
41
+ );
42
+ }
@@ -3,7 +3,8 @@ import { MediaCarousel } from "@krizaka/ui/media-carousel";
3
3
  const PIC = (a: string, b: string) => `data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='${a}'/><stop offset='1' stop-color='${b}'/></linearGradient></defs><rect width='1600' height='900' fill='url(#g)'/></svg>`)}`;
4
4
 
5
5
  // Carousel v2: it advances by itself at each slide's pace (a clip for its duration, a still for a reading time), with ticks
6
- // and a visible pause; it holds under the pointer, on keyboard focus and off screen. Nothing moves under reduced motion.
6
+ // and a visible pause; it holds with the Pause button and off screen
7
+ // (`holds: pointer-focus` adds the pointer and the keyboard focus). Nothing moves under reduced motion.
7
8
  export default function MediaCarouselAutoplayExample() {
8
9
  return (
9
10
  <div className="max-w-2xl">
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krizaka/ui",
3
- "version": "4.2.1",
3
+ "version": "4.4.0",
4
4
  "templatePurposes": {
5
5
  "convince": {
6
6
  "title": "Convince",
@@ -212,6 +212,15 @@
212
212
  "purpose": "show",
213
213
  "why": "A visitor browses real results, each with how it was made."
214
214
  },
215
+ {
216
+ "component": "landing-page",
217
+ "platform": "web",
218
+ "name": "showcase",
219
+ "title": "Showcase",
220
+ "description": "A text-only hero on the quiet backdrop, the proofs, then a full-width carousel before the features.",
221
+ "purpose": "show",
222
+ "why": "A visitor reads the promise, then watches the product at full width before any feature list."
223
+ },
215
224
  {
216
225
  "component": "longform-page",
217
226
  "platform": "web",
@@ -1004,7 +1013,7 @@
1004
1013
  "native": 0
1005
1014
  },
1006
1015
  "dependencies": [
1007
- "@krizaka/tokens@^4.2.1"
1016
+ "@krizaka/tokens@^4.4.0"
1008
1017
  ],
1009
1018
  "registryDependencies": [
1010
1019
  "account-menu",
@@ -3670,8 +3679,8 @@
3670
3679
  "name": "landing-page",
3671
3680
  "type": "primitive",
3672
3681
  "title": "Landing page",
3673
- "summary": "A landing page: the promise beside the product alive in a window, a band of proofs, the features as a bento where the main one takes the room, the closing call.",
3674
- "description": "A landing page: the promise beside the product alive in a window, a band of proofs, the features as a bento where the main one takes the room, the closing call.",
3682
+ "summary": "A landing page: the promise beside the product alive in a window (or alone, in one column), a band of proofs, a full-width showcase, the features as a bento where the main one takes the room, the closing call.",
3683
+ "description": "A landing page: the promise beside the product alive in a window (or alone, in one column), a band of proofs, a full-width showcase, the features as a bento where the main one takes the room, the closing call.",
3675
3684
  "status": "beta",
3676
3685
  "category": "templates",
3677
3686
  "platforms": "web",
@@ -3689,7 +3698,7 @@
3689
3698
  }
3690
3699
  },
3691
3700
  "examples": {
3692
- "web": 1,
3701
+ "web": 2,
3693
3702
  "native": 0
3694
3703
  },
3695
3704
  "dependencies": [],
@@ -4008,7 +4017,7 @@
4008
4017
  "native": 2
4009
4018
  },
4010
4019
  "dependencies": [
4011
- "@krizaka/tokens@^4.2.1",
4020
+ "@krizaka/tokens@^4.4.0",
4012
4021
  "@protomaps/basemaps@5.7.2",
4013
4022
  "tailwind-variants@^3.3.1"
4014
4023
  ],
@@ -4421,7 +4430,7 @@
4421
4430
  "native": 0
4422
4431
  },
4423
4432
  "dependencies": [
4424
- "@krizaka/tokens@^4.2.1",
4433
+ "@krizaka/tokens@^4.4.0",
4425
4434
  "radix-ui@^1.8.1",
4426
4435
  "tailwind-variants@^3.3.1"
4427
4436
  ],
@@ -5289,7 +5298,7 @@
5289
5298
  "native": 0
5290
5299
  },
5291
5300
  "dependencies": [
5292
- "@krizaka/tokens@^4.2.1",
5301
+ "@krizaka/tokens@^4.4.0",
5293
5302
  "radix-ui@^1.8.1",
5294
5303
  "tailwind-variants@^3.3.1"
5295
5304
  ],
@@ -5736,7 +5745,7 @@
5736
5745
  "native": 0
5737
5746
  },
5738
5747
  "dependencies": [
5739
- "@krizaka/tokens@^4.2.1",
5748
+ "@krizaka/tokens@^4.4.0",
5740
5749
  "zod@^4.6.7"
5741
5750
  ],
5742
5751
  "registryDependencies": [
@@ -5957,7 +5966,7 @@
5957
5966
  },
5958
5967
  "dependencies": [
5959
5968
  "@krizaka/icons@^0.10.0",
5960
- "@krizaka/tokens@^4.2.1",
5969
+ "@krizaka/tokens@^4.4.0",
5961
5970
  "radix-ui@^1.8.1",
5962
5971
  "tailwind-variants@^3.3.1"
5963
5972
  ],
@@ -2,8 +2,8 @@
2
2
  "name": "landing-page",
3
3
  "type": "primitive",
4
4
  "title": "Landing page",
5
- "summary": "A landing page: the promise beside the product alive in a window, a band of proofs, the features as a bento where the main one takes the room, the closing call.",
6
- "description": "A landing page: the promise beside the product alive in a window, a band of proofs, the features as a bento where the main one takes the room, the closing call.",
5
+ "summary": "A landing page: the promise beside the product alive in a window (or alone, in one column), a band of proofs, a full-width showcase, the features as a bento where the main one takes the room, the closing call.",
6
+ "description": "A landing page: the promise beside the product alive in a window (or alone, in one column), a band of proofs, a full-width showcase, the features as a bento where the main one takes the room, the closing call.",
7
7
  "status": "beta",
8
8
  "deprecated": null,
9
9
  "category": "templates",
@@ -38,7 +38,8 @@
38
38
  ],
39
39
  "bestPractices": [
40
40
  "One `lg` feature in the bento: the one the visitor came for.",
41
- "The window shows the real product (a recording, a demo), never a mock-up.",
41
+ "The window shows the real product (a recording, a demo), never a mock-up; without one, omit `visual` and the hero is one column.",
42
+ "A home that leads with text and a wide demo: no `visual`, `backdrop=\"quiet\"`, a `MediaCarousel` in `showcase`.",
42
43
  "Three or four proofs, each a fact that can be checked.",
43
44
  "Words and content arrive as props; the motion is the platform's (`[data-reveal]`, still under reduced motion)."
44
45
  ],
@@ -75,13 +76,6 @@
75
76
  "description": "The promise: the page's `h1`.",
76
77
  "required": true
77
78
  },
78
- {
79
- "name": "visual",
80
- "type": "ReactNode",
81
- "default": null,
82
- "description": "The product, alive, beside the words: a recording, a live demo (framed as a window).",
83
- "required": true
84
- },
85
79
  {
86
80
  "name": "actions",
87
81
  "type": "ReactNode",
@@ -89,6 +83,13 @@
89
83
  "description": "The hero's actions (the main one cut, with shimmer).",
90
84
  "required": false
91
85
  },
86
+ {
87
+ "name": "backdrop",
88
+ "type": "\"grid\" | \"quiet\"",
89
+ "default": "grid",
90
+ "description": "The hero's backdrop: `grid` (the dome, the grid and the slow drift) or `quiet` (the still dome only: no grid layer, no drift).",
91
+ "required": false
92
+ },
92
93
  {
93
94
  "name": "closing",
94
95
  "type": "{ title: ReactNode; body?: ReactNode; actions: ReactNode; }",
@@ -124,6 +125,20 @@
124
125
  "description": "Figures or facts in a band under the hero: `{ value, label }`.",
125
126
  "required": false
126
127
  },
128
+ {
129
+ "name": "showcase",
130
+ "type": "ReactNode",
131
+ "default": null,
132
+ "description": "Full width, between the proofs and the features: a carousel, a demo, a wide plate.",
133
+ "required": false
134
+ },
135
+ {
136
+ "name": "visual",
137
+ "type": "ReactNode",
138
+ "default": null,
139
+ "description": "The product, alive, beside the words: a recording, a live demo (framed as a window). Absent: a single-column hero, no empty stage.",
140
+ "required": false
141
+ },
127
142
  {
128
143
  "name": "visualLabel",
129
144
  "type": "ReactNode",
@@ -135,6 +150,17 @@
135
150
  }
136
151
  ],
137
152
  "examples": [
153
+ {
154
+ "name": "showcase",
155
+ "title": "Showcase",
156
+ "description": "A text-only hero on the quiet backdrop, the proofs, then a full-width carousel before the features.",
157
+ "template": true,
158
+ "purpose": "show",
159
+ "why": "A visitor reads the promise, then watches the product at full width before any feature list.",
160
+ "path": "examples/landing-page/showcase.tsx",
161
+ "module": "@krizaka/ui/registry/examples/landing-page/showcase",
162
+ "code": "import { Button } from \"@krizaka/ui/button\";\nimport { LandingPage } from \"@krizaka/ui/landing-page\";\nimport { MediaCarousel } from \"@krizaka/ui/media-carousel\";\nimport { Section } from \"@krizaka/ui/page\";\n\nconst PIC = (a: string, b: string) => `data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='${a}'/><stop offset='1' stop-color='${b}'/></linearGradient></defs><rect width='1600' height='900' fill='url(#g)'/></svg>`)}`;\n\n// TEMPLATE — a home that leads with words and a full-width demo: no `visual` (a single-column hero), the quiet backdrop,\n// a carousel in `showcase` between the proofs and the features.\nexport default function LandingPageShowcase() {\n return (\n <LandingPage\n backdrop=\"quiet\"\n title=\"An AI that never leaves your server\"\n lead=\"Chat, image and voice on your own machine, every run recorded.\"\n actions={<Button variant=\"primary\" size=\"lg\">Install</Button>}\n proofs={[\n { value: \"0\", label: \"calls to the outside\" },\n { value: \"128\", label: \"runs measured, each with its record\" },\n ]}\n showcase={\n <Section spacing=\"sm\" title=\"See it work\" id=\"showcase-title\" lead=\"Three minutes, no cuts.\">\n <MediaCarousel\n label=\"Sovkora at work\"\n autoplay\n caption=\"bar\"\n textVersion\n slides={[\n { id: \"a\", src: PIC(\"#1d3f6b\", \"#4d7fb8\"), alt: \"A chat answered on the local server\", caption: \"Fig. 1a — a chat, answered locally\" },\n { id: \"b\", src: PIC(\"#23496f\", \"#6b9bc9\"), alt: \"The run's cost and model, side by side\", caption: \"Fig. 1b — the run, accounted for\" },\n ]}\n />\n </Section>\n }\n featuresHeading={{ title: \"What it does\" }}\n features={[\n { id: \"chat\", size: \"lg\", title: \"Chat\", text: \"Answers from models that run on your server.\" },\n { id: \"image\", title: \"Image\", text: \"Generated and kept in your storage.\" },\n ]}\n />\n );\n}\n"
163
+ },
138
164
  {
139
165
  "name": "krizaka",
140
166
  "title": "Krizaka",
@@ -156,11 +182,11 @@
156
182
  },
157
183
  {
158
184
  "path": "landing-page/landing-page.tsx",
159
- "content": "// Server-safe. A landing page (blocks.css `.kz-tpl-*`): a split hero — the promise and its actions beside the product\n// alive (a recording, a demo) — a band of proofs, the features as a bento where the main one takes the room, then the\n// closing call. The blocks come through their package entries, so their client parts keep their boundary.\nimport { CtaPanel } from \"@krizaka/ui/cta-panel\";\nimport { Page, Section } from \"@krizaka/ui/page\";\nimport { SectionBackdrop } from \"@krizaka/ui/section-backdrop\";\nimport type * as React from \"react\";\n\nexport interface LandingFeature {\n /** A stable key. */\n id: string;\n /** Its name. */\n title: React.ReactNode;\n /** One or two sentences. */\n text: React.ReactNode;\n /** A signature icon above the title. */\n icon?: React.ReactNode;\n /** A visual at the bottom of the tile (a chart, a screenshot, a code line). */\n visual?: React.ReactNode;\n /**\n * Its weight in the bento: `lg` (four columns, two rows — the main one), `md` (three), `sm` (two).\n * @default \"sm\"\n */\n size?: \"lg\" | \"md\" | \"sm\";\n}\n\nexport type LandingPageProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** A mono line above the title. */\n eyebrow?: React.ReactNode;\n /** The promise: the page's `h1`. */\n title: React.ReactNode;\n /** One or two sentences under it. */\n lead?: React.ReactNode;\n /** The hero's actions (the main one cut, with shimmer). */\n actions?: React.ReactNode;\n /** The product, alive, beside the words: a recording, a live demo (framed as a window). */\n visual: React.ReactNode;\n /** The window's caption (`studio.app — studio`). */\n visualLabel?: React.ReactNode;\n /** Figures or facts in a band under the hero: `{ value, label }`. */\n proofs?: readonly { value: React.ReactNode; label: React.ReactNode }[];\n /** The features' section: its eyebrow, title and lead. */\n featuresHeading?: { eyebrow?: React.ReactNode; title: React.ReactNode; lead?: React.ReactNode };\n /** The features, as a bento. */\n features: readonly LandingFeature[];\n /** Between the features and the closing call: a story, a quote, testimonials. */\n children?: React.ReactNode;\n /** The closing call: its title, body and actions. */\n closing?: { title: React.ReactNode; body?: React.ReactNode; actions: React.ReactNode };\n};\n\n/** A landing page: split hero with the product alive, proofs, a bento of features, the closing call. */\nexport function LandingPage({ eyebrow, title, lead, actions, visual, visualLabel, proofs, featuresHeading, features, closing, children, ...props }: LandingPageProps) {\n return (\n <div {...props}>\n <SectionBackdrop as=\"header\" grid className=\"kz-hero\">\n <Page className=\"kz-tpl-hero-frame\">\n <div className=\"kz-tpl-split\">\n <div className=\"kz-hero-text\">\n {eyebrow && <p className=\"kz-eyebrow\">{eyebrow}</p>}\n <h1 className=\"kz-hero-title\">{title}</h1>\n {lead && <p className=\"kz-hero-lead\">{lead}</p>}\n {actions && <div className=\"kz-tpl-actions kz-hero-extra\">{actions}</div>}\n </div>\n <figure className=\"kz-tpl-stage\">\n <div className=\"kz-tpl-stage-bar\" aria-hidden>\n {visualLabel && <span>{visualLabel}</span>}\n </div>\n {visual}\n </figure>\n </div>\n </Page>\n </SectionBackdrop>\n {proofs && proofs.length > 0 && (\n <Page>\n <dl className=\"kz-tpl-band\">\n {proofs.map((p, i) => (\n <div key={i}>\n <dt>{p.value}</dt>\n <dd>{p.label}</dd>\n </div>\n ))}\n </dl>\n </Page>\n )}\n <Section id=\"features\" eyebrow={featuresHeading?.eyebrow} title={featuresHeading?.title} lead={featuresHeading?.lead} reveal aria-label={featuresHeading ? undefined : \"Features\"}>\n <ul className=\"kz-tpl-bento\">\n {features.map((f) => (\n <li key={f.id} data-size={f.size === \"sm\" ? undefined : f.size} data-reveal=\"\">\n {f.icon && <span className=\"kz-block-icon\" aria-hidden>{f.icon}</span>}\n <h3>{f.title}</h3>\n <p>{f.text}</p>\n {f.visual && <div className=\"kz-tpl-bento-visual\">{f.visual}</div>}\n </li>\n ))}\n </ul>\n </Section>\n {children}\n {closing && (\n <Section spacing=\"sm\" aria-labelledby=\"landing-closing\">\n <CtaPanel id=\"landing-closing\" title={closing.title} body={closing.body} reveal>\n {closing.actions}\n </CtaPanel>\n </Section>\n )}\n </div>\n );\n}\n"
185
+ "content": "// Server-safe. A landing page (blocks.css `.kz-tpl-*`): a split hero — the promise and its actions beside the product\n// alive (a recording, a demo; without one, a single column) — a band of proofs, the features as a bento where the main one takes the room, then the\n// closing call. The blocks come through their package entries, so their client parts keep their boundary.\nimport { CtaPanel } from \"@krizaka/ui/cta-panel\";\nimport { Page, Section } from \"@krizaka/ui/page\";\nimport { SectionBackdrop } from \"@krizaka/ui/section-backdrop\";\nimport type * as React from \"react\";\n\nimport { HeroStage } from \"../page/hero-stage\";\n\nexport interface LandingFeature {\n /** A stable key. */\n id: string;\n /** Its name. */\n title: React.ReactNode;\n /** One or two sentences. */\n text: React.ReactNode;\n /** A signature icon above the title. */\n icon?: React.ReactNode;\n /** A visual at the bottom of the tile (a chart, a screenshot, a code line). */\n visual?: React.ReactNode;\n /**\n * Its weight in the bento: `lg` (four columns, two rows — the main one), `md` (three), `sm` (two).\n * @default \"sm\"\n */\n size?: \"lg\" | \"md\" | \"sm\";\n}\n\nexport type LandingPageProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** A mono line above the title. */\n eyebrow?: React.ReactNode;\n /** The promise: the page's `h1`. */\n title: React.ReactNode;\n /** One or two sentences under it. */\n lead?: React.ReactNode;\n /** The hero's actions (the main one cut, with shimmer). */\n actions?: React.ReactNode;\n /** The product, alive, beside the words: a recording, a live demo (framed as a window). Absent: a single-column hero, no empty stage. */\n visual?: React.ReactNode;\n /** The window's caption (`studio.app — studio`). */\n visualLabel?: React.ReactNode;\n /** Figures or facts in a band under the hero: `{ value, label }`. */\n proofs?: readonly { value: React.ReactNode; label: React.ReactNode }[];\n /** Full width, between the proofs and the features: a carousel, a demo, a wide plate. */\n showcase?: React.ReactNode;\n /**\n * The hero's backdrop: `grid` (the dome, the grid and the slow drift) or `quiet` (the still dome only: no grid layer, no drift).\n * @default \"grid\"\n */\n backdrop?: \"grid\" | \"quiet\";\n /** The features' section: its eyebrow, title and lead. */\n featuresHeading?: { eyebrow?: React.ReactNode; title: React.ReactNode; lead?: React.ReactNode };\n /** The features, as a bento. */\n features: readonly LandingFeature[];\n /** Between the features and the closing call: a story, a quote, testimonials. */\n children?: React.ReactNode;\n /** The closing call: its title, body and actions. */\n closing?: { title: React.ReactNode; body?: React.ReactNode; actions: React.ReactNode };\n};\n\n/** A landing page: split hero with the product alive, proofs, a bento of features, the closing call. */\nexport function LandingPage({ eyebrow, title, lead, actions, visual, visualLabel, proofs, showcase, backdrop = \"grid\", featuresHeading, features, closing, children, ...props }: LandingPageProps) {\n return (\n <div {...props}>\n <SectionBackdrop as=\"header\" grid={backdrop === \"grid\"} animated={backdrop === \"grid\"} className=\"kz-hero\">\n <Page className=\"kz-tpl-hero-frame\">\n <div className=\"kz-tpl-split\" data-single={visual ? undefined : \"\"}>\n <div className=\"kz-hero-text\">\n {eyebrow && <p className=\"kz-eyebrow\">{eyebrow}</p>}\n <h1 className=\"kz-hero-title\">{title}</h1>\n {lead && <p className=\"kz-hero-lead\">{lead}</p>}\n {actions && <div className=\"kz-tpl-actions kz-hero-extra\">{actions}</div>}\n </div>\n {visual && <HeroStage visual={visual} label={visualLabel} />}\n </div>\n </Page>\n </SectionBackdrop>\n {proofs && proofs.length > 0 && (\n <Page>\n <dl className=\"kz-tpl-band\">\n {proofs.map((p, i) => (\n <div key={i}>\n <dt>{p.value}</dt>\n <dd>{p.label}</dd>\n </div>\n ))}\n </dl>\n </Page>\n )}\n {showcase && (\n <Page data-landing-showcase=\"\" className=\"kz-tpl-showcase\">\n {showcase}\n </Page>\n )}\n <Section id=\"features\" eyebrow={featuresHeading?.eyebrow} title={featuresHeading?.title} lead={featuresHeading?.lead} reveal aria-label={featuresHeading ? undefined : \"Features\"}>\n <ul className=\"kz-tpl-bento\">\n {features.map((f) => (\n <li key={f.id} data-size={f.size === \"sm\" ? undefined : f.size} data-reveal=\"\">\n {f.icon && <span className=\"kz-block-icon\" aria-hidden>{f.icon}</span>}\n <h3>{f.title}</h3>\n <p>{f.text}</p>\n {f.visual && <div className=\"kz-tpl-bento-visual\">{f.visual}</div>}\n </li>\n ))}\n </ul>\n </Section>\n {children}\n {closing && (\n <Section spacing=\"sm\" aria-labelledby=\"landing-closing\">\n <CtaPanel id=\"landing-closing\" title={closing.title} body={closing.body} reveal>\n {closing.actions}\n </CtaPanel>\n </Section>\n )}\n </div>\n );\n}\n"
160
186
  },
161
187
  {
162
188
  "path": "landing-page/meta.ts",
163
- "content": "import type { ComponentMeta } from \"../meta\";\n\nexport const meta = {\n title: \"Landing page\",\n summary: \"A landing page: the promise beside the product alive in a window, a band of proofs, the features as a bento where the main one takes the room, the closing call.\",\n status: \"beta\",\n category: \"templates\",\n domain: \"page-blocks\",\n platforms: \"web\",\n parity: { native: { status: \"n/a\", reason: \"A whole page of a public site; a phone app's screens are built from Screen, Header and the native primitives.\" }, desktop: { status: \"n/a\", reason: \"A public site's page, not a window of the Mac app.\" } },\n whenToUse: [\"The home of a company or a product line.\", \"A campaign page that must sell in one screen.\"],\n whenNotToUse: [\n { when: \"For one product's page, with its traps and decisions.\" },\n { when: \"For a list of entry points.\", use: \"docs-hub-page\" },\n ],\n bestPractices: [\"One `lg` feature in the bento: the one the visitor came for.\", \"The window shows the real product (a recording, a demo), never a mock-up.\", \"Three or four proofs, each a fact that can be checked.\", \"Words and content arrive as props; the motion is the platform's (`[data-reveal]`, still under reduced motion).\"],\n accessibility: {\n keyboard: [],\n notes: [\"The hero's title is the page's `h1`; the window is a `figure`, its bar decorative.\", \"Proofs are a description list; the bento a list of features.\"],\n },\n related: [\"page-hero\", \"card-grid\"],\n web: {\n imports: [\"LandingPage\"],\n examples: [\n { name: \"krizaka\", title: \"Krizaka\", description: \"The studio's landing: the promise, the console alive, proofs, three products in a bento.\", template: true, purpose: \"convince\", why: \"A visitor gets the promise in one screen, the product alive, the proofs and one call to act.\" },\n ],\n },\n} satisfies ComponentMeta;\n"
189
+ "content": "import type { ComponentMeta } from \"../meta\";\n\nexport const meta = {\n title: \"Landing page\",\n summary: \"A landing page: the promise beside the product alive in a window (or alone, in one column), a band of proofs, a full-width showcase, the features as a bento where the main one takes the room, the closing call.\",\n status: \"beta\",\n category: \"templates\",\n domain: \"page-blocks\",\n platforms: \"web\",\n parity: { native: { status: \"n/a\", reason: \"A whole page of a public site; a phone app's screens are built from Screen, Header and the native primitives.\" }, desktop: { status: \"n/a\", reason: \"A public site's page, not a window of the Mac app.\" } },\n whenToUse: [\"The home of a company or a product line.\", \"A campaign page that must sell in one screen.\"],\n whenNotToUse: [\n { when: \"For one product's page, with its traps and decisions.\" },\n { when: \"For a list of entry points.\", use: \"docs-hub-page\" },\n ],\n bestPractices: [\"One `lg` feature in the bento: the one the visitor came for.\", \"The window shows the real product (a recording, a demo), never a mock-up; without one, omit `visual` and the hero is one column.\", \"A home that leads with text and a wide demo: no `visual`, `backdrop=\\\"quiet\\\"`, a `MediaCarousel` in `showcase`.\", \"Three or four proofs, each a fact that can be checked.\", \"Words and content arrive as props; the motion is the platform's (`[data-reveal]`, still under reduced motion).\"],\n accessibility: {\n keyboard: [],\n notes: [\"The hero's title is the page's `h1`; the window is a `figure`, its bar decorative.\", \"Proofs are a description list; the bento a list of features.\"],\n },\n related: [\"page-hero\", \"card-grid\"],\n web: {\n imports: [\"LandingPage\"],\n examples: [\n { name: \"showcase\", title: \"Showcase\", description: \"A text-only hero on the quiet backdrop, the proofs, then a full-width carousel before the features.\", template: true, purpose: \"show\", why: \"A visitor reads the promise, then watches the product at full width before any feature list.\" },\n { name: \"krizaka\", title: \"Krizaka\", description: \"The studio's landing: the promise, the console alive, proofs, three products in a bento.\", template: true, purpose: \"convince\", why: \"A visitor gets the promise in one screen, the product alive, the proofs and one call to act.\" },\n ],\n },\n} satisfies ComponentMeta;\n"
164
190
  },
165
191
  {
166
192
  "path": "meta.ts",
@@ -174,8 +200,8 @@
174
200
  "section-backdrop"
175
201
  ],
176
202
  "demo": {
177
- "path": "examples/landing-page/krizaka.tsx",
178
- "content": "import { Button } from \"@krizaka/ui/button\";\nimport { LandingPage } from \"@krizaka/ui/landing-page\";\nimport { Meter } from \"@krizaka/ui/meter\";\n\n// TEMPLATE — a company's landing (krizaka.com): the promise beside the product alive, a band of proofs, the features\n// as a bento where the main one takes the room, the closing call. On a phone the window follows the words, the bento\n// is one column, the proofs stack.\nexport default function LandingPageKrizaka() {\n return (\n <LandingPage\n eyebrow=\"Software studio · Montréal\"\n title=\"Products that keep what is yours\"\n lead=\"Krizaka builds sovereign AI and a platform where creators are paid — open source, on your servers or ours.\"\n actions={\n <>\n <Button variant=\"primary\" size=\"lg\">See the products</Button>\n <Button variant=\"secondary\" size=\"lg\">Read the docs</Button>\n </>\n }\n visualLabel=\"sovkora.local — console\"\n visual={\n <div className=\"grid gap-3 p-5\">\n <p className=\"font-mono text-xs text-fg-secondary\">$ npx sovkora install</p>\n <p className=\"font-mono text-xs text-fg-success\">✓ 1,284 answers this week, none left the server</p>\n <Meter label=\"Credits\" value={3800} max={12000} valueText=\"3,800 of 12,000\" showLabel />\n </div>\n }\n proofs={[\n { value: \"34\", label: \"public repositories\" },\n { value: \"Apache-2.0\", label: \"every line\" },\n { value: \"0\", label: \"telemetry calls\" },\n ]}\n featuresHeading={{ eyebrow: \"What we build\", title: \"Three products, one way of building\" }}\n features={[\n { id: \"sovkora\", size: \"lg\", title: \"Sovkora — the AI that never leaves home\", text: \"Chat, image, voice and video on your own server, one governed pipeline.\" },\n { id: \"verikora\", title: \"Verikora\", text: \"Reads your leases, contracts and invoices.\" },\n { id: \"folioviv\", title: \"Folioviv\", text: \"Running a shop in Québec, for less — coming.\" },\n { id: \"blocks\", size: \"md\", title: \"Open building blocks\", text: \"Users, billing, notifications — on Maven Central and npm.\" },\n { id: \"ui\", size: \"md\", title: \"One design system\", text: \"Krizaka UI, web and mobile, documented from its code.\" },\n ]}\n closing={{ title: \"Something to build together?\", body: \"Tell us what you need; a person answers within two days.\", actions: <Button variant=\"primary\" size=\"lg\">Contact us</Button> }}\n />\n );\n}\n"
203
+ "path": "examples/landing-page/showcase.tsx",
204
+ "content": "import { Button } from \"@krizaka/ui/button\";\nimport { LandingPage } from \"@krizaka/ui/landing-page\";\nimport { MediaCarousel } from \"@krizaka/ui/media-carousel\";\nimport { Section } from \"@krizaka/ui/page\";\n\nconst PIC = (a: string, b: string) => `data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='${a}'/><stop offset='1' stop-color='${b}'/></linearGradient></defs><rect width='1600' height='900' fill='url(#g)'/></svg>`)}`;\n\n// TEMPLATE — a home that leads with words and a full-width demo: no `visual` (a single-column hero), the quiet backdrop,\n// a carousel in `showcase` between the proofs and the features.\nexport default function LandingPageShowcase() {\n return (\n <LandingPage\n backdrop=\"quiet\"\n title=\"An AI that never leaves your server\"\n lead=\"Chat, image and voice on your own machine, every run recorded.\"\n actions={<Button variant=\"primary\" size=\"lg\">Install</Button>}\n proofs={[\n { value: \"0\", label: \"calls to the outside\" },\n { value: \"128\", label: \"runs measured, each with its record\" },\n ]}\n showcase={\n <Section spacing=\"sm\" title=\"See it work\" id=\"showcase-title\" lead=\"Three minutes, no cuts.\">\n <MediaCarousel\n label=\"Sovkora at work\"\n autoplay\n caption=\"bar\"\n textVersion\n slides={[\n { id: \"a\", src: PIC(\"#1d3f6b\", \"#4d7fb8\"), alt: \"A chat answered on the local server\", caption: \"Fig. 1a — a chat, answered locally\" },\n { id: \"b\", src: PIC(\"#23496f\", \"#6b9bc9\"), alt: \"The run's cost and model, side by side\", caption: \"Fig. 1b — the run, accounted for\" },\n ]}\n />\n </Section>\n }\n featuresHeading={{ title: \"What it does\" }}\n features={[\n { id: \"chat\", size: \"lg\", title: \"Chat\", text: \"Answers from models that run on your server.\" },\n { id: \"image\", title: \"Image\", text: \"Generated and kept in your storage.\" },\n ]}\n />\n );\n}\n"
179
205
  },
180
206
  "props": [
181
207
  {
@@ -196,13 +222,6 @@
196
222
  "description": "The promise: the page's `h1`.",
197
223
  "required": true
198
224
  },
199
- {
200
- "name": "visual",
201
- "type": "ReactNode",
202
- "default": null,
203
- "description": "The product, alive, beside the words: a recording, a live demo (framed as a window).",
204
- "required": true
205
- },
206
225
  {
207
226
  "name": "actions",
208
227
  "type": "ReactNode",
@@ -210,6 +229,13 @@
210
229
  "description": "The hero's actions (the main one cut, with shimmer).",
211
230
  "required": false
212
231
  },
232
+ {
233
+ "name": "backdrop",
234
+ "type": "\"grid\" | \"quiet\"",
235
+ "default": "grid",
236
+ "description": "The hero's backdrop: `grid` (the dome, the grid and the slow drift) or `quiet` (the still dome only: no grid layer, no drift).",
237
+ "required": false
238
+ },
213
239
  {
214
240
  "name": "closing",
215
241
  "type": "{ title: ReactNode; body?: ReactNode; actions: ReactNode; }",
@@ -245,6 +271,20 @@
245
271
  "description": "Figures or facts in a band under the hero: `{ value, label }`.",
246
272
  "required": false
247
273
  },
274
+ {
275
+ "name": "showcase",
276
+ "type": "ReactNode",
277
+ "default": null,
278
+ "description": "Full width, between the proofs and the features: a carousel, a demo, a wide plate.",
279
+ "required": false
280
+ },
281
+ {
282
+ "name": "visual",
283
+ "type": "ReactNode",
284
+ "default": null,
285
+ "description": "The product, alive, beside the words: a recording, a live demo (framed as a window). Absent: a single-column hero, no empty stage.",
286
+ "required": false
287
+ },
248
288
  {
249
289
  "name": "visualLabel",
250
290
  "type": "ReactNode",
package/registry/map.json CHANGED
@@ -1158,7 +1158,7 @@
1158
1158
  }
1159
1159
  ],
1160
1160
  "dependencies": [
1161
- "@krizaka/tokens@^4.2.1",
1161
+ "@krizaka/tokens@^4.4.0",
1162
1162
  "@protomaps/basemaps@5.7.2",
1163
1163
  "tailwind-variants@^3.3.1"
1164
1164
  ],