@datalayer/design 1.0.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.
Files changed (119) hide show
  1. package/LICENSE +23 -0
  2. package/README.md +5 -0
  3. package/lib/App.d.ts +2 -0
  4. package/lib/App.js +25 -0
  5. package/lib/DatalayerIcons.d.ts +2 -0
  6. package/lib/DatalayerIcons.js +169 -0
  7. package/lib/footer/MinimalFooter.d.ts +38 -0
  8. package/lib/footer/MinimalFooter.js +160 -0
  9. package/lib/footer/component-helpers.d.ts +33 -0
  10. package/lib/footer/component-helpers.js +19 -0
  11. package/lib/footer/index.d.ts +1 -0
  12. package/lib/footer/index.js +1 -0
  13. package/lib/index.d.ts +1 -0
  14. package/lib/index.js +1 -0
  15. package/lib/layout/SiteLayout.d.ts +2 -0
  16. package/lib/layout/SiteLayout.js +89 -0
  17. package/lib/main.d.ts +1 -0
  18. package/lib/main.js +10 -0
  19. package/lib/pages/HomePage.d.ts +2 -0
  20. package/lib/pages/HomePage.js +50 -0
  21. package/lib/pages/IconsPage.d.ts +2 -0
  22. package/lib/pages/IconsPage.js +8 -0
  23. package/lib/pages/SvgPage.d.ts +2 -0
  24. package/lib/pages/SvgPage.js +592 -0
  25. package/lib/svg/SvgAboutHero.d.ts +26 -0
  26. package/lib/svg/SvgAboutHero.js +76 -0
  27. package/lib/svg/SvgAgentRuntimes.d.ts +7 -0
  28. package/lib/svg/SvgAgentRuntimes.js +26 -0
  29. package/lib/svg/SvgAgentsHero.d.ts +13 -0
  30. package/lib/svg/SvgAgentsHero.js +55 -0
  31. package/lib/svg/SvgAgentsHomeHero.d.ts +4 -0
  32. package/lib/svg/SvgAgentsHomeHero.js +194 -0
  33. package/lib/svg/SvgBlackSnake.d.ts +5 -0
  34. package/lib/svg/SvgBlackSnake.js +76 -0
  35. package/lib/svg/SvgBlogHero.d.ts +7 -0
  36. package/lib/svg/SvgBlogHero.js +18 -0
  37. package/lib/svg/SvgCareersHero.d.ts +23 -0
  38. package/lib/svg/SvgCareersHero.js +97 -0
  39. package/lib/svg/SvgCellArtifact.d.ts +8 -0
  40. package/lib/svg/SvgCellArtifact.js +15 -0
  41. package/lib/svg/SvgChangelogHero.d.ts +23 -0
  42. package/lib/svg/SvgChangelogHero.js +128 -0
  43. package/lib/svg/SvgCommunityHero.d.ts +5 -0
  44. package/lib/svg/SvgCommunityHero.js +170 -0
  45. package/lib/svg/SvgContactHero.d.ts +11 -0
  46. package/lib/svg/SvgContactHero.js +19 -0
  47. package/lib/svg/SvgDataset.d.ts +5 -0
  48. package/lib/svg/SvgDataset.js +13 -0
  49. package/lib/svg/SvgDiscord.d.ts +12 -0
  50. package/lib/svg/SvgDiscord.js +20 -0
  51. package/lib/svg/SvgDocumentArtifact.d.ts +8 -0
  52. package/lib/svg/SvgDocumentArtifact.js +15 -0
  53. package/lib/svg/SvgEarthHero.d.ts +8 -0
  54. package/lib/svg/SvgEarthHero.js +23 -0
  55. package/lib/svg/SvgEventsHero.d.ts +16 -0
  56. package/lib/svg/SvgEventsHero.js +42 -0
  57. package/lib/svg/SvgFastA2ADonation.d.ts +5 -0
  58. package/lib/svg/SvgFastA2ADonation.js +13 -0
  59. package/lib/svg/SvgIndividualsAndTeams.d.ts +11 -0
  60. package/lib/svg/SvgIndividualsAndTeams.js +26 -0
  61. package/lib/svg/SvgIntegrationsHero.d.ts +22 -0
  62. package/lib/svg/SvgIntegrationsHero.js +67 -0
  63. package/lib/svg/SvgInvites.d.ts +11 -0
  64. package/lib/svg/SvgInvites.js +19 -0
  65. package/lib/svg/SvgJoin.d.ts +19 -0
  66. package/lib/svg/SvgJoin.js +95 -0
  67. package/lib/svg/SvgJoinConfirm.d.ts +16 -0
  68. package/lib/svg/SvgJoinConfirm.js +34 -0
  69. package/lib/svg/SvgJupyterEmbed.d.ts +7 -0
  70. package/lib/svg/SvgJupyterEmbed.js +15 -0
  71. package/lib/svg/SvgJupyterMcp.d.ts +16 -0
  72. package/lib/svg/SvgJupyterMcp.js +27 -0
  73. package/lib/svg/SvgLines.d.ts +16 -0
  74. package/lib/svg/SvgLines.js +28 -0
  75. package/lib/svg/SvgLinesLogo.d.ts +10 -0
  76. package/lib/svg/SvgLinesLogo.js +59 -0
  77. package/lib/svg/SvgLoginHero.d.ts +12 -0
  78. package/lib/svg/SvgLoginHero.js +23 -0
  79. package/lib/svg/SvgNotFound.d.ts +12 -0
  80. package/lib/svg/SvgNotFound.js +23 -0
  81. package/lib/svg/SvgNotebookArtifact.d.ts +8 -0
  82. package/lib/svg/SvgNotebookArtifact.js +15 -0
  83. package/lib/svg/SvgOrganizationsAtScale.d.ts +11 -0
  84. package/lib/svg/SvgOrganizationsAtScale.js +19 -0
  85. package/lib/svg/SvgPixel1.d.ts +5 -0
  86. package/lib/svg/SvgPixel1.js +85 -0
  87. package/lib/svg/SvgPixel2.d.ts +5 -0
  88. package/lib/svg/SvgPixel2.js +71 -0
  89. package/lib/svg/SvgPricingHero.d.ts +11 -0
  90. package/lib/svg/SvgPricingHero.js +19 -0
  91. package/lib/svg/SvgPrivacyHero.d.ts +11 -0
  92. package/lib/svg/SvgPrivacyHero.js +22 -0
  93. package/lib/svg/SvgPublication.d.ts +5 -0
  94. package/lib/svg/SvgPublication.js +13 -0
  95. package/lib/svg/SvgRadar.d.ts +8 -0
  96. package/lib/svg/SvgRadar.js +92 -0
  97. package/lib/svg/SvgResearchHero.d.ts +17 -0
  98. package/lib/svg/SvgResearchHero.js +61 -0
  99. package/lib/svg/SvgSpitfire.d.ts +11 -0
  100. package/lib/svg/SvgSpitfire.js +79 -0
  101. package/lib/svg/SvgStarsHero.d.ts +15 -0
  102. package/lib/svg/SvgStarsHero.js +50 -0
  103. package/lib/svg/SvgTermsHero.d.ts +11 -0
  104. package/lib/svg/SvgTermsHero.js +22 -0
  105. package/lib/svg/SvgTutorialsHero.d.ts +16 -0
  106. package/lib/svg/SvgTutorialsHero.js +27 -0
  107. package/lib/svg/SvgUnauthorized.d.ts +12 -0
  108. package/lib/svg/SvgUnauthorized.js +23 -0
  109. package/lib/svg/SvgUsecasesHero.d.ts +16 -0
  110. package/lib/svg/SvgUsecasesHero.js +46 -0
  111. package/lib/svg/SvgVSCodeExtension.d.ts +7 -0
  112. package/lib/svg/SvgVSCodeExtension.js +15 -0
  113. package/lib/svg/gallery.d.ts +2 -0
  114. package/lib/svg/gallery.js +49 -0
  115. package/lib/svg/images/datalayer-1.2.0-black-snake.svg +1 -0
  116. package/lib/svg/images/datalayer-1.3.0-spitfire.svg +1 -0
  117. package/lib/svg/index.d.ts +45 -0
  118. package/lib/svg/index.js +50 -0
  119. package/package.json +50 -0
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Wide, tall SVG hero background for the About Datalayer page.
3
+ *
4
+ * Visual motif — **"Pop Dots"**: inspired by the bold graphic language of
5
+ * 1960s pop art — Ben-Day dot halftone patterns at varying densities,
6
+ * thick black contour outlines, starburst / action-line explosions,
7
+ * bold colour-blocked panels, speech-bubble shapes, and comic-style
8
+ * speed lines.
9
+ *
10
+ * All artwork is original geometric abstraction — no reproduction of
11
+ * any existing artwork.
12
+ *
13
+ * Completely distinct from all other hero flavours:
14
+ * Home → constellation / orbital / hex grid
15
+ * Blog/Login/… → diagonals / radial circles
16
+ * Usecases → aurora bands / vertical pillars / concentric rects / stars
17
+ * Integrations → circuit traces / plus markers / chip rects / chevrons
18
+ * Changelog → sinusoidal helices / hexagons / triangles / version bars
19
+ * This → Ben-Day dots / starbursts / bold outlines / panels
20
+ *
21
+ * Uses a 1400×560 viewBox.
22
+ */
23
+ import { type ColorPalette } from '@datalayer/primer-addons';
24
+ export declare function SvgAboutHero({ palette: paletteProp }?: {
25
+ palette?: ColorPalette;
26
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,76 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright (c) 2022-2026 Datalayer, Inc.
4
+ *
5
+ * Datalayer License
6
+ */
7
+ /**
8
+ * Wide, tall SVG hero background for the About Datalayer page.
9
+ *
10
+ * Visual motif — **"Pop Dots"**: inspired by the bold graphic language of
11
+ * 1960s pop art — Ben-Day dot halftone patterns at varying densities,
12
+ * thick black contour outlines, starburst / action-line explosions,
13
+ * bold colour-blocked panels, speech-bubble shapes, and comic-style
14
+ * speed lines.
15
+ *
16
+ * All artwork is original geometric abstraction — no reproduction of
17
+ * any existing artwork.
18
+ *
19
+ * Completely distinct from all other hero flavours:
20
+ * Home → constellation / orbital / hex grid
21
+ * Blog/Login/… → diagonals / radial circles
22
+ * Usecases → aurora bands / vertical pillars / concentric rects / stars
23
+ * Integrations → circuit traces / plus markers / chip rects / chevrons
24
+ * Changelog → sinusoidal helices / hexagons / triangles / version bars
25
+ * This → Ben-Day dots / starbursts / bold outlines / panels
26
+ *
27
+ * Uses a 1400×560 viewBox.
28
+ */
29
+ import { useColorPalette, LightBoostFilter } from '@datalayer/primer-addons';
30
+ /* ── Inline path helpers ──────────────────────────────────────────── */
31
+ /**
32
+ * Starburst / action-explosion centred at (cx, cy).
33
+ * `n` spikes, outer radius `ro`, inner radius `ri`.
34
+ */
35
+ const starburst = (cx, cy, n, ro, ri) => {
36
+ const pts = [];
37
+ for (let i = 0; i < n * 2; i++) {
38
+ const a = (Math.PI / n) * i - Math.PI / 2;
39
+ const r = i % 2 === 0 ? ro : ri;
40
+ pts.push(`${(cx + r * Math.cos(a)).toFixed(1)},${(cy + r * Math.sin(a)).toFixed(1)}`);
41
+ }
42
+ return `M${pts.join('L')}Z`;
43
+ };
44
+ /**
45
+ * Rounded speech-bubble outline (rect with pointer nub).
46
+ */
47
+ const bubble = (x, y, w, h, nubX, nubY) => `M${x + 12},${y} h${w - 24} a12,12 0 0 1 12,12 v${h - 24} a12,12 0 0 1 -12,12 ` +
48
+ `h${-(w / 2 - 18)} l${-8},${nubY > 0 ? 16 : -16} l${-8},${nubY > 0 ? -16 : 16} ` +
49
+ `h${-(w / 2 - 18)} a12,12 0 0 1 -12,-12 v${-(h - 24)} a12,12 0 0 1 12,-12 Z`;
50
+ /* ── Component ────────────────────────────────────────────────────── */
51
+ export function SvgAboutHero({ palette: paletteProp } = {}) {
52
+ const auto = useColorPalette();
53
+ const p = paletteProp ?? auto;
54
+ /* Outline colour: dark in both modes but adjusted for readability */
55
+ const outline = p.isLight ? '#1b1f24' : '#c9d1d9';
56
+ return (_jsxs("svg", { viewBox: "0 0 1400 560", xmlns: "http://www.w3.org/2000/svg", preserveAspectRatio: "xMidYMid slice", style: { width: '100%', height: '100%', display: 'block', position: 'absolute', inset: 0 }, children: [_jsxs("defs", { children: [_jsx(LightBoostFilter, {}), _jsx("pattern", { id: "abDot1", width: "8", height: "8", patternUnits: "userSpaceOnUse", children: _jsx("circle", { cx: "4", cy: "4", r: "2.2", fill: p.blaze, opacity: "0.35" }) }), _jsx("pattern", { id: "abDot2", width: "10", height: "10", patternUnits: "userSpaceOnUse", children: _jsx("circle", { cx: "5", cy: "5", r: "2.8", fill: p.surge, opacity: "0.30" }) }), _jsx("pattern", { id: "abDot3", width: "12", height: "12", patternUnits: "userSpaceOnUse", children: _jsx("circle", { cx: "6", cy: "6", r: "3.2", fill: p.gold, opacity: "0.32" }) }), _jsx("pattern", { id: "abDot4", width: "6", height: "6", patternUnits: "userSpaceOnUse", children: _jsx("circle", { cx: "3", cy: "3", r: "1.5", fill: p.glow, opacity: "0.28" }) }), _jsx("pattern", { id: "abDot5", width: "9", height: "9", patternUnits: "userSpaceOnUse", children: _jsx("circle", { cx: "4.5", cy: "4.5", r: "2.5", fill: p.pop, opacity: "0.30" }) }), _jsx("pattern", { id: "abHalf", width: "7", height: "7", patternUnits: "userSpaceOnUse", children: _jsx("circle", { cx: "3.5", cy: "3.5", r: "1.0", fill: p.primary, opacity: "0.07" }) }), _jsxs("linearGradient", { id: "abPanelG1", x1: "0", y1: "0", x2: "1", y2: "1", children: [_jsx("stop", { offset: "0%", stopColor: p.blaze, stopOpacity: "0.18" }), _jsx("stop", { offset: "100%", stopColor: p.gold, stopOpacity: "0.10" })] }), _jsxs("linearGradient", { id: "abPanelG2", x1: "0", y1: "0", x2: "1", y2: "1", children: [_jsx("stop", { offset: "0%", stopColor: p.surge, stopOpacity: "0.16" }), _jsx("stop", { offset: "100%", stopColor: p.pop, stopOpacity: "0.10" })] }), _jsxs("linearGradient", { id: "abPanelG3", x1: "1", y1: "0", x2: "0", y2: "1", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0.18" }), _jsx("stop", { offset: "100%", stopColor: p.spark, stopOpacity: "0.08" })] }), _jsxs("radialGradient", { id: "abGlow", cx: "50%", cy: "45%", r: "50%", children: [_jsx("stop", { offset: "0%", stopColor: "#ffffff", stopOpacity: "0.06" }), _jsx("stop", { offset: "30%", stopColor: p.glow, stopOpacity: "0.08" }), _jsx("stop", { offset: "70%", stopColor: p.pop, stopOpacity: "0.03" }), _jsx("stop", { offset: "100%", stopColor: p.pop, stopOpacity: "0" })] })] }), _jsx("rect", { width: "1400", height: "560", fill: p.bg }), _jsxs("g", { filter: p.isLight ? 'url(#svgLightBoost)' : undefined, children: [_jsx("rect", { width: "1400", height: "560", fill: "url(#abHalf)" }), _jsx("rect", { x: "30", y: "25", width: "380", height: "230", rx: "6", fill: "url(#abPanelG1)" }), _jsx("rect", { x: "30", y: "25", width: "380", height: "230", rx: "6", fill: "url(#abDot1)" }), _jsx("rect", { x: "30", y: "25", width: "380", height: "230", rx: "6", fill: "none", stroke: outline, strokeOpacity: "0.12", strokeWidth: "2.5" }), _jsx("rect", { x: "990", y: "20", width: "380", height: "240", rx: "6", fill: "url(#abPanelG2)" }), _jsx("rect", { x: "990", y: "20", width: "380", height: "240", rx: "6", fill: "url(#abDot2)" }), _jsx("rect", { x: "990", y: "20", width: "380", height: "240", rx: "6", fill: "none", stroke: outline, strokeOpacity: "0.12", strokeWidth: "2.5" }), _jsx("rect", { x: "50", y: "310", width: "340", height: "220", rx: "6", fill: "url(#abPanelG3)" }), _jsx("rect", { x: "50", y: "310", width: "340", height: "220", rx: "6", fill: "url(#abDot4)" }), _jsx("rect", { x: "50", y: "310", width: "340", height: "220", rx: "6", fill: "none", stroke: outline, strokeOpacity: "0.10", strokeWidth: "2" }), _jsx("rect", { x: "1020", y: "300", width: "350", height: "230", rx: "6", fill: "url(#abPanelG1)" }), _jsx("rect", { x: "1020", y: "300", width: "350", height: "230", rx: "6", fill: "url(#abDot3)" }), _jsx("rect", { x: "1020", y: "300", width: "350", height: "230", rx: "6", fill: "none", stroke: outline, strokeOpacity: "0.10", strokeWidth: "2" }), _jsx("rect", { x: "480", y: "150", width: "440", height: "260", rx: "8", fill: "url(#abPanelG2)" }), _jsx("rect", { x: "480", y: "150", width: "440", height: "260", rx: "8", fill: "url(#abDot5)" }), _jsx("rect", { x: "480", y: "150", width: "440", height: "260", rx: "8", fill: "none", stroke: outline, strokeOpacity: "0.14", strokeWidth: "3" }), _jsx("path", { d: starburst(200, 135, 12, 65, 35), fill: p.gold, opacity: "0.14" }), _jsx("path", { d: starburst(200, 135, 12, 65, 35), fill: "none", stroke: outline, strokeOpacity: "0.10", strokeWidth: "1.5" }), _jsx("path", { d: starburst(1180, 140, 10, 55, 28), fill: p.blaze, opacity: "0.12" }), _jsx("path", { d: starburst(1180, 140, 10, 55, 28), fill: "none", stroke: outline, strokeOpacity: "0.10", strokeWidth: "1.5" }), _jsx("path", { d: starburst(700, 280, 16, 90, 50), fill: p.glow, opacity: "0.10" }), _jsx("path", { d: starburst(700, 280, 16, 90, 50), fill: "none", stroke: outline, strokeOpacity: "0.12", strokeWidth: "2" }), _jsx("path", { d: starburst(150, 420, 10, 50, 26), fill: p.pop, opacity: "0.11" }), _jsx("path", { d: starburst(150, 420, 10, 50, 26), fill: "none", stroke: outline, strokeOpacity: "0.08", strokeWidth: "1.2" }), _jsx("path", { d: starburst(1250, 420, 11, 52, 28), fill: p.surge, opacity: "0.12" }), _jsx("path", { d: starburst(1250, 420, 11, 52, 28), fill: "none", stroke: outline, strokeOpacity: "0.08", strokeWidth: "1.2" }), _jsx("path", { d: bubble(440, 60, 180, 70, 0, 1), fill: p.spark, opacity: "0.08" }), _jsx("path", { d: bubble(440, 60, 180, 70, 0, 1), fill: "none", stroke: outline, strokeOpacity: "0.10", strokeWidth: "1.8" }), _jsx("path", { d: bubble(780, 440, 200, 75, 0, 1), fill: p.flame, opacity: "0.09" }), _jsx("path", { d: bubble(780, 440, 200, 75, 0, 1), fill: "none", stroke: outline, strokeOpacity: "0.10", strokeWidth: "1.8" }), [
57
+ { y: 48, x1: 680, x2: 940, c: p.blaze },
58
+ { y: 95, x1: 30, x2: 380, c: p.surge },
59
+ { y: 175, x1: 1020, x2: 1370, c: p.glow },
60
+ { y: 280, x1: 100, x2: 440, c: p.pop },
61
+ { y: 340, x1: 700, x2: 980, c: p.flame },
62
+ { y: 465, x1: 440, x2: 720, c: p.spark },
63
+ { y: 520, x1: 1050, x2: 1350, c: p.gold },
64
+ ].map(({ y, x1, x2, c }, i) => (_jsxs("g", { children: [_jsx("line", { x1: x1, y1: y, x2: x2, y2: y, stroke: c, strokeOpacity: 0.18, strokeWidth: 2.5 }), _jsx("line", { x1: x1, y1: y, x2: x2, y2: y, stroke: outline, strokeOpacity: 0.06, strokeWidth: 3.5 })] }, `sl${i}`))), _jsx("rect", { x: "430", y: "100", width: "540", height: "360", rx: "10", fill: "none", stroke: outline, strokeOpacity: "0.06", strokeWidth: "4" }), _jsx("rect", { x: "460", y: "125", width: "480", height: "310", rx: "8", fill: "none", stroke: outline, strokeOpacity: "0.04", strokeWidth: "2.5" }), _jsx("rect", { x: "500", y: "170", width: "130", height: "100", rx: "4", fill: "url(#abDot1)", opacity: "0.6" }), _jsx("rect", { x: "770", y: "170", width: "130", height: "100", rx: "4", fill: "url(#abDot2)", opacity: "0.5" }), _jsx("rect", { x: "500", y: "290", width: "130", height: "100", rx: "4", fill: "url(#abDot3)", opacity: "0.55" }), _jsx("rect", { x: "770", y: "290", width: "130", height: "100", rx: "4", fill: "url(#abDot4)", opacity: "0.6" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#abGlow)" }), [
65
+ { x: 60, y: 60, r: 3.5, c: p.blaze, o: 0.55 },
66
+ { x: 380, y: 45, r: 3, c: p.gold, o: 0.50 },
67
+ { x: 700, y: 35, r: 4, c: p.glow, o: 0.55 },
68
+ { x: 1020, y: 50, r: 3.5, c: p.surge, o: 0.50 },
69
+ { x: 1340, y: 40, r: 3, c: p.pop, o: 0.48 },
70
+ { x: 100, y: 540, r: 3, c: p.spark, o: 0.45 },
71
+ { x: 400, y: 530, r: 3.5, c: p.flame, o: 0.50 },
72
+ { x: 700, y: 540, r: 4, c: p.blaze, o: 0.48 },
73
+ { x: 1000, y: 535, r: 3, c: p.gold, o: 0.45 },
74
+ { x: 1300, y: 540, r: 3.5, c: p.glow, o: 0.50 },
75
+ ].map(({ x, y, r, c, o }, i) => (_jsxs("g", { children: [_jsx("circle", { cx: x, cy: y, r: r + 4, fill: c, opacity: o * 0.15 }), _jsx("circle", { cx: x, cy: y, r: r, fill: c, opacity: o }), _jsx("circle", { cx: x, cy: y, r: r + 1, fill: "none", stroke: outline, strokeOpacity: 0.10, strokeWidth: 1 })] }, `dot${i}`)))] })] }));
76
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Agent Runtimes — multi-protocol architecture SVG illustration.
3
+ */
4
+ import { type ColorPalette } from '@datalayer/primer-addons';
5
+ export declare function SvgAgentRuntimes({ palette: paletteProp }?: {
6
+ palette?: ColorPalette;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,26 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright (c) 2022-2026 Datalayer, Inc.
4
+ *
5
+ * Datalayer License
6
+ */
7
+ /**
8
+ * Agent Runtimes — multi-protocol architecture SVG illustration.
9
+ */
10
+ import { useColorPalette, SharedDefs, BgGrid } from '@datalayer/primer-addons';
11
+ export function SvgAgentRuntimes({ palette: paletteProp } = {}) {
12
+ const auto = useColorPalette();
13
+ const p = paletteProp ?? auto;
14
+ return (_jsxs("svg", { viewBox: "0 0 800 400", xmlns: "http://www.w3.org/2000/svg", style: { width: '100%', height: 'auto', display: 'block' }, children: [_jsx(SharedDefs, { p: p }), _jsx("rect", { width: "800", height: "400", fill: p.bg }), _jsxs("g", { filter: p.isLight ? 'url(#svgLightBoost)' : undefined, children: [_jsx(BgGrid, {}), _jsx("rect", { x: "0", y: "374", width: "800", height: "2", fill: p.flame, opacity: "0.10" }), _jsx("rect", { x: "0", y: "376", width: "800", height: "3", fill: p.blaze, opacity: "0.12" }), _jsx("rect", { x: "0", y: "380", width: "800", height: "4", fill: p.glow, opacity: "0.14" }), _jsx("rect", { x: "0", y: "385", width: "800", height: "4", fill: p.pop, opacity: "0.18" }), _jsx("rect", { x: "0", y: "390", width: "800", height: "5", fill: p.spark, opacity: "0.22" }), _jsx("rect", { x: "0", y: "396", width: "800", height: "4", fill: p.surge, opacity: "0.26" }), _jsx("rect", { x: "0", y: "398", width: "800", height: "2", fill: p.gold, opacity: "0.14" }), _jsx("circle", { cx: "400", cy: "200", r: "70", fill: "url(#glowVivid)" }), _jsx("circle", { cx: "400", cy: "200", r: "44", fill: p.bgPanel, stroke: p.glow, strokeOpacity: "0.6", strokeWidth: "2" }), _jsx("circle", { cx: "400", cy: "200", r: "6", fill: p.glow, opacity: "0.7" }), _jsx("text", { x: "400", y: "196", fontFamily: "sans-serif", fontSize: "11", fill: p.glow, textAnchor: "middle", fontWeight: "600", children: "Agent" }), _jsx("text", { x: "400", y: "210", fontFamily: "sans-serif", fontSize: "9", fill: p.textMuted, textAnchor: "middle", children: "Runtime" }), [
15
+ { x: 140, y: 100, label: 'AG-UI', glowId: 'glowBlaze', color: 'blaze' },
16
+ { x: 660, y: 100, label: 'Vercel AI', glowId: 'glowSurge', color: 'surge' },
17
+ { x: 140, y: 300, label: 'A2A', glowId: 'glowSpark', color: 'spark' },
18
+ { x: 660, y: 300, label: 'ACP', glowId: 'glowVivid', color: 'glow' },
19
+ { x: 400, y: 56, label: 'MCP', glowId: 'glowPop', color: 'pop' },
20
+ ].map((n, i) => (_jsxs("g", { children: [_jsx("line", { x1: "400", y1: "200", x2: n.x, y2: n.y, stroke: p[n.color], strokeOpacity: "0.35", strokeWidth: "1.2", strokeDasharray: "6 4" }), _jsx("circle", { cx: n.x, cy: n.y, r: "30", fill: `url(#${n.glowId})`, opacity: "0.6" }), _jsx("rect", { x: n.x - 40, y: n.y - 16, width: "80", height: "32", rx: "6", fill: p.bgAlt, stroke: p[n.color], strokeOpacity: "0.4", strokeWidth: "1" }), _jsx("text", { x: n.x, y: n.y + 4, fontFamily: "sans-serif", fontSize: "10", fill: p.textLight, opacity: "0.8", textAnchor: "middle", children: n.label })] }, i))), [
21
+ { x: 220, y: 350, label: 'Tavily', color: p.blaze, glowId: 'glowBlaze' },
22
+ { x: 340, y: 350, label: 'LinkedIn', color: p.surge, glowId: 'glowSurge' },
23
+ { x: 460, y: 350, label: 'GitHub', color: p.glow, glowId: 'glowVivid' },
24
+ { x: 580, y: 350, label: 'Slack', color: p.spark, glowId: 'glowSpark' },
25
+ ].map((t, i) => (_jsxs("g", { children: [_jsx("line", { x1: t.x, y1: t.y - 16, x2: "400", y2: "244", stroke: t.color, strokeOpacity: "0.3", strokeWidth: "1" }), _jsx("circle", { cx: t.x, cy: t.y, r: "20", fill: `url(#${t.glowId})`, opacity: "0.5" }), _jsx("rect", { x: t.x - 32, y: t.y - 12, width: "64", height: "24", rx: "4", fill: p.bgAlt, stroke: t.color, strokeOpacity: "0.35", strokeWidth: "1" }), _jsx("text", { x: t.x, y: t.y + 3, fontFamily: "monospace", fontSize: "9", fill: t.color, opacity: "0.85", textAnchor: "middle", children: t.label })] }, `tool-${i}`)))] })] }));
26
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Wide, abstract SVG hero background for AI agents pages.
3
+ *
4
+ * Inspired by SvgPrivacyHero colour dynamics, but with an AI-agents motif:
5
+ * - central orchestrator core
6
+ * - specialist agent nodes (tools/memory/model/planner)
7
+ * - signal lanes and token streams
8
+ * - side swarms to evoke multi-agent collaboration
9
+ */
10
+ import { type ColorPalette } from '@datalayer/primer-addons';
11
+ export declare function SvgAgentsHero({ palette: paletteProp }?: {
12
+ palette?: ColorPalette;
13
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,55 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright (c) 2022-2026 Datalayer, Inc.
4
+ *
5
+ * Datalayer License
6
+ */
7
+ /**
8
+ * Wide, abstract SVG hero background for AI agents pages.
9
+ *
10
+ * Inspired by SvgPrivacyHero colour dynamics, but with an AI-agents motif:
11
+ * - central orchestrator core
12
+ * - specialist agent nodes (tools/memory/model/planner)
13
+ * - signal lanes and token streams
14
+ * - side swarms to evoke multi-agent collaboration
15
+ */
16
+ import { useColorPalette, LightBoostFilter } from '@datalayer/primer-addons';
17
+ export function SvgAgentsHero({ palette: paletteProp } = {}) {
18
+ const auto = useColorPalette();
19
+ const p = paletteProp ?? auto;
20
+ const accentA = p.isLight ? p.surge : p.flame;
21
+ const accentB = p.isLight ? p.spark : p.gold;
22
+ const accentC = p.isLight ? p.pop : p.blaze;
23
+ const leftGlow = p.isLight ? p.surge : p.pop;
24
+ const rightGlow = p.isLight ? p.glow : p.surge;
25
+ const tokenLeft = p.isLight ? p.surge : p.pop;
26
+ const tokenRight = p.isLight ? p.spark : p.surge;
27
+ const connectorOpacityLeft = p.isLight ? 0.78 : 0.20;
28
+ const connectorOpacityRight = p.isLight ? 0.50 : 0.20;
29
+ const swarmConnectorOpacityLeft = p.isLight ? 0.52 : 0.08;
30
+ const swarmConnectorOpacityRight = p.isLight ? 0.26 : 0.08;
31
+ const pathConnectorOpacity = p.isLight ? 0.24 : 0.11;
32
+ const connectorStrokeWidthLeft = p.isLight ? 1.45 : 1.0;
33
+ const connectorStrokeWidthRight = p.isLight ? 1.2 : 1.0;
34
+ const swarmConnectorStrokeWidthLeft = p.isLight ? 1.2 : 0.8;
35
+ const swarmConnectorStrokeWidthRight = p.isLight ? 0.9 : 0.8;
36
+ const pathConnectorStrokeWidth = p.isLight ? 1.25 : 1.0;
37
+ const nodeLabelFontSize = 15;
38
+ const nodeLabelOpacity = p.isLight ? 0.82 : 0.46;
39
+ const ringNodes = [
40
+ { x: 700, y: 78, label: 'MODEL', c: p.surge },
41
+ { x: 830, y: 140, label: 'TOOLS', c: p.pop },
42
+ { x: 865, y: 250, label: 'MEM', c: p.spark },
43
+ { x: 770, y: 335, label: 'SKILLS', c: accentA },
44
+ { x: 630, y: 335, label: 'EVAL', c: accentB },
45
+ { x: 535, y: 250, label: 'GUARD', c: accentC },
46
+ { x: 570, y: 140, label: 'MCP', c: p.glow },
47
+ ];
48
+ const leftSwarm = [
49
+ [170, 105], [220, 140], [190, 190], [250, 220], [185, 265], [240, 300],
50
+ ];
51
+ const rightSwarm = [
52
+ [1230, 105], [1180, 140], [1210, 190], [1150, 220], [1215, 265], [1160, 300],
53
+ ];
54
+ return (_jsxs("svg", { viewBox: "0 0 1400 420", xmlns: "http://www.w3.org/2000/svg", preserveAspectRatio: "xMidYMid slice", style: { width: '100%', height: '100%', display: 'block', position: 'absolute', inset: 0 }, children: [_jsxs("defs", { children: [_jsx(LightBoostFilter, {}), _jsxs("radialGradient", { id: "agCenterGlow", cx: "50%", cy: "50%", r: "50%", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0.36" }), _jsx("stop", { offset: "55%", stopColor: p.glow, stopOpacity: "0.08" }), _jsx("stop", { offset: "100%", stopColor: p.glow, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "agGlowCore", cx: "50%", cy: "48%", r: "50%", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0.56" }), _jsx("stop", { offset: "35%", stopColor: p.glow, stopOpacity: "0.18" }), _jsx("stop", { offset: "100%", stopColor: p.glow, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "agGlowLeft", cx: "18%", cy: "30%", r: "42%", children: [_jsx("stop", { offset: "0%", stopColor: leftGlow, stopOpacity: "0.40" }), _jsx("stop", { offset: "48%", stopColor: leftGlow, stopOpacity: "0.12" }), _jsx("stop", { offset: "100%", stopColor: leftGlow, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "agGlowRight", cx: "82%", cy: "30%", r: "42%", children: [_jsx("stop", { offset: "0%", stopColor: rightGlow, stopOpacity: "0.40" }), _jsx("stop", { offset: "48%", stopColor: rightGlow, stopOpacity: "0.12" }), _jsx("stop", { offset: "100%", stopColor: rightGlow, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "agGlowBottomLeft", cx: "22%", cy: "78%", r: "40%", children: [_jsx("stop", { offset: "0%", stopColor: p.surge, stopOpacity: "0.34" }), _jsx("stop", { offset: "50%", stopColor: p.surge, stopOpacity: "0.10" }), _jsx("stop", { offset: "100%", stopColor: p.surge, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "agGlowBottomRight", cx: "78%", cy: "78%", r: "40%", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0.34" }), _jsx("stop", { offset: "50%", stopColor: p.glow, stopOpacity: "0.10" }), _jsx("stop", { offset: "100%", stopColor: p.glow, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "agGlowTop", cx: "50%", cy: "8%", r: "38%", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0.30" }), _jsx("stop", { offset: "52%", stopColor: p.glow, stopOpacity: "0.08" }), _jsx("stop", { offset: "100%", stopColor: p.glow, stopOpacity: "0" })] }), _jsxs("linearGradient", { id: "agShimmer", x1: "0.05", y1: "0.92", x2: "0.95", y2: "0.08", children: [_jsx("stop", { offset: "0%", stopColor: p.surge, stopOpacity: "0" }), _jsx("stop", { offset: "22%", stopColor: p.surge, stopOpacity: "0.12" }), _jsx("stop", { offset: "44%", stopColor: p.glow, stopOpacity: "0.16" }), _jsx("stop", { offset: "60%", stopColor: "#ffffff", stopOpacity: "0.05" }), _jsx("stop", { offset: "78%", stopColor: p.glow, stopOpacity: "0.14" }), _jsx("stop", { offset: "100%", stopColor: p.surge, stopOpacity: "0" })] }), _jsx("pattern", { id: "agDots", width: "28", height: "28", patternUnits: "userSpaceOnUse", children: _jsx("circle", { cx: "1", cy: "1", r: "0.5", fill: p.glow, opacity: "0.09" }) }), _jsx("pattern", { id: "agGrid", width: "42", height: "42", patternUnits: "userSpaceOnUse", children: _jsx("path", { d: "M42 0H0V42", fill: "none", stroke: p.glow, strokeOpacity: "0.05", strokeWidth: "0.7" }) }), _jsxs("pattern", { id: "agTriMesh", width: "48", height: "42", patternUnits: "userSpaceOnUse", patternTransform: "rotate(5)", children: [_jsx("polygon", { points: "24,0 48,42 0,42", fill: "none", stroke: p.glow, strokeOpacity: "0.045", strokeWidth: "0.45" }), _jsx("polygon", { points: "24,42 48,0 0,0", fill: "none", stroke: p.surge, strokeOpacity: "0.03", strokeWidth: "0.35" })] }), _jsxs("pattern", { id: "agRings", width: "60", height: "60", patternUnits: "userSpaceOnUse", children: [_jsx("circle", { cx: "30", cy: "30", r: "19", fill: "none", stroke: p.surge, strokeOpacity: "0.03", strokeWidth: "0.35" }), _jsx("circle", { cx: "30", cy: "30", r: "10", fill: "none", stroke: p.glow, strokeOpacity: "0.025", strokeWidth: "0.3" })] }), _jsxs("linearGradient", { id: "agLane", x1: "0", y1: "0", x2: "1", y2: "0", children: [_jsx("stop", { offset: "0%", stopColor: p.isLight ? p.surge : p.pop, stopOpacity: "0" }), _jsx("stop", { offset: "50%", stopColor: p.glow, stopOpacity: "0.20" }), _jsx("stop", { offset: "100%", stopColor: p.surge, stopOpacity: "0" })] })] }), _jsx("rect", { width: "1400", height: "420", fill: p.bg }), _jsxs("g", { filter: p.isLight ? 'url(#svgLightBoost)' : undefined, children: [_jsx("rect", { width: "1400", height: "420", fill: "url(#agDots)" }), _jsx("rect", { width: "1400", height: "420", fill: "url(#agGrid)" }), _jsx("rect", { width: "1400", height: "420", fill: "url(#agTriMesh)" }), _jsx("rect", { width: "1400", height: "420", fill: "url(#agRings)" }), _jsx("rect", { width: "1400", height: "420", fill: "url(#agGlowCore)" }), _jsx("rect", { width: "1400", height: "420", fill: "url(#agGlowLeft)" }), _jsx("rect", { width: "1400", height: "420", fill: "url(#agGlowRight)" }), _jsx("rect", { width: "1400", height: "420", fill: "url(#agGlowBottomLeft)" }), _jsx("rect", { width: "1400", height: "420", fill: "url(#agGlowBottomRight)" }), _jsx("rect", { width: "1400", height: "420", fill: "url(#agGlowTop)" }), _jsx("rect", { width: "1400", height: "420", fill: "url(#agShimmer)" }), _jsx("line", { x1: "120", y1: "210", x2: "1280", y2: "210", stroke: "url(#agLane)", strokeWidth: "26" }), _jsx("circle", { cx: "700", cy: "210", r: "150", fill: "none", stroke: p.glow, strokeOpacity: "0.10", strokeWidth: "1.4", strokeDasharray: "8 6" }), _jsx("circle", { cx: "700", cy: "210", r: "116", fill: "none", stroke: p.primary, strokeOpacity: "0.12", strokeWidth: "1.2", strokeDasharray: "5 4" }), _jsx("circle", { cx: "700", cy: "210", r: "82", fill: "none", stroke: p.primary, strokeOpacity: "0.18", strokeWidth: "1.0" }), _jsx("circle", { cx: "700", cy: "210", r: "150", fill: "url(#agCenterGlow)" }), _jsx("circle", { cx: "700", cy: "210", r: "64", fill: "none", stroke: p.primary, strokeOpacity: "0.28", strokeWidth: "1.4" }), _jsx("circle", { cx: "700", cy: "210", r: "28", fill: p.glow, opacity: "0.16" }), ringNodes.map((node, i) => (_jsxs("g", { children: [_jsx("line", { x1: "700", y1: "210", x2: node.x, y2: node.y, stroke: node.c, strokeOpacity: node.x < 700 ? connectorOpacityLeft : connectorOpacityRight, strokeWidth: node.x < 700 ? connectorStrokeWidthLeft : connectorStrokeWidthRight, strokeDasharray: i % 2 === 0 ? '4 4' : '6 5' }), _jsx("circle", { cx: node.x, cy: node.y, r: "8", fill: node.c, opacity: "0.42" }), _jsx("circle", { cx: node.x, cy: node.y, r: "16", fill: node.c, opacity: "0.08" }), _jsx("text", { x: node.x + 12, y: node.y + 3, fill: node.c, opacity: nodeLabelOpacity, fontSize: nodeLabelFontSize, fontWeight: 700, fontFamily: "monospace", children: node.label })] }, node.label))), leftSwarm.map(([x, y], i) => (_jsxs("g", { children: [_jsx("circle", { cx: x, cy: y, r: "6", fill: p.pop, opacity: 0.22 + (i % 2) * 0.07 }), _jsx("circle", { cx: x, cy: y, r: "14", fill: p.pop, opacity: "0.05" }), _jsx("line", { x1: x, y1: y, x2: "700", y2: "210", stroke: p.pop, strokeOpacity: swarmConnectorOpacityLeft, strokeWidth: swarmConnectorStrokeWidthLeft })] }, `ls-${i}`))), rightSwarm.map(([x, y], i) => (_jsxs("g", { children: [_jsx("circle", { cx: x, cy: y, r: "6", fill: p.surge, opacity: 0.22 + (i % 2) * 0.07 }), _jsx("circle", { cx: x, cy: y, r: "14", fill: p.surge, opacity: "0.05" }), _jsx("line", { x1: x, y1: y, x2: "700", y2: "210", stroke: p.surge, strokeOpacity: swarmConnectorOpacityRight, strokeWidth: swarmConnectorStrokeWidthRight })] }, `rs-${i}`))), [90, 120, 150, 180, 210, 240, 270, 300, 330, 360].map((y, i) => (_jsx("text", { x: "80", y: y, fill: tokenLeft, opacity: 0.05 + (i % 3) * 0.02, fontSize: "7.5", fontFamily: "monospace", children: ['A1', '7F', '3C', 'D2', '8B', 'E9', '41', 'C7', '5A', '0E'][i] }, `tok-l-${i}`))), [75, 105, 135, 165, 195, 225, 255, 285, 315, 345].map((y, i) => (_jsx("text", { x: "1280", y: y, fill: tokenRight, opacity: 0.05 + (i % 3) * 0.02, fontSize: "7.5", fontFamily: "monospace", children: ['9D', '24', 'B0', '6E', 'FA', '13', 'C5', '7A', 'E2', '48'][i] }, `tok-r-${i}`))), !p.isLight && (_jsx("path", { d: "M120 320 C260 240, 420 260, 560 180", fill: "none", stroke: p.blaze, strokeOpacity: pathConnectorOpacity, strokeWidth: pathConnectorStrokeWidth, strokeDasharray: "5 5" })), _jsx("path", { d: "M840 170 C980 90, 1140 110, 1280 40", fill: "none", stroke: accentB, strokeOpacity: pathConnectorOpacity, strokeWidth: pathConnectorStrokeWidth, strokeDasharray: "5 5" }), _jsx("circle", { cx: "58", cy: "58", r: "1.5", fill: p.glow, opacity: "0.45" }), _jsx("circle", { cx: "240", cy: "372", r: "1.7", fill: p.pop, opacity: "0.42" }), _jsx("circle", { cx: "480", cy: "52", r: "1.4", fill: p.spark, opacity: "0.46" }), _jsx("circle", { cx: "930", cy: "52", r: "1.6", fill: p.surge, opacity: "0.45" }), _jsx("circle", { cx: "1160", cy: "356", r: "1.6", fill: accentA, opacity: "0.40" }), _jsx("circle", { cx: "1342", cy: "336", r: "1.3", fill: accentB, opacity: "0.40" }), _jsx("line", { x1: "180", y1: "0", x2: "640", y2: "420", stroke: p.glow, strokeOpacity: "0.07", strokeWidth: "34" }), _jsx("line", { x1: "560", y1: "0", x2: "1040", y2: "420", stroke: p.surge, strokeOpacity: "0.06", strokeWidth: "28" }), _jsx("line", { x1: "920", y1: "0", x2: "1400", y2: "360", stroke: p.isLight ? p.surge : p.pop, strokeOpacity: "0.06", strokeWidth: "30" })] })] }));
55
+ }
@@ -0,0 +1,4 @@
1
+ import { type ColorPalette } from '@datalayer/primer-addons';
2
+ export declare function SvgAgentsHomeHero({ palette: paletteProp }?: {
3
+ palette?: ColorPalette;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,194 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright (c) 2022-2026 Datalayer, Inc.
4
+ *
5
+ * Datalayer License
6
+ */
7
+ /**
8
+ * Wide, tall SVG hero background for the Agents home / landing page.
9
+ *
10
+ * Visual motif: a vibrant multi-agent collaboration network — seven named
11
+ * "agent" nodes arranged across the canvas, each with a unique colour, a
12
+ * glowing halo, and a label. Curved bidirectional arcs connect pairs of
13
+ * agents to evoke active message-passing and collaboration. A central
14
+ * orchestrator node anchors the composition. Concentric coordination
15
+ * rings, flowing data-stream curves, message-pulse dots along arcs, and
16
+ * a honeycomb + dot grid underlay complete the picture.
17
+ *
18
+ * Uses a 1400×560 viewBox to fill the hero's minHeight: 560.
19
+ */
20
+ import { useRef, useEffect } from 'react';
21
+ import { useColorPalette, LightBoostFilter } from '@datalayer/primer-addons';
22
+ /**
23
+ * Simple seeded PRNG (mulberry32) — deterministic per session but
24
+ * different across page loads so the animation never looks the same.
25
+ */
26
+ function createRng(seed) {
27
+ let s = seed | 0;
28
+ return () => {
29
+ s = (s + 0x6d2b79f5) | 0;
30
+ let t = Math.imul(s ^ (s >>> 15), 1 | s);
31
+ t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t;
32
+ return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
33
+ };
34
+ }
35
+ const AGENTS = [
36
+ { x: 700, y: 260, label: 'Orchestrator', colorKey: 'glow' },
37
+ { x: 240, y: 150, label: 'Researcher', colorKey: 'pop' },
38
+ { x: 420, y: 380, label: 'Analyst', colorKey: 'spark' },
39
+ { x: 980, y: 380, label: 'Writer', colorKey: 'blaze' },
40
+ { x: 1160, y: 150, label: 'Reviewer', colorKey: 'surge' },
41
+ { x: 180, y: 420, label: 'Coder', colorKey: 'flame' },
42
+ { x: 1220, y: 420, label: 'Planner', colorKey: 'gold' },
43
+ ];
44
+ /* Collaboration links (index pairs into AGENTS) + quadratic curve offsets */
45
+ const LINKS = [
46
+ // Orchestrator ↔ every outer agent
47
+ { from: 0, to: 1, bend: -40 },
48
+ { from: 0, to: 2, bend: 30 },
49
+ { from: 0, to: 3, bend: -30 },
50
+ { from: 0, to: 4, bend: 40 },
51
+ { from: 0, to: 5, bend: 35 },
52
+ { from: 0, to: 6, bend: -35 },
53
+ // Peer-to-peer collaboration
54
+ { from: 1, to: 2, bend: -25 },
55
+ { from: 1, to: 4, bend: 50 },
56
+ { from: 2, to: 3, bend: -45 },
57
+ { from: 3, to: 4, bend: 25 },
58
+ { from: 2, to: 5, bend: -20 },
59
+ { from: 3, to: 6, bend: 20 },
60
+ { from: 5, to: 6, bend: -55 },
61
+ ];
62
+ /** Compute quadratic bézier control-point perpendicular to the midpoint. */
63
+ function ctrlPt(ax, ay, bx, by, bend) {
64
+ const mx = (ax + bx) / 2;
65
+ const my = (ay + by) / 2;
66
+ const dx = bx - ax;
67
+ const dy = by - ay;
68
+ const len = Math.sqrt(dx * dx + dy * dy) || 1;
69
+ return { cx: mx + (-dy / len) * bend, cy: my + (dx / len) * bend };
70
+ }
71
+ /** Pre-computed link geometry (static — depends only on AGENTS & LINKS). */
72
+ const LINK_GEOM = LINKS.map(({ from, to, bend }) => {
73
+ const a = AGENTS[from];
74
+ const b = AGENTS[to];
75
+ const c = ctrlPt(a.x, a.y, b.x, b.y, bend);
76
+ return { a, b, cx: c.cx, cy: c.cy };
77
+ });
78
+ const NUM_TRAVELLERS = 18;
79
+ export function SvgAgentsHomeHero({ palette: paletteProp } = {}) {
80
+ const auto = useColorPalette();
81
+ const p = paletteProp ?? auto;
82
+ /* Keep a ref to the latest palette so the rAF loop always reads
83
+ * up-to-date colours without re-mounting on every theme change. */
84
+ const paletteRef = useRef(p);
85
+ paletteRef.current = p;
86
+ const travellersRef = useRef(null);
87
+ /* ── Imperative rAF animation loop ─────────────────────────────── */
88
+ useEffect(() => {
89
+ const g = travellersRef.current;
90
+ if (!g)
91
+ return;
92
+ const rng = createRng(Date.now());
93
+ const NS = 'http://www.w3.org/2000/svg';
94
+ /** Choose a random link, direction, speed, and size. */
95
+ function pickNew() {
96
+ return {
97
+ linkIdx: Math.floor(rng() * LINKS.length),
98
+ fwd: rng() > 0.5,
99
+ speed: 0.14 + rng() * 0.34, // ~2–7 s per traversal
100
+ radius: 2.0 + rng() * 2.5, // dot size 2–4.5
101
+ haloR: 0, // computed below
102
+ };
103
+ }
104
+ const travellers = [];
105
+ for (let i = 0; i < NUM_TRAVELLERS; i++) {
106
+ const t = pickNew();
107
+ t.haloR = t.radius * 2.2 + rng() * 2;
108
+ const progress = rng(); // random initial phase
109
+ const haloEl = document.createElementNS(NS, 'circle');
110
+ const dotEl = document.createElementNS(NS, 'circle');
111
+ g.appendChild(haloEl);
112
+ g.appendChild(dotEl);
113
+ travellers.push({ ...t, progress, haloR: t.haloR, dotEl, haloEl });
114
+ }
115
+ let lastTime = performance.now();
116
+ let rafId = 0;
117
+ function tick(now) {
118
+ const dt = Math.min((now - lastTime) / 1000, 0.1); // cap to avoid jumps
119
+ lastTime = now;
120
+ const pal = paletteRef.current;
121
+ for (const tr of travellers) {
122
+ tr.progress += tr.speed * dt;
123
+ /* ── Trajectory finished → pick a brand-new random one ── */
124
+ if (tr.progress >= 1) {
125
+ const next = pickNew();
126
+ tr.linkIdx = next.linkIdx;
127
+ tr.fwd = next.fwd;
128
+ tr.speed = next.speed;
129
+ tr.radius = next.radius;
130
+ tr.haloR = next.radius * 2.2 + rng() * 2;
131
+ tr.progress = 0;
132
+ }
133
+ const lg = LINK_GEOM[tr.linkIdx];
134
+ const t = tr.progress;
135
+ // Quadratic bézier position (swap endpoints for reverse)
136
+ const sx = tr.fwd ? lg.a.x : lg.b.x;
137
+ const sy = tr.fwd ? lg.a.y : lg.b.y;
138
+ const ex = tr.fwd ? lg.b.x : lg.a.x;
139
+ const ey = tr.fwd ? lg.b.y : lg.a.y;
140
+ const u = 1 - t;
141
+ const px = u * u * sx + 2 * u * t * lg.cx + t * t * ex;
142
+ const py = u * u * sy + 2 * u * t * lg.cy + t * t * ey;
143
+ // Opacity envelope: quick fade-in / sustain / quick fade-out
144
+ let env;
145
+ if (t < 0.08)
146
+ env = t / 0.08;
147
+ else if (t > 0.92)
148
+ env = (1 - t) / 0.08;
149
+ else
150
+ env = 1;
151
+ const dotOp = env * (0.75 + 0.25 * Math.sin(t * Math.PI));
152
+ // Gentle radius pulse
153
+ const rPulse = tr.radius * (0.72 + 0.28 * Math.sin(t * Math.PI * 2));
154
+ // Colour from the departure agent of this trajectory
155
+ const colorKey = tr.fwd ? lg.a.colorKey : lg.b.colorKey;
156
+ const color = pal[colorKey];
157
+ tr.dotEl.setAttribute('cx', px.toFixed(1));
158
+ tr.dotEl.setAttribute('cy', py.toFixed(1));
159
+ tr.dotEl.setAttribute('r', rPulse.toFixed(1));
160
+ tr.dotEl.setAttribute('fill', color);
161
+ tr.dotEl.setAttribute('opacity', dotOp.toFixed(2));
162
+ tr.haloEl.setAttribute('cx', px.toFixed(1));
163
+ tr.haloEl.setAttribute('cy', py.toFixed(1));
164
+ tr.haloEl.setAttribute('r', tr.haloR.toFixed(1));
165
+ tr.haloEl.setAttribute('fill', color);
166
+ tr.haloEl.setAttribute('opacity', (dotOp * 0.22).toFixed(2));
167
+ }
168
+ rafId = requestAnimationFrame(tick);
169
+ }
170
+ rafId = requestAnimationFrame(tick);
171
+ return () => {
172
+ cancelAnimationFrame(rafId);
173
+ while (g.firstChild)
174
+ g.removeChild(g.firstChild);
175
+ };
176
+ }, []); // eslint-disable-line react-hooks/exhaustive-deps
177
+ return (_jsxs("svg", { viewBox: "0 0 1400 560", xmlns: "http://www.w3.org/2000/svg", preserveAspectRatio: "xMidYMid slice", style: { width: '100%', height: '100%', display: 'block', position: 'absolute', inset: 0 }, children: [_jsxs("defs", { children: [_jsx(LightBoostFilter, {}), _jsxs("radialGradient", { id: "ahGlow1", cx: "50%", cy: "46%", r: "52%", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0.72" }), _jsx("stop", { offset: "35%", stopColor: p.glow, stopOpacity: "0.28" }), _jsx("stop", { offset: "100%", stopColor: p.glow, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "ahGlow2", cx: "17%", cy: "28%", r: "44%", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0.58" }), _jsx("stop", { offset: "50%", stopColor: p.glow, stopOpacity: "0.14" }), _jsx("stop", { offset: "100%", stopColor: p.glow, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "ahGlow3", cx: "30%", cy: "68%", r: "42%", children: [_jsx("stop", { offset: "0%", stopColor: p.surge, stopOpacity: "0.54" }), _jsx("stop", { offset: "48%", stopColor: p.surge, stopOpacity: "0.12" }), _jsx("stop", { offset: "100%", stopColor: p.surge, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "ahGlow4", cx: "70%", cy: "68%", r: "42%", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0.52" }), _jsx("stop", { offset: "48%", stopColor: p.glow, stopOpacity: "0.12" }), _jsx("stop", { offset: "100%", stopColor: p.glow, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "ahGlow5", cx: "83%", cy: "28%", r: "44%", children: [_jsx("stop", { offset: "0%", stopColor: p.surge, stopOpacity: "0.56" }), _jsx("stop", { offset: "50%", stopColor: p.surge, stopOpacity: "0.14" }), _jsx("stop", { offset: "100%", stopColor: p.surge, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "ahGlow6", cx: "13%", cy: "75%", r: "38%", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0.50" }), _jsx("stop", { offset: "50%", stopColor: p.glow, stopOpacity: "0.12" }), _jsx("stop", { offset: "100%", stopColor: p.glow, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "ahGlow7", cx: "87%", cy: "75%", r: "38%", children: [_jsx("stop", { offset: "0%", stopColor: p.surge, stopOpacity: "0.48" }), _jsx("stop", { offset: "50%", stopColor: p.surge, stopOpacity: "0.10" }), _jsx("stop", { offset: "100%", stopColor: p.surge, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "ahGlow8", cx: "50%", cy: "8%", r: "40%", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0.48" }), _jsx("stop", { offset: "50%", stopColor: p.glow, stopOpacity: "0.10" }), _jsx("stop", { offset: "100%", stopColor: p.glow, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "ahGlow9", cx: "45%", cy: "88%", r: "42%", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0.54" }), _jsx("stop", { offset: "45%", stopColor: p.glow, stopOpacity: "0.12" }), _jsx("stop", { offset: "100%", stopColor: p.glow, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "ahGlow10", cx: "22%", cy: "50%", r: "38%", children: [_jsx("stop", { offset: "0%", stopColor: p.surge, stopOpacity: "0.52" }), _jsx("stop", { offset: "48%", stopColor: p.surge, stopOpacity: "0.12" }), _jsx("stop", { offset: "100%", stopColor: p.surge, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "ahGlow11", cx: "75%", cy: "15%", r: "36%", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0.50" }), _jsx("stop", { offset: "50%", stopColor: p.glow, stopOpacity: "0.10" }), _jsx("stop", { offset: "100%", stopColor: p.glow, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "ahGlow12", cx: "78%", cy: "82%", r: "34%", children: [_jsx("stop", { offset: "0%", stopColor: p.surge, stopOpacity: "0.48" }), _jsx("stop", { offset: "50%", stopColor: p.surge, stopOpacity: "0.10" }), _jsx("stop", { offset: "100%", stopColor: p.surge, stopOpacity: "0" })] }), _jsxs("linearGradient", { id: "ahShimmer", x1: "0.1", y1: "0.2", x2: "0.9", y2: "0.8", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0" }), _jsx("stop", { offset: "18%", stopColor: p.glow, stopOpacity: "0.22" }), _jsx("stop", { offset: "35%", stopColor: p.surge, stopOpacity: "0.18" }), _jsx("stop", { offset: "50%", stopColor: "#ffffff", stopOpacity: "0.08" }), _jsx("stop", { offset: "65%", stopColor: p.glow, stopOpacity: "0.20" }), _jsx("stop", { offset: "82%", stopColor: p.surge, stopOpacity: "0.18" }), _jsx("stop", { offset: "100%", stopColor: p.glow, stopOpacity: "0" })] }), _jsx("pattern", { id: "ahDots", width: "28", height: "28", patternUnits: "userSpaceOnUse", children: _jsx("circle", { cx: "1", cy: "1", r: "0.6", fill: p.glow, opacity: "0.12" }) }), _jsxs("pattern", { id: "ahHex", width: "30", height: "52", patternUnits: "userSpaceOnUse", patternTransform: "rotate(10)", children: [_jsx("polygon", { points: "15,0 28,7.5 28,22.5 15,30 2,22.5 2,7.5", fill: "none", stroke: p.glow, strokeOpacity: "0.08", strokeWidth: "0.6" }), _jsx("polygon", { points: "15,26 28,33.5 28,48.5 15,56 2,48.5 2,33.5", fill: "none", stroke: p.glow, strokeOpacity: "0.08", strokeWidth: "0.6" })] }), _jsxs("pattern", { id: "ahCross", width: "50", height: "50", patternUnits: "userSpaceOnUse", children: [_jsx("line", { x1: "0", y1: "0", x2: "50", y2: "50", stroke: p.glow, strokeOpacity: "0.05", strokeWidth: "0.5" }), _jsx("line", { x1: "50", y1: "0", x2: "0", y2: "50", stroke: p.glow, strokeOpacity: "0.05", strokeWidth: "0.5" })] })] }), _jsx("rect", { width: "1400", height: "560", fill: p.bg }), _jsxs("g", { filter: p.isLight ? 'url(#svgLightBoost)' : undefined, children: [_jsx("rect", { width: "1400", height: "560", fill: "url(#ahDots)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#ahHex)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#ahCross)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#ahGlow1)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#ahGlow2)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#ahGlow3)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#ahGlow4)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#ahGlow5)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#ahGlow6)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#ahGlow7)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#ahGlow8)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#ahGlow9)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#ahGlow10)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#ahGlow11)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#ahGlow12)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#ahShimmer)" }), [80, 140, 210, 290, 380].map((r, i) => (_jsx("circle", { cx: 700, cy: 260, r: r, fill: "none", stroke: i % 2 === 0 ? p.glow : p.surge, strokeOpacity: 0.26 - i * 0.028, strokeWidth: 1.8 - i * 0.18 }, `ring-${i}`))), LINK_GEOM.map(({ a, b, cx, cy }, i) => {
178
+ const color = p[a.colorKey];
179
+ const color2 = p[b.colorKey];
180
+ return (_jsxs("g", { children: [_jsx("path", { d: `M${a.x},${a.y} Q${cx},${cy} ${b.x},${b.y}`, fill: "none", stroke: color, strokeOpacity: "0.30", strokeWidth: "1.3" }), _jsx("path", { d: `M${a.x} ${a.y} Q${cx + 6} ${cy + 6} ${b.x} ${b.y}`, fill: "none", stroke: color2, strokeOpacity: "0.20", strokeWidth: "0.8" }), [0.25, 0.5, 0.75].map((t, di) => {
181
+ const u = 1 - t;
182
+ const px = u * u * a.x + 2 * u * t * cx + t * t * b.x;
183
+ const py = u * u * a.y + 2 * u * t * cy + t * t * b.y;
184
+ return _jsx("circle", { cx: px, cy: py, r: 1.8 - di * 0.15, fill: di === 1 ? color2 : color, opacity: 0.65 + di * 0.06 }, di);
185
+ })] }, `link-${i}`));
186
+ }), _jsx("g", { ref: travellersRef }), AGENTS.map((agent, i) => {
187
+ const c = p[agent.colorKey];
188
+ const isCenter = i === 0;
189
+ const r1 = isCenter ? 8 : 5;
190
+ const r2 = isCenter ? 24 : 16;
191
+ const r3 = isCenter ? 50 : 32;
192
+ return (_jsxs("g", { children: [_jsx("circle", { cx: agent.x, cy: agent.y, r: r3, fill: c, opacity: "0.14" }), _jsx("circle", { cx: agent.x, cy: agent.y, r: r2, fill: c, opacity: isCenter ? 0.30 : 0.22 }), _jsx("circle", { cx: agent.x, cy: agent.y, r: r2 + 2, fill: "none", stroke: c, strokeOpacity: isCenter ? 0.45 : 0.35, strokeWidth: isCenter ? 1.4 : 1.0 }), _jsx("circle", { cx: agent.x, cy: agent.y, r: r1, fill: c, opacity: isCenter ? 1.0 : 0.95 }), _jsx("text", { x: agent.x, y: agent.y + r2 + 14, fill: c, opacity: isCenter ? 0.55 : 0.45, fontSize: isCenter ? 9 : 7.5, fontFamily: "monospace", textAnchor: "middle", fontWeight: isCenter ? 'bold' : 'normal', children: agent.label })] }, `agent-${i}`));
193
+ }), _jsx("path", { d: "M0 350 Q200 280 400 320 T800 290 T1200 330 T1400 300", fill: "none", stroke: p.glow, strokeOpacity: "0.34", strokeWidth: "1.8" }), _jsx("path", { d: "M0 410 Q260 350 520 390 T1040 360 T1400 385", fill: "none", stroke: p.glow, strokeOpacity: "0.24", strokeWidth: "1.4" }), _jsx("path", { d: "M0 270 Q300 210 600 250 T1100 220 T1400 245", fill: "none", stroke: p.surge, strokeOpacity: "0.30", strokeWidth: "1.6" }), _jsx("path", { d: "M0 490 Q350 440 700 470 T1400 450", fill: "none", stroke: p.surge, strokeOpacity: "0.22", strokeWidth: "1.3" }), _jsx("path", { d: "M0 180 Q400 130 800 170 T1400 150", fill: "none", stroke: p.glow, strokeOpacity: "0.26", strokeWidth: "1.4" }), _jsx("path", { d: "M0 130 Q350 80 700 120 T1400 100", fill: "none", stroke: p.surge, strokeOpacity: "0.20", strokeWidth: "1.2" }), _jsx("path", { d: "M0 530 Q400 480 800 510 T1400 490", fill: "none", stroke: p.glow, strokeOpacity: "0.20", strokeWidth: "1.2" }), _jsx("path", { d: "M0 80 Q250 40 500 70 T1000 50 T1400 75", fill: "none", stroke: p.glow, strokeOpacity: "0.18", strokeWidth: "1.1" }), _jsx("path", { d: "M0 460 Q300 420 600 445 T1200 425 T1400 440", fill: "none", stroke: p.surge, strokeOpacity: "0.18", strokeWidth: "1.1" }), _jsx("path", { d: "M0 220 Q400 180 800 210 T1400 195", fill: "none", stroke: p.glow, strokeOpacity: "0.16", strokeWidth: "1.0" }), _jsx("path", { d: "M0 320 Q350 290 700 310 T1400 295", fill: "none", stroke: p.surge, strokeOpacity: "0.16", strokeWidth: "1.0" }), _jsx("circle", { cx: "80", cy: "65", r: "2.4", fill: p.glow, opacity: "0.88" }), _jsx("circle", { cx: "230", cy: "50", r: "1.9", fill: p.surge, opacity: "0.82" }), _jsx("circle", { cx: "480", cy: "38", r: "2.5", fill: p.glow, opacity: "0.86" }), _jsx("circle", { cx: "660", cy: "52", r: "2.0", fill: p.surge, opacity: "0.80" }), _jsx("circle", { cx: "890", cy: "42", r: "2.3", fill: p.glow, opacity: "0.84" }), _jsx("circle", { cx: "1100", cy: "58", r: "2.2", fill: p.glow, opacity: "0.82" }), _jsx("circle", { cx: "1300", cy: "48", r: "2.0", fill: p.surge, opacity: "0.80" }), _jsx("circle", { cx: "1380", cy: "75", r: "2.2", fill: p.glow, opacity: "0.78" }), _jsx("circle", { cx: "380", cy: "60", r: "2.1", fill: p.glow, opacity: "0.84" }), _jsx("circle", { cx: "1050", cy: "35", r: "2.1", fill: p.surge, opacity: "0.80" }), _jsx("circle", { cx: "160", cy: "40", r: "1.8", fill: p.glow, opacity: "0.78" }), _jsx("circle", { cx: "550", cy: "55", r: "1.7", fill: p.surge, opacity: "0.74" }), _jsx("circle", { cx: "780", cy: "30", r: "1.9", fill: p.glow, opacity: "0.76" }), _jsx("circle", { cx: "1200", cy: "45", r: "1.8", fill: p.surge, opacity: "0.74" }), _jsx("circle", { cx: "55", cy: "495", r: "2.2", fill: p.surge, opacity: "0.82" }), _jsx("circle", { cx: "210", cy: "515", r: "2.0", fill: p.glow, opacity: "0.78" }), _jsx("circle", { cx: "460", cy: "525", r: "2.4", fill: p.glow, opacity: "0.80" }), _jsx("circle", { cx: "690", cy: "505", r: "2.1", fill: p.surge, opacity: "0.76" }), _jsx("circle", { cx: "940", cy: "515", r: "2.3", fill: p.glow, opacity: "0.80" }), _jsx("circle", { cx: "1200", cy: "505", r: "2.0", fill: p.surge, opacity: "0.76" }), _jsx("circle", { cx: "1360", cy: "495", r: "2.2", fill: p.glow, opacity: "0.78" }), _jsx("circle", { cx: "310", cy: "535", r: "2.1", fill: p.surge, opacity: "0.78" }), _jsx("circle", { cx: "1100", cy: "530", r: "2.0", fill: p.glow, opacity: "0.76" }), _jsx("circle", { cx: "130", cy: "540", r: "1.7", fill: p.glow, opacity: "0.72" }), _jsx("circle", { cx: "580", cy: "545", r: "1.8", fill: p.surge, opacity: "0.70" }), _jsx("circle", { cx: "820", cy: "535", r: "1.9", fill: p.glow, opacity: "0.74" }), _jsx("circle", { cx: "1280", cy: "520", r: "1.7", fill: p.surge, opacity: "0.70" }), _jsx("circle", { cx: "60", cy: "210", r: "2.0", fill: p.glow, opacity: "0.70" }), _jsx("circle", { cx: "1340", cy: "230", r: "2.2", fill: p.surge, opacity: "0.72" }), _jsx("circle", { cx: "150", cy: "330", r: "1.9", fill: p.surge, opacity: "0.68" }), _jsx("circle", { cx: "1250", cy: "320", r: "2.1", fill: p.glow, opacity: "0.70" }), _jsx("circle", { cx: "90", cy: "400", r: "1.8", fill: p.glow, opacity: "0.66" }), _jsx("circle", { cx: "1310", cy: "140", r: "1.9", fill: p.surge, opacity: "0.68" }), _jsx("circle", { cx: "50", cy: "130", r: "1.7", fill: p.surge, opacity: "0.64" }), _jsx("circle", { cx: "1370", cy: "380", r: "1.8", fill: p.glow, opacity: "0.66" }), _jsx("circle", { cx: "300", cy: "200", r: "90", fill: p.glow, opacity: "0.10" }), _jsx("circle", { cx: "700", cy: "420", r: "100", fill: p.glow, opacity: "0.09" }), _jsx("circle", { cx: "1050", cy: "150", r: "85", fill: p.surge, opacity: "0.10" }), _jsx("circle", { cx: "200", cy: "460", r: "70", fill: p.surge, opacity: "0.08" }), _jsx("circle", { cx: "1200", cy: "460", r: "75", fill: p.glow, opacity: "0.09" }), _jsx("circle", { cx: "500", cy: "120", r: "65", fill: p.surge, opacity: "0.08" }), _jsx("circle", { cx: "100", cy: "100", r: "80", fill: p.glow, opacity: "0.07" }), _jsx("circle", { cx: "1300", cy: "280", r: "75", fill: p.surge, opacity: "0.07" }), _jsx("circle", { cx: "600", cy: "500", r: "70", fill: p.glow, opacity: "0.065" }), _jsx("circle", { cx: "900", cy: "80", r: "65", fill: p.surge, opacity: "0.065" }), _jsx("circle", { cx: "400", cy: "350", r: "60", fill: p.glow, opacity: "0.06" }), _jsx("circle", { cx: "1100", cy: "400", r: "60", fill: p.surge, opacity: "0.06" }), _jsx("line", { x1: "0", y1: "560", x2: "500", y2: "0", stroke: p.glow, strokeOpacity: "0.12", strokeWidth: "48" }), _jsx("line", { x1: "250", y1: "560", x2: "750", y2: "0", stroke: p.surge, strokeOpacity: "0.10", strokeWidth: "40" }), _jsx("line", { x1: "600", y1: "560", x2: "1100", y2: "0", stroke: p.glow, strokeOpacity: "0.10", strokeWidth: "36" }), _jsx("line", { x1: "950", y1: "560", x2: "1400", y2: "60", stroke: p.surge, strokeOpacity: "0.10", strokeWidth: "32" }), _jsx("line", { x1: "400", y1: "560", x2: "900", y2: "0", stroke: p.glow, strokeOpacity: "0.06", strokeWidth: "24" }), _jsx("line", { x1: "1100", y1: "560", x2: "1400", y2: "200", stroke: p.surge, strokeOpacity: "0.06", strokeWidth: "24" }), _jsx("path", { d: "M140 480 A160 160 0 0 1 140 160", fill: "none", stroke: p.glow, strokeOpacity: "0.20", strokeWidth: "1.2" }), _jsx("path", { d: "M165 450 A130 130 0 0 1 165 190", fill: "none", stroke: p.surge, strokeOpacity: "0.16", strokeWidth: "1.0" }), _jsx("path", { d: "M1260 160 A160 160 0 0 1 1260 480", fill: "none", stroke: p.surge, strokeOpacity: "0.20", strokeWidth: "1.2" }), _jsx("path", { d: "M1235 190 A130 130 0 0 1 1235 450", fill: "none", stroke: p.glow, strokeOpacity: "0.16", strokeWidth: "1.0" })] })] }));
194
+ }
@@ -0,0 +1,5 @@
1
+ import { type ColorPalette } from '@datalayer/primer-addons';
2
+ export declare function SvgBlackSnake({ palette: paletteProp }?: {
3
+ palette?: ColorPalette;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ export default SvgBlackSnake;
@@ -0,0 +1,76 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright (c) 2022-2026 Datalayer, Inc.
4
+ *
5
+ * Datalayer License
6
+ */
7
+ /**
8
+ * Black Snake illustration.
9
+ *
10
+ * Keeps the original source artwork unchanged and recolors it from the
11
+ * active user theme using a palette-driven tint.
12
+ */
13
+ import { useEffect, useState } from 'react';
14
+ import { useColorPalette } from '@datalayer/primer-addons';
15
+ import BlackSnakeSource from './images/datalayer-1.2.0-black-snake.svg';
16
+ export function SvgBlackSnake({ palette: paletteProp } = {}) {
17
+ const auto = useColorPalette();
18
+ const p = paletteProp ?? auto;
19
+ const tint = p.isLight ? p.primary : p.spark;
20
+ const [svgMarkup, setSvgMarkup] = useState('');
21
+ useEffect(() => {
22
+ let cancelled = false;
23
+ const loadAndTint = async () => {
24
+ let source;
25
+ const raw = BlackSnakeSource;
26
+ const looksLikeMarkup = typeof raw === 'string' && /^\s*(<\?xml|<svg[\s>])/i.test(raw);
27
+ if (looksLikeMarkup) {
28
+ source = raw;
29
+ }
30
+ else {
31
+ const response = await fetch(raw);
32
+ source = await response.text();
33
+ }
34
+ if (cancelled) {
35
+ return;
36
+ }
37
+ const parser = new DOMParser();
38
+ const doc = parser.parseFromString(source, 'image/svg+xml');
39
+ const svg = doc.querySelector('svg');
40
+ if (!svg) {
41
+ setSvgMarkup(source);
42
+ return;
43
+ }
44
+ svg.setAttribute('width', '100%');
45
+ svg.setAttribute('height', '100%');
46
+ svg.setAttribute('preserveAspectRatio', 'xMidYMid meet');
47
+ svg.setAttribute('style', `width:100%;height:100%;display:block;background:${p.bg};color:${tint};`);
48
+ const blackFills = new Set(['#000', '#000000', 'black', 'rgb(0,0,0)']);
49
+ doc.querySelectorAll('[fill]').forEach((node) => {
50
+ const fill = (node.getAttribute('fill') || '').replace(/\s+/g, '').toLowerCase();
51
+ if (blackFills.has(fill)) {
52
+ node.setAttribute('fill', tint);
53
+ }
54
+ });
55
+ doc.querySelectorAll('[stroke]').forEach((node) => {
56
+ const stroke = (node.getAttribute('stroke') || '').replace(/\s+/g, '').toLowerCase();
57
+ if (blackFills.has(stroke)) {
58
+ node.setAttribute('stroke', tint);
59
+ }
60
+ });
61
+ const serialized = new XMLSerializer().serializeToString(svg);
62
+ setSvgMarkup(serialized);
63
+ };
64
+ loadAndTint().catch(() => setSvgMarkup(''));
65
+ return () => {
66
+ cancelled = true;
67
+ };
68
+ }, [p.bg, tint]);
69
+ return (_jsx("div", { "aria-label": "Black snake", style: {
70
+ width: '100%',
71
+ height: '100%',
72
+ display: 'block',
73
+ overflow: 'hidden',
74
+ }, dangerouslySetInnerHTML: { __html: svgMarkup } }));
75
+ }
76
+ export default SvgBlackSnake;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Blog Hero — shiny abstract background (wide, short banner).
3
+ */
4
+ import { type ColorPalette } from '@datalayer/primer-addons';
5
+ export declare function SvgBlogHero({ palette: paletteProp }?: {
6
+ palette?: ColorPalette;
7
+ }): import("react/jsx-runtime").JSX.Element;