@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,373 @@
|
|
|
1
|
+
import React, { useEffect, useRef } from "react";
|
|
2
|
+
|
|
3
|
+
/* ============================================================================
|
|
4
|
+
* 1. Canonical Brand Marks & Wordmark Lockup (Q3 Accepted: Geist 600 Title Case)
|
|
5
|
+
* ============================================================================ */
|
|
6
|
+
|
|
7
|
+
export type BrandMarkVariant = "color" | "on-light" | "on-dark" | "monochrome";
|
|
8
|
+
|
|
9
|
+
const MARK_COLORS: Record<BrandMarkVariant, { topDot: string; arch: string; endDots: string; left: string; center: string; right: string }> = {
|
|
10
|
+
color: { topDot: "#E4CBAF", arch: "#D6B48A", endDots: "#D6B48A", left: "#2B1F16", center: "#E4CBAF", right: "#6B4D35" },
|
|
11
|
+
"on-light": { topDot: "#6B4D35", arch: "#6B4D35", endDots: "#6B4D35", left: "#2B1F16", center: "#4A3022", right: "#2B1F16" },
|
|
12
|
+
"on-dark": { topDot: "#E4CBAF", arch: "#D6B48A", endDots: "#D6B48A", left: "#FAF8F5", center: "#D6B48A", right: "#C08A4A" },
|
|
13
|
+
monochrome: { topDot: "currentColor", arch: "currentColor", endDots: "currentColor", left: "currentColor", center: "currentColor", right: "currentColor" },
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export interface HahlexMarkProps {
|
|
17
|
+
variant?: BrandMarkVariant;
|
|
18
|
+
size?: number;
|
|
19
|
+
decorative?: boolean;
|
|
20
|
+
className?: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function HahlexMark({ variant = "color", size = 32, decorative = false, className }: HahlexMarkProps) {
|
|
24
|
+
const c = MARK_COLORS[variant];
|
|
25
|
+
return (
|
|
26
|
+
<svg
|
|
27
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
28
|
+
viewBox="0 0 300 282"
|
|
29
|
+
width={size}
|
|
30
|
+
height={Math.round((size * 282) / 300)}
|
|
31
|
+
fill="none"
|
|
32
|
+
role={decorative ? undefined : "img"}
|
|
33
|
+
aria-label={decorative ? undefined : "Hahlex"}
|
|
34
|
+
aria-hidden={decorative || undefined}
|
|
35
|
+
focusable="false"
|
|
36
|
+
className={className}
|
|
37
|
+
>
|
|
38
|
+
<circle cx="150" cy="44" r="15" fill={c.topDot} />
|
|
39
|
+
<path d="M47 185A103 103 0 0 1 253 185" stroke={c.arch} strokeWidth="11" strokeLinecap="round" />
|
|
40
|
+
<circle cx="47" cy="186" r="10.5" fill={c.endDots} />
|
|
41
|
+
<circle cx="253" cy="186" r="10.5" fill={c.endDots} />
|
|
42
|
+
<rect x="84" y="158" width="22" height="98" rx="11" fill={c.left} />
|
|
43
|
+
<rect x="138" y="122" width="24" height="134" rx="12" fill={c.center} />
|
|
44
|
+
<rect x="194" y="158" width="22" height="98" rx="11" fill={c.right} />
|
|
45
|
+
</svg>
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface HahlexLockupProps {
|
|
50
|
+
variant?: BrandMarkVariant;
|
|
51
|
+
size?: number;
|
|
52
|
+
sublabel?: string;
|
|
53
|
+
color?: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function HahlexLockup({ variant = "color", size = 28, sublabel, color = "var(--fg-default)" }: HahlexLockupProps) {
|
|
57
|
+
return (
|
|
58
|
+
<span style={{ display: "inline-flex", alignItems: "center", gap: 10, color }}>
|
|
59
|
+
<HahlexMark variant={variant} size={size} decorative />
|
|
60
|
+
<span
|
|
61
|
+
className="brand-word"
|
|
62
|
+
style={{
|
|
63
|
+
fontFamily: "var(--font-display)",
|
|
64
|
+
fontSize: Math.round(size * 0.78),
|
|
65
|
+
fontWeight: 600,
|
|
66
|
+
lineHeight: 1,
|
|
67
|
+
letterSpacing: "-0.02em",
|
|
68
|
+
}}
|
|
69
|
+
>
|
|
70
|
+
Hahlex
|
|
71
|
+
</span>
|
|
72
|
+
{sublabel ? (
|
|
73
|
+
<span
|
|
74
|
+
style={{
|
|
75
|
+
fontFamily: "var(--font-sans)",
|
|
76
|
+
fontSize: Math.round(size * 0.46),
|
|
77
|
+
fontWeight: 500,
|
|
78
|
+
color: variant === "on-dark" ? "var(--fg-muted-on-stage-dark)" : "var(--fg-muted)",
|
|
79
|
+
borderLeft: `1px solid ${variant === "on-dark" ? "var(--border-stage-dark)" : "var(--border-default)"}`,
|
|
80
|
+
paddingLeft: 10,
|
|
81
|
+
lineHeight: 1.2,
|
|
82
|
+
}}
|
|
83
|
+
>
|
|
84
|
+
{sublabel}
|
|
85
|
+
</span>
|
|
86
|
+
) : null}
|
|
87
|
+
</span>
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* ============================================================================
|
|
92
|
+
* 2. Structural & Geometric Surfaces (Zero-Photo, Static-First)
|
|
93
|
+
* ============================================================================ */
|
|
94
|
+
|
|
95
|
+
export interface CoordinateGridSurfaceProps {
|
|
96
|
+
surface?: "editorial" | "stage-dark" | "base";
|
|
97
|
+
showCrosshairs?: boolean;
|
|
98
|
+
children: React.ReactNode;
|
|
99
|
+
style?: React.CSSProperties;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function CoordinateGridSurface({
|
|
103
|
+
surface = "editorial",
|
|
104
|
+
showCrosshairs = true,
|
|
105
|
+
children,
|
|
106
|
+
style,
|
|
107
|
+
}: CoordinateGridSurfaceProps) {
|
|
108
|
+
const isDark = surface === "stage-dark";
|
|
109
|
+
const bg = isDark ? "var(--bg-stage-dark)" : surface === "editorial" ? "var(--bg-editorial)" : "var(--bg-surface)";
|
|
110
|
+
const border = isDark ? "var(--border-stage-dark)" : "var(--border-default)";
|
|
111
|
+
const markColor = isDark ? "var(--fg-accent-on-stage-dark)" : "var(--border-strong)";
|
|
112
|
+
|
|
113
|
+
return (
|
|
114
|
+
<div
|
|
115
|
+
style={{
|
|
116
|
+
position: "relative",
|
|
117
|
+
backgroundColor: bg,
|
|
118
|
+
border: `1px solid ${border}`,
|
|
119
|
+
borderRadius: "var(--radius-lg, 16px)",
|
|
120
|
+
overflow: "hidden",
|
|
121
|
+
...style,
|
|
122
|
+
}}
|
|
123
|
+
>
|
|
124
|
+
{showCrosshairs ? (
|
|
125
|
+
<>
|
|
126
|
+
{(
|
|
127
|
+
[
|
|
128
|
+
{ top: 10, left: 10 },
|
|
129
|
+
{ top: 10, right: 10 },
|
|
130
|
+
{ bottom: 10, left: 10 },
|
|
131
|
+
{ bottom: 10, right: 10 },
|
|
132
|
+
] as const
|
|
133
|
+
).map((pos, i) => (
|
|
134
|
+
<svg
|
|
135
|
+
key={i}
|
|
136
|
+
aria-hidden="true"
|
|
137
|
+
width="12"
|
|
138
|
+
height="12"
|
|
139
|
+
viewBox="0 0 12 12"
|
|
140
|
+
style={{ position: "absolute", pointerEvents: "none", color: markColor, ...pos }}
|
|
141
|
+
>
|
|
142
|
+
<path d="M6 1v10M1 6h10" stroke="currentColor" strokeWidth="1" />
|
|
143
|
+
</svg>
|
|
144
|
+
))}
|
|
145
|
+
</>
|
|
146
|
+
) : null}
|
|
147
|
+
{children}
|
|
148
|
+
</div>
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export interface DotMatrixFieldProps {
|
|
153
|
+
tone?: "light" | "dark";
|
|
154
|
+
spacing?: number;
|
|
155
|
+
height?: number;
|
|
156
|
+
children?: React.ReactNode;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function DotMatrixField({ tone = "light", spacing = 22, height = 220, children }: DotMatrixFieldProps) {
|
|
160
|
+
const dotColor = tone === "dark" ? "rgba(214, 180, 138, 0.24)" : "rgba(107, 77, 53, 0.18)";
|
|
161
|
+
const bg = tone === "dark" ? "var(--bg-stage-dark)" : "var(--bg-editorial-alt)";
|
|
162
|
+
const border = tone === "dark" ? "var(--border-stage-dark)" : "var(--border-default)";
|
|
163
|
+
|
|
164
|
+
return (
|
|
165
|
+
<div
|
|
166
|
+
style={{
|
|
167
|
+
position: "relative",
|
|
168
|
+
minHeight: height,
|
|
169
|
+
borderRadius: "var(--radius-lg, 16px)",
|
|
170
|
+
border: `1px solid ${border}`,
|
|
171
|
+
backgroundColor: bg,
|
|
172
|
+
overflow: "hidden",
|
|
173
|
+
display: "flex",
|
|
174
|
+
alignItems: "center",
|
|
175
|
+
justifyContent: "center",
|
|
176
|
+
padding: 24,
|
|
177
|
+
}}
|
|
178
|
+
>
|
|
179
|
+
<svg aria-hidden="true" style={{ position: "absolute", inset: 0, width: "100%", height: "100%", pointerEvents: "none" }}>
|
|
180
|
+
<defs>
|
|
181
|
+
<pattern id={`millar-dot-${tone}-${spacing}`} width={spacing} height={spacing} patternUnits="userSpaceOnUse">
|
|
182
|
+
<circle cx={spacing / 2} cy={spacing / 2} r="1.25" fill={dotColor} />
|
|
183
|
+
</pattern>
|
|
184
|
+
</defs>
|
|
185
|
+
<rect width="100%" height="100%" fill={`url(#millar-dot-${tone}-${spacing})`} />
|
|
186
|
+
</svg>
|
|
187
|
+
<div style={{ position: "relative", zIndex: 1, width: "100%" }}>{children}</div>
|
|
188
|
+
</div>
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Code-native HTML5 Canvas + deterministic vector fallback rendering Hahlex's subtle
|
|
194
|
+
* shelter-arch and three ascending proportions in Measured Warmth style.
|
|
195
|
+
* Static-first: draws one crisp DPR-calibrated frame without burning continuous rAF CPU.
|
|
196
|
+
*/
|
|
197
|
+
export interface ConcentricArcCanvasProps {
|
|
198
|
+
tone?: "light" | "dark";
|
|
199
|
+
height?: number;
|
|
200
|
+
caption?: string;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export function ConcentricArcCanvas({ tone = "light", height = 240, caption }: ConcentricArcCanvasProps) {
|
|
204
|
+
const canvasRef = useRef<HTMLCanvasElement>(null);
|
|
205
|
+
|
|
206
|
+
useEffect(() => {
|
|
207
|
+
const canvas = canvasRef.current;
|
|
208
|
+
if (!canvas) return;
|
|
209
|
+
let ctx: CanvasRenderingContext2D | null = null;
|
|
210
|
+
try {
|
|
211
|
+
ctx = canvas.getContext("2d");
|
|
212
|
+
} catch {
|
|
213
|
+
ctx = null;
|
|
214
|
+
}
|
|
215
|
+
if (!ctx) return;
|
|
216
|
+
|
|
217
|
+
const dpr = Math.min(window.devicePixelRatio || 1, 2);
|
|
218
|
+
const width = canvas.clientWidth || 560;
|
|
219
|
+
const h = canvas.clientHeight || height;
|
|
220
|
+
canvas.width = width * dpr;
|
|
221
|
+
canvas.height = h * dpr;
|
|
222
|
+
ctx.scale(dpr, dpr);
|
|
223
|
+
|
|
224
|
+
ctx.clearRect(0, 0, width, h);
|
|
225
|
+
const cx = width * 0.5;
|
|
226
|
+
const cy = h * 0.88;
|
|
227
|
+
const baseR = Math.min(width * 0.42, h * 0.78);
|
|
228
|
+
const strokePrimary = tone === "dark" ? "rgba(214, 180, 138, 0.36)" : "rgba(107, 77, 53, 0.24)";
|
|
229
|
+
const strokeAccent = tone === "dark" ? "rgba(209, 160, 104, 0.78)" : "rgba(165, 107, 35, 0.62)";
|
|
230
|
+
const crimsonAccent = tone === "dark" ? "#F0857F" : "#B3121B";
|
|
231
|
+
|
|
232
|
+
// Concentric shelter arcs with calibrated radial spacing
|
|
233
|
+
const rings = [0.35, 0.52, 0.68, 0.84, 1.0];
|
|
234
|
+
rings.forEach((factor, idx) => {
|
|
235
|
+
ctx!.beginPath();
|
|
236
|
+
ctx!.arc(cx, cy, baseR * factor, Math.PI, 0, false);
|
|
237
|
+
ctx!.strokeStyle = idx === 2 ? strokeAccent : strokePrimary;
|
|
238
|
+
ctx!.lineWidth = idx === 2 ? 1.5 : 1;
|
|
239
|
+
ctx!.setLineDash(idx === 1 || idx === 3 ? [3, 5] : []);
|
|
240
|
+
ctx!.stroke();
|
|
241
|
+
});
|
|
242
|
+
ctx.setLineDash([]);
|
|
243
|
+
|
|
244
|
+
// Calibrated tick marks along the outer measuring arc (zenith meridian marked in Hahlex Crimson)
|
|
245
|
+
for (let deg = 180; deg <= 360; deg += 15) {
|
|
246
|
+
const rad = (deg * Math.PI) / 180;
|
|
247
|
+
const isZenith = deg === 270;
|
|
248
|
+
const rIn = baseR * (isZenith ? 0.92 : 0.96);
|
|
249
|
+
const rOut = baseR * (isZenith ? 1.07 : deg % 45 === 0 ? 1.05 : 1.02);
|
|
250
|
+
ctx.beginPath();
|
|
251
|
+
ctx.moveTo(cx + Math.cos(rad) * rIn, cy + Math.sin(rad) * rIn);
|
|
252
|
+
ctx.lineTo(cx + Math.cos(rad) * rOut, cy + Math.sin(rad) * rOut);
|
|
253
|
+
ctx.strokeStyle = isZenith ? crimsonAccent : deg % 45 === 0 ? strokeAccent : strokePrimary;
|
|
254
|
+
ctx.lineWidth = isZenith ? 2 : deg % 45 === 0 ? 1.5 : 1;
|
|
255
|
+
ctx.stroke();
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
// Precision Hahlex Crimson focal registration dot at zenith (< 1% surface budget)
|
|
259
|
+
ctx.beginPath();
|
|
260
|
+
ctx.arc(cx, cy - baseR * 0.68, 3.2, 0, Math.PI * 2);
|
|
261
|
+
ctx.fillStyle = crimsonAccent;
|
|
262
|
+
ctx.fill();
|
|
263
|
+
|
|
264
|
+
// Subtle three-pillar Hahlex proportion echo anchored strictly to App Warm Sand constants
|
|
265
|
+
const barW = 8;
|
|
266
|
+
const bars = [
|
|
267
|
+
{ dx: -24, height: baseR * 0.34, fill: tone === "dark" ? "#FAFAFA" : "#2B1F16" },
|
|
268
|
+
{ dx: 0, height: baseR * 0.50, fill: tone === "dark" ? "#D6B48A" : "#A56B23" },
|
|
269
|
+
{ dx: 24, height: baseR * 0.34, fill: tone === "dark" ? "#D1A068" : "#6B4D35" },
|
|
270
|
+
];
|
|
271
|
+
for (const b of bars) {
|
|
272
|
+
ctx.fillStyle = b.fill;
|
|
273
|
+
ctx.beginPath();
|
|
274
|
+
ctx.roundRect(cx + b.dx - barW / 2, cy - b.height, barW, b.height, 4);
|
|
275
|
+
ctx.fill();
|
|
276
|
+
}
|
|
277
|
+
}, [tone, height]);
|
|
278
|
+
|
|
279
|
+
const bg = tone === "dark" ? "var(--bg-stage-dark)" : "var(--bg-editorial)";
|
|
280
|
+
const border = tone === "dark" ? "var(--border-stage-dark)" : "var(--border-default)";
|
|
281
|
+
|
|
282
|
+
return (
|
|
283
|
+
<figure
|
|
284
|
+
style={{
|
|
285
|
+
margin: 0,
|
|
286
|
+
position: "relative",
|
|
287
|
+
borderRadius: "var(--radius-lg, 16px)",
|
|
288
|
+
border: `1px solid ${border}`,
|
|
289
|
+
backgroundColor: bg,
|
|
290
|
+
overflow: "hidden",
|
|
291
|
+
}}
|
|
292
|
+
>
|
|
293
|
+
<canvas
|
|
294
|
+
ref={canvasRef}
|
|
295
|
+
aria-label={caption ?? "Hahlex concentric measurement arcs"}
|
|
296
|
+
style={{ display: "block", width: "100%", height }}
|
|
297
|
+
/>
|
|
298
|
+
{caption ? (
|
|
299
|
+
<figcaption
|
|
300
|
+
style={{
|
|
301
|
+
padding: "8px 14px",
|
|
302
|
+
borderTop: `1px solid ${border}`,
|
|
303
|
+
fontFamily: "var(--font-mono)",
|
|
304
|
+
fontSize: "var(--text-micro, 0.75rem)",
|
|
305
|
+
color: tone === "dark" ? "var(--fg-muted-on-stage-dark)" : "var(--fg-subtle)",
|
|
306
|
+
}}
|
|
307
|
+
>
|
|
308
|
+
{caption}
|
|
309
|
+
</figcaption>
|
|
310
|
+
) : null}
|
|
311
|
+
</figure>
|
|
312
|
+
);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Procedural torn-paper SVG boundary connecting Editorial Cream and Deep Espresso surfaces.
|
|
317
|
+
* Preserves Hahlex's tactile classroom/paper heritage with zero raster overhead.
|
|
318
|
+
*/
|
|
319
|
+
export interface PaperTearDividerProps {
|
|
320
|
+
topColor?: string;
|
|
321
|
+
bottomColor?: string;
|
|
322
|
+
height?: number;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
export function PaperTearDivider({
|
|
326
|
+
topColor = "var(--bg-editorial)",
|
|
327
|
+
bottomColor = "var(--bg-stage-dark)",
|
|
328
|
+
height = 44,
|
|
329
|
+
}: PaperTearDividerProps) {
|
|
330
|
+
return (
|
|
331
|
+
<div aria-hidden="true" style={{ width: "100%", height, backgroundColor: topColor, lineHeight: 0, overflow: "hidden" }}>
|
|
332
|
+
<svg viewBox="0 0 1440 48" preserveAspectRatio="none" style={{ width: "100%", height: "100%", display: "block" }}>
|
|
333
|
+
<path
|
|
334
|
+
d="M0,18 L64,22 L128,13 L196,25 L268,16 L342,26 L418,14 L496,21 L574,11 L652,24 L732,16 L810,27 L892,13 L976,22 L1054,15 L1132,26 L1214,14 L1296,23 L1372,15 L1440,20 L1440,48 L0,48 Z"
|
|
335
|
+
fill={bottomColor}
|
|
336
|
+
/>
|
|
337
|
+
</svg>
|
|
338
|
+
</div>
|
|
339
|
+
);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Explicitly Approved Purposeful Marketing Visual Asset (ADR-0002 / Q2).
|
|
344
|
+
* gradientPolicy = "approved-visual-asset".
|
|
345
|
+
* Provides a restrained, calibrated warm bronze horizon wash on Deep Espresso marketing stages,
|
|
346
|
+
* keeping text foreground contrast >= 14:1 across the entire reading plane.
|
|
347
|
+
*/
|
|
348
|
+
export interface WarmHorizonWashProps {
|
|
349
|
+
children: React.ReactNode;
|
|
350
|
+
intensity?: "subtle" | "editorial";
|
|
351
|
+
style?: React.CSSProperties;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
export function WarmHorizonWash({ children, intensity = "subtle", style }: WarmHorizonWashProps) {
|
|
355
|
+
const alpha = intensity === "editorial" ? 0.22 : 0.14;
|
|
356
|
+
return (
|
|
357
|
+
<div
|
|
358
|
+
data-millar-approved-gradient="warm-horizon-wash"
|
|
359
|
+
style={{
|
|
360
|
+
position: "relative",
|
|
361
|
+
backgroundColor: "var(--bg-stage-dark)",
|
|
362
|
+
color: "var(--fg-on-stage-dark)",
|
|
363
|
+
borderRadius: "var(--radius-xl, 22px)",
|
|
364
|
+
border: "1px solid var(--border-stage-dark)",
|
|
365
|
+
overflow: "hidden",
|
|
366
|
+
backgroundImage: `radial-gradient(ellipse 75% 55% at 50% 0%, rgba(209, 160, 104, ${alpha}), transparent 70%)`,
|
|
367
|
+
...style,
|
|
368
|
+
}}
|
|
369
|
+
>
|
|
370
|
+
{children}
|
|
371
|
+
</div>
|
|
372
|
+
);
|
|
373
|
+
}
|