@hahlex/millar-mcp 0.0.0-stage → 0.1.0-draft.1
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.
- package/LICENSE +21 -0
- package/dist/docs/CHANGELOG.md +21 -0
- package/dist/docs/GLOSSARY.md +77 -0
- package/dist/http.d.ts +3 -0
- package/dist/http.d.ts.map +1 -0
- package/dist/http.js +39566 -0
- package/dist/http.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/server.d.ts +6 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +1115 -0
- package/dist/server.js.map +1 -0
- package/dist/skills/millar-animation/SKILL.md +66 -0
- package/dist/skills/millar-animation/references/animation-research-patterns.md +28 -0
- package/dist/skills/millar-animation/references/motion-choreography.md +80 -0
- package/dist/skills/millar-build-web/SKILL.md +59 -0
- package/dist/skills/millar-build-web/references/seo-cwv-and-copy.md +24 -0
- package/dist/skills/millar-build-web/references/web-architecture-checklist.md +47 -0
- package/dist/skills/millar-create-image/SKILL.md +62 -0
- package/dist/skills/millar-create-image/references/human-editorial-photography.md +74 -0
- package/dist/skills/millar-create-image/references/hybrid-plate-compositing.md +43 -0
- package/dist/skills/millar-create-image/references/image-art-direction.md +74 -0
- package/dist/skills/millar-create-image/references/multi-page-asset-map.md +27 -0
- package/dist/skills/millar-create-image/references/natural-editorial-illustration.md +57 -0
- package/dist/skills/millar-create-image/references/procedural-gallery-craft.md +84 -0
- package/dist/skills/millar-create-image/scripts/embed-provenance.mjs +185 -0
- package/dist/skills/millar-deep-research/SKILL.md +62 -0
- package/dist/skills/millar-deep-research/references/visual-extraction-protocol.md +36 -0
- package/dist/skills/millar-deep-research/references/world-class-benchmarks.md +30 -0
- package/dist/skills/millar-design/SKILL.md +83 -0
- package/dist/skills/millar-design/references/aesthetic-movements.md +49 -0
- package/dist/skills/millar-design/references/cross-page-sync-audit.md +25 -0
- package/dist/skills/millar-design/references/style-dna-contract.md +89 -0
- package/dist/skills/millar-verify-web/SKILL.md +76 -0
- package/dist/skills/millar-verify-web/references/five-layer-qa-gate.md +104 -0
- package/dist/skills/millar-verify-web/references/two-axis-review-rubric.md +23 -0
- package/dist/skills/millar-verify-web/scripts/millar-audit.mjs +617 -0
- package/dist/skills/millar-web-workflow/SKILL.md +60 -0
- package/dist/skills/millar-web-workflow/references/creative-divergence-protocol.md +52 -0
- package/dist/skills/millar-web-workflow/references/track-routing-and-gates.md +32 -0
- package/dist/skills-loader.d.ts +47 -0
- package/dist/skills-loader.d.ts.map +1 -0
- package/dist/skills-loader.js +204 -0
- package/dist/skills-loader.js.map +1 -0
- package/dist/sources/packages/marketing/src/assets/BrandAndGeometricAssets.tsx +373 -0
- package/dist/sources/packages/marketing/src/assets/SchematicAndProductAssets.tsx +497 -0
- package/dist/sources/packages/marketing/src/sections/MarketingSections.tsx +946 -0
- package/dist/sources/packages/marketing/src/templates/PageTemplates.tsx +304 -0
- package/dist/sources/packages/ui/src/components/Button.tsx +162 -0
- package/dist/sources/packages/ui/src/components/FormControls.tsx +476 -0
- package/dist/sources/packages/ui/src/components/Layout.tsx +176 -0
- package/dist/sources/packages/ui/src/components/OverlaysAndFeedback.tsx +291 -0
- package/dist/sources/packages/ui/src/components/SurfacesAndData.tsx +564 -0
- package/dist/stdio.d.ts +3 -0
- package/dist/stdio.d.ts.map +1 -0
- package/dist/stdio.js +37380 -0
- package/dist/stdio.js.map +1 -0
- package/package.json +48 -3
- package/README.md +0 -3
|
@@ -0,0 +1,946 @@
|
|
|
1
|
+
import React, { useId, useRef, useState } from "react";
|
|
2
|
+
import { Badge, Button, IconArrowRight, IconCheck, IconClose, IconShield } from "@hahlex/millar-ui";
|
|
3
|
+
import {
|
|
4
|
+
AssistantThreadPreview,
|
|
5
|
+
BeforeAfterLedger,
|
|
6
|
+
ClosedLoopSchematic,
|
|
7
|
+
ConcentricArcCanvas,
|
|
8
|
+
CoordinateGridSurface,
|
|
9
|
+
DataTableSpecimenFrame,
|
|
10
|
+
DotMatrixField,
|
|
11
|
+
HahlexLockup,
|
|
12
|
+
LayerStackDiagram,
|
|
13
|
+
MetricPlateCard,
|
|
14
|
+
PaperTearDivider,
|
|
15
|
+
ProductWindowFrame,
|
|
16
|
+
UnifiedOrbitDiagram,
|
|
17
|
+
WarmHorizonWash,
|
|
18
|
+
} from "../assets/index.js";
|
|
19
|
+
|
|
20
|
+
/* ============================================================================
|
|
21
|
+
* 1. HeroSpatialStage (Composition: Spatial Product Stage, Deep Espresso + WarmHorizonWash)
|
|
22
|
+
* ============================================================================ */
|
|
23
|
+
|
|
24
|
+
export interface HeroSpatialStageProps {
|
|
25
|
+
headline: string;
|
|
26
|
+
lead: string;
|
|
27
|
+
primaryCtaLabel: string;
|
|
28
|
+
secondaryCtaLabel?: string;
|
|
29
|
+
onPrimaryCta?: () => void;
|
|
30
|
+
onSecondaryCta?: () => void;
|
|
31
|
+
stageVisual?: React.ReactNode;
|
|
32
|
+
headingLevel?: "h1" | "h3";
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function HeroSpatialStage({
|
|
36
|
+
headline,
|
|
37
|
+
lead,
|
|
38
|
+
primaryCtaLabel,
|
|
39
|
+
secondaryCtaLabel,
|
|
40
|
+
onPrimaryCta,
|
|
41
|
+
onSecondaryCta,
|
|
42
|
+
stageVisual,
|
|
43
|
+
headingLevel = "h1",
|
|
44
|
+
}: HeroSpatialStageProps) {
|
|
45
|
+
const Heading = headingLevel;
|
|
46
|
+
return (
|
|
47
|
+
<section style={{ padding: "clamp(32px, 5vw, 64px) clamp(16px, 4vw, 48px)" }}>
|
|
48
|
+
<WarmHorizonWash intensity="editorial" style={{ maxWidth: 1320, margin: "0 auto", padding: "clamp(32px, 5vw, 64px)" }}>
|
|
49
|
+
<div
|
|
50
|
+
style={{
|
|
51
|
+
display: "grid",
|
|
52
|
+
gridTemplateColumns: "repeat(auto-fit, minmax(300px, 1fr))",
|
|
53
|
+
gap: "clamp(28px, 4vw, 56px)",
|
|
54
|
+
alignItems: "center",
|
|
55
|
+
}}
|
|
56
|
+
>
|
|
57
|
+
<div style={{ display: "flex", flexDirection: "column", gap: 20 }}>
|
|
58
|
+
<Heading
|
|
59
|
+
style={{
|
|
60
|
+
margin: 0,
|
|
61
|
+
fontFamily: "var(--font-display)",
|
|
62
|
+
fontSize: "clamp(2.25rem, 4.6vw, 3.75rem)",
|
|
63
|
+
fontWeight: 300,
|
|
64
|
+
lineHeight: "var(--leading-display-hero, 1.08)",
|
|
65
|
+
letterSpacing: "var(--tracking-display, -0.02em)",
|
|
66
|
+
color: "var(--fg-on-stage-dark)",
|
|
67
|
+
}}
|
|
68
|
+
>
|
|
69
|
+
{headline}
|
|
70
|
+
</Heading>
|
|
71
|
+
<p
|
|
72
|
+
style={{
|
|
73
|
+
margin: 0,
|
|
74
|
+
maxWidth: 540,
|
|
75
|
+
fontFamily: "var(--font-sans)",
|
|
76
|
+
fontSize: "var(--text-lead, 1.125rem)",
|
|
77
|
+
lineHeight: 1.55,
|
|
78
|
+
color: "var(--fg-muted-on-stage-dark)",
|
|
79
|
+
}}
|
|
80
|
+
>
|
|
81
|
+
{lead}
|
|
82
|
+
</p>
|
|
83
|
+
<div style={{ display: "flex", alignItems: "center", gap: 12, flexWrap: "wrap", paddingTop: 4 }}>
|
|
84
|
+
<Button
|
|
85
|
+
variant="primary"
|
|
86
|
+
size="lg"
|
|
87
|
+
onClick={onPrimaryCta}
|
|
88
|
+
style={{ backgroundColor: "var(--accent-on-stage-dark)", borderColor: "var(--accent-on-stage-dark)", color: "var(--fg-on-accent)" }}
|
|
89
|
+
>
|
|
90
|
+
{primaryCtaLabel}
|
|
91
|
+
<IconArrowRight size="md" />
|
|
92
|
+
</Button>
|
|
93
|
+
{secondaryCtaLabel ? (
|
|
94
|
+
<Button
|
|
95
|
+
variant="ghost"
|
|
96
|
+
size="lg"
|
|
97
|
+
onClick={onSecondaryCta}
|
|
98
|
+
style={{ color: "var(--fg-on-stage-dark)", borderColor: "var(--border-stage-dark)" }}
|
|
99
|
+
>
|
|
100
|
+
{secondaryCtaLabel}
|
|
101
|
+
</Button>
|
|
102
|
+
) : null}
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
<div>{stageVisual ?? <DataTableSpecimenFrame />}</div>
|
|
106
|
+
</div>
|
|
107
|
+
</WarmHorizonWash>
|
|
108
|
+
</section>
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* ============================================================================
|
|
113
|
+
* 2. HeroTypographicPoster (Composition: Monumental Typographic Poster, Editorial Cream)
|
|
114
|
+
* ============================================================================ */
|
|
115
|
+
|
|
116
|
+
export interface HeroTypographicPosterProps {
|
|
117
|
+
headline: string;
|
|
118
|
+
lead: string;
|
|
119
|
+
ctaLabel: string;
|
|
120
|
+
onCta?: () => void;
|
|
121
|
+
metrics?: Array<{ value: string; label: string }>;
|
|
122
|
+
headingLevel?: "h1" | "h3";
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function HeroTypographicPoster({
|
|
126
|
+
headline,
|
|
127
|
+
lead,
|
|
128
|
+
ctaLabel,
|
|
129
|
+
onCta,
|
|
130
|
+
metrics = [
|
|
131
|
+
{ value: "80 / 80", label: "WCAG AA contrast pairs" },
|
|
132
|
+
{ value: "6", label: "Marketing composition patterns" },
|
|
133
|
+
{ value: "11", label: "MCP tools from one SSoT" },
|
|
134
|
+
],
|
|
135
|
+
headingLevel = "h1",
|
|
136
|
+
}: HeroTypographicPosterProps) {
|
|
137
|
+
const Heading = headingLevel;
|
|
138
|
+
return (
|
|
139
|
+
<section
|
|
140
|
+
style={{
|
|
141
|
+
backgroundColor: "var(--bg-editorial)",
|
|
142
|
+
color: "var(--fg-default)",
|
|
143
|
+
padding: "clamp(48px, 8vw, 96px) clamp(16px, 4vw, 48px)",
|
|
144
|
+
borderBottom: "1px solid var(--border-default)",
|
|
145
|
+
}}
|
|
146
|
+
>
|
|
147
|
+
<div style={{ maxWidth: 1240, margin: "0 auto", display: "flex", flexDirection: "column", gap: 36 }}>
|
|
148
|
+
<Heading
|
|
149
|
+
style={{
|
|
150
|
+
margin: 0,
|
|
151
|
+
maxWidth: 960,
|
|
152
|
+
fontFamily: "var(--font-display)",
|
|
153
|
+
fontSize: "clamp(2.5rem, 6vw, 4.5rem)",
|
|
154
|
+
fontWeight: 300,
|
|
155
|
+
lineHeight: "var(--leading-display-hero, 1.08)",
|
|
156
|
+
letterSpacing: "var(--tracking-display, -0.02em)",
|
|
157
|
+
color: "var(--fg-default)",
|
|
158
|
+
}}
|
|
159
|
+
>
|
|
160
|
+
{headline}
|
|
161
|
+
</Heading>
|
|
162
|
+
<div
|
|
163
|
+
style={{
|
|
164
|
+
display: "grid",
|
|
165
|
+
gridTemplateColumns: "repeat(auto-fit, minmax(280px, 1fr))",
|
|
166
|
+
gap: 28,
|
|
167
|
+
alignItems: "end",
|
|
168
|
+
borderTop: "1px solid var(--border-default)",
|
|
169
|
+
paddingTop: 28,
|
|
170
|
+
}}
|
|
171
|
+
>
|
|
172
|
+
<div style={{ display: "flex", flexDirection: "column", gap: 18 }}>
|
|
173
|
+
<p style={{ margin: 0, maxWidth: 540, fontSize: "var(--text-lead, 1.125rem)", lineHeight: 1.55, color: "var(--fg-muted)" }}>
|
|
174
|
+
{lead}
|
|
175
|
+
</p>
|
|
176
|
+
<div>
|
|
177
|
+
<Button variant="primary" size="lg" onClick={onCta}>
|
|
178
|
+
{ctaLabel}
|
|
179
|
+
<IconArrowRight size="md" />
|
|
180
|
+
</Button>
|
|
181
|
+
</div>
|
|
182
|
+
</div>
|
|
183
|
+
<dl
|
|
184
|
+
style={{
|
|
185
|
+
margin: 0,
|
|
186
|
+
display: "grid",
|
|
187
|
+
gridTemplateColumns: `repeat(${metrics.length}, minmax(0, 1fr))`,
|
|
188
|
+
gap: 16,
|
|
189
|
+
}}
|
|
190
|
+
>
|
|
191
|
+
{metrics.map((m) => (
|
|
192
|
+
<div key={m.label} style={{ display: "flex", flexDirection: "column", gap: 4 }}>
|
|
193
|
+
<dt style={{ order: 2, fontSize: "var(--text-meta, 0.8125rem)", color: "var(--fg-subtle)" }}>{m.label}</dt>
|
|
194
|
+
<dd
|
|
195
|
+
className="tabular-nums"
|
|
196
|
+
style={{
|
|
197
|
+
order: 1,
|
|
198
|
+
margin: 0,
|
|
199
|
+
fontFamily: "var(--font-display)",
|
|
200
|
+
fontSize: "clamp(1.5rem, 2.5vw, 2.125rem)",
|
|
201
|
+
fontWeight: 300,
|
|
202
|
+
color: "var(--fg-accent)",
|
|
203
|
+
}}
|
|
204
|
+
>
|
|
205
|
+
{m.value}
|
|
206
|
+
</dd>
|
|
207
|
+
</div>
|
|
208
|
+
))}
|
|
209
|
+
</dl>
|
|
210
|
+
</div>
|
|
211
|
+
</div>
|
|
212
|
+
</section>
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/* ============================================================================
|
|
217
|
+
* 3. EditorialEssaySplit (Composition: Editorial Magazine Split, 60/40 Warm Cream)
|
|
218
|
+
* ============================================================================ */
|
|
219
|
+
|
|
220
|
+
export interface EditorialEssaySplitProps {
|
|
221
|
+
heading: string;
|
|
222
|
+
body: string;
|
|
223
|
+
quote: string;
|
|
224
|
+
quoteAttribution: string;
|
|
225
|
+
visual?: React.ReactNode;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export function EditorialEssaySplit({ heading, body, quote, quoteAttribution, visual }: EditorialEssaySplitProps) {
|
|
229
|
+
return (
|
|
230
|
+
<section
|
|
231
|
+
style={{
|
|
232
|
+
backgroundColor: "var(--bg-editorial)",
|
|
233
|
+
color: "var(--fg-default)",
|
|
234
|
+
padding: "clamp(48px, 7vw, 88px) clamp(16px, 4vw, 48px)",
|
|
235
|
+
}}
|
|
236
|
+
>
|
|
237
|
+
<div
|
|
238
|
+
style={{
|
|
239
|
+
maxWidth: 1240,
|
|
240
|
+
margin: "0 auto",
|
|
241
|
+
display: "grid",
|
|
242
|
+
gridTemplateColumns: "repeat(auto-fit, minmax(300px, 1fr))",
|
|
243
|
+
gap: "clamp(28px, 5vw, 64px)",
|
|
244
|
+
alignItems: "start",
|
|
245
|
+
}}
|
|
246
|
+
>
|
|
247
|
+
<div style={{ display: "flex", flexDirection: "column", gap: 20 }}>
|
|
248
|
+
<h2
|
|
249
|
+
style={{
|
|
250
|
+
margin: 0,
|
|
251
|
+
fontFamily: "var(--font-display)",
|
|
252
|
+
fontSize: "clamp(1.85rem, 3.2vw, 2.5rem)",
|
|
253
|
+
fontWeight: 300,
|
|
254
|
+
lineHeight: "var(--leading-display, 1.14)",
|
|
255
|
+
letterSpacing: "var(--tracking-display, -0.02em)",
|
|
256
|
+
}}
|
|
257
|
+
>
|
|
258
|
+
{heading}
|
|
259
|
+
</h2>
|
|
260
|
+
<p style={{ margin: 0, maxWidth: "65ch", fontSize: "var(--text-body, 0.9375rem)", lineHeight: 1.65, color: "var(--fg-muted)" }}>
|
|
261
|
+
{body}
|
|
262
|
+
</p>
|
|
263
|
+
<figure
|
|
264
|
+
style={{
|
|
265
|
+
margin: "8px 0 0",
|
|
266
|
+
padding: "20px 24px",
|
|
267
|
+
borderRadius: "var(--radius-lg, 16px)",
|
|
268
|
+
backgroundColor: "var(--bg-editorial-card)",
|
|
269
|
+
border: "1px solid var(--border-default)",
|
|
270
|
+
borderLeft: "3px solid var(--accent-crimson)",
|
|
271
|
+
display: "flex",
|
|
272
|
+
flexDirection: "column",
|
|
273
|
+
gap: 10,
|
|
274
|
+
}}
|
|
275
|
+
>
|
|
276
|
+
<span
|
|
277
|
+
aria-hidden="true"
|
|
278
|
+
style={{
|
|
279
|
+
fontFamily: "var(--font-display)",
|
|
280
|
+
fontSize: "2rem",
|
|
281
|
+
lineHeight: 0.75,
|
|
282
|
+
fontWeight: 500,
|
|
283
|
+
color: "var(--accent-crimson)",
|
|
284
|
+
}}
|
|
285
|
+
>
|
|
286
|
+
“
|
|
287
|
+
</span>
|
|
288
|
+
<blockquote style={{ margin: 0, fontFamily: "var(--font-display)", fontSize: "var(--text-lead, 1.125rem)", fontWeight: 400, lineHeight: 1.45, color: "var(--fg-default)" }}>
|
|
289
|
+
{quote}
|
|
290
|
+
</blockquote>
|
|
291
|
+
<figcaption style={{ fontSize: "var(--text-meta, 0.8125rem)", color: "var(--fg-muted)" }}>{quoteAttribution}</figcaption>
|
|
292
|
+
</figure>
|
|
293
|
+
</div>
|
|
294
|
+
<div>{visual ?? <ConcentricArcCanvas tone="light" height={300} caption="Measured Warmth · Proportion Plate 01" />}</div>
|
|
295
|
+
</div>
|
|
296
|
+
</section>
|
|
297
|
+
);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/* ============================================================================
|
|
301
|
+
* 4. BentoNarrativeMosaic (Composition: Asymmetric Bento Mosaic, NOT equal 3-col cards)
|
|
302
|
+
* ============================================================================ */
|
|
303
|
+
|
|
304
|
+
export function BentoNarrativeMosaic({ heading, lead }: { heading: string; lead: string }) {
|
|
305
|
+
return (
|
|
306
|
+
<section
|
|
307
|
+
style={{
|
|
308
|
+
backgroundColor: "var(--bg-editorial-alt)",
|
|
309
|
+
color: "var(--fg-default)",
|
|
310
|
+
padding: "clamp(48px, 7vw, 88px) clamp(16px, 4vw, 48px)",
|
|
311
|
+
}}
|
|
312
|
+
>
|
|
313
|
+
<div style={{ maxWidth: 1280, margin: "0 auto", display: "flex", flexDirection: "column", gap: 32 }}>
|
|
314
|
+
<div style={{ maxWidth: 680, display: "flex", flexDirection: "column", gap: 10 }}>
|
|
315
|
+
<h2
|
|
316
|
+
style={{
|
|
317
|
+
margin: 0,
|
|
318
|
+
fontFamily: "var(--font-display)",
|
|
319
|
+
fontSize: "clamp(1.85rem, 3vw, 2.4rem)",
|
|
320
|
+
fontWeight: 300,
|
|
321
|
+
lineHeight: "var(--leading-display, 1.14)",
|
|
322
|
+
letterSpacing: "var(--tracking-display, -0.02em)",
|
|
323
|
+
}}
|
|
324
|
+
>
|
|
325
|
+
{heading}
|
|
326
|
+
</h2>
|
|
327
|
+
<p style={{ margin: 0, fontSize: "var(--text-body, 0.9375rem)", lineHeight: 1.6, color: "var(--fg-muted)" }}>{lead}</p>
|
|
328
|
+
</div>
|
|
329
|
+
|
|
330
|
+
{/* Asymmetric 7:5 row followed by 5:7 row */}
|
|
331
|
+
<div style={{ display: "grid", gridTemplateColumns: "repeat(auto-fit, minmax(300px, 1fr))", gap: 18 }}>
|
|
332
|
+
<div style={{ gridColumn: "span 1", display: "flex", flexDirection: "column", gap: 18 }}>
|
|
333
|
+
<UnifiedOrbitDiagram centerLabel="Millar SSoT" tone="light" />
|
|
334
|
+
<MetricPlateCard
|
|
335
|
+
value="0 photos required"
|
|
336
|
+
label="Static-first aesthetic floor"
|
|
337
|
+
detail="Every section ships with calibrated geometry, typography, and stylized product chrome."
|
|
338
|
+
tone="brand"
|
|
339
|
+
/>
|
|
340
|
+
</div>
|
|
341
|
+
<div style={{ display: "flex", flexDirection: "column", gap: 18 }}>
|
|
342
|
+
<AssistantThreadPreview />
|
|
343
|
+
<DotMatrixField tone="dark" height={180}>
|
|
344
|
+
<div style={{ display: "flex", flexDirection: "column", gap: 8 }}>
|
|
345
|
+
<strong style={{ fontFamily: "var(--font-display)", fontSize: "var(--text-section-title, 1.125rem)", fontWeight: 500, color: "var(--fg-on-stage-dark)" }}>
|
|
346
|
+
One visual grammar across human and AI builders
|
|
347
|
+
</strong>
|
|
348
|
+
<p style={{ margin: 0, fontSize: "var(--text-body-sm, 0.875rem)", color: "var(--fg-muted-on-stage-dark)", lineHeight: 1.55 }}>
|
|
349
|
+
Every visual asset exposes exact props, responsive behavior, and MCP metadata so agents stop falling back to flat card grids.
|
|
350
|
+
</p>
|
|
351
|
+
</div>
|
|
352
|
+
</DotMatrixField>
|
|
353
|
+
</div>
|
|
354
|
+
</div>
|
|
355
|
+
</div>
|
|
356
|
+
</section>
|
|
357
|
+
);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/* ============================================================================
|
|
361
|
+
* 5. ProductStageShowcase (Composition: Spatial Product Stage with working interactive switcher)
|
|
362
|
+
* ============================================================================ */
|
|
363
|
+
|
|
364
|
+
export interface ShowcaseView {
|
|
365
|
+
id: string;
|
|
366
|
+
label: string;
|
|
367
|
+
summary: string;
|
|
368
|
+
content: React.ReactNode;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
export function ProductStageShowcase({
|
|
372
|
+
heading = "Live stylized product chrome, never blank scroll boxes",
|
|
373
|
+
views,
|
|
374
|
+
}: {
|
|
375
|
+
heading?: string;
|
|
376
|
+
views?: ShowcaseView[];
|
|
377
|
+
}) {
|
|
378
|
+
const items: ShowcaseView[] = views ?? [
|
|
379
|
+
{
|
|
380
|
+
id: "tokens",
|
|
381
|
+
label: "Token Audit",
|
|
382
|
+
summary: "WCAG 2.1 AA contrast and Machado color-blind separation verified at compile time.",
|
|
383
|
+
content: <DataTableSpecimenFrame />,
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
id: "mcp",
|
|
387
|
+
label: "MCP Validation",
|
|
388
|
+
summary: "Deterministic automated checks separated cleanly from human aesthetic review criteria.",
|
|
389
|
+
content: <AssistantThreadPreview />,
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
id: "layers",
|
|
393
|
+
label: "3-Tier Architecture",
|
|
394
|
+
summary: "Shared Foundations, Marketing Register, and Product Register compiled from one DTCG source.",
|
|
395
|
+
content: (
|
|
396
|
+
<ProductWindowFrame title="millar / architecture" badge="W3C DTCG 2025.10">
|
|
397
|
+
<LayerStackDiagram />
|
|
398
|
+
</ProductWindowFrame>
|
|
399
|
+
),
|
|
400
|
+
},
|
|
401
|
+
];
|
|
402
|
+
const [activeId, setActiveId] = useState(items[0]!.id);
|
|
403
|
+
const baseId = useId();
|
|
404
|
+
const tabRefs = useRef<Array<HTMLButtonElement | null>>([]);
|
|
405
|
+
const current = items.find((v) => v.id === activeId) ?? items[0]!;
|
|
406
|
+
|
|
407
|
+
const handleTabKeyDown = (e: React.KeyboardEvent<HTMLButtonElement>, idx: number) => {
|
|
408
|
+
let nextIdx = idx;
|
|
409
|
+
if (e.key === "ArrowRight") nextIdx = (idx + 1) % items.length;
|
|
410
|
+
else if (e.key === "ArrowLeft") nextIdx = (idx - 1 + items.length) % items.length;
|
|
411
|
+
else if (e.key === "Home") nextIdx = 0;
|
|
412
|
+
else if (e.key === "End") nextIdx = items.length - 1;
|
|
413
|
+
else return;
|
|
414
|
+
e.preventDefault();
|
|
415
|
+
const target = items[nextIdx];
|
|
416
|
+
if (target) {
|
|
417
|
+
setActiveId(target.id);
|
|
418
|
+
tabRefs.current[nextIdx]?.focus();
|
|
419
|
+
}
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
return (
|
|
423
|
+
<section
|
|
424
|
+
style={{
|
|
425
|
+
backgroundColor: "var(--bg-stage-dark)",
|
|
426
|
+
color: "var(--fg-on-stage-dark)",
|
|
427
|
+
padding: "clamp(48px, 7vw, 88px) clamp(16px, 4vw, 48px)",
|
|
428
|
+
}}
|
|
429
|
+
>
|
|
430
|
+
<div style={{ maxWidth: 1240, margin: "0 auto", display: "flex", flexDirection: "column", gap: 28 }}>
|
|
431
|
+
<div style={{ display: "flex", alignItems: "flex-end", justifyContent: "space-between", gap: 20, flexWrap: "wrap" }}>
|
|
432
|
+
<h2
|
|
433
|
+
style={{
|
|
434
|
+
margin: 0,
|
|
435
|
+
maxWidth: 640,
|
|
436
|
+
fontFamily: "var(--font-display)",
|
|
437
|
+
fontSize: "clamp(1.85rem, 3.2vw, 2.5rem)",
|
|
438
|
+
fontWeight: 300,
|
|
439
|
+
lineHeight: "var(--leading-display, 1.14)",
|
|
440
|
+
letterSpacing: "var(--tracking-display, -0.02em)",
|
|
441
|
+
}}
|
|
442
|
+
>
|
|
443
|
+
{heading}
|
|
444
|
+
</h2>
|
|
445
|
+
<div role="tablist" aria-label="Product showcase views" style={{ display: "flex", gap: 8, flexWrap: "wrap" }}>
|
|
446
|
+
{items.map((item, idx) => {
|
|
447
|
+
const selected = item.id === current.id;
|
|
448
|
+
return (
|
|
449
|
+
<button
|
|
450
|
+
key={item.id}
|
|
451
|
+
ref={(el) => {
|
|
452
|
+
tabRefs.current[idx] = el;
|
|
453
|
+
}}
|
|
454
|
+
id={`${baseId}-tab-${item.id}`}
|
|
455
|
+
type="button"
|
|
456
|
+
role="tab"
|
|
457
|
+
tabIndex={selected ? 0 : -1}
|
|
458
|
+
aria-selected={selected}
|
|
459
|
+
aria-controls={`${baseId}-panel-${item.id}`}
|
|
460
|
+
onClick={() => setActiveId(item.id)}
|
|
461
|
+
onKeyDown={(e) => handleTabKeyDown(e, idx)}
|
|
462
|
+
className="millar-focus"
|
|
463
|
+
style={{
|
|
464
|
+
padding: "8px 14px",
|
|
465
|
+
borderRadius: "var(--radius-pill, 9999px)",
|
|
466
|
+
border: `1px solid ${selected ? "var(--fg-accent-on-stage-dark)" : "var(--border-stage-dark)"}`,
|
|
467
|
+
backgroundColor: selected ? "var(--accent-on-stage-dark)" : "var(--bg-stage-dark-card)",
|
|
468
|
+
color: "var(--fg-on-accent)",
|
|
469
|
+
fontFamily: "var(--font-sans)",
|
|
470
|
+
fontSize: "var(--text-meta, 0.8125rem)",
|
|
471
|
+
fontWeight: 500,
|
|
472
|
+
cursor: "pointer",
|
|
473
|
+
}}
|
|
474
|
+
>
|
|
475
|
+
{item.label}
|
|
476
|
+
</button>
|
|
477
|
+
);
|
|
478
|
+
})}
|
|
479
|
+
</div>
|
|
480
|
+
</div>
|
|
481
|
+
<p style={{ margin: 0, maxWidth: 680, fontSize: "var(--text-body, 0.9375rem)", color: "var(--fg-muted-on-stage-dark)" }}>
|
|
482
|
+
{current.summary}
|
|
483
|
+
</p>
|
|
484
|
+
<div role="tabpanel" id={`${baseId}-panel-${current.id}`} aria-labelledby={`${baseId}-tab-${current.id}`}>
|
|
485
|
+
{current.content}
|
|
486
|
+
</div>
|
|
487
|
+
</div>
|
|
488
|
+
</section>
|
|
489
|
+
);
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
/* ============================================================================
|
|
493
|
+
* 6. WorkflowLoopSection (Composition: Narrative Sequence Flow)
|
|
494
|
+
* ============================================================================ */
|
|
495
|
+
|
|
496
|
+
export function WorkflowLoopSection({ heading = "Continuous design-to-agent governance loop" }: { heading?: string }) {
|
|
497
|
+
const [selected, setSelected] = useState("author");
|
|
498
|
+
return (
|
|
499
|
+
<section
|
|
500
|
+
style={{
|
|
501
|
+
backgroundColor: "var(--bg-stage-dark-deep)",
|
|
502
|
+
color: "var(--fg-on-stage-dark)",
|
|
503
|
+
padding: "clamp(48px, 7vw, 88px) clamp(16px, 4vw, 48px)",
|
|
504
|
+
}}
|
|
505
|
+
>
|
|
506
|
+
<div style={{ maxWidth: 1240, margin: "0 auto", display: "flex", flexDirection: "column", gap: 24 }}>
|
|
507
|
+
<h2
|
|
508
|
+
style={{
|
|
509
|
+
margin: 0,
|
|
510
|
+
maxWidth: 640,
|
|
511
|
+
fontFamily: "var(--font-display)",
|
|
512
|
+
fontSize: "clamp(1.85rem, 3.2vw, 2.5rem)",
|
|
513
|
+
fontWeight: 300,
|
|
514
|
+
lineHeight: "var(--leading-display, 1.14)",
|
|
515
|
+
}}
|
|
516
|
+
>
|
|
517
|
+
{heading}
|
|
518
|
+
</h2>
|
|
519
|
+
<ClosedLoopSchematic activeStepId={selected} onSelectStep={setSelected} tone="dark" />
|
|
520
|
+
</div>
|
|
521
|
+
</section>
|
|
522
|
+
);
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
/* ============================================================================
|
|
526
|
+
* 7. ArchitectureGridSection (Composition: Architectural Visible-Rule Grid)
|
|
527
|
+
* ============================================================================ */
|
|
528
|
+
|
|
529
|
+
export interface ArchitectureGridItem {
|
|
530
|
+
code: string;
|
|
531
|
+
title: string;
|
|
532
|
+
description: string;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
export function ArchitectureGridSection({
|
|
536
|
+
heading = "Engineered for multi-product scale",
|
|
537
|
+
items = [
|
|
538
|
+
{ code: "DTCG 2025.10", title: "Single Source of Truth", description: "OKLCH color objects, structured dimensions, and locale modifiers compile once into every downstream adapter." },
|
|
539
|
+
{ code: "WCAG 2.1 AA", title: "Contrast & CVD Gated", description: "Automated luminance and Machado color-blind checks block regressions before merge." },
|
|
540
|
+
{ code: "MCP 2026-07", title: "Resources + 11 Tools", description: "AI coding agents retrieve live specs and run deterministic validation without hallucinating tokens." },
|
|
541
|
+
{ code: "ISOLATED", title: "Domain-Agnostic Core", description: "Education skill palettes and icons plug in via optional domain extension packages." },
|
|
542
|
+
],
|
|
543
|
+
}: {
|
|
544
|
+
heading?: string;
|
|
545
|
+
items?: ArchitectureGridItem[];
|
|
546
|
+
}) {
|
|
547
|
+
return (
|
|
548
|
+
<section style={{ backgroundColor: "var(--bg-editorial)", color: "var(--fg-default)", padding: "clamp(48px, 7vw, 88px) clamp(16px, 4vw, 48px)" }}>
|
|
549
|
+
<div style={{ maxWidth: 1240, margin: "0 auto", display: "flex", flexDirection: "column", gap: 28 }}>
|
|
550
|
+
<h2
|
|
551
|
+
style={{
|
|
552
|
+
margin: 0,
|
|
553
|
+
fontFamily: "var(--font-display)",
|
|
554
|
+
fontSize: "clamp(1.85rem, 3.2vw, 2.5rem)",
|
|
555
|
+
fontWeight: 300,
|
|
556
|
+
lineHeight: "var(--leading-display, 1.14)",
|
|
557
|
+
}}
|
|
558
|
+
>
|
|
559
|
+
{heading}
|
|
560
|
+
</h2>
|
|
561
|
+
<CoordinateGridSurface surface="base" showCrosshairs>
|
|
562
|
+
<div style={{ display: "grid", gridTemplateColumns: "repeat(auto-fit, minmax(260px, 1fr))" }}>
|
|
563
|
+
{items.map((item, idx) => (
|
|
564
|
+
<div
|
|
565
|
+
key={item.code}
|
|
566
|
+
style={{
|
|
567
|
+
padding: "28px 24px",
|
|
568
|
+
borderRight: idx % 2 === 0 ? "1px solid var(--border-default)" : "none",
|
|
569
|
+
borderBottom: idx < items.length - 2 ? "1px solid var(--border-default)" : "none",
|
|
570
|
+
display: "flex",
|
|
571
|
+
flexDirection: "column",
|
|
572
|
+
gap: 10,
|
|
573
|
+
}}
|
|
574
|
+
>
|
|
575
|
+
<code style={{ fontFamily: "var(--font-mono)", fontSize: "var(--text-micro, 0.75rem)", color: "var(--fg-accent)" }}>
|
|
576
|
+
{item.code}
|
|
577
|
+
</code>
|
|
578
|
+
<h3 style={{ margin: 0, fontFamily: "var(--font-display)", fontSize: "var(--text-section-title, 1.125rem)", fontWeight: 600 }}>
|
|
579
|
+
{item.title}
|
|
580
|
+
</h3>
|
|
581
|
+
<p style={{ margin: 0, fontSize: "var(--text-body-sm, 0.875rem)", lineHeight: 1.55, color: "var(--fg-muted)" }}>
|
|
582
|
+
{item.description}
|
|
583
|
+
</p>
|
|
584
|
+
</div>
|
|
585
|
+
))}
|
|
586
|
+
</div>
|
|
587
|
+
</CoordinateGridSurface>
|
|
588
|
+
</div>
|
|
589
|
+
</section>
|
|
590
|
+
);
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
/* ============================================================================
|
|
594
|
+
* 8. MetricMirrorSection (Composition: Typographic Poster & Metric Mirror)
|
|
595
|
+
* ============================================================================ */
|
|
596
|
+
|
|
597
|
+
export function MetricMirrorSection({
|
|
598
|
+
heading = "Measured before and after Millar",
|
|
599
|
+
}: {
|
|
600
|
+
heading?: string;
|
|
601
|
+
}) {
|
|
602
|
+
return (
|
|
603
|
+
<section style={{ backgroundColor: "var(--bg-editorial-alt)", color: "var(--fg-default)", padding: "clamp(48px, 7vw, 88px) clamp(16px, 4vw, 48px)" }}>
|
|
604
|
+
<div style={{ maxWidth: 1240, margin: "0 auto", display: "flex", flexDirection: "column", gap: 28 }}>
|
|
605
|
+
<h2
|
|
606
|
+
style={{
|
|
607
|
+
margin: 0,
|
|
608
|
+
fontFamily: "var(--font-display)",
|
|
609
|
+
fontSize: "clamp(1.85rem, 3.2vw, 2.5rem)",
|
|
610
|
+
fontWeight: 300,
|
|
611
|
+
lineHeight: "var(--leading-display, 1.14)",
|
|
612
|
+
}}
|
|
613
|
+
>
|
|
614
|
+
{heading}
|
|
615
|
+
</h2>
|
|
616
|
+
<div style={{ display: "grid", gridTemplateColumns: "repeat(auto-fit, minmax(220px, 1fr))", gap: 16 }}>
|
|
617
|
+
<MetricPlateCard value="1,880vh -> 0vh" label="Legacy blank scroll voids removed" detail="Eliminated photo-starved sticky empty frames (Hahlex Crimson tension callout)." tone="error" />
|
|
618
|
+
<MetricPlateCard value="1.00:1 -> 7.69:1" label="Dark active toggle contrast" detail="Fixed invisible dark-mode toggle with --fg-on-accent-soft." tone="espresso" />
|
|
619
|
+
<MetricPlateCard value="0 -> 100%" label="Photo-free section readiness" detail="Every section renders complete visual proof at 0% scroll." tone="brand" />
|
|
620
|
+
</div>
|
|
621
|
+
<BeforeAfterLedger
|
|
622
|
+
rows={[
|
|
623
|
+
{ criterion: "Token Sync", before: "4 hand-copied files drifting silently", after: "1 W3C DTCG 2025.10 source anchored to App Warm Sand + Crimson" },
|
|
624
|
+
{ criterion: "Marketing Visuals", before: "5 fake chatboxes + 1,880vh blank sticky voids", after: "6 diverse composition patterns + 14 code-native assets" },
|
|
625
|
+
{ criterion: "AI Governance", before: "Ad-hoc prose prompts & invented hex values", after: "MCP Resources + 11 Tools + automated vs. aesthetic validator" },
|
|
626
|
+
]}
|
|
627
|
+
/>
|
|
628
|
+
</div>
|
|
629
|
+
</section>
|
|
630
|
+
);
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
/* ============================================================================
|
|
634
|
+
* 9. NativeAccordionFaq (Accessible <details>/<summary>, zero JS required)
|
|
635
|
+
* ============================================================================ */
|
|
636
|
+
|
|
637
|
+
export interface FaqItem {
|
|
638
|
+
question: string;
|
|
639
|
+
answer: string;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
export function NativeAccordionFaq({
|
|
643
|
+
heading = "Frequently asked questions",
|
|
644
|
+
items = [
|
|
645
|
+
{
|
|
646
|
+
question: "Can AI agents promote Draft components to Approved?",
|
|
647
|
+
answer: "No. Governance CI and MCP metadata restrict AI agents to authoring Draft entries. Promoting any token, asset, or component to Approved requires explicit human sign-off.",
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
question: "Are CSS gradients banned everywhere in Millar?",
|
|
651
|
+
answer: "CSS gradients are strictly forbidden in Product UI and Foundation primitives. In Marketing, gradients are permitted exclusively inside purposeful, explicitly approved Visual Assets such as WarmHorizonWash.",
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
question: "How does Millar handle Hahlex Education's 4-skill IELTS palette?",
|
|
655
|
+
answer: "Millar Shared Foundations stays 100% product-agnostic. Education-specific skill tones and learner highlights live cleanly inside the optional @hahlex/millar-domain-education extension pack.",
|
|
656
|
+
},
|
|
657
|
+
],
|
|
658
|
+
}: {
|
|
659
|
+
heading?: string;
|
|
660
|
+
items?: FaqItem[];
|
|
661
|
+
}) {
|
|
662
|
+
return (
|
|
663
|
+
<section style={{ backgroundColor: "var(--bg-editorial)", color: "var(--fg-default)", padding: "clamp(48px, 7vw, 88px) clamp(16px, 4vw, 48px)" }}>
|
|
664
|
+
<div style={{ maxWidth: 880, margin: "0 auto", display: "flex", flexDirection: "column", gap: 24 }}>
|
|
665
|
+
<h2 style={{ margin: 0, fontFamily: "var(--font-display)", fontSize: "clamp(1.75rem, 3vw, 2.25rem)", fontWeight: 300 }}>
|
|
666
|
+
{heading}
|
|
667
|
+
</h2>
|
|
668
|
+
<div style={{ display: "flex", flexDirection: "column", gap: 10 }}>
|
|
669
|
+
{items.map((item) => (
|
|
670
|
+
<details
|
|
671
|
+
key={item.question}
|
|
672
|
+
style={{
|
|
673
|
+
borderRadius: "var(--radius-md, 12px)",
|
|
674
|
+
border: "1px solid var(--border-default)",
|
|
675
|
+
backgroundColor: "var(--bg-surface)",
|
|
676
|
+
padding: "14px 18px",
|
|
677
|
+
}}
|
|
678
|
+
>
|
|
679
|
+
<summary
|
|
680
|
+
className="millar-focus"
|
|
681
|
+
style={{
|
|
682
|
+
cursor: "pointer",
|
|
683
|
+
fontFamily: "var(--font-display)",
|
|
684
|
+
fontSize: "var(--text-card-title, 1rem)",
|
|
685
|
+
fontWeight: 500,
|
|
686
|
+
color: "var(--fg-default)",
|
|
687
|
+
}}
|
|
688
|
+
>
|
|
689
|
+
{item.question}
|
|
690
|
+
</summary>
|
|
691
|
+
<p style={{ margin: "12px 0 0", fontSize: "var(--text-body-sm, 0.875rem)", lineHeight: 1.6, color: "var(--fg-muted)" }}>
|
|
692
|
+
{item.answer}
|
|
693
|
+
</p>
|
|
694
|
+
</details>
|
|
695
|
+
))}
|
|
696
|
+
</div>
|
|
697
|
+
</div>
|
|
698
|
+
</section>
|
|
699
|
+
);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
/* ============================================================================
|
|
703
|
+
* 10. ClosingConversionBand & Semantic Top-Level MillarSiteFooter (NEVER nested in <main>)
|
|
704
|
+
* ============================================================================ */
|
|
705
|
+
|
|
706
|
+
export function ClosingConversionBand({
|
|
707
|
+
headline = "Build every Hahlex surface from one calm standard.",
|
|
708
|
+
ctaLabel = "Explore Millar Portal",
|
|
709
|
+
onCta,
|
|
710
|
+
}: {
|
|
711
|
+
headline?: string;
|
|
712
|
+
ctaLabel?: string;
|
|
713
|
+
onCta?: () => void;
|
|
714
|
+
}) {
|
|
715
|
+
return (
|
|
716
|
+
<>
|
|
717
|
+
<PaperTearDivider topColor="var(--bg-editorial)" bottomColor="var(--bg-stage-dark-deep)" />
|
|
718
|
+
<section
|
|
719
|
+
style={{
|
|
720
|
+
backgroundColor: "var(--bg-stage-dark-deep)",
|
|
721
|
+
color: "var(--fg-on-stage-dark)",
|
|
722
|
+
padding: "clamp(56px, 8vw, 104px) clamp(16px, 4vw, 48px)",
|
|
723
|
+
}}
|
|
724
|
+
>
|
|
725
|
+
<div style={{ maxWidth: 1040, margin: "0 auto", display: "flex", flexDirection: "column", alignItems: "flex-start", gap: 24 }}>
|
|
726
|
+
<h2
|
|
727
|
+
style={{
|
|
728
|
+
margin: 0,
|
|
729
|
+
maxWidth: 780,
|
|
730
|
+
fontFamily: "var(--font-display)",
|
|
731
|
+
fontSize: "clamp(2rem, 4.5vw, 3.5rem)",
|
|
732
|
+
fontWeight: 300,
|
|
733
|
+
lineHeight: "var(--leading-display-hero, 1.08)",
|
|
734
|
+
letterSpacing: "var(--tracking-display, -0.02em)",
|
|
735
|
+
}}
|
|
736
|
+
>
|
|
737
|
+
{headline}
|
|
738
|
+
</h2>
|
|
739
|
+
<Button
|
|
740
|
+
variant="primary"
|
|
741
|
+
size="lg"
|
|
742
|
+
onClick={onCta}
|
|
743
|
+
style={{ backgroundColor: "var(--accent-on-stage-dark)", borderColor: "var(--accent-on-stage-dark)", color: "var(--fg-on-accent)" }}
|
|
744
|
+
>
|
|
745
|
+
{ctaLabel}
|
|
746
|
+
<IconArrowRight size="md" />
|
|
747
|
+
</Button>
|
|
748
|
+
</div>
|
|
749
|
+
</section>
|
|
750
|
+
</>
|
|
751
|
+
);
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
export function MillarSiteFooter({ version = "v0.1.0-draft", embedded = false }: { version?: string; embedded?: boolean }) {
|
|
755
|
+
const Tag = embedded ? "div" : "footer";
|
|
756
|
+
return (
|
|
757
|
+
<Tag
|
|
758
|
+
data-template-footer={embedded ? "true" : undefined}
|
|
759
|
+
style={{
|
|
760
|
+
backgroundColor: "var(--bg-stage-dark-deep)",
|
|
761
|
+
color: "var(--fg-muted-on-stage-dark)",
|
|
762
|
+
borderTop: "1px solid var(--border-stage-dark)",
|
|
763
|
+
padding: "28px clamp(16px, 4vw, 48px)",
|
|
764
|
+
}}
|
|
765
|
+
>
|
|
766
|
+
<div
|
|
767
|
+
style={{
|
|
768
|
+
maxWidth: 1280,
|
|
769
|
+
margin: "0 auto",
|
|
770
|
+
display: "flex",
|
|
771
|
+
alignItems: "center",
|
|
772
|
+
justifyContent: "space-between",
|
|
773
|
+
gap: 16,
|
|
774
|
+
flexWrap: "wrap",
|
|
775
|
+
fontSize: "var(--text-meta, 0.8125rem)",
|
|
776
|
+
}}
|
|
777
|
+
>
|
|
778
|
+
<HahlexLockup variant="on-dark" size={24} sublabel="Millar Design System" color="var(--fg-on-stage-dark)" />
|
|
779
|
+
<div style={{ display: "flex", alignItems: "center", gap: 16, flexWrap: "wrap" }}>
|
|
780
|
+
<span style={{ fontFamily: "var(--font-mono)" }}>{version}</span>
|
|
781
|
+
<span>Hahlex Ecosystem</span>
|
|
782
|
+
</div>
|
|
783
|
+
</div>
|
|
784
|
+
</Tag>
|
|
785
|
+
);
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
/* ============================================================================
|
|
789
|
+
* 11. Live Visual Do's & Don'ts Comparison Specimen
|
|
790
|
+
* ============================================================================ */
|
|
791
|
+
|
|
792
|
+
export interface VisualDoDontPairProps {
|
|
793
|
+
title: string;
|
|
794
|
+
doLabel: string;
|
|
795
|
+
dontLabel: string;
|
|
796
|
+
doPreview: React.ReactNode;
|
|
797
|
+
dontPreview: React.ReactNode;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
export function VisualDoDontPair({ title, doLabel, dontLabel, doPreview, dontPreview }: VisualDoDontPairProps) {
|
|
801
|
+
return (
|
|
802
|
+
<div style={{ display: "flex", flexDirection: "column", gap: 12 }}>
|
|
803
|
+
<h3 style={{ margin: 0, fontFamily: "var(--font-display)", fontSize: "var(--text-section-title, 1.125rem)", fontWeight: 600, color: "var(--fg-default)" }}>
|
|
804
|
+
{title}
|
|
805
|
+
</h3>
|
|
806
|
+
<div style={{ display: "grid", gridTemplateColumns: "repeat(auto-fit, minmax(280px, 1fr))", gap: 16 }}>
|
|
807
|
+
<div
|
|
808
|
+
style={{
|
|
809
|
+
borderRadius: "var(--radius-lg, 16px)",
|
|
810
|
+
border: "1px solid var(--status-success-border)",
|
|
811
|
+
backgroundColor: "var(--bg-surface)",
|
|
812
|
+
overflow: "hidden",
|
|
813
|
+
display: "flex",
|
|
814
|
+
flexDirection: "column",
|
|
815
|
+
}}
|
|
816
|
+
>
|
|
817
|
+
<div style={{ padding: 20, flex: 1, backgroundColor: "var(--bg-editorial)" }}>{doPreview}</div>
|
|
818
|
+
<div
|
|
819
|
+
style={{
|
|
820
|
+
padding: "12px 16px",
|
|
821
|
+
borderTop: "1px solid var(--status-success-border)",
|
|
822
|
+
backgroundColor: "var(--status-success-soft)",
|
|
823
|
+
color: "var(--status-success)",
|
|
824
|
+
display: "flex",
|
|
825
|
+
alignItems: "flex-start",
|
|
826
|
+
gap: 8,
|
|
827
|
+
fontSize: "var(--text-meta, 0.8125rem)",
|
|
828
|
+
fontWeight: 500,
|
|
829
|
+
}}
|
|
830
|
+
>
|
|
831
|
+
<IconCheck size="sm" />
|
|
832
|
+
<span>
|
|
833
|
+
<strong>Do:</strong> {doLabel}
|
|
834
|
+
</span>
|
|
835
|
+
</div>
|
|
836
|
+
</div>
|
|
837
|
+
|
|
838
|
+
<div
|
|
839
|
+
style={{
|
|
840
|
+
borderRadius: "var(--radius-lg, 16px)",
|
|
841
|
+
border: "1px solid var(--status-error-border)",
|
|
842
|
+
backgroundColor: "var(--bg-surface)",
|
|
843
|
+
overflow: "hidden",
|
|
844
|
+
display: "flex",
|
|
845
|
+
flexDirection: "column",
|
|
846
|
+
}}
|
|
847
|
+
>
|
|
848
|
+
{/* Non-interactive anti-pattern illustration; full accessible guidance sits in the Don't caption below */}
|
|
849
|
+
<div aria-hidden="true" data-millar-antipattern-specimen="true" style={{ padding: 20, flex: 1, backgroundColor: "var(--bg-surface-2)" }}>
|
|
850
|
+
{dontPreview}
|
|
851
|
+
</div>
|
|
852
|
+
<div
|
|
853
|
+
style={{
|
|
854
|
+
padding: "12px 16px",
|
|
855
|
+
borderTop: "1px solid var(--status-error-border)",
|
|
856
|
+
backgroundColor: "var(--status-error-soft)",
|
|
857
|
+
color: "var(--status-error)",
|
|
858
|
+
display: "flex",
|
|
859
|
+
alignItems: "flex-start",
|
|
860
|
+
gap: 8,
|
|
861
|
+
fontSize: "var(--text-meta, 0.8125rem)",
|
|
862
|
+
fontWeight: 500,
|
|
863
|
+
}}
|
|
864
|
+
>
|
|
865
|
+
<IconClose size="sm" />
|
|
866
|
+
<span>
|
|
867
|
+
<strong>Don't:</strong> {dontLabel}
|
|
868
|
+
</span>
|
|
869
|
+
</div>
|
|
870
|
+
</div>
|
|
871
|
+
</div>
|
|
872
|
+
</div>
|
|
873
|
+
);
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
export function DefaultMarketingDoDontShowcase() {
|
|
877
|
+
const [doClicks, setDoClicks] = useState(0);
|
|
878
|
+
return (
|
|
879
|
+
<div style={{ display: "flex", flexDirection: "column", gap: 28 }}>
|
|
880
|
+
<VisualDoDontPair
|
|
881
|
+
title="Surface Craft & Button Contrast"
|
|
882
|
+
doLabel="Use solid Warm Sand / Deep Espresso surfaces with AA-verified #4A3022 / #7A4E16 CTAs and crisp 1px borders."
|
|
883
|
+
dontLabel="Avoid neon purple/pink decorative card gradients, glowing button halos, and low-contrast bronze buttons (#A26A25 at 4.31:1)."
|
|
884
|
+
doPreview={
|
|
885
|
+
<div style={{ display: "flex", flexDirection: "column", gap: 12 }}>
|
|
886
|
+
<Badge tone="brand">Measured Warmth</Badge>
|
|
887
|
+
<strong style={{ fontFamily: "var(--font-display)", fontSize: "1.125rem", fontWeight: 500, color: "var(--fg-default)" }}>
|
|
888
|
+
Calm, tactile contrast
|
|
889
|
+
</strong>
|
|
890
|
+
<div style={{ display: "flex", alignItems: "center", gap: 10, flexWrap: "wrap" }}>
|
|
891
|
+
<Button variant="primary" size="sm" icon={<IconShield size="sm" />} onClick={() => setDoClicks((c) => c + 1)}>
|
|
892
|
+
{doClicks > 0 ? `Verified 12.09:1 CTA (${doClicks})` : "Verified 12.09:1 CTA"}
|
|
893
|
+
</Button>
|
|
894
|
+
{doClicks > 0 ? (
|
|
895
|
+
<span role="status" style={{ fontSize: "var(--text-micro, 0.75rem)", color: "var(--status-success)", fontWeight: 500 }}>
|
|
896
|
+
Interactive response verified
|
|
897
|
+
</span>
|
|
898
|
+
) : null}
|
|
899
|
+
</div>
|
|
900
|
+
</div>
|
|
901
|
+
}
|
|
902
|
+
dontPreview={
|
|
903
|
+
<div
|
|
904
|
+
style={{
|
|
905
|
+
padding: 16,
|
|
906
|
+
borderRadius: 16,
|
|
907
|
+
background: "linear-gradient(135deg, #6366f1, #ec4899)",
|
|
908
|
+
color: "#ffffff",
|
|
909
|
+
display: "flex",
|
|
910
|
+
flexDirection: "column",
|
|
911
|
+
gap: 10,
|
|
912
|
+
}}
|
|
913
|
+
>
|
|
914
|
+
<strong style={{ fontSize: "1.125rem" }}>Generic AI gradient card</strong>
|
|
915
|
+
<span style={{ display: "inline-block", padding: "6px 12px", borderRadius: 999, backgroundColor: "#C08A4A", color: "#FFF8F0", fontSize: 13, width: "fit-content" }}>
|
|
916
|
+
2.86:1 Failing Button
|
|
917
|
+
</span>
|
|
918
|
+
</div>
|
|
919
|
+
}
|
|
920
|
+
/>
|
|
921
|
+
<VisualDoDontPair
|
|
922
|
+
title="Zero-Photo Product Proof"
|
|
923
|
+
doLabel="Show stylized, static-first Hahlex UI chrome immediately at 0% scroll with working controls."
|
|
924
|
+
dontLabel="Never trap visitors in blank 400px scroll-scrubbed rectangles or repeat identical fake chatboxes."
|
|
925
|
+
doPreview={<DataTableSpecimenFrame />}
|
|
926
|
+
dontPreview={
|
|
927
|
+
<div
|
|
928
|
+
style={{
|
|
929
|
+
height: 168,
|
|
930
|
+
borderRadius: 12,
|
|
931
|
+
border: "1px dashed var(--border-strong)",
|
|
932
|
+
backgroundColor: "var(--bg-surface)",
|
|
933
|
+
display: "flex",
|
|
934
|
+
alignItems: "center",
|
|
935
|
+
justifyContent: "center",
|
|
936
|
+
color: "var(--fg-subtle)",
|
|
937
|
+
fontSize: 13,
|
|
938
|
+
}}
|
|
939
|
+
>
|
|
940
|
+
[ Empty 400px scroll-scrubbed box waiting for scroll... ]
|
|
941
|
+
</div>
|
|
942
|
+
}
|
|
943
|
+
/>
|
|
944
|
+
</div>
|
|
945
|
+
);
|
|
946
|
+
}
|