@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.
- package/LICENSE +23 -0
- package/README.md +5 -0
- package/lib/App.d.ts +2 -0
- package/lib/App.js +25 -0
- package/lib/DatalayerIcons.d.ts +2 -0
- package/lib/DatalayerIcons.js +169 -0
- package/lib/footer/MinimalFooter.d.ts +38 -0
- package/lib/footer/MinimalFooter.js +160 -0
- package/lib/footer/component-helpers.d.ts +33 -0
- package/lib/footer/component-helpers.js +19 -0
- package/lib/footer/index.d.ts +1 -0
- package/lib/footer/index.js +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/layout/SiteLayout.d.ts +2 -0
- package/lib/layout/SiteLayout.js +89 -0
- package/lib/main.d.ts +1 -0
- package/lib/main.js +10 -0
- package/lib/pages/HomePage.d.ts +2 -0
- package/lib/pages/HomePage.js +50 -0
- package/lib/pages/IconsPage.d.ts +2 -0
- package/lib/pages/IconsPage.js +8 -0
- package/lib/pages/SvgPage.d.ts +2 -0
- package/lib/pages/SvgPage.js +592 -0
- package/lib/svg/SvgAboutHero.d.ts +26 -0
- package/lib/svg/SvgAboutHero.js +76 -0
- package/lib/svg/SvgAgentRuntimes.d.ts +7 -0
- package/lib/svg/SvgAgentRuntimes.js +26 -0
- package/lib/svg/SvgAgentsHero.d.ts +13 -0
- package/lib/svg/SvgAgentsHero.js +55 -0
- package/lib/svg/SvgAgentsHomeHero.d.ts +4 -0
- package/lib/svg/SvgAgentsHomeHero.js +194 -0
- package/lib/svg/SvgBlackSnake.d.ts +5 -0
- package/lib/svg/SvgBlackSnake.js +76 -0
- package/lib/svg/SvgBlogHero.d.ts +7 -0
- package/lib/svg/SvgBlogHero.js +18 -0
- package/lib/svg/SvgCareersHero.d.ts +23 -0
- package/lib/svg/SvgCareersHero.js +97 -0
- package/lib/svg/SvgCellArtifact.d.ts +8 -0
- package/lib/svg/SvgCellArtifact.js +15 -0
- package/lib/svg/SvgChangelogHero.d.ts +23 -0
- package/lib/svg/SvgChangelogHero.js +128 -0
- package/lib/svg/SvgCommunityHero.d.ts +5 -0
- package/lib/svg/SvgCommunityHero.js +170 -0
- package/lib/svg/SvgContactHero.d.ts +11 -0
- package/lib/svg/SvgContactHero.js +19 -0
- package/lib/svg/SvgDataset.d.ts +5 -0
- package/lib/svg/SvgDataset.js +13 -0
- package/lib/svg/SvgDiscord.d.ts +12 -0
- package/lib/svg/SvgDiscord.js +20 -0
- package/lib/svg/SvgDocumentArtifact.d.ts +8 -0
- package/lib/svg/SvgDocumentArtifact.js +15 -0
- package/lib/svg/SvgEarthHero.d.ts +8 -0
- package/lib/svg/SvgEarthHero.js +23 -0
- package/lib/svg/SvgEventsHero.d.ts +16 -0
- package/lib/svg/SvgEventsHero.js +42 -0
- package/lib/svg/SvgFastA2ADonation.d.ts +5 -0
- package/lib/svg/SvgFastA2ADonation.js +13 -0
- package/lib/svg/SvgIndividualsAndTeams.d.ts +11 -0
- package/lib/svg/SvgIndividualsAndTeams.js +26 -0
- package/lib/svg/SvgIntegrationsHero.d.ts +22 -0
- package/lib/svg/SvgIntegrationsHero.js +67 -0
- package/lib/svg/SvgInvites.d.ts +11 -0
- package/lib/svg/SvgInvites.js +19 -0
- package/lib/svg/SvgJoin.d.ts +19 -0
- package/lib/svg/SvgJoin.js +95 -0
- package/lib/svg/SvgJoinConfirm.d.ts +16 -0
- package/lib/svg/SvgJoinConfirm.js +34 -0
- package/lib/svg/SvgJupyterEmbed.d.ts +7 -0
- package/lib/svg/SvgJupyterEmbed.js +15 -0
- package/lib/svg/SvgJupyterMcp.d.ts +16 -0
- package/lib/svg/SvgJupyterMcp.js +27 -0
- package/lib/svg/SvgLines.d.ts +16 -0
- package/lib/svg/SvgLines.js +28 -0
- package/lib/svg/SvgLinesLogo.d.ts +10 -0
- package/lib/svg/SvgLinesLogo.js +59 -0
- package/lib/svg/SvgLoginHero.d.ts +12 -0
- package/lib/svg/SvgLoginHero.js +23 -0
- package/lib/svg/SvgNotFound.d.ts +12 -0
- package/lib/svg/SvgNotFound.js +23 -0
- package/lib/svg/SvgNotebookArtifact.d.ts +8 -0
- package/lib/svg/SvgNotebookArtifact.js +15 -0
- package/lib/svg/SvgOrganizationsAtScale.d.ts +11 -0
- package/lib/svg/SvgOrganizationsAtScale.js +19 -0
- package/lib/svg/SvgPixel1.d.ts +5 -0
- package/lib/svg/SvgPixel1.js +85 -0
- package/lib/svg/SvgPixel2.d.ts +5 -0
- package/lib/svg/SvgPixel2.js +71 -0
- package/lib/svg/SvgPricingHero.d.ts +11 -0
- package/lib/svg/SvgPricingHero.js +19 -0
- package/lib/svg/SvgPrivacyHero.d.ts +11 -0
- package/lib/svg/SvgPrivacyHero.js +22 -0
- package/lib/svg/SvgPublication.d.ts +5 -0
- package/lib/svg/SvgPublication.js +13 -0
- package/lib/svg/SvgRadar.d.ts +8 -0
- package/lib/svg/SvgRadar.js +92 -0
- package/lib/svg/SvgResearchHero.d.ts +17 -0
- package/lib/svg/SvgResearchHero.js +61 -0
- package/lib/svg/SvgSpitfire.d.ts +11 -0
- package/lib/svg/SvgSpitfire.js +79 -0
- package/lib/svg/SvgStarsHero.d.ts +15 -0
- package/lib/svg/SvgStarsHero.js +50 -0
- package/lib/svg/SvgTermsHero.d.ts +11 -0
- package/lib/svg/SvgTermsHero.js +22 -0
- package/lib/svg/SvgTutorialsHero.d.ts +16 -0
- package/lib/svg/SvgTutorialsHero.js +27 -0
- package/lib/svg/SvgUnauthorized.d.ts +12 -0
- package/lib/svg/SvgUnauthorized.js +23 -0
- package/lib/svg/SvgUsecasesHero.d.ts +16 -0
- package/lib/svg/SvgUsecasesHero.js +46 -0
- package/lib/svg/SvgVSCodeExtension.d.ts +7 -0
- package/lib/svg/SvgVSCodeExtension.js +15 -0
- package/lib/svg/gallery.d.ts +2 -0
- package/lib/svg/gallery.js +49 -0
- package/lib/svg/images/datalayer-1.2.0-black-snake.svg +1 -0
- package/lib/svg/images/datalayer-1.3.0-spitfire.svg +1 -0
- package/lib/svg/index.d.ts +45 -0
- package/lib/svg/index.js +50 -0
- package/package.json +50 -0
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
* Blog Hero — shiny abstract background (wide, short banner).
|
|
9
|
+
*/
|
|
10
|
+
import { useColorPalette, LightBoostFilter } from '@datalayer/primer-addons';
|
|
11
|
+
export function SvgBlogHero({ palette: paletteProp } = {}) {
|
|
12
|
+
const auto = useColorPalette();
|
|
13
|
+
const p = paletteProp ?? auto;
|
|
14
|
+
const warmA = p.isLight ? p.surge : p.flame;
|
|
15
|
+
const warmB = p.isLight ? p.spark : p.gold;
|
|
16
|
+
const warmC = p.isLight ? p.pop : p.blaze;
|
|
17
|
+
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: "heroGlow1", cx: "20%", cy: "35%", r: "55%", 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: "heroGlow2", cx: "75%", cy: "60%", r: "50%", children: [_jsx("stop", { offset: "0%", stopColor: p.surge, stopOpacity: "0.45" }), _jsx("stop", { offset: "45%", stopColor: p.surge, stopOpacity: "0.10" }), _jsx("stop", { offset: "100%", stopColor: p.surge, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "heroGlow3", cx: "55%", cy: "20%", r: "40%", children: [_jsx("stop", { offset: "0%", stopColor: p.spark, stopOpacity: "0.40" }), _jsx("stop", { offset: "50%", stopColor: p.spark, stopOpacity: "0.08" }), _jsx("stop", { offset: "100%", stopColor: p.spark, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "heroGlow4", cx: "90%", cy: "25%", r: "35%", children: [_jsx("stop", { offset: "0%", stopColor: warmC, stopOpacity: "0.35" }), _jsx("stop", { offset: "55%", stopColor: warmC, stopOpacity: "0.08" }), _jsx("stop", { offset: "100%", stopColor: warmC, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "heroGlow5", cx: "10%", cy: "75%", r: "40%", children: [_jsx("stop", { offset: "0%", stopColor: p.surge, stopOpacity: "0.38" }), _jsx("stop", { offset: "50%", stopColor: p.surge, stopOpacity: "0.08" }), _jsx("stop", { offset: "100%", stopColor: p.surge, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "heroGlow6", cx: "40%", cy: "80%", r: "35%", children: [_jsx("stop", { offset: "0%", stopColor: warmA, stopOpacity: "0.36" }), _jsx("stop", { offset: "50%", stopColor: warmA, stopOpacity: "0.08" }), _jsx("stop", { offset: "100%", stopColor: warmA, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "heroGlow7", cx: "70%", cy: "15%", r: "32%", children: [_jsx("stop", { offset: "0%", stopColor: warmB, stopOpacity: "0.34" }), _jsx("stop", { offset: "50%", stopColor: warmB, stopOpacity: "0.07" }), _jsx("stop", { offset: "100%", stopColor: warmB, stopOpacity: "0" })] }), _jsxs("linearGradient", { id: "heroShimmer", x1: "0", y1: "0", x2: "1", y2: "0.4", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0" }), _jsx("stop", { offset: "35%", stopColor: p.glow, stopOpacity: "0.10" }), _jsx("stop", { offset: "50%", stopColor: "#ffffff", stopOpacity: "0.06" }), _jsx("stop", { offset: "65%", stopColor: p.surge, stopOpacity: "0.10" }), _jsx("stop", { offset: "100%", stopColor: p.surge, stopOpacity: "0" })] }), _jsx("pattern", { id: "heroDots", width: "32", height: "32", patternUnits: "userSpaceOnUse", children: _jsx("circle", { cx: "1", cy: "1", r: "0.6", fill: p.primary, opacity: "0.08" }) }), _jsx("pattern", { id: "heroLines", width: "80", height: "80", patternUnits: "userSpaceOnUse", children: _jsx("path", { d: "M80 0L0 0 0 80", fill: "none", stroke: p.primary, strokeOpacity: "0.04", strokeWidth: "0.5" }) })] }), _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(#heroDots)" }), _jsx("rect", { width: "1400", height: "420", fill: "url(#heroLines)" }), _jsx("rect", { width: "1400", height: "420", fill: "url(#heroGlow1)" }), _jsx("rect", { width: "1400", height: "420", fill: "url(#heroGlow2)" }), _jsx("rect", { width: "1400", height: "420", fill: "url(#heroGlow3)" }), _jsx("rect", { width: "1400", height: "420", fill: "url(#heroGlow4)" }), _jsx("rect", { width: "1400", height: "420", fill: "url(#heroGlow5)" }), _jsx("rect", { width: "1400", height: "420", fill: "url(#heroGlow6)" }), _jsx("rect", { width: "1400", height: "420", fill: "url(#heroGlow7)" }), _jsx("rect", { width: "1400", height: "420", fill: "url(#heroShimmer)" }), _jsx("path", { d: "M0 280 Q200 180, 400 240 T800 200 T1200 260 T1400 220", fill: "none", stroke: p.glow, strokeOpacity: "0.18", strokeWidth: "1.5" }), _jsx("path", { d: "M0 320 Q250 240, 500 300 T1000 260 T1400 300", fill: "none", stroke: p.surge, strokeOpacity: "0.14", strokeWidth: "1" }), _jsx("path", { d: "M0 200 Q300 140, 600 180 T1100 150 T1400 180", fill: "none", stroke: p.spark, strokeOpacity: "0.12", strokeWidth: "1" }), _jsx("path", { d: "M0 360 Q350 300, 700 340 T1400 320", fill: "none", stroke: p.surge, strokeOpacity: "0.10", strokeWidth: "0.8" }), _jsx("path", { d: "M0 250 Q400 190, 800 230 T1400 210", fill: "none", stroke: warmA, strokeOpacity: "0.12", strokeWidth: "0.9" }), _jsx("path", { d: "M0 170 Q350 120, 700 155 T1400 140", fill: "none", stroke: warmB, strokeOpacity: "0.10", strokeWidth: "0.8" }), _jsx("circle", { cx: "200", cy: "216", r: "3.5", fill: p.glow, opacity: "0.85" }), _jsx("circle", { cx: "200", cy: "216", r: "14", fill: p.glow, opacity: "0.12" }), _jsx("circle", { cx: "520", cy: "236", r: "2.5", fill: p.surge, opacity: "0.80" }), _jsx("circle", { cx: "520", cy: "236", r: "10", fill: p.surge, opacity: "0.10" }), _jsx("circle", { cx: "830", cy: "198", r: "3", fill: p.spark, opacity: "0.80" }), _jsx("circle", { cx: "830", cy: "198", r: "12", fill: p.spark, opacity: "0.10" }), _jsx("circle", { cx: "1100", cy: "252", r: "2.8", fill: warmC, opacity: "0.75" }), _jsx("circle", { cx: "1100", cy: "252", r: "11", fill: warmC, opacity: "0.10" }), _jsx("circle", { cx: "350", cy: "175", r: "3", fill: warmA, opacity: "0.78" }), _jsx("circle", { cx: "350", cy: "175", r: "12", fill: warmA, opacity: "0.10" }), _jsx("circle", { cx: "1250", cy: "190", r: "2.5", fill: warmB, opacity: "0.75" }), _jsx("circle", { cx: "1250", cy: "190", r: "10", fill: warmB, opacity: "0.09" }), _jsx("circle", { cx: "100", cy: "80", r: "1.8", fill: p.glow, opacity: "0.6" }), _jsx("circle", { cx: "340", cy: "60", r: "1.5", fill: p.surge, opacity: "0.5" }), _jsx("circle", { cx: "580", cy: "45", r: "2", fill: p.spark, opacity: "0.55" }), _jsx("circle", { cx: "870", cy: "70", r: "1.5", fill: p.blaze, opacity: "0.45" }), _jsx("circle", { cx: "1150", cy: "55", r: "1.8", fill: p.surge, opacity: "0.5" }), _jsx("circle", { cx: "1300", cy: "90", r: "1.3", fill: p.glow, opacity: "0.4" }), _jsx("circle", { cx: "720", cy: "58", r: "1.6", fill: p.flame, opacity: "0.52" }), _jsx("circle", { cx: "1000", cy: "85", r: "1.4", fill: p.gold, opacity: "0.48" }), _jsx("circle", { cx: "60", cy: "350", r: "1.5", fill: p.surge, opacity: "0.5" }), _jsx("circle", { cx: "450", cy: "380", r: "1.8", fill: p.glow, opacity: "0.45" }), _jsx("circle", { cx: "750", cy: "370", r: "1.3", fill: p.surge, opacity: "0.4" }), _jsx("circle", { cx: "1050", cy: "360", r: "1.6", fill: p.spark, opacity: "0.5" }), _jsx("circle", { cx: "1350", cy: "350", r: "1.4", fill: p.blaze, opacity: "0.4" }), _jsx("circle", { cx: "350", cy: "160", r: "60", fill: p.glow, opacity: "0.04" }), _jsx("circle", { cx: "700", cy: "300", r: "80", fill: p.surge, opacity: "0.035" }), _jsx("circle", { cx: "1050", cy: "120", r: "55", fill: p.spark, opacity: "0.04" }), _jsx("circle", { cx: "1250", cy: "340", r: "50", fill: p.surge, opacity: "0.035" }), _jsx("line", { x1: "0", y1: "420", x2: "500", y2: "0", stroke: p.glow, strokeOpacity: "0.06", strokeWidth: "40" }), _jsx("line", { x1: "400", y1: "420", x2: "900", y2: "0", stroke: p.surge, strokeOpacity: "0.06", strokeWidth: "35" }), _jsx("line", { x1: "900", y1: "420", x2: "1400", y2: "0", stroke: p.spark, strokeOpacity: "0.06", strokeWidth: "30" })] })] }));
|
|
18
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wide, tall SVG hero background for the Careers page.
|
|
3
|
+
*
|
|
4
|
+
* Visual motif — **"Pop Zap"**: a second pop-art composition that
|
|
5
|
+
* complements but differs from the About hero's "Pop Dots".
|
|
6
|
+
*
|
|
7
|
+
* Key elements:
|
|
8
|
+
* - Diagonal halftone stripe bands (45° hatching with dot fills)
|
|
9
|
+
* - Thought-cloud / scalloped shapes (not speech bubbles)
|
|
10
|
+
* - Jagged lightning-bolt / "ZAP" paths
|
|
11
|
+
* - Bold concentric rounded-square outlines
|
|
12
|
+
* - Wavy motion lines (not straight speed lines)
|
|
13
|
+
* - Oversized dot rosettes (large halftone circles with outline)
|
|
14
|
+
*
|
|
15
|
+
* All artwork is original geometric abstraction — no reproduction of
|
|
16
|
+
* any existing artwork.
|
|
17
|
+
*
|
|
18
|
+
* Uses a 1400×560 viewBox.
|
|
19
|
+
*/
|
|
20
|
+
import { type ColorPalette } from '@datalayer/primer-addons';
|
|
21
|
+
export declare function SvgCareersHero({ palette: paletteProp }?: {
|
|
22
|
+
palette?: ColorPalette;
|
|
23
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,97 @@
|
|
|
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 Careers page.
|
|
9
|
+
*
|
|
10
|
+
* Visual motif — **"Pop Zap"**: a second pop-art composition that
|
|
11
|
+
* complements but differs from the About hero's "Pop Dots".
|
|
12
|
+
*
|
|
13
|
+
* Key elements:
|
|
14
|
+
* - Diagonal halftone stripe bands (45° hatching with dot fills)
|
|
15
|
+
* - Thought-cloud / scalloped shapes (not speech bubbles)
|
|
16
|
+
* - Jagged lightning-bolt / "ZAP" paths
|
|
17
|
+
* - Bold concentric rounded-square outlines
|
|
18
|
+
* - Wavy motion lines (not straight speed lines)
|
|
19
|
+
* - Oversized dot rosettes (large halftone circles with outline)
|
|
20
|
+
*
|
|
21
|
+
* All artwork is original geometric abstraction — no reproduction of
|
|
22
|
+
* any existing artwork.
|
|
23
|
+
*
|
|
24
|
+
* Uses a 1400×560 viewBox.
|
|
25
|
+
*/
|
|
26
|
+
import { useColorPalette, LightBoostFilter } from '@datalayer/primer-addons';
|
|
27
|
+
/* ── Inline path helpers ──────────────────────────────────────────── */
|
|
28
|
+
/**
|
|
29
|
+
* Thought-cloud: a scalloped elliptical shape built from overlapping arcs.
|
|
30
|
+
* (cx, cy) = centre, rx/ry = overall radii, bumps = number of scallops.
|
|
31
|
+
*/
|
|
32
|
+
const thoughtCloud = (cx, cy, rx, ry, bumps) => {
|
|
33
|
+
const pts = [];
|
|
34
|
+
for (let i = 0; i <= bumps; i++) {
|
|
35
|
+
const a = (2 * Math.PI * i) / bumps;
|
|
36
|
+
// Scallop outward on each bump
|
|
37
|
+
const wobble = 1 + 0.18 * Math.cos(bumps * a);
|
|
38
|
+
const x = cx + rx * wobble * Math.cos(a);
|
|
39
|
+
const y = cy + ry * wobble * Math.sin(a);
|
|
40
|
+
if (i === 0) {
|
|
41
|
+
pts.push(`M${x.toFixed(1)},${y.toFixed(1)}`);
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
// Use a quadratic arc through a control point that's pushed outward
|
|
45
|
+
const prevA = (2 * Math.PI * (i - 0.5)) / bumps;
|
|
46
|
+
const cpR = 1.22;
|
|
47
|
+
const cpx = cx + rx * cpR * Math.cos(prevA);
|
|
48
|
+
const cpy = cy + ry * cpR * Math.sin(prevA);
|
|
49
|
+
pts.push(`Q${cpx.toFixed(1)},${cpy.toFixed(1)} ${x.toFixed(1)},${y.toFixed(1)}`);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return pts.join(' ') + 'Z';
|
|
53
|
+
};
|
|
54
|
+
/** Lightning bolt path from (x,y) going downward with width w and height h. */
|
|
55
|
+
const bolt = (x, y, w, h) => `M${x + w * 0.55},${y} L${x + w * 0.35},${y + h * 0.42} L${x + w * 0.65},${y + h * 0.42} ` +
|
|
56
|
+
`L${x + w * 0.40},${y + h} L${x + w * 0.62},${y + h * 0.55} ` +
|
|
57
|
+
`L${x + w * 0.32},${y + h * 0.55} Z`;
|
|
58
|
+
/** Wavy path (horizontal sine-wave line). */
|
|
59
|
+
const wavyLine = (x1, x2, y, amp, freq) => {
|
|
60
|
+
const pts = [];
|
|
61
|
+
for (let x = x1; x <= x2; x += 4) {
|
|
62
|
+
const yy = y + amp * Math.sin((2 * Math.PI * freq * (x - x1)) / (x2 - x1));
|
|
63
|
+
pts.push(`${x},${yy.toFixed(1)}`);
|
|
64
|
+
}
|
|
65
|
+
return `M${pts[0]} ${pts.slice(1).map(p => `L${p}`).join(' ')}`;
|
|
66
|
+
};
|
|
67
|
+
/* ── Component ────────────────────────────────────────────────────── */
|
|
68
|
+
export function SvgCareersHero({ palette: paletteProp } = {}) {
|
|
69
|
+
const auto = useColorPalette();
|
|
70
|
+
const p = paletteProp ?? auto;
|
|
71
|
+
const outline = p.isLight ? '#1b1f24' : '#c9d1d9';
|
|
72
|
+
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: "crDot1", width: "7", height: "7", patternUnits: "userSpaceOnUse", children: _jsx("circle", { cx: "3.5", cy: "3.5", r: "2", fill: p.blaze, opacity: "0.32" }) }), _jsx("pattern", { id: "crDot2", width: "9", height: "9", patternUnits: "userSpaceOnUse", children: _jsx("circle", { cx: "4.5", cy: "4.5", r: "2.5", fill: p.surge, opacity: "0.28" }) }), _jsx("pattern", { id: "crDot3", width: "11", height: "11", patternUnits: "userSpaceOnUse", children: _jsx("circle", { cx: "5.5", cy: "5.5", r: "3", fill: p.gold, opacity: "0.30" }) }), _jsx("pattern", { id: "crDot4", width: "8", height: "8", patternUnits: "userSpaceOnUse", children: _jsx("circle", { cx: "4", cy: "4", r: "2.2", fill: p.pop, opacity: "0.30" }) }), _jsx("pattern", { id: "crHalf", width: "6", height: "6", patternUnits: "userSpaceOnUse", children: _jsx("circle", { cx: "3", cy: "3", r: "0.9", fill: p.primary, opacity: "0.06" }) }), _jsx("pattern", { id: "crHatch1", width: "10", height: "10", patternUnits: "userSpaceOnUse", patternTransform: "rotate(45)", children: _jsx("line", { x1: "0", y1: "5", x2: "10", y2: "5", stroke: p.glow, strokeOpacity: "0.14", strokeWidth: "2" }) }), _jsx("pattern", { id: "crHatch2", width: "12", height: "12", patternUnits: "userSpaceOnUse", patternTransform: "rotate(-45)", children: _jsx("line", { x1: "0", y1: "6", x2: "12", y2: "6", stroke: p.flame, strokeOpacity: "0.12", strokeWidth: "2" }) }), _jsxs("linearGradient", { id: "crBG1", x1: "0", y1: "0", x2: "1", y2: "1", children: [_jsx("stop", { offset: "0%", stopColor: p.blaze, stopOpacity: "0.14" }), _jsx("stop", { offset: "100%", stopColor: p.gold, stopOpacity: "0.08" })] }), _jsxs("linearGradient", { id: "crBG2", x1: "1", y1: "0", x2: "0", y2: "1", children: [_jsx("stop", { offset: "0%", stopColor: p.surge, stopOpacity: "0.12" }), _jsx("stop", { offset: "100%", stopColor: p.spark, stopOpacity: "0.06" })] }), _jsxs("linearGradient", { id: "crBG3", x1: "0", y1: "0", x2: "1", y2: "0", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0.14" }), _jsx("stop", { offset: "100%", stopColor: p.pop, stopOpacity: "0.08" })] }), _jsxs("radialGradient", { id: "crGlow", cx: "50%", cy: "48%", r: "48%", children: [_jsx("stop", { offset: "0%", stopColor: "#ffffff", stopOpacity: "0.07" }), _jsx("stop", { offset: "25%", stopColor: p.glow, stopOpacity: "0.08" }), _jsx("stop", { offset: "60%", 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(#crHalf)" }), _jsx("rect", { x: "-100", y: "40", width: "800", height: "160", rx: "0", fill: "url(#crBG1)", transform: "rotate(-12 350 120)" }), _jsx("rect", { x: "-100", y: "40", width: "800", height: "160", rx: "0", fill: "url(#crHatch1)", transform: "rotate(-12 350 120)" }), _jsx("rect", { x: "600", y: "200", width: "900", height: "140", rx: "0", fill: "url(#crBG2)", transform: "rotate(8 1050 270)" }), _jsx("rect", { x: "600", y: "200", width: "900", height: "140", rx: "0", fill: "url(#crHatch2)", transform: "rotate(8 1050 270)" }), _jsx("rect", { x: "-50", y: "380", width: "900", height: "130", rx: "0", fill: "url(#crBG3)", transform: "rotate(-6 400 445)" }), _jsx("rect", { x: "-50", y: "380", width: "900", height: "130", rx: "0", fill: "url(#crHatch1)", transform: "rotate(-6 400 445)" }), [
|
|
73
|
+
{ x: 550, y: 180, s: 200, c: p.glow, o: 0.14, sw: 3.0 },
|
|
74
|
+
{ x: 580, y: 205, s: 150, c: p.pop, o: 0.12, sw: 2.5 },
|
|
75
|
+
{ x: 610, y: 230, s: 100, c: p.spark, o: 0.10, sw: 2.0 },
|
|
76
|
+
].map(({ x, y, s, c, o, sw }, i) => (_jsx("rect", { x: x, y: y, width: s, height: s, rx: s * 0.15, fill: "none", stroke: c, strokeOpacity: o, strokeWidth: sw }, `sq${i}`))), [
|
|
77
|
+
{ x: 950, y: 100, s: 180, c: p.flame, o: 0.12, sw: 2.8 },
|
|
78
|
+
{ x: 975, y: 122, s: 136, c: p.gold, o: 0.10, sw: 2.2 },
|
|
79
|
+
{ x: 1000, y: 144, s: 92, c: p.blaze, o: 0.09, sw: 1.8 },
|
|
80
|
+
].map(({ x, y, s, c, o, sw }, i) => (_jsx("rect", { x: x, y: y, width: s, height: s, rx: s * 0.15, fill: "none", stroke: c, strokeOpacity: o, strokeWidth: sw }, `sq2${i}`))), _jsx("path", { d: thoughtCloud(250, 150, 100, 70, 10), fill: p.surge, opacity: "0.08" }), _jsx("path", { d: thoughtCloud(250, 150, 100, 70, 10), fill: "url(#crDot2)" }), _jsx("path", { d: thoughtCloud(250, 150, 100, 70, 10), fill: "none", stroke: outline, strokeOpacity: "0.10", strokeWidth: "2" }), _jsx("circle", { cx: "165", cy: "210", r: "12", fill: p.surge, opacity: "0.06" }), _jsx("circle", { cx: "165", cy: "210", r: "12", fill: "none", stroke: outline, strokeOpacity: "0.08", strokeWidth: "1.2" }), _jsx("circle", { cx: "140", cy: "235", r: "7", fill: p.surge, opacity: "0.05" }), _jsx("circle", { cx: "140", cy: "235", r: "7", fill: "none", stroke: outline, strokeOpacity: "0.06", strokeWidth: "1" }), _jsx("path", { d: thoughtCloud(1150, 400, 110, 75, 12), fill: p.gold, opacity: "0.07" }), _jsx("path", { d: thoughtCloud(1150, 400, 110, 75, 12), fill: "url(#crDot3)" }), _jsx("path", { d: thoughtCloud(1150, 400, 110, 75, 12), fill: "none", stroke: outline, strokeOpacity: "0.10", strokeWidth: "2" }), _jsx("circle", { cx: "1055", cy: "460", r: "10", fill: p.gold, opacity: "0.05" }), _jsx("circle", { cx: "1055", cy: "460", r: "10", fill: "none", stroke: outline, strokeOpacity: "0.07", strokeWidth: "1" }), _jsx("circle", { cx: "1035", cy: "480", r: "6", fill: p.gold, opacity: "0.04" }), _jsx("circle", { cx: "1035", cy: "480", r: "6", fill: "none", stroke: outline, strokeOpacity: "0.05", strokeWidth: "0.8" }), _jsx("path", { d: bolt(420, 60, 60, 120), fill: p.gold, opacity: "0.16" }), _jsx("path", { d: bolt(420, 60, 60, 120), fill: "none", stroke: outline, strokeOpacity: "0.12", strokeWidth: "2" }), _jsx("path", { d: bolt(880, 350, 55, 110), fill: p.blaze, opacity: "0.14" }), _jsx("path", { d: bolt(880, 350, 55, 110), fill: "none", stroke: outline, strokeOpacity: "0.10", strokeWidth: "1.8" }), _jsx("path", { d: bolt(100, 360, 45, 100), fill: p.glow, opacity: "0.13" }), _jsx("path", { d: bolt(100, 360, 45, 100), fill: "none", stroke: outline, strokeOpacity: "0.09", strokeWidth: "1.5" }), _jsx("path", { d: bolt(1280, 80, 50, 105), fill: p.pop, opacity: "0.14" }), _jsx("path", { d: bolt(1280, 80, 50, 105), fill: "none", stroke: outline, strokeOpacity: "0.10", strokeWidth: "1.8" }), _jsx("path", { d: wavyLine(50, 400, 300, 8, 5), fill: "none", stroke: p.blaze, strokeOpacity: "0.18", strokeWidth: "2.2" }), _jsx("path", { d: wavyLine(50, 400, 300, 8, 5), fill: "none", stroke: outline, strokeOpacity: "0.05", strokeWidth: "3.2" }), _jsx("path", { d: wavyLine(500, 900, 450, 10, 4), fill: "none", stroke: p.surge, strokeOpacity: "0.16", strokeWidth: "2" }), _jsx("path", { d: wavyLine(500, 900, 450, 10, 4), fill: "none", stroke: outline, strokeOpacity: "0.04", strokeWidth: "3" }), _jsx("path", { d: wavyLine(950, 1380, 100, 7, 6), fill: "none", stroke: p.glow, strokeOpacity: "0.15", strokeWidth: "1.8" }), _jsx("path", { d: wavyLine(950, 1380, 100, 7, 6), fill: "none", stroke: outline, strokeOpacity: "0.04", strokeWidth: "2.8" }), _jsx("path", { d: wavyLine(200, 700, 520, 6, 5), fill: "none", stroke: p.flame, strokeOpacity: "0.12", strokeWidth: "1.6" }), _jsx("path", { d: wavyLine(700, 1200, 60, 9, 4.5), fill: "none", stroke: p.spark, strokeOpacity: "0.14", strokeWidth: "1.8" }), [
|
|
81
|
+
{ cx: 80, cy: 90, r: 22, c: p.blaze, o: 0.18 },
|
|
82
|
+
{ cx: 700, cy: 50, r: 26, c: p.glow, o: 0.15 },
|
|
83
|
+
{ cx: 1350, cy: 280, r: 24, c: p.surge, o: 0.16 },
|
|
84
|
+
{ cx: 50, cy: 480, r: 20, c: p.pop, o: 0.14 },
|
|
85
|
+
{ cx: 700, cy: 530, r: 22, c: p.gold, o: 0.15 },
|
|
86
|
+
{ cx: 1340, cy: 500, r: 18, c: p.spark, o: 0.13 },
|
|
87
|
+
].map(({ cx, cy, r, c, o }, i) => (_jsxs("g", { children: [_jsx("circle", { cx: cx, cy: cy, r: r, fill: c, opacity: o * 0.4 }), _jsx("circle", { cx: cx, cy: cy, r: r, fill: "none", stroke: c, strokeOpacity: o, strokeWidth: 2 }), _jsx("circle", { cx: cx, cy: cy, r: r * 0.55, fill: c, opacity: o * 0.7 }), _jsx("circle", { cx: cx, cy: cy, r: r + 3, fill: "none", stroke: outline, strokeOpacity: 0.08, strokeWidth: 1.5 })] }, `ros${i}`))), _jsx("rect", { x: "560", y: "195", width: "80", height: "80", rx: "4", fill: "url(#crDot1)", opacity: "0.55" }), _jsx("rect", { x: "660", y: "195", width: "80", height: "80", rx: "4", fill: "url(#crDot4)", opacity: "0.50" }), _jsx("rect", { x: "560", y: "290", width: "80", height: "80", rx: "4", fill: "url(#crDot3)", opacity: "0.48" }), _jsx("rect", { x: "660", y: "290", width: "80", height: "80", rx: "4", fill: "url(#crDot2)", opacity: "0.52" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#crGlow)" }), [
|
|
88
|
+
{ x: 180, y: 50, r: 3, c: p.glow, o: 0.55 },
|
|
89
|
+
{ x: 550, y: 40, r: 3.5, c: p.pop, o: 0.50 },
|
|
90
|
+
{ x: 850, y: 45, r: 3, c: p.flame, o: 0.52 },
|
|
91
|
+
{ x: 1150, y: 55, r: 3.5, c: p.surge, o: 0.48 },
|
|
92
|
+
{ x: 250, y: 540, r: 3, c: p.blaze, o: 0.50 },
|
|
93
|
+
{ x: 500, y: 535, r: 3.5, c: p.spark, o: 0.48 },
|
|
94
|
+
{ x: 900, y: 540, r: 3, c: p.gold, o: 0.50 },
|
|
95
|
+
{ x: 1200, y: 530, r: 3.5, c: p.glow, o: 0.45 },
|
|
96
|
+
].map(({ x, y, r, c, o }, i) => (_jsxs("g", { children: [_jsx("circle", { cx: x, cy: y, r: r + 4, fill: c, opacity: o * 0.12 }), _jsx("circle", { cx: x, cy: y, r: r, fill: c, opacity: o })] }, `sd${i}`)))] })] }));
|
|
97
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ColorPalette } from '@datalayer/primer-addons';
|
|
2
|
+
type SvgCellArtifactProps = {
|
|
3
|
+
palette?: ColorPalette;
|
|
4
|
+
width?: number | string;
|
|
5
|
+
height?: number | string;
|
|
6
|
+
};
|
|
7
|
+
export declare function SvgCellArtifact({ palette: paletteProp, width, height, }?: SvgCellArtifactProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default SvgCellArtifact;
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
import { useId } from 'react';
|
|
8
|
+
import { useColorPalette } from '@datalayer/primer-addons';
|
|
9
|
+
export function SvgCellArtifact({ palette: paletteProp, width = '100%', height = 'auto', } = {}) {
|
|
10
|
+
const auto = useColorPalette();
|
|
11
|
+
const p = paletteProp ?? auto;
|
|
12
|
+
const id = useId().replace(/:/g, '');
|
|
13
|
+
return (_jsxs("svg", { viewBox: "0 0 400 400", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { width, height, maxWidth: '100%', maxHeight: '500px', display: 'block' }, children: [_jsxs("defs", { children: [_jsxs("radialGradient", { id: `cell-bg-glow-${id}`, cx: "50%", cy: "50%", r: "50%", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0.14" }), _jsx("stop", { offset: "100%", stopColor: p.glow, stopOpacity: "0" })] }), _jsxs("linearGradient", { id: `cell-grad-1-${id}`, x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [_jsx("stop", { offset: "0%", stopColor: p.surge }), _jsx("stop", { offset: "100%", stopColor: p.spark })] }), _jsxs("linearGradient", { id: `cell-grad-2-${id}`, x1: "100%", y1: "0%", x2: "0%", y2: "100%", children: [_jsx("stop", { offset: "0%", stopColor: p.pop }), _jsx("stop", { offset: "100%", stopColor: p.glow })] })] }), _jsx("circle", { cx: "200", cy: "200", r: "180", fill: `url(#cell-bg-glow-${id})` }), _jsx("rect", { x: "95", y: "70", width: "210", height: "250", rx: "14", fill: `url(#cell-grad-1-${id})`, opacity: "0.12" }), _jsx("rect", { x: "110", y: "85", width: "180", height: "220", rx: "10", fill: `url(#cell-grad-2-${id})`, opacity: "0.18", stroke: p.glow, strokeWidth: "1.2" }), _jsx("rect", { x: "128", y: "105", width: "145", height: "52", rx: "8", fill: p.surge, opacity: "0.15", stroke: p.surge, strokeWidth: "0.8" }), _jsx("text", { x: "136", y: "120", fontSize: "8", fontFamily: "monospace", fill: p.surge, opacity: "0.75", children: "Cell 01" }), _jsx("rect", { x: "136", y: "126", width: "110", height: "5", rx: "2.5", fill: p.surge, opacity: "0.45" }), _jsx("rect", { x: "136", y: "135", width: "125", height: "5", rx: "2.5", fill: p.spark, opacity: "0.35" }), _jsx("rect", { x: "136", y: "144", width: "85", height: "5", rx: "2.5", fill: p.surge, opacity: "0.3" }), _jsx("rect", { x: "128", y: "168", width: "145", height: "52", rx: "8", fill: p.pop, opacity: "0.12", stroke: p.pop, strokeWidth: "0.8" }), _jsx("text", { x: "136", y: "183", fontSize: "8", fontFamily: "monospace", fill: p.pop, opacity: "0.75", children: "Cell 02" }), _jsx("rect", { x: "136", y: "189", width: "95", height: "5", rx: "2.5", fill: p.pop, opacity: "0.45" }), _jsx("rect", { x: "136", y: "198", width: "118", height: "5", rx: "2.5", fill: p.spark, opacity: "0.35" }), _jsx("rect", { x: "136", y: "207", width: "70", height: "5", rx: "2.5", fill: p.pop, opacity: "0.3" }), _jsx("rect", { x: "128", y: "231", width: "145", height: "52", rx: "8", fill: p.glow, opacity: "0.1", stroke: p.glow, strokeWidth: "0.8" }), _jsx("text", { x: "136", y: "246", fontSize: "8", fontFamily: "monospace", fill: p.glow, opacity: "0.75", children: "Cell 03" }), _jsx("rect", { x: "136", y: "252", width: "120", height: "5", rx: "2.5", fill: p.glow, opacity: "0.45" }), _jsx("rect", { x: "136", y: "261", width: "100", height: "5", rx: "2.5", fill: p.spark, opacity: "0.35" }), _jsx("rect", { x: "136", y: "270", width: "82", height: "5", rx: "2.5", fill: p.glow, opacity: "0.3" }), _jsx("circle", { cx: "320", cy: "105", r: "22", fill: p.pop, opacity: "0.1" }), _jsx("path", { d: "M320 90 L323 101 L334 98 L325 105 L333 116 L320 109 L307 116 L315 105 L306 98 L317 101 Z", fill: p.pop, opacity: "0.6" }), _jsx("line", { x1: "290", y1: "140", x2: "325", y2: "126", stroke: p.glow, strokeWidth: "1", opacity: "0.3" }), _jsx("line", { x1: "290", y1: "190", x2: "334", y2: "178", stroke: p.spark, strokeWidth: "1", opacity: "0.24" }), _jsx("circle", { cx: "342", cy: "220", r: "4", fill: p.spark, opacity: "0.35" }), _jsx("circle", { cx: "355", cy: "245", r: "3", fill: p.flame, opacity: "0.35" }), _jsx("circle", { cx: "74", cy: "308", r: "4", fill: p.pop, opacity: "0.3" }), _jsx("circle", { cx: "88", cy: "328", r: "3", fill: p.gold, opacity: "0.32" })] }));
|
|
14
|
+
}
|
|
15
|
+
export default SvgCellArtifact;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wide, tall SVG hero background for the Changelog page.
|
|
3
|
+
*
|
|
4
|
+
* Visual motif — **"Helix Weave"**: interlocking sinusoidal wave paths
|
|
5
|
+
* that weave over and under each other (evoking continuous evolution),
|
|
6
|
+
* hexagonal node markers at wave-crossing points, horizontal ruled
|
|
7
|
+
* "timeline" lines, upward-pointing triangle markers for release
|
|
8
|
+
* milestones, stepped "version bar" rectangles, and zigzag connector
|
|
9
|
+
* lines between version steps.
|
|
10
|
+
*
|
|
11
|
+
* Completely distinct from all other hero flavours:
|
|
12
|
+
* Home → constellation / orbital / hex grid
|
|
13
|
+
* Blog/Login/… → diagonals / radial circles
|
|
14
|
+
* Usecases → aurora bands / vertical pillars / concentric rects / stars
|
|
15
|
+
* Integrations → circuit traces / plus markers / chip rects / chevrons
|
|
16
|
+
* This → sinusoidal helices / hexagons / triangles / version bars
|
|
17
|
+
*
|
|
18
|
+
* Uses a 1400×560 viewBox.
|
|
19
|
+
*/
|
|
20
|
+
import { type ColorPalette } from '@datalayer/primer-addons';
|
|
21
|
+
export declare function SvgChangelogHero({ palette: paletteProp }?: {
|
|
22
|
+
palette?: ColorPalette;
|
|
23
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,128 @@
|
|
|
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 Changelog page.
|
|
9
|
+
*
|
|
10
|
+
* Visual motif — **"Helix Weave"**: interlocking sinusoidal wave paths
|
|
11
|
+
* that weave over and under each other (evoking continuous evolution),
|
|
12
|
+
* hexagonal node markers at wave-crossing points, horizontal ruled
|
|
13
|
+
* "timeline" lines, upward-pointing triangle markers for release
|
|
14
|
+
* milestones, stepped "version bar" rectangles, and zigzag connector
|
|
15
|
+
* lines between version steps.
|
|
16
|
+
*
|
|
17
|
+
* Completely distinct from all other hero flavours:
|
|
18
|
+
* Home → constellation / orbital / hex grid
|
|
19
|
+
* Blog/Login/… → diagonals / radial circles
|
|
20
|
+
* Usecases → aurora bands / vertical pillars / concentric rects / stars
|
|
21
|
+
* Integrations → circuit traces / plus markers / chip rects / chevrons
|
|
22
|
+
* This → sinusoidal helices / hexagons / triangles / version bars
|
|
23
|
+
*
|
|
24
|
+
* Uses a 1400×560 viewBox.
|
|
25
|
+
*/
|
|
26
|
+
import { useColorPalette, LightBoostFilter } from '@datalayer/primer-addons';
|
|
27
|
+
/* ── Inline path helpers ──────────────────────────────────────────── */
|
|
28
|
+
/** Regular hexagon centred at (cx, cy) with circumradius r. */
|
|
29
|
+
const hex = (cx, cy, r) => {
|
|
30
|
+
const pts = Array.from({ length: 6 }, (_, i) => {
|
|
31
|
+
const a = (Math.PI / 3) * i - Math.PI / 2;
|
|
32
|
+
return `${cx + r * Math.cos(a)},${cy + r * Math.sin(a)}`;
|
|
33
|
+
});
|
|
34
|
+
return `M${pts.join('L')}Z`;
|
|
35
|
+
};
|
|
36
|
+
/** Upward-pointing equilateral triangle centred at (cx, cy). */
|
|
37
|
+
const triUp = (cx, cy, r) => {
|
|
38
|
+
const h = r * Math.sqrt(3) / 2;
|
|
39
|
+
return `M${cx},${cy - r}L${cx + h},${cy + r * 0.5}L${cx - h},${cy + r * 0.5}Z`;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Build a smooth sinusoidal path string.
|
|
43
|
+
* amp = amplitude, freq = cycles-per-1400px, phaseShift in px.
|
|
44
|
+
*/
|
|
45
|
+
const sinePath = (yBase, amp, freq, phase) => {
|
|
46
|
+
const pts = [];
|
|
47
|
+
for (let x = -10; x <= 1410; x += 5) {
|
|
48
|
+
const y = yBase + amp * Math.sin((2 * Math.PI * freq * (x - phase)) / 1400);
|
|
49
|
+
pts.push(`${x},${y.toFixed(1)}`);
|
|
50
|
+
}
|
|
51
|
+
return `M${pts[0]} ${pts.slice(1).map(p => `L${p}`).join(' ')}`;
|
|
52
|
+
};
|
|
53
|
+
/** Zigzag path between two (x,y) endpoints with n teeth. */
|
|
54
|
+
const zigzag = (x1, y1, x2, y2, teeth, amp) => {
|
|
55
|
+
const dx = (x2 - x1) / (teeth * 2);
|
|
56
|
+
const dy = (y2 - y1) / (teeth * 2);
|
|
57
|
+
// perpendicular direction
|
|
58
|
+
const len = Math.sqrt(dx * dx + dy * dy) || 1;
|
|
59
|
+
const px = (-dy / len) * amp;
|
|
60
|
+
const py = (dx / len) * amp;
|
|
61
|
+
let d = `M${x1},${y1}`;
|
|
62
|
+
for (let i = 0; i < teeth * 2; i++) {
|
|
63
|
+
const cx = x1 + dx * (i + 1);
|
|
64
|
+
const cy = y1 + dy * (i + 1);
|
|
65
|
+
const sign = i % 2 === 0 ? 1 : -1;
|
|
66
|
+
d += ` L${(cx + px * sign).toFixed(1)},${(cy + py * sign).toFixed(1)}`;
|
|
67
|
+
}
|
|
68
|
+
d += ` L${x2},${y2}`;
|
|
69
|
+
return d;
|
|
70
|
+
};
|
|
71
|
+
/* ── Component ────────────────────────────────────────────────────── */
|
|
72
|
+
export function SvgChangelogHero({ palette: paletteProp } = {}) {
|
|
73
|
+
const auto = useColorPalette();
|
|
74
|
+
const p = paletteProp ?? auto;
|
|
75
|
+
const warmA = p.isLight ? p.surge : p.flame;
|
|
76
|
+
const warmB = p.isLight ? p.spark : p.gold;
|
|
77
|
+
const warmC = p.isLight ? p.pop : p.blaze;
|
|
78
|
+
/* Pre-compute helix paths (3 interlocking pairs) */
|
|
79
|
+
const helices = [
|
|
80
|
+
{ yBase: 180, amp: 55, freq: 2.0, phase: 0, c1: p.glow, c2: p.surge },
|
|
81
|
+
{ yBase: 290, amp: 50, freq: 2.5, phase: 180, c1: p.surge, c2: p.spark },
|
|
82
|
+
{ yBase: 400, amp: 45, freq: 1.8, phase: 90, c1: warmA, c2: warmB },
|
|
83
|
+
];
|
|
84
|
+
/* Crossing-point approx X positions for hexagonal markers */
|
|
85
|
+
const crossings = [
|
|
86
|
+
{ x: 175, y: 180, c: p.glow },
|
|
87
|
+
{ x: 525, y: 180, c: p.surge },
|
|
88
|
+
{ x: 875, y: 180, c: p.glow },
|
|
89
|
+
{ x: 1225, y: 180, c: p.surge },
|
|
90
|
+
{ x: 105, y: 290, c: p.surge },
|
|
91
|
+
{ x: 385, y: 290, c: p.spark },
|
|
92
|
+
{ x: 665, y: 290, c: p.surge },
|
|
93
|
+
{ x: 945, y: 290, c: p.spark },
|
|
94
|
+
{ x: 1225, y: 290, c: p.surge },
|
|
95
|
+
{ x: 245, y: 400, c: warmA },
|
|
96
|
+
{ x: 635, y: 400, c: warmB },
|
|
97
|
+
{ x: 1025, y: 400, c: warmA },
|
|
98
|
+
{ x: 1330, y: 400, c: warmB },
|
|
99
|
+
];
|
|
100
|
+
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: "clRule", width: "1400", height: "28", patternUnits: "userSpaceOnUse", children: _jsx("line", { x1: "0", y1: "28", x2: "1400", y2: "28", stroke: p.primary, strokeOpacity: "0.04", strokeWidth: "0.4" }) }), _jsx("pattern", { id: "clTick", width: "70", height: "560", patternUnits: "userSpaceOnUse", children: _jsx("line", { x1: "35", y1: "0", x2: "35", y2: "560", stroke: p.primary, strokeOpacity: "0.025", strokeWidth: "0.3" }) }), _jsxs("linearGradient", { id: "clHG1", x1: "0", y1: "0", x2: "1", y2: "0", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0" }), _jsx("stop", { offset: "25%", stopColor: p.glow, stopOpacity: "0.20" }), _jsx("stop", { offset: "50%", stopColor: p.surge, stopOpacity: "0.16" }), _jsx("stop", { offset: "75%", stopColor: p.glow, stopOpacity: "0.18" }), _jsx("stop", { offset: "100%", stopColor: p.glow, stopOpacity: "0" })] }), _jsxs("linearGradient", { id: "clHG2", x1: "0", y1: "0", x2: "1", y2: "0", children: [_jsx("stop", { offset: "0%", stopColor: p.surge, stopOpacity: "0" }), _jsx("stop", { offset: "30%", stopColor: p.surge, stopOpacity: "0.18" }), _jsx("stop", { offset: "60%", stopColor: p.spark, stopOpacity: "0.15" }), _jsx("stop", { offset: "100%", stopColor: p.spark, stopOpacity: "0" })] }), _jsxs("linearGradient", { id: "clHG3", x1: "0", y1: "0", x2: "1", y2: "0", children: [_jsx("stop", { offset: "0%", stopColor: warmA, stopOpacity: "0" }), _jsx("stop", { offset: "20%", stopColor: warmA, stopOpacity: "0.16" }), _jsx("stop", { offset: "55%", stopColor: warmB, stopOpacity: "0.18" }), _jsx("stop", { offset: "100%", stopColor: warmB, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "clCenter", cx: "50%", cy: "45%", r: "45%", children: [_jsx("stop", { offset: "0%", stopColor: "#ffffff", stopOpacity: "0.07" }), _jsx("stop", { offset: "30%", stopColor: p.glow, stopOpacity: "0.08" }), _jsx("stop", { offset: "60%", stopColor: p.surge, stopOpacity: "0.04" }), _jsx("stop", { offset: "100%", stopColor: p.surge, 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(#clTick)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#clRule)" }), [70, 140, 210, 280, 350, 420, 490].map((y, i) => {
|
|
101
|
+
const colors = [p.glow, p.surge, p.spark, p.surge, p.flame, p.gold, p.blaze];
|
|
102
|
+
return (_jsx("line", { x1: "0", y1: y, x2: "1400", y2: y, stroke: colors[i], strokeOpacity: 0.06, strokeWidth: 0.5 }, `rl${i}`));
|
|
103
|
+
}), helices.map(({ yBase, amp, freq, phase, c1, c2 }, i) => (_jsxs("g", { children: [_jsx("rect", { x: "0", y: yBase - amp - 20, width: "1400", height: amp * 2 + 40, fill: `url(#clHG${i + 1})`, opacity: "0.35" }), _jsx("path", { d: sinePath(yBase, amp, freq, phase), fill: "none", stroke: c1, strokeOpacity: 0.28, strokeWidth: 1.8 }), _jsx("path", { d: sinePath(yBase, amp, freq, phase + 700 / freq), fill: "none", stroke: c2, strokeOpacity: 0.22, strokeWidth: 1.4 })] }, `helix${i}`))), _jsx("rect", { width: "1400", height: "560", fill: "url(#clCenter)" }), crossings.map(({ x, y, c }, i) => (_jsxs("g", { children: [_jsx("path", { d: hex(x, y, 10), fill: c, opacity: 0.06 }), _jsx("path", { d: hex(x, y, 10), fill: "none", stroke: c, strokeOpacity: 0.18, strokeWidth: 0.6 }), _jsx("path", { d: hex(x, y, 4), fill: c, opacity: 0.55 })] }, `hx${i}`))), [
|
|
104
|
+
{ x: 100, y: 80, c: p.glow, o: 0.60 },
|
|
105
|
+
{ x: 275, y: 70, c: p.surge, o: 0.55 },
|
|
106
|
+
{ x: 450, y: 85, c: p.spark, o: 0.58 },
|
|
107
|
+
{ x: 625, y: 65, c: p.surge, o: 0.52 },
|
|
108
|
+
{ x: 800, y: 78, c: warmA, o: 0.55 },
|
|
109
|
+
{ x: 975, y: 72, c: warmB, o: 0.58 },
|
|
110
|
+
{ x: 1150, y: 82, c: warmC, o: 0.52 },
|
|
111
|
+
{ x: 1320, y: 68, c: p.glow, o: 0.55 },
|
|
112
|
+
{ x: 180, y: 500, c: p.surge, o: 0.48 },
|
|
113
|
+
{ x: 380, y: 510, c: p.glow, o: 0.50 },
|
|
114
|
+
{ x: 580, y: 495, c: p.surge, o: 0.45 },
|
|
115
|
+
{ x: 780, y: 505, c: p.spark, o: 0.48 },
|
|
116
|
+
{ x: 980, y: 498, c: warmA, o: 0.50 },
|
|
117
|
+
{ x: 1180, y: 508, c: warmB, o: 0.45 },
|
|
118
|
+
].map(({ x, y, c, o }, i) => (_jsx("path", { d: triUp(x, y, 4), fill: c, opacity: o }, `tri${i}`))), [
|
|
119
|
+
{ x: 60, y: 130, w: 80, h: 20, c: p.glow, o: 0.10 },
|
|
120
|
+
{ x: 220, y: 120, w: 90, h: 22, c: p.surge, o: 0.09 },
|
|
121
|
+
{ x: 400, y: 125, w: 85, h: 20, c: p.spark, o: 0.10 },
|
|
122
|
+
{ x: 580, y: 115, w: 95, h: 24, c: p.surge, o: 0.08 },
|
|
123
|
+
{ x: 780, y: 122, w: 80, h: 20, c: warmA, o: 0.09 },
|
|
124
|
+
{ x: 940, y: 118, w: 90, h: 22, c: warmB, o: 0.10 },
|
|
125
|
+
{ x: 1120, y: 128, w: 85, h: 20, c: warmC, o: 0.08 },
|
|
126
|
+
{ x: 1280, y: 116, w: 75, h: 20, c: p.glow, o: 0.09 },
|
|
127
|
+
].map(({ x, y, w, h, c, o }, i) => (_jsxs("g", { children: [_jsx("rect", { x: x, y: y, width: w, height: h, rx: 4, fill: c, opacity: o * 0.5 }), _jsx("rect", { x: x, y: y, width: w, height: h, rx: 4, fill: "none", stroke: c, strokeOpacity: o, strokeWidth: 0.6 })] }, `vb${i}`))), _jsx("path", { d: zigzag(140, 140, 220, 131, 4, 5), fill: "none", stroke: p.glow, strokeOpacity: 0.12, strokeWidth: 0.7 }), _jsx("path", { d: zigzag(310, 131, 400, 135, 4, 5), fill: "none", stroke: p.surge, strokeOpacity: 0.10, strokeWidth: 0.6 }), _jsx("path", { d: zigzag(485, 135, 580, 127, 4, 5), fill: "none", stroke: p.spark, strokeOpacity: 0.10, strokeWidth: 0.6 }), _jsx("path", { d: zigzag(675, 127, 780, 132, 4, 5), fill: "none", stroke: p.surge, strokeOpacity: 0.10, strokeWidth: 0.6 }), _jsx("path", { d: zigzag(860, 132, 940, 129, 4, 5), fill: "none", stroke: p.flame, strokeOpacity: 0.10, strokeWidth: 0.6 }), _jsx("path", { d: zigzag(1030, 129, 1120, 138, 4, 5), fill: "none", stroke: p.gold, strokeOpacity: 0.10, strokeWidth: 0.6 }), _jsx("path", { d: zigzag(1205, 138, 1280, 126, 4, 5), fill: "none", stroke: p.blaze, strokeOpacity: 0.10, strokeWidth: 0.6 }), _jsx("ellipse", { cx: "350", cy: "180", rx: "120", ry: "55", fill: p.glow, opacity: "0.035" }), _jsx("ellipse", { cx: "700", cy: "290", rx: "140", ry: "60", fill: p.surge, opacity: "0.03" }), _jsx("ellipse", { cx: "1050", cy: "180", rx: "110", ry: "50", fill: p.surge, opacity: "0.035" }), _jsx("ellipse", { cx: "200", cy: "400", rx: "100", ry: "45", fill: p.flame, opacity: "0.03" }), _jsx("ellipse", { cx: "1150", cy: "400", rx: "120", ry: "55", fill: p.gold, opacity: "0.03" }), _jsx("ellipse", { cx: "500", cy: "100", rx: "100", ry: "40", fill: p.spark, opacity: "0.025" })] })] }));
|
|
128
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
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 SVG hero background for the Community page.
|
|
9
|
+
*
|
|
10
|
+
* Visual motif: a living constellation of many small community member
|
|
11
|
+
* nodes clustered into 5 organic groups, connected by thin straight
|
|
12
|
+
* lines. Animated ripple waves radiate outward from random nodes,
|
|
13
|
+
* tiny particles orbit cluster centres, and faint pulse glows breathe
|
|
14
|
+
* across the canvas — evoking an active, growing community.
|
|
15
|
+
*
|
|
16
|
+
* Deliberately different from SvgAgentsHomeHero:
|
|
17
|
+
* • More nodes (18), smaller, no labels
|
|
18
|
+
* • Straight-line connections (not curves)
|
|
19
|
+
* • Ripple-wave animations instead of travelling dots
|
|
20
|
+
* • 5 cluster groups with faint enclosing circles
|
|
21
|
+
* • Orbiting particles around each cluster centre
|
|
22
|
+
* • No concentric coordination rings
|
|
23
|
+
* • Triangle-mesh pattern underlay (vs honeycomb/dot)
|
|
24
|
+
*
|
|
25
|
+
* Uses a 1400×560 viewBox to match the hero's minHeight.
|
|
26
|
+
*/
|
|
27
|
+
import { useMemo } from 'react';
|
|
28
|
+
import { useColorPalette, LightBoostFilter } from '@datalayer/primer-addons';
|
|
29
|
+
/** Seeded PRNG (mulberry32) — different pattern each page load. */
|
|
30
|
+
function createRng(seed) {
|
|
31
|
+
let s = seed | 0;
|
|
32
|
+
return () => {
|
|
33
|
+
s = (s + 0x6d2b79f5) | 0;
|
|
34
|
+
let t = Math.imul(s ^ (s >>> 15), 1 | s);
|
|
35
|
+
t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t;
|
|
36
|
+
return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
const MEMBERS = [
|
|
40
|
+
// Cluster 0 — upper-left (Builders)
|
|
41
|
+
{ x: 180, y: 160, r: 5.5, colorKey: 'glow', cluster: 0 },
|
|
42
|
+
{ x: 240, y: 120, r: 4.0, colorKey: 'pop', cluster: 0 },
|
|
43
|
+
{ x: 140, y: 210, r: 3.5, colorKey: 'surge', cluster: 0 },
|
|
44
|
+
{ x: 260, y: 200, r: 4.5, colorKey: 'glow', cluster: 0 },
|
|
45
|
+
// Cluster 1 — centre-left (Contributors)
|
|
46
|
+
{ x: 380, y: 340, r: 5.0, colorKey: 'spark', cluster: 1 },
|
|
47
|
+
{ x: 440, y: 290, r: 3.8, colorKey: 'glow', cluster: 1 },
|
|
48
|
+
{ x: 340, y: 380, r: 4.2, colorKey: 'surge', cluster: 1 },
|
|
49
|
+
{ x: 460, y: 370, r: 3.5, colorKey: 'pop', cluster: 1 },
|
|
50
|
+
// Cluster 2 — centre (Core)
|
|
51
|
+
{ x: 700, y: 260, r: 6.5, colorKey: 'glow', cluster: 2 },
|
|
52
|
+
{ x: 650, y: 200, r: 4.5, colorKey: 'pop', cluster: 2 },
|
|
53
|
+
{ x: 760, y: 210, r: 4.0, colorKey: 'surge', cluster: 2 },
|
|
54
|
+
{ x: 680, y: 330, r: 4.8, colorKey: 'spark', cluster: 2 },
|
|
55
|
+
{ x: 740, y: 320, r: 3.6, colorKey: 'glow', cluster: 2 },
|
|
56
|
+
// Cluster 3 — centre-right (Advocates)
|
|
57
|
+
{ x: 960, y: 310, r: 5.2, colorKey: 'blaze', cluster: 3 },
|
|
58
|
+
{ x: 1020, y: 260, r: 4.0, colorKey: 'glow', cluster: 3 },
|
|
59
|
+
{ x: 920, y: 360, r: 3.8, colorKey: 'surge', cluster: 3 },
|
|
60
|
+
// Cluster 4 — upper-right (Learners)
|
|
61
|
+
{ x: 1180, y: 170, r: 5.0, colorKey: 'flame', cluster: 4 },
|
|
62
|
+
{ x: 1240, y: 130, r: 4.2, colorKey: 'glow', cluster: 4 },
|
|
63
|
+
{ x: 1140, y: 220, r: 3.6, colorKey: 'gold', cluster: 4 },
|
|
64
|
+
{ x: 1260, y: 210, r: 4.0, colorKey: 'surge', cluster: 4 },
|
|
65
|
+
];
|
|
66
|
+
/** Straight-line connections (index pairs into MEMBERS). */
|
|
67
|
+
const EDGES = [
|
|
68
|
+
// Intra-cluster edges (dense)
|
|
69
|
+
[0, 1], [0, 2], [0, 3], [1, 3], [2, 3],
|
|
70
|
+
[4, 5], [4, 6], [4, 7], [5, 7], [6, 7],
|
|
71
|
+
[8, 9], [8, 10], [8, 11], [8, 12], [9, 10], [11, 12], [9, 12],
|
|
72
|
+
[13, 14], [13, 15], [14, 15],
|
|
73
|
+
[16, 17], [16, 18], [16, 19], [17, 19], [18, 19],
|
|
74
|
+
// Inter-cluster bridges (sparse, longer)
|
|
75
|
+
[3, 5], // cluster 0 → 1
|
|
76
|
+
[1, 9], // cluster 0 → 2
|
|
77
|
+
[5, 9], // cluster 1 → 2
|
|
78
|
+
[7, 11], // cluster 1 → 2
|
|
79
|
+
[10, 14], // cluster 2 → 3
|
|
80
|
+
[12, 13], // cluster 2 → 3
|
|
81
|
+
[14, 17], // cluster 3 → 4
|
|
82
|
+
[10, 19], // cluster 2 → 4
|
|
83
|
+
];
|
|
84
|
+
/** Cluster centres for orbiting particles & enclosing circles. */
|
|
85
|
+
const CLUSTERS = [
|
|
86
|
+
{ cx: 205, cy: 172, label: 'Builders' },
|
|
87
|
+
{ cx: 405, cy: 345, label: 'Contributors' },
|
|
88
|
+
{ cx: 706, cy: 264, label: 'Core' },
|
|
89
|
+
{ cx: 967, cy: 310, label: 'Advocates' },
|
|
90
|
+
{ cx: 1205, cy: 182, label: 'Learners' },
|
|
91
|
+
];
|
|
92
|
+
const CLUSTER_MOVING_ACCENT_SEQUENCES = [
|
|
93
|
+
['spark', 'pop', 'surge'],
|
|
94
|
+
['pop', 'glow', 'spark'],
|
|
95
|
+
['spark', 'gold', 'blaze'],
|
|
96
|
+
['blaze', 'gold', 'flame'],
|
|
97
|
+
['flame', 'gold', 'blaze'],
|
|
98
|
+
];
|
|
99
|
+
export function SvgCommunityHero({ palette: paletteProp } = {}) {
|
|
100
|
+
const auto = useColorPalette();
|
|
101
|
+
const p = paletteProp ?? auto;
|
|
102
|
+
/** Randomised animation params — stable per mount. */
|
|
103
|
+
const anims = useMemo(() => {
|
|
104
|
+
const rng = createRng(Date.now());
|
|
105
|
+
// Ripple waves: pick 8 nodes that will ripple
|
|
106
|
+
const rippleNodes = Array.from({ length: 8 }, () => {
|
|
107
|
+
const idx = Math.floor(rng() * MEMBERS.length);
|
|
108
|
+
const dur = 3.0 + rng() * 4.0; // 3 – 7 s
|
|
109
|
+
const delay = rng() * dur;
|
|
110
|
+
const maxR = 30 + rng() * 50; // 30 – 80
|
|
111
|
+
return { idx, dur, delay, maxR };
|
|
112
|
+
});
|
|
113
|
+
// Orbiting particles: 3 per cluster
|
|
114
|
+
const orbiters = CLUSTERS.map(() => Array.from({ length: 3 }, () => ({
|
|
115
|
+
orbitR: 40 + rng() * 60, // 40 – 100
|
|
116
|
+
dur: 6 + rng() * 12, // 6 – 18 s
|
|
117
|
+
delay: rng() * 6,
|
|
118
|
+
r: 1.2 + rng() * 1.5, // 1.2 – 2.7
|
|
119
|
+
clockwise: rng() > 0.5,
|
|
120
|
+
})));
|
|
121
|
+
// Edge shimmer: random pulse delay per edge
|
|
122
|
+
const edgePulses = EDGES.map(() => ({
|
|
123
|
+
dur: 4 + rng() * 5,
|
|
124
|
+
delay: rng() * 6,
|
|
125
|
+
peakOp: 0.25 + rng() * 0.20, // 0.25 – 0.45
|
|
126
|
+
}));
|
|
127
|
+
// Node breathing: each node pulses its outer halo
|
|
128
|
+
const nodeBreaths = MEMBERS.map(() => ({
|
|
129
|
+
dur: 3 + rng() * 4,
|
|
130
|
+
delay: rng() * 4,
|
|
131
|
+
minOp: 0.08 + rng() * 0.06,
|
|
132
|
+
maxOp: 0.22 + rng() * 0.14,
|
|
133
|
+
}));
|
|
134
|
+
return { rippleNodes, orbiters, edgePulses, nodeBreaths };
|
|
135
|
+
}, []);
|
|
136
|
+
return (_jsxs("svg", { viewBox: "0 0 1400 400", 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: "cmGlow1", cx: "15%", cy: "30%", r: "40%", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0.55" }), _jsx("stop", { offset: "45%", stopColor: p.glow, stopOpacity: "0.14" }), _jsx("stop", { offset: "100%", stopColor: p.glow, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "cmGlow2", cx: "50%", cy: "47%", r: "50%", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0.60" }), _jsx("stop", { offset: "35%", stopColor: p.glow, stopOpacity: "0.18" }), _jsx("stop", { offset: "100%", stopColor: p.glow, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "cmGlow3", cx: "85%", cy: "30%", r: "40%", children: [_jsx("stop", { offset: "0%", stopColor: p.surge, stopOpacity: "0.50" }), _jsx("stop", { offset: "45%", stopColor: p.surge, stopOpacity: "0.12" }), _jsx("stop", { offset: "100%", stopColor: p.surge, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "cmGlow4", cx: "30%", cy: "65%", r: "42%", children: [_jsx("stop", { offset: "0%", stopColor: p.surge, stopOpacity: "0.48" }), _jsx("stop", { offset: "48%", stopColor: p.surge, stopOpacity: "0.10" }), _jsx("stop", { offset: "100%", stopColor: p.surge, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "cmGlow5", cx: "70%", cy: "60%", r: "42%", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0.45" }), _jsx("stop", { offset: "48%", stopColor: p.glow, stopOpacity: "0.10" }), _jsx("stop", { offset: "100%", stopColor: p.glow, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "cmGlow6", cx: "50%", cy: "10%", r: "38%", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0.42" }), _jsx("stop", { offset: "50%", stopColor: p.glow, stopOpacity: "0.08" }), _jsx("stop", { offset: "100%", stopColor: p.glow, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "cmGlow7", cx: "50%", cy: "90%", r: "38%", children: [_jsx("stop", { offset: "0%", stopColor: p.surge, stopOpacity: "0.40" }), _jsx("stop", { offset: "50%", stopColor: p.surge, stopOpacity: "0.08" }), _jsx("stop", { offset: "100%", stopColor: p.surge, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "cmGlow8", cx: "20%", cy: "80%", r: "36%", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0.38" }), _jsx("stop", { offset: "50%", stopColor: p.glow, stopOpacity: "0.08" }), _jsx("stop", { offset: "100%", stopColor: p.glow, stopOpacity: "0" })] }), _jsxs("linearGradient", { id: "cmShimmer", x1: "0.05", y1: "0.9", x2: "0.95", y2: "0.1", children: [_jsx("stop", { offset: "0%", stopColor: p.surge, stopOpacity: "0" }), _jsx("stop", { offset: "20%", stopColor: p.surge, stopOpacity: "0.16" }), _jsx("stop", { offset: "40%", stopColor: p.glow, stopOpacity: "0.18" }), _jsx("stop", { offset: "60%", stopColor: "#ffffff", stopOpacity: "0.06" }), _jsx("stop", { offset: "80%", stopColor: p.glow, stopOpacity: "0.16" }), _jsx("stop", { offset: "100%", stopColor: p.surge, stopOpacity: "0" })] }), _jsxs("pattern", { id: "cmTriMesh", 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.06", strokeWidth: "0.5" }), _jsx("polygon", { points: "24,42 48,0 0,0", fill: "none", stroke: p.surge, strokeOpacity: "0.04", strokeWidth: "0.4" })] }), _jsx("pattern", { id: "cmDots", width: "32", height: "32", patternUnits: "userSpaceOnUse", children: _jsx("circle", { cx: "1", cy: "1", r: "0.5", fill: p.glow, opacity: "0.10" }) }), _jsxs("pattern", { id: "cmRings", width: "60", height: "60", patternUnits: "userSpaceOnUse", children: [_jsx("circle", { cx: "30", cy: "30", r: "20", fill: "none", stroke: p.surge, strokeOpacity: "0.035", strokeWidth: "0.4" }), _jsx("circle", { cx: "30", cy: "30", r: "10", fill: "none", stroke: p.glow, strokeOpacity: "0.03", strokeWidth: "0.3" })] })] }), _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(#cmDots)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#cmTriMesh)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#cmRings)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#cmGlow1)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#cmGlow2)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#cmGlow3)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#cmGlow4)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#cmGlow5)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#cmGlow6)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#cmGlow7)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#cmGlow8)" }), _jsx("rect", { width: "1400", height: "560", fill: "url(#cmShimmer)" }), _jsx("line", { x1: "200", y1: "0", x2: "700", y2: "560", stroke: p.glow, strokeOpacity: "0.10", strokeWidth: "44" }), _jsx("line", { x1: "700", y1: "0", x2: "1200", y2: "560", stroke: p.surge, strokeOpacity: "0.08", strokeWidth: "36" }), _jsx("line", { x1: "0", y1: "200", x2: "400", y2: "560", stroke: p.surge, strokeOpacity: "0.07", strokeWidth: "28" }), _jsx("line", { x1: "1000", y1: "0", x2: "1400", y2: "360", stroke: p.glow, strokeOpacity: "0.08", strokeWidth: "30" }), _jsx("line", { x1: "450", y1: "0", x2: "950", y2: "560", stroke: p.glow, strokeOpacity: "0.05", strokeWidth: "22" }), CLUSTERS.map((cl, ci) => {
|
|
137
|
+
const clr = ci % 2 === 0 ? p.glow : p.surge;
|
|
138
|
+
const r = ci === 2 ? 110 : 85; // centre cluster is larger
|
|
139
|
+
return (_jsxs("g", { children: [_jsx("circle", { cx: cl.cx, cy: cl.cy, r: r, fill: clr, opacity: "0.04" }), _jsx("circle", { cx: cl.cx, cy: cl.cy, r: r, fill: "none", stroke: clr, strokeOpacity: "0.14", strokeWidth: "0.8", strokeDasharray: ci % 2 === 0 ? '8 6' : '4 8' }), _jsx("circle", { cx: cl.cx, cy: cl.cy, r: r + 20, fill: "none", stroke: clr, strokeOpacity: "0.07", strokeWidth: "0.5", strokeDasharray: "3 7" })] }, `cl-${ci}`));
|
|
140
|
+
}), EDGES.map(([ai, bi], i) => {
|
|
141
|
+
const a = MEMBERS[ai];
|
|
142
|
+
const b = MEMBERS[bi];
|
|
143
|
+
const ep = anims.edgePulses[i];
|
|
144
|
+
const isBridge = a.cluster !== b.cluster;
|
|
145
|
+
const color = p[a.colorKey];
|
|
146
|
+
return (_jsxs("g", { children: [_jsx("line", { x1: a.x, y1: a.y, x2: b.x, y2: b.y, stroke: color, strokeOpacity: isBridge ? 0.15 : 0.25, strokeWidth: isBridge ? 0.6 : 0.9, strokeDasharray: isBridge ? '5 7' : undefined }), _jsx("line", { x1: a.x, y1: a.y, x2: b.x, y2: b.y, stroke: color, strokeWidth: isBridge ? 0.8 : 1.2, opacity: "0", children: _jsx("animate", { attributeName: "opacity", values: `0;${ep.peakOp.toFixed(2)};0`, keyTimes: "0;0.5;1", dur: `${ep.dur.toFixed(1)}s`, begin: `${ep.delay.toFixed(1)}s`, repeatCount: "indefinite" }) })] }, `edge-${i}`));
|
|
147
|
+
}), MEMBERS.map((m, i) => {
|
|
148
|
+
const c = p[m.colorKey];
|
|
149
|
+
const nb = anims.nodeBreaths[i];
|
|
150
|
+
const isCore = m.r >= 5.5;
|
|
151
|
+
return (_jsxs("g", { children: [_jsx("circle", { cx: m.x, cy: m.y, r: m.r * 5, fill: c, opacity: nb.minOp.toFixed(2), children: _jsx("animate", { attributeName: "opacity", values: `${nb.minOp.toFixed(2)};${nb.maxOp.toFixed(2)};${nb.minOp.toFixed(2)}`, dur: `${nb.dur.toFixed(1)}s`, begin: `${nb.delay.toFixed(1)}s`, repeatCount: "indefinite" }) }), _jsx("circle", { cx: m.x, cy: m.y, r: m.r * 2.5, fill: c, opacity: isCore ? 0.22 : 0.16 }), _jsx("circle", { cx: m.x, cy: m.y, r: m.r * 2.5 + 1.5, fill: "none", stroke: c, strokeOpacity: isCore ? 0.38 : 0.28, strokeWidth: isCore ? 1.0 : 0.7 }), _jsx("circle", { cx: m.x, cy: m.y, r: m.r, fill: c, opacity: isCore ? 0.95 : 0.88 })] }, `node-${i}`));
|
|
152
|
+
}), anims.rippleNodes.map((rp, i) => {
|
|
153
|
+
const m = MEMBERS[rp.idx];
|
|
154
|
+
const clusterSequence = CLUSTER_MOVING_ACCENT_SEQUENCES[m.cluster];
|
|
155
|
+
const c = p[clusterSequence[i % clusterSequence.length]];
|
|
156
|
+
return (_jsxs("circle", { cx: m.x, cy: m.y, r: m.r, fill: "none", stroke: c, strokeWidth: "1.6", opacity: "0", children: [_jsx("animate", { attributeName: "r", values: `${m.r};${rp.maxR.toFixed(0)}`, dur: `${rp.dur.toFixed(1)}s`, begin: `${rp.delay.toFixed(1)}s`, repeatCount: "indefinite" }), _jsx("animate", { attributeName: "opacity", values: "0.78;0", dur: `${rp.dur.toFixed(1)}s`, begin: `${rp.delay.toFixed(1)}s`, repeatCount: "indefinite" }), _jsx("animate", { attributeName: "stroke-width", values: "1.6;0.3", dur: `${rp.dur.toFixed(1)}s`, begin: `${rp.delay.toFixed(1)}s`, repeatCount: "indefinite" })] }, `ripple-${i}`));
|
|
157
|
+
}), CLUSTERS.map((cl, ci) => {
|
|
158
|
+
const orbs = anims.orbiters[ci];
|
|
159
|
+
const clusterSequence = CLUSTER_MOVING_ACCENT_SEQUENCES[ci];
|
|
160
|
+
return (_jsx("g", { children: orbs.map((ob, oi) => {
|
|
161
|
+
const dir = ob.clockwise ? 1 : -1;
|
|
162
|
+
const clr = p[clusterSequence[oi % clusterSequence.length]];
|
|
163
|
+
// Elliptical orbit path centred on cluster
|
|
164
|
+
const rx = ob.orbitR;
|
|
165
|
+
const ry = ob.orbitR * 0.6;
|
|
166
|
+
return (_jsxs("circle", { r: ob.r.toFixed(1), fill: clr, opacity: "0.92", stroke: p.bg, strokeOpacity: "0.36", strokeWidth: "0.5", children: [_jsx("animateMotion", { dur: `${ob.dur.toFixed(1)}s`, begin: `${ob.delay.toFixed(1)}s`, repeatCount: "indefinite", path: `M${cl.cx + rx * dir},${cl.cy} A${rx},${ry} 0 1,${ob.clockwise ? 1 : 0} ${cl.cx - rx * dir},${cl.cy} A${rx},${ry} 0 1,${ob.clockwise ? 1 : 0} ${cl.cx + rx * dir},${cl.cy}` }), _jsx("animate", { attributeName: "opacity", values: "0.62;1;0.62", dur: `${ob.dur.toFixed(1)}s`, begin: `${ob.delay.toFixed(1)}s`, repeatCount: "indefinite" })] }, oi));
|
|
167
|
+
}) }, `orbit-${ci}`));
|
|
168
|
+
}), _jsx("path", { d: "M0 120 Q300 70 600 110 T1200 80 T1400 100", fill: "none", stroke: p.glow, strokeOpacity: "0.22", strokeWidth: "1.3" }), _jsx("path", { d: "M0 440 Q350 390 700 430 T1400 410", fill: "none", stroke: p.surge, strokeOpacity: "0.18", strokeWidth: "1.1" }), _jsx("path", { d: "M0 280 Q400 240 800 270 T1400 250", fill: "none", stroke: p.glow, strokeOpacity: "0.16", strokeWidth: "1.0" }), _jsx("path", { d: "M0 500 Q250 460 500 490 T1000 470 T1400 480", fill: "none", stroke: p.surge, strokeOpacity: "0.14", strokeWidth: "0.9" }), _jsx("path", { d: "M0 60 Q500 30 1000 55 T1400 45", fill: "none", stroke: p.glow, strokeOpacity: "0.14", strokeWidth: "0.8" }), _jsx("circle", { cx: "50", cy: "80", r: "1.8", fill: p.glow, opacity: "0.82" }), _jsx("circle", { cx: "320", cy: "60", r: "1.6", fill: p.surge, opacity: "0.74" }), _jsx("circle", { cx: "560", cy: "45", r: "2.0", fill: p.glow, opacity: "0.80" }), _jsx("circle", { cx: "830", cy: "55", r: "1.7", fill: p.surge, opacity: "0.72" }), _jsx("circle", { cx: "1050", cy: "70", r: "1.9", fill: p.glow, opacity: "0.78" }), _jsx("circle", { cx: "1350", cy: "50", r: "1.8", fill: p.surge, opacity: "0.76" }), _jsx("circle", { cx: "90", cy: "490", r: "1.9", fill: p.surge, opacity: "0.74" }), _jsx("circle", { cx: "280", cy: "510", r: "1.7", fill: p.glow, opacity: "0.72" }), _jsx("circle", { cx: "520", cy: "530", r: "2.0", fill: p.glow, opacity: "0.76" }), _jsx("circle", { cx: "780", cy: "520", r: "1.6", fill: p.surge, opacity: "0.70" }), _jsx("circle", { cx: "1020", cy: "515", r: "1.8", fill: p.glow, opacity: "0.74" }), _jsx("circle", { cx: "1300", cy: "500", r: "1.7", fill: p.surge, opacity: "0.72" }), _jsx("circle", { cx: "250", cy: "250", r: "100", fill: p.glow, opacity: "0.08" }), _jsx("circle", { cx: "700", cy: "350", r: "110", fill: p.glow, opacity: "0.07" }), _jsx("circle", { cx: "1100", cy: "200", r: "90", fill: p.surge, opacity: "0.08" }), _jsx("circle", { cx: "500", cy: "450", r: "75", fill: p.surge, opacity: "0.06" }), _jsx("circle", { cx: "900", cy: "100", r: "80", fill: p.glow, opacity: "0.06" }), _jsx("circle", { cx: "150", cy: "450", r: "70", fill: p.surge, opacity: "0.055" }), _jsx("circle", { cx: "1250", cy: "400", r: "70", fill: p.glow, opacity: "0.055" }), _jsx("path", { d: "M80 500 A200 200 0 0 1 80 100", fill: "none", stroke: p.glow, strokeOpacity: "0.16", strokeWidth: "1.0", strokeDasharray: "5 7" }), _jsx("path", { d: "M110 460 A160 160 0 0 1 110 140", fill: "none", stroke: p.surge, strokeOpacity: "0.12", strokeWidth: "0.8", strokeDasharray: "3 5" }), _jsx("path", { d: "M1320 100 A200 200 0 0 1 1320 500", fill: "none", stroke: p.surge, strokeOpacity: "0.16", strokeWidth: "1.0", strokeDasharray: "5 7" }), _jsx("path", { d: "M1290 140 A160 160 0 0 1 1290 460", fill: "none", stroke: p.glow, strokeOpacity: "0.12", strokeWidth: "0.8", strokeDasharray: "3 5" })] })] }));
|
|
169
|
+
}
|
|
170
|
+
export default SvgCommunityHero;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wide, abstract SVG hero background for the Contact page.
|
|
3
|
+
*
|
|
4
|
+
* Visual motif: interconnected constellation network, speech-bubble-like
|
|
5
|
+
* rounded shapes, and wave-like flowing curves — evokes communication,
|
|
6
|
+
* connection, and openness.
|
|
7
|
+
*/
|
|
8
|
+
import { type ColorPalette } from '@datalayer/primer-addons';
|
|
9
|
+
export declare function SvgContactHero({ palette: paletteProp }?: {
|
|
10
|
+
palette?: ColorPalette;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|