@datalayer/design 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/App.js +4 -5
- package/lib/pages/HomePage.js +223 -45
- package/lib/pages/IconsPage.js +12 -4
- package/lib/pages/SvgPage.js +386 -106
- package/lib/svg/SvgAI.d.ts +11 -0
- package/lib/svg/SvgAI.js +15 -0
- package/lib/svg/SvgAI2.d.ts +11 -0
- package/lib/svg/SvgAI2.js +17 -0
- package/lib/svg/SvgAI3.d.ts +12 -0
- package/lib/svg/SvgAI3.js +60 -0
- package/lib/svg/SvgAssignmentArtifact.d.ts +8 -0
- package/lib/svg/SvgAssignmentArtifact.js +15 -0
- package/lib/svg/SvgCellOutputshotPlaceholder.d.ts +28 -0
- package/lib/svg/SvgCellOutputshotPlaceholder.js +70 -0
- package/lib/svg/SvgEarthHero.d.ts +2 -2
- package/lib/svg/SvgEarthHero.js +41 -8
- package/lib/svg/SvgEvalsHero.d.ts +15 -0
- package/lib/svg/SvgEvalsHero.js +23 -0
- package/lib/svg/SvgExerciseArtifact.d.ts +8 -0
- package/lib/svg/SvgExerciseArtifact.js +15 -0
- package/lib/svg/SvgLessonArtifact.d.ts +8 -0
- package/lib/svg/SvgLessonArtifact.js +15 -0
- package/lib/svg/SvgNotebookMock.d.ts +10 -0
- package/lib/svg/SvgNotebookMock.js +70 -0
- package/lib/svg/SvgOSAContributions.d.ts +11 -0
- package/lib/svg/SvgOSAContributions.js +25 -0
- package/lib/svg/SvgPartnersHero.d.ts +16 -0
- package/lib/svg/SvgPartnersHero.js +94 -0
- package/lib/svg/SvgPixel1.js +29 -2
- package/lib/svg/SvgPixel2.js +37 -8
- package/lib/svg/SvgSkubble.d.ts +11 -0
- package/lib/svg/SvgSkubble.js +23 -0
- package/lib/svg/gallery.d.ts +1 -1
- package/lib/svg/gallery.js +16 -1
- package/lib/svg/images/eric-charles-2.svg +1249 -0
- package/lib/svg/images/eric-charles.svg +1131 -0
- package/lib/svg/index.d.ts +17 -0
- package/lib/svg/index.js +12 -0
- package/package.json +11 -4
- package/lib/DatalayerIcons.d.ts +0 -2
- package/lib/DatalayerIcons.js +0 -169
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type SvgNotebookMockProps = {
|
|
2
|
+
style?: React.CSSProperties;
|
|
3
|
+
className?: string;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Notebook-like hero mock used in landing pages. Despite the `Svg` prefix, it
|
|
7
|
+
* is implemented as themed Primer blocks so it adapts to color modes.
|
|
8
|
+
*/
|
|
9
|
+
export declare function SvgNotebookMock({ style, className, }: SvgNotebookMockProps): JSX.Element;
|
|
10
|
+
export default SvgNotebookMock;
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { Text } from '@primer/react';
|
|
8
|
+
import { Box, useColorPalette } from '@datalayer/primer-addons';
|
|
9
|
+
import { ZapIcon } from '@primer/octicons-react';
|
|
10
|
+
/**
|
|
11
|
+
* Notebook-like hero mock used in landing pages. Despite the `Svg` prefix, it
|
|
12
|
+
* is implemented as themed Primer blocks so it adapts to color modes.
|
|
13
|
+
*/
|
|
14
|
+
export function SvgNotebookMock({ style, className, }) {
|
|
15
|
+
const p = useColorPalette();
|
|
16
|
+
const barColors = [p.surge, p.flame, p.spark, p.primary, p.accent, p.glow];
|
|
17
|
+
return (_jsxs(Box, { style: style, className: className, sx: {
|
|
18
|
+
position: 'relative',
|
|
19
|
+
borderRadius: '16px',
|
|
20
|
+
overflow: 'hidden',
|
|
21
|
+
border: '1px solid',
|
|
22
|
+
borderColor: 'border.default',
|
|
23
|
+
bg: 'canvas.default',
|
|
24
|
+
boxShadow: 'shadow.xlarge',
|
|
25
|
+
textAlign: 'left',
|
|
26
|
+
}, children: [_jsxs(Box, { sx: {
|
|
27
|
+
display: 'flex',
|
|
28
|
+
alignItems: 'center',
|
|
29
|
+
gap: 2,
|
|
30
|
+
px: 3,
|
|
31
|
+
py: 2,
|
|
32
|
+
borderBottom: '1px solid',
|
|
33
|
+
borderColor: 'border.muted',
|
|
34
|
+
bg: 'canvas.subtle',
|
|
35
|
+
}, children: [_jsx(Box, { sx: { width: 10, height: 10, borderRadius: '50%', bg: 'danger.emphasis' } }), _jsx(Box, { sx: { width: 10, height: 10, borderRadius: '50%', bg: 'attention.emphasis' } }), _jsx(Box, { sx: { width: 10, height: 10, borderRadius: '50%', bg: 'success.emphasis' } }), _jsx(Text, { sx: { ml: 2, fontSize: 0, color: 'fg.muted', fontWeight: 'bold' }, children: "analysis.ipynb" })] }), _jsxs(Box, { sx: { p: 3, display: 'grid', gap: 3 }, children: [_jsxs(Box, { sx: { display: 'flex', gap: 2, alignItems: 'flex-start' }, children: [_jsx(Box, { sx: {
|
|
36
|
+
width: 28,
|
|
37
|
+
height: 28,
|
|
38
|
+
borderRadius: '8px',
|
|
39
|
+
bg: 'accent.subtle',
|
|
40
|
+
color: 'accent.fg',
|
|
41
|
+
display: 'inline-flex',
|
|
42
|
+
alignItems: 'center',
|
|
43
|
+
justifyContent: 'center',
|
|
44
|
+
flexShrink: 0,
|
|
45
|
+
}, children: _jsx(ZapIcon, { size: 16 }) }), _jsx(Box, { sx: { bg: 'accent.subtle', borderRadius: '10px', px: 3, py: 2 }, children: _jsx(Text, { sx: { fontSize: 1, color: 'fg.default' }, children: "Plot revenue by region from the Snowflake datasource." }) })] }), _jsxs(Box, { sx: {
|
|
46
|
+
borderRadius: '10px',
|
|
47
|
+
border: '1px solid',
|
|
48
|
+
borderColor: 'border.default',
|
|
49
|
+
overflow: 'hidden',
|
|
50
|
+
}, children: [_jsx(Box, { sx: {
|
|
51
|
+
px: 3,
|
|
52
|
+
py: 1,
|
|
53
|
+
bg: 'canvas.subtle',
|
|
54
|
+
borderBottom: '1px solid',
|
|
55
|
+
borderColor: 'border.muted',
|
|
56
|
+
}, children: _jsx(Text, { sx: { fontSize: 0, color: 'fg.muted', fontFamily: 'mono' }, children: "In [1]" }) }), _jsxs(Box, { sx: {
|
|
57
|
+
p: 3,
|
|
58
|
+
fontFamily: 'mono',
|
|
59
|
+
fontSize: 0,
|
|
60
|
+
lineHeight: 1.7,
|
|
61
|
+
color: 'fg.default',
|
|
62
|
+
}, children: [_jsx(Text, { sx: { display: 'block', color: 'accent.fg' }, children: "df = ds.query(" }), _jsx(Text, { sx: { display: 'block', pl: 3 }, children: "\"select region, sum(revenue) r ...\"" }), _jsx(Text, { sx: { display: 'block', color: 'accent.fg' }, children: ")" }), _jsx(Text, { sx: { display: 'block' }, children: "df.plot.bar(x=\"region\", y=\"r\")" })] })] }), _jsx(Box, { sx: { borderRadius: '10px', bg: 'canvas.subtle', p: 3 }, children: _jsx(Box, { sx: { display: 'flex', alignItems: 'flex-end', gap: 2, height: 96 }, children: [42, 68, 55, 88, 73, 60].map((h, i) => (_jsx(Box, { sx: {
|
|
63
|
+
flex: 1,
|
|
64
|
+
height: `${h}%`,
|
|
65
|
+
borderRadius: '6px 6px 0 0',
|
|
66
|
+
bg: barColors[i % barColors.length],
|
|
67
|
+
opacity: 0.85,
|
|
68
|
+
} }, i))) }) })] })] }));
|
|
69
|
+
}
|
|
70
|
+
export default SvgNotebookMock;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Open Source contributions illustration.
|
|
3
|
+
*
|
|
4
|
+
* Visual motif: OSI and Jupyter connected through a central contribution
|
|
5
|
+
* engine where packets circulate, split, and return as ecosystem value.
|
|
6
|
+
*/
|
|
7
|
+
import { type ColorPalette } from '@datalayer/primer-addons';
|
|
8
|
+
export declare function SvgOSAContributions({ palette: paletteProp }?: {
|
|
9
|
+
palette?: ColorPalette;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default SvgOSAContributions;
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
* Open Source contributions illustration.
|
|
9
|
+
*
|
|
10
|
+
* Visual motif: OSI and Jupyter connected through a central contribution
|
|
11
|
+
* engine where packets circulate, split, and return as ecosystem value.
|
|
12
|
+
*/
|
|
13
|
+
import { useColorPalette, LightBoostFilter } from '@datalayer/primer-addons';
|
|
14
|
+
export function SvgOSAContributions({ palette: paletteProp } = {}) {
|
|
15
|
+
const auto = useColorPalette();
|
|
16
|
+
const p = paletteProp ?? auto;
|
|
17
|
+
const jupyterTone = p.isLight ? p.flame : p.gold;
|
|
18
|
+
const osiTone = p.isLight ? '#3fa648' : p.primary;
|
|
19
|
+
const workerHelmet = p.isLight ? p.gold : p.flame;
|
|
20
|
+
const workerSuit = p.isLight ? p.surge : p.primary;
|
|
21
|
+
const workerSkin = p.isLight ? '#f2c299' : p.blaze;
|
|
22
|
+
const workerLine = p.isLight ? p.textLight : p.textMuted;
|
|
23
|
+
return (_jsxs("svg", { viewBox: "0 0 1100 460", xmlns: "http://www.w3.org/2000/svg", style: { width: '100%', height: 'auto', display: 'block' }, role: "img", "aria-label": "Open source contribution engine connecting OSI and Jupyter", children: [_jsxs("defs", { children: [_jsx(LightBoostFilter, {}), _jsxs("linearGradient", { id: "osa2-bg", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [_jsx("stop", { offset: "0%", stopColor: p.bg }), _jsx("stop", { offset: "100%", stopColor: p.bgAlt })] }), _jsxs("linearGradient", { id: "osa2-lane-a", x1: "0%", y1: "0%", x2: "100%", y2: "0%", children: [_jsx("stop", { offset: "0%", stopColor: osiTone, stopOpacity: "0.85" }), _jsx("stop", { offset: "55%", stopColor: p.glow, stopOpacity: "0.75" }), _jsx("stop", { offset: "100%", stopColor: jupyterTone, stopOpacity: "0.88" })] }), _jsxs("linearGradient", { id: "osa2-lane-b", x1: "0%", y1: "0%", x2: "100%", y2: "0%", children: [_jsx("stop", { offset: "0%", stopColor: jupyterTone, stopOpacity: "0.72" }), _jsx("stop", { offset: "50%", stopColor: p.pop, stopOpacity: "0.62" }), _jsx("stop", { offset: "100%", stopColor: osiTone, stopOpacity: "0.72" })] }), _jsxs("radialGradient", { id: "osa2-left-halo", cx: "50%", cy: "50%", r: "65%", children: [_jsx("stop", { offset: "0%", stopColor: osiTone, stopOpacity: "0.18" }), _jsx("stop", { offset: "100%", stopColor: osiTone, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "osa2-right-halo", cx: "50%", cy: "50%", r: "65%", children: [_jsx("stop", { offset: "0%", stopColor: jupyterTone, stopOpacity: "0.18" }), _jsx("stop", { offset: "100%", stopColor: jupyterTone, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "osa2-core", cx: "50%", cy: "50%", r: "60%", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0.34" }), _jsx("stop", { offset: "100%", stopColor: p.glow, stopOpacity: "0" })] }), _jsxs("pattern", { id: "osa2-mesh", width: "36", height: "36", patternUnits: "userSpaceOnUse", children: [_jsx("path", { d: "M 0 18 H 36 M 18 0 V 36", stroke: p.primary, strokeOpacity: "0.06", strokeWidth: "1" }), _jsx("circle", { cx: "18", cy: "18", r: "1", fill: p.primary, opacity: "0.08" })] }), _jsx("filter", { id: "osa2-soft", x: "-50%", y: "-50%", width: "200%", height: "200%", children: _jsx("feGaussianBlur", { stdDeviation: "10" }) }), _jsx("filter", { id: "osa2-chip", x: "-100%", y: "-100%", width: "300%", height: "300%", children: _jsx("feDropShadow", { dx: "0", dy: "0", stdDeviation: "2", floodColor: p.glow, floodOpacity: "0.45" }) })] }), _jsx("rect", { width: "1100", height: "460", fill: "url(#osa2-bg)" }), _jsx("rect", { width: "1100", height: "460", fill: "url(#osa2-mesh)" }), _jsxs("g", { filter: p.isLight ? 'url(#svgLightBoost)' : undefined, children: [_jsx("rect", { x: "56", y: "44", width: "988", height: "372", rx: "26", fill: p.bgPanel, opacity: "0.55", stroke: p.primary, strokeOpacity: "0.13" }), _jsx("circle", { cx: "220", cy: "230", r: "118", fill: "url(#osa2-left-halo)", filter: "url(#osa2-soft)" }), _jsx("circle", { cx: "880", cy: "230", r: "118", fill: "url(#osa2-right-halo)", filter: "url(#osa2-soft)" }), _jsx("circle", { cx: "550", cy: "230", r: "140", fill: "url(#osa2-core)", filter: "url(#osa2-soft)" }), _jsx("rect", { x: "140", y: "148", width: "160", height: "164", rx: "22", fill: p.bg, stroke: osiTone, strokeOpacity: "0.36" }), _jsx("rect", { x: "800", y: "148", width: "160", height: "164", rx: "22", fill: p.bg, stroke: jupyterTone, strokeOpacity: "0.36" }), _jsx("path", { d: "M 300 200 C 388 118, 454 110, 550 182 C 646 254, 712 260, 800 194", fill: "none", stroke: "url(#osa2-lane-a)", strokeWidth: "4", strokeLinecap: "round", strokeDasharray: "10 8", opacity: "0.86", children: _jsx("animate", { attributeName: "stroke-dashoffset", values: "0;-72", dur: "5s", repeatCount: "indefinite" }) }), _jsx("path", { d: "M 300 258 C 402 326, 470 338, 550 274 C 630 210, 698 190, 800 264", fill: "none", stroke: "url(#osa2-lane-b)", strokeWidth: "3", strokeLinecap: "round", strokeDasharray: "8 10", opacity: "0.74", children: _jsx("animate", { attributeName: "stroke-dashoffset", values: "0;68", dur: "5.8s", repeatCount: "indefinite" }) }), _jsxs("g", { transform: "translate(550 230)", children: [_jsx("circle", { r: "64", fill: p.bg, stroke: p.primary, strokeOpacity: "0.45" }), _jsx("circle", { r: "78", fill: "none", stroke: p.glow, strokeOpacity: "0.30", strokeWidth: "2", strokeDasharray: "4 8", children: _jsx("animateTransform", { attributeName: "transform", type: "rotate", values: "0;360", dur: "14s", repeatCount: "indefinite" }) }), _jsxs("g", { transform: "translate(-43.2 -43.2) scale(1.2)", children: [_jsx("path", { fill: workerSuit, d: "M54.0706,58.8969c0,0,2-13.7974-10-13.7974c-3.1919,2.1193-5.9264,3.5838-9,3.5775h0.125 c-3.0736,0.0063-5.8082-1.4582-9-3.5775c-12,0-10,13.7974-10,13.7974" }), _jsx("path", { fill: p.isLight ? p.primary : p.surge, d: "M43.1009,49.1247c5.4463,2.2601,5.5866,6.8076,6.1478,9.7535c4.1614,0,5.0205,0,5.0205,0 s2.1603-14.9254-9.6229-14.9254" }), _jsx("path", { fill: p.isLight ? p.blaze : p.pop, d: "M49.1002,58.8968V45.8237l-4.096-0.7271c-2.3626,5.5058-5.0143,10.899-6.8354,13.8002H49.1002z" }), _jsx("path", { fill: p.isLight ? p.blaze : p.pop, d: "M33.7198,58.8968c-1.8211-2.9012-4.4729-8.2944-6.8355-13.8002l-4.3245,0.7271v13.0729L33.7198,58.8968z" }), _jsx("path", { fill: workerHelmet, d: "M46.9269,21.2821l-0.04,0.1c-0.38-0.13-0.79-0.26-1.23-0.39c-2.11-0.62-4.99-1.16-8.56-1.16v-2.57h2.89 l0.06-5.96C46.8869,12.5121,46.9269,21.2821,46.9269,21.2821z" }), _jsx("path", { fill: workerHelmet, d: "M37.0969,17.2621v2.57c-0.34,0-0.68,0.01-1.03,0.02h-0.16c-0.03,0-0.06-0.01-0.08,0 c-4.02-0.11-7.21,0.47-9.5,1.13v0.01c-0.59,0.17-1.12,0.35-1.59,0.53l-0.09-0.24c0,0,0.05-9.2,7.4-10.06l-0.06,6.04H37.0969z" }), _jsx("path", { fill: p.isLight ? p.spark : p.gold, d: "M40.0469,11.3021l-0.06,5.96h-2.89h-5.11l0.06-6.04c1.59-2.81,7.37-2.07,8,0V11.3021z" }), _jsx("path", { fill: workerSkin, d: "M47.0069,25.0321c0.21,1.08,0.32,2.21,0.32,3.36c0,7.83-5.08,14.18-11.34,14.18s-11.34-6.35-11.34-14.18 c0-1.51,0.19-2.97,0.55-4.33l0.53,0.21c3.35,1.42,9.3-3.52,10.22-4.31c0.92,0.79,6.87,5.73,10.22,4.31l0.62-0.22 C46.8669,24.3721,46.9469,24.7021,47.0069,25.0321z" }), _jsx("path", { fill: workerLine, opacity: "0.9", d: "M39.8869,34.8421c0.24,0.49,0.04,1.09-0.45,1.34c-1.14,0.57-2.3,0.86-3.45,0.86s-2.3-0.29-3.44-0.86 c-0.5-0.25-0.7-0.85-0.45-1.34c0.24-0.5,0.84-0.7,1.34-0.45c1.72,0.86,3.39,0.86,5.11,0 C39.0369,34.1421,39.6369,34.3421,39.8869,34.8421z" }), _jsx("circle", { cx: "31.9869", cy: "27.0321", r: "2", fill: workerLine }), _jsx("circle", { cx: "39.9869", cy: "27.0321", r: "2", fill: workerLine })] })] }), _jsxs("g", { filter: "url(#osa2-chip)", children: [_jsx("rect", { x: "-6", y: "-4", width: "12", height: "8", rx: "2", fill: osiTone, opacity: "0.95", children: _jsx("animateMotion", { dur: "3.4s", repeatCount: "indefinite", path: "M 300 200 C 388 118, 454 110, 550 182 C 646 254, 712 260, 800 194" }) }), _jsx("rect", { x: "-6", y: "-4", width: "12", height: "8", rx: "2", fill: p.glow, opacity: "0.95", children: _jsx("animateMotion", { dur: "2.9s", begin: "0.7s", repeatCount: "indefinite", path: "M 300 258 C 402 326, 470 338, 550 274 C 630 210, 698 190, 800 264" }) }), _jsx("rect", { x: "-5", y: "-3", width: "10", height: "6", rx: "1.5", fill: jupyterTone, opacity: "0.9", children: _jsx("animateMotion", { dur: "4.2s", repeatCount: "indefinite", path: "M 800 218 C 708 146, 640 132, 550 184 C 460 236, 392 244, 300 218" }) })] }), _jsx("g", { transform: "translate(220 225) scale(0.23) translate(-295 -295)", children: _jsx("path", { fill: osiTone, stroke: p.isLight ? '#23552a' : p.primary, strokeOpacity: p.isLight ? 0.62 : 0.3, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "19.212", d: "M328.7 395.8c40.3-15 61.4-43.8 61.4-93.4S348.3 209 296 208.9c-55.1-.1-96.8 43.6-96.1 93.5s24.4 83 62.4 94.9L195 563C104.8 539.7 13.2 433.3 13.2 302.4 13.2 147.3 137.8 21.5 294 21.5s282.8 125.7 282.8 280.8c0 133-90.8 237.9-182.9 261.1l-65.2-167.6z" }) }), _jsx("g", { transform: "translate(880 226) scale(7.4) translate(-10.385 -10.1)", children: _jsx("path", { fill: jupyterTone, d: "M10.385 16.574c-3.755 0-7.055-1.348-8.761-3.338a9.34 9.34 0 0017.522 0c-1.702 1.99-4.99 3.338-8.761 3.338zm0-12.941c3.755 0 7.054 1.348 8.76 3.338a9.342 9.342 0 00-17.521 0c1.706-1.994 4.99-3.338 8.76-3.338z" }) }), _jsxs("g", { fill: p.textMuted, fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", fontSize: "11", opacity: "0.72", children: [_jsx("text", { x: "364", y: "122", children: "PRs +342" }), _jsx("text", { x: "522", y: "98", children: "maintainers +27" }), _jsx("text", { x: "676", y: "126", children: "reviews +811" })] }), _jsx("text", { x: "220", y: "334", textAnchor: "middle", fill: p.textLight, fontSize: "16", fontWeight: "700", fontFamily: "system-ui, -apple-system, sans-serif", children: "Open Source Initiative" }), _jsx("text", { x: "880", y: "334", textAnchor: "middle", fill: p.textLight, fontSize: "16", fontWeight: "700", fontFamily: "system-ui, -apple-system, sans-serif", children: "Jupyter" }), _jsx("text", { x: "550", y: "386", textAnchor: "middle", fill: p.textMuted, fontSize: "17", fontWeight: "600", fontFamily: "system-ui, -apple-system, sans-serif", children: "Opensource Community always wins" })] })] }));
|
|
24
|
+
}
|
|
25
|
+
export default SvgOSAContributions;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wide SVG hero background for the Partners page.
|
|
3
|
+
*
|
|
4
|
+
* Visual motif: a partnership network — two anchor hubs (left & right)
|
|
5
|
+
* linked through a central relay spine, evoking organisations connecting
|
|
6
|
+
* via shared infrastructure. Built with the same node/edge/halo + colour
|
|
7
|
+
* logic as SvgCommunityHero, but with a deliberately different node
|
|
8
|
+
* distribution (bridge topology instead of 5 organic clusters).
|
|
9
|
+
*
|
|
10
|
+
* Uses a 1400×400 viewBox to match the hero's minHeight.
|
|
11
|
+
*/
|
|
12
|
+
import { type ColorPalette } from '@datalayer/primer-addons';
|
|
13
|
+
export declare function SvgPartnersHero({ palette: paletteProp }?: {
|
|
14
|
+
palette?: ColorPalette;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default SvgPartnersHero;
|
|
@@ -0,0 +1,94 @@
|
|
|
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 Partners page.
|
|
9
|
+
*
|
|
10
|
+
* Visual motif: a partnership network — two anchor hubs (left & right)
|
|
11
|
+
* linked through a central relay spine, evoking organisations connecting
|
|
12
|
+
* via shared infrastructure. Built with the same node/edge/halo + colour
|
|
13
|
+
* logic as SvgCommunityHero, but with a deliberately different node
|
|
14
|
+
* distribution (bridge topology instead of 5 organic clusters).
|
|
15
|
+
*
|
|
16
|
+
* Uses a 1400×400 viewBox to match the hero's minHeight.
|
|
17
|
+
*/
|
|
18
|
+
import { useColorPalette, LightBoostFilter } from '@datalayer/primer-addons';
|
|
19
|
+
/* ── Partner node distribution — bridge topology ─────────────────── */
|
|
20
|
+
const NODES = [
|
|
21
|
+
// Left hub (anchor organisation)
|
|
22
|
+
{ x: 200, y: 200, r: 6.5, colorKey: 'glow', hub: 0 },
|
|
23
|
+
{ x: 140, y: 140, r: 4.0, colorKey: 'pop', hub: 0 },
|
|
24
|
+
{ x: 150, y: 270, r: 4.2, colorKey: 'surge', hub: 0 },
|
|
25
|
+
{ x: 270, y: 150, r: 4.5, colorKey: 'spark', hub: 0 },
|
|
26
|
+
{ x: 280, y: 260, r: 4.0, colorKey: 'glow', hub: 0 },
|
|
27
|
+
// Relay spine (shared infrastructure across the centre)
|
|
28
|
+
{ x: 430, y: 200, r: 4.8, colorKey: 'surge', hub: 1 },
|
|
29
|
+
{ x: 560, y: 150, r: 4.2, colorKey: 'glow', hub: 1 },
|
|
30
|
+
{ x: 580, y: 270, r: 3.8, colorKey: 'spark', hub: 1 },
|
|
31
|
+
{ x: 700, y: 200, r: 7.0, colorKey: 'glow', hub: 1 },
|
|
32
|
+
{ x: 820, y: 140, r: 3.8, colorKey: 'pop', hub: 1 },
|
|
33
|
+
{ x: 840, y: 260, r: 4.2, colorKey: 'surge', hub: 1 },
|
|
34
|
+
{ x: 970, y: 200, r: 4.8, colorKey: 'spark', hub: 1 },
|
|
35
|
+
// Right hub (partner organisation)
|
|
36
|
+
{ x: 1200, y: 200, r: 6.5, colorKey: 'glow', hub: 2 },
|
|
37
|
+
{ x: 1130, y: 145, r: 4.5, colorKey: 'surge', hub: 2 },
|
|
38
|
+
{ x: 1120, y: 265, r: 4.0, colorKey: 'pop', hub: 2 },
|
|
39
|
+
{ x: 1260, y: 150, r: 4.0, colorKey: 'spark', hub: 2 },
|
|
40
|
+
{ x: 1270, y: 260, r: 4.2, colorKey: 'glow', hub: 2 },
|
|
41
|
+
];
|
|
42
|
+
/** Straight-line connections (index pairs into NODES). */
|
|
43
|
+
const EDGES = [
|
|
44
|
+
// Left hub internal mesh
|
|
45
|
+
[0, 1], [0, 2], [0, 3], [0, 4], [1, 3], [2, 4],
|
|
46
|
+
// Relay spine chain
|
|
47
|
+
[5, 6], [5, 7], [6, 8], [7, 8], [8, 9], [8, 10], [9, 11], [10, 11],
|
|
48
|
+
// Right hub internal mesh
|
|
49
|
+
[12, 13], [12, 14], [12, 15], [12, 16], [13, 15], [14, 16],
|
|
50
|
+
// Bridges: left hub → relay → right hub
|
|
51
|
+
[0, 5], [4, 5], [3, 6], [11, 12], [9, 12], [10, 14],
|
|
52
|
+
];
|
|
53
|
+
/** Hub centres for faint enclosing halos. */
|
|
54
|
+
const HUBS = [
|
|
55
|
+
{ cx: 205, cy: 205, r: 105 },
|
|
56
|
+
{ cx: 700, cy: 205, r: 95 },
|
|
57
|
+
{ cx: 1195, cy: 205, r: 105 },
|
|
58
|
+
];
|
|
59
|
+
/** Deterministic breathing params per node (no RNG → SSR-safe + stable). */
|
|
60
|
+
function breath(i) {
|
|
61
|
+
const dur = 3.4 + ((i * 0.7) % 3);
|
|
62
|
+
const delay = (i * 0.53) % 4;
|
|
63
|
+
const minOp = 0.1 + ((i % 3) * 0.02);
|
|
64
|
+
const maxOp = 0.24 + ((i % 4) * 0.03);
|
|
65
|
+
return { dur, delay, minOp, maxOp };
|
|
66
|
+
}
|
|
67
|
+
/** Deterministic edge pulse params. */
|
|
68
|
+
function edgePulse(i) {
|
|
69
|
+
const dur = 4 + ((i * 0.9) % 4);
|
|
70
|
+
const delay = (i * 0.61) % 5;
|
|
71
|
+
const peakOp = 0.26 + ((i % 5) * 0.03);
|
|
72
|
+
return { dur, delay, peakOp };
|
|
73
|
+
}
|
|
74
|
+
export function SvgPartnersHero({ palette: paletteProp } = {}) {
|
|
75
|
+
const auto = useColorPalette();
|
|
76
|
+
const p = paletteProp ?? auto;
|
|
77
|
+
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: "ptGlow1", cx: "15%", cy: "50%", r: "42%", 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: "ptGlow2", cx: "50%", cy: "50%", r: "46%", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0.58" }), _jsx("stop", { offset: "38%", stopColor: p.glow, stopOpacity: "0.16" }), _jsx("stop", { offset: "100%", stopColor: p.glow, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "ptGlow3", cx: "85%", cy: "50%", r: "42%", children: [_jsx("stop", { offset: "0%", stopColor: p.surge, stopOpacity: "0.52" }), _jsx("stop", { offset: "45%", stopColor: p.surge, stopOpacity: "0.12" }), _jsx("stop", { offset: "100%", stopColor: p.surge, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "ptGlow4", cx: "35%", cy: "18%", r: "36%", children: [_jsx("stop", { offset: "0%", stopColor: p.surge, stopOpacity: "0.42" }), _jsx("stop", { offset: "50%", stopColor: p.surge, stopOpacity: "0.08" }), _jsx("stop", { offset: "100%", stopColor: p.surge, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "ptGlow5", cx: "65%", cy: "85%", r: "36%", 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("linearGradient", { id: "ptShimmer", x1: "0", y1: "0.2", x2: "1", y2: "0.8", children: [_jsx("stop", { offset: "0%", stopColor: p.surge, stopOpacity: "0" }), _jsx("stop", { offset: "25%", stopColor: p.surge, stopOpacity: "0.14" }), _jsx("stop", { offset: "50%", stopColor: p.glow, stopOpacity: "0.18" }), _jsx("stop", { offset: "75%", stopColor: p.surge, stopOpacity: "0.14" }), _jsx("stop", { offset: "100%", stopColor: p.surge, stopOpacity: "0" })] }), _jsx("pattern", { id: "ptDots", width: "34", height: "34", patternUnits: "userSpaceOnUse", children: _jsx("circle", { cx: "1", cy: "1", r: "0.55", fill: p.glow, opacity: "0.10" }) }), _jsxs("pattern", { id: "ptMesh", width: "56", height: "48", patternUnits: "userSpaceOnUse", patternTransform: "rotate(-6)", children: [_jsx("polygon", { points: "28,0 56,48 0,48", fill: "none", stroke: p.glow, strokeOpacity: "0.05", strokeWidth: "0.5" }), _jsx("polygon", { points: "28,48 56,0 0,0", fill: "none", stroke: p.surge, strokeOpacity: "0.04", strokeWidth: "0.4" })] })] }), _jsx("rect", { width: "1400", height: "400", fill: p.bg }), _jsxs("g", { filter: p.isLight ? 'url(#svgLightBoost)' : undefined, children: [_jsx("rect", { width: "1400", height: "400", fill: "url(#ptDots)" }), _jsx("rect", { width: "1400", height: "400", fill: "url(#ptMesh)" }), _jsx("rect", { width: "1400", height: "400", fill: "url(#ptGlow1)" }), _jsx("rect", { width: "1400", height: "400", fill: "url(#ptGlow2)" }), _jsx("rect", { width: "1400", height: "400", fill: "url(#ptGlow3)" }), _jsx("rect", { width: "1400", height: "400", fill: "url(#ptGlow4)" }), _jsx("rect", { width: "1400", height: "400", fill: "url(#ptGlow5)" }), _jsx("rect", { width: "1400", height: "400", fill: "url(#ptShimmer)" }), _jsx("line", { x1: "150", y1: "0", x2: "650", y2: "400", stroke: p.glow, strokeOpacity: "0.08", strokeWidth: "40" }), _jsx("line", { x1: "750", y1: "0", x2: "1250", y2: "400", stroke: p.surge, strokeOpacity: "0.07", strokeWidth: "34" }), _jsx("line", { x1: "400", y1: "0", x2: "900", y2: "400", stroke: p.glow, strokeOpacity: "0.05", strokeWidth: "24" }), HUBS.map((h, hi) => {
|
|
78
|
+
const clr = hi === 2 ? p.surge : p.glow;
|
|
79
|
+
return (_jsxs("g", { children: [_jsx("circle", { cx: h.cx, cy: h.cy, r: h.r, fill: clr, opacity: "0.04" }), _jsx("circle", { cx: h.cx, cy: h.cy, r: h.r, fill: "none", stroke: clr, strokeOpacity: "0.14", strokeWidth: "0.8", strokeDasharray: hi % 2 === 0 ? '8 6' : '4 8' }), _jsx("circle", { cx: h.cx, cy: h.cy, r: h.r + 18, fill: "none", stroke: clr, strokeOpacity: "0.07", strokeWidth: "0.5", strokeDasharray: "3 7" })] }, `hub-${hi}`));
|
|
80
|
+
}), EDGES.map(([ai, bi], i) => {
|
|
81
|
+
const a = NODES[ai];
|
|
82
|
+
const b = NODES[bi];
|
|
83
|
+
const isBridge = a.hub !== b.hub;
|
|
84
|
+
const color = p[a.colorKey];
|
|
85
|
+
const ep = edgePulse(i);
|
|
86
|
+
return (_jsxs("g", { children: [_jsx("line", { x1: a.x, y1: a.y, x2: b.x, y2: b.y, stroke: color, strokeOpacity: isBridge ? 0.16 : 0.26, strokeWidth: isBridge ? 0.7 : 1.0, strokeDasharray: isBridge ? '5 7' : undefined }), _jsx("line", { x1: a.x, y1: a.y, x2: b.x, y2: b.y, stroke: color, strokeWidth: isBridge ? 0.9 : 1.3, 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}`));
|
|
87
|
+
}), NODES.map((m, i) => {
|
|
88
|
+
const c = p[m.colorKey];
|
|
89
|
+
const nb = breath(i);
|
|
90
|
+
const isCore = m.r >= 6;
|
|
91
|
+
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}`));
|
|
92
|
+
}), _jsx("path", { d: "M0 110 Q300 70 600 100 T1200 75 T1400 95", fill: "none", stroke: p.glow, strokeOpacity: "0.20", strokeWidth: "1.2" }), _jsx("path", { d: "M0 320 Q350 280 700 310 T1400 295", fill: "none", stroke: p.surge, strokeOpacity: "0.16", strokeWidth: "1.0" }), _jsx("path", { d: "M0 360 Q400 330 800 350 T1400 340", fill: "none", stroke: p.glow, strokeOpacity: "0.13", strokeWidth: "0.9" }), _jsx("circle", { cx: "60", cy: "70", r: "1.8", fill: p.glow, opacity: "0.80" }), _jsx("circle", { cx: "380", cy: "50", r: "1.6", fill: p.surge, opacity: "0.72" }), _jsx("circle", { cx: "700", cy: "44", r: "2.0", fill: p.glow, opacity: "0.78" }), _jsx("circle", { cx: "1020", cy: "56", r: "1.7", fill: p.surge, opacity: "0.70" }), _jsx("circle", { cx: "1340", cy: "60", r: "1.8", fill: p.glow, opacity: "0.76" }), _jsx("circle", { cx: "120", cy: "350", r: "1.7", fill: p.surge, opacity: "0.72" }), _jsx("circle", { cx: "500", cy: "368", r: "1.9", fill: p.glow, opacity: "0.74" }), _jsx("circle", { cx: "900", cy: "360", r: "1.6", fill: p.surge, opacity: "0.70" }), _jsx("circle", { cx: "1280", cy: "352", r: "1.8", fill: p.glow, opacity: "0.74" }), _jsx("circle", { cx: "205", cy: "205", r: "90", fill: p.glow, opacity: "0.07" }), _jsx("circle", { cx: "700", cy: "205", r: "100", fill: p.glow, opacity: "0.06" }), _jsx("circle", { cx: "1195", cy: "205", r: "90", fill: p.surge, opacity: "0.07" }), _jsx("path", { d: "M70 360 A180 180 0 0 1 70 40", fill: "none", stroke: p.glow, strokeOpacity: "0.14", strokeWidth: "0.9", strokeDasharray: "5 7" }), _jsx("path", { d: "M1330 40 A180 180 0 0 1 1330 360", fill: "none", stroke: p.surge, strokeOpacity: "0.14", strokeWidth: "0.9", strokeDasharray: "5 7" })] })] }));
|
|
93
|
+
}
|
|
94
|
+
export default SvgPartnersHero;
|
package/lib/svg/SvgPixel1.js
CHANGED
|
@@ -77,9 +77,36 @@ export function SvgPixel1({ palette: paletteProp } = {}) {
|
|
|
77
77
|
}
|
|
78
78
|
const y = baseY - row * (cell + gap);
|
|
79
79
|
const opacity = 0.54 + Math.min(0.34, row * 0.025 + t * 0.05);
|
|
80
|
-
squares.push(
|
|
80
|
+
squares.push({ key: `sq1-${col}-${row}`, x, y, opacity });
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
|
|
83
|
+
const animatedRanks = new Map([...squares]
|
|
84
|
+
.sort((a, b) => a.y - b.y || a.x - b.x)
|
|
85
|
+
.slice(0, 20)
|
|
86
|
+
.map((square, rank) => [square.key, rank]));
|
|
87
|
+
return (_jsxs("svg", { viewBox: "0 0 1024 768", xmlns: "http://www.w3.org/2000/svg", role: "img", "aria-label": "Pixel square wave illustration", preserveAspectRatio: "xMidYMid slice", style: { width: '100%', height: '100%', display: 'block' }, children: [_jsxs("defs", { children: [_jsx(LightBoostFilter, {}), _jsx("style", { children: `
|
|
88
|
+
@keyframes sq1-fall-${id} {
|
|
89
|
+
0% {
|
|
90
|
+
transform: translateY(-800px);
|
|
91
|
+
animation-timing-function: cubic-bezier(0.32, 0, 0.78, 0.48);
|
|
92
|
+
}
|
|
93
|
+
44% {
|
|
94
|
+
transform: translateY(0);
|
|
95
|
+
animation-timing-function: ease-out;
|
|
96
|
+
}
|
|
97
|
+
47% { transform: translateY(-8px); }
|
|
98
|
+
50%, 100% { transform: translateY(0); }
|
|
99
|
+
}
|
|
100
|
+
@media (prefers-reduced-motion: reduce) {
|
|
101
|
+
.sq1-falling-${id} { animation: none !important; }
|
|
102
|
+
}
|
|
103
|
+
` }), _jsxs("linearGradient", { id: `sq1-bg-${id}`, x1: "0", y1: "0", x2: "1", y2: "1", children: [_jsx("stop", { offset: "0%", stopColor: p.bg }), _jsx("stop", { offset: "100%", stopColor: p.bgAlt })] }), _jsxs("linearGradient", { id: `sq1-px-${id}`, x1: "0", y1: "0", x2: "1024", y2: "0", gradientUnits: "userSpaceOnUse", children: [_jsx("stop", { offset: "0%", stopColor: p.flame }), _jsx("stop", { offset: "35%", stopColor: p.surge }), _jsx("stop", { offset: "62%", stopColor: p.pop }), _jsx("stop", { offset: "82%", stopColor: p.glow }), _jsx("stop", { offset: "100%", stopColor: p.spark })] })] }), _jsx("rect", { width: "1024", height: "768", fill: `url(#sq1-bg-${id})` }), _jsx("g", { filter: p.isLight ? 'url(#svgLightBoost)' : undefined, children: squares.map((square) => {
|
|
104
|
+
const rank = animatedRanks.get(square.key);
|
|
105
|
+
return (_jsx("rect", { className: rank === undefined ? undefined : `sq1-falling-${id}`, x: square.x, y: square.y, width: cell, height: cell, fill: `url(#sq1-px-${id})`, opacity: square.opacity, style: rank === undefined
|
|
106
|
+
? undefined
|
|
107
|
+
: {
|
|
108
|
+
animation: `sq1-fall-${id} 9s linear ${(rank * 0.07).toFixed(2)}s infinite both`,
|
|
109
|
+
} }, square.key));
|
|
110
|
+
}) })] }));
|
|
84
111
|
}
|
|
85
112
|
export default SvgPixel1;
|
package/lib/svg/SvgPixel2.js
CHANGED
|
@@ -26,16 +26,14 @@ export function SvgPixel2({ palette: paletteProp } = {}) {
|
|
|
26
26
|
if (row > 1) {
|
|
27
27
|
return false;
|
|
28
28
|
}
|
|
29
|
-
const holes = new Set([
|
|
30
|
-
'1-0', '3-1', '4-0', '6-1', '8-0', '10-1',
|
|
31
|
-
]);
|
|
29
|
+
const holes = new Set(['1-0', '3-1', '4-0', '6-1', '8-0', '10-1']);
|
|
32
30
|
return holes.has(`${col}-${row}`);
|
|
33
31
|
};
|
|
34
32
|
const isRandomGap = (col, row) => {
|
|
35
33
|
if (row < 2) {
|
|
36
34
|
return false;
|
|
37
35
|
}
|
|
38
|
-
return (
|
|
36
|
+
return (col * 11 + row * 7) % 17 === 0;
|
|
39
37
|
};
|
|
40
38
|
const squares = [];
|
|
41
39
|
const occupiedRects = [];
|
|
@@ -48,7 +46,7 @@ export function SvgPixel2({ palette: paletteProp } = {}) {
|
|
|
48
46
|
}
|
|
49
47
|
const y = baseY - row * (cell + gap);
|
|
50
48
|
const opacity = 0.55 + Math.min(0.35, row * 0.06);
|
|
51
|
-
squares.push(
|
|
49
|
+
squares.push({ key: `sq2-${col}-${row}`, x, y, w: cell, h: cell, opacity });
|
|
52
50
|
occupiedRects.push({ x, y, w: cell, h: cell });
|
|
53
51
|
}
|
|
54
52
|
}
|
|
@@ -56,16 +54,47 @@ export function SvgPixel2({ palette: paletteProp } = {}) {
|
|
|
56
54
|
return a.x < b.x + b.w && a.x + a.w > b.x && a.y < b.y + b.h && a.y + a.h > b.y;
|
|
57
55
|
};
|
|
58
56
|
const detachedRects = detachedSquares
|
|
59
|
-
.map((sq) => {
|
|
57
|
+
.map((sq, index) => {
|
|
60
58
|
return {
|
|
61
|
-
|
|
59
|
+
key: `sq2-detached-${index}`,
|
|
60
|
+
x: sq.x,
|
|
61
|
+
y: sq.y,
|
|
62
62
|
w: cell * sq.s,
|
|
63
63
|
h: cell * sq.s,
|
|
64
|
+
opacity: sq.o,
|
|
64
65
|
};
|
|
65
66
|
})
|
|
66
67
|
.filter((candidate) => {
|
|
67
68
|
return !occupiedRects.some((occupied) => overlaps(candidate, occupied));
|
|
68
69
|
});
|
|
69
|
-
|
|
70
|
+
const animatedRanks = new Map([...squares, ...detachedRects]
|
|
71
|
+
.sort((a, b) => a.y - b.y || a.x - b.x)
|
|
72
|
+
.slice(0, 10)
|
|
73
|
+
.map((square, rank) => [square.key, rank]));
|
|
74
|
+
const renderSquare = (square) => {
|
|
75
|
+
const rank = animatedRanks.get(square.key);
|
|
76
|
+
return (_jsx("rect", { className: rank === undefined ? undefined : `sq2-falling-${id}`, x: square.x, y: square.y, width: square.w, height: square.h, fill: `url(#sq2-px-${id})`, opacity: square.opacity, style: rank === undefined
|
|
77
|
+
? undefined
|
|
78
|
+
: {
|
|
79
|
+
animation: `sq2-fall-${id} 7s linear ${(rank * 0.1).toFixed(2)}s infinite both`,
|
|
80
|
+
} }, square.key));
|
|
81
|
+
};
|
|
82
|
+
return (_jsxs("svg", { viewBox: "0 0 320 180", xmlns: "http://www.w3.org/2000/svg", role: "img", "aria-label": "Pixel square closeup illustration", preserveAspectRatio: "xMidYMid slice", style: { width: '100%', height: '100%', display: 'block' }, children: [_jsxs("defs", { children: [_jsx(LightBoostFilter, {}), _jsx("style", { children: `
|
|
83
|
+
@keyframes sq2-fall-${id} {
|
|
84
|
+
0% {
|
|
85
|
+
transform: translateY(-220px);
|
|
86
|
+
animation-timing-function: cubic-bezier(0.32, 0, 0.78, 0.48);
|
|
87
|
+
}
|
|
88
|
+
44% {
|
|
89
|
+
transform: translateY(0);
|
|
90
|
+
animation-timing-function: ease-out;
|
|
91
|
+
}
|
|
92
|
+
47% { transform: translateY(-5px); }
|
|
93
|
+
50%, 100% { transform: translateY(0); }
|
|
94
|
+
}
|
|
95
|
+
@media (prefers-reduced-motion: reduce) {
|
|
96
|
+
.sq2-falling-${id} { animation: none !important; }
|
|
97
|
+
}
|
|
98
|
+
` }), _jsxs("linearGradient", { id: `sq2-bg-${id}`, x1: "0", y1: "0", x2: "1", y2: "0", children: [_jsx("stop", { offset: "0%", stopColor: p.bg }), _jsx("stop", { offset: "100%", stopColor: p.bgAlt })] }), _jsxs("linearGradient", { id: `sq2-px-${id}`, x1: "0", y1: "0", x2: "320", y2: "0", gradientUnits: "userSpaceOnUse", children: [_jsx("stop", { offset: "0%", stopColor: p.flame }), _jsx("stop", { offset: "32%", stopColor: p.surge }), _jsx("stop", { offset: "58%", stopColor: p.pop }), _jsx("stop", { offset: "80%", stopColor: p.glow }), _jsx("stop", { offset: "100%", stopColor: p.spark })] }), _jsxs("radialGradient", { id: `sq2-mist-${id}`, cx: "75%", cy: "94%", r: "45%", children: [_jsx("stop", { offset: "0%", stopColor: p.pop, stopOpacity: p.isLight ? 0.16 : 0.26 }), _jsx("stop", { offset: "100%", stopColor: p.pop, stopOpacity: "0" })] })] }), _jsx("rect", { width: "320", height: "180", fill: `url(#sq2-bg-${id})` }), _jsxs("g", { filter: p.isLight ? 'url(#svgLightBoost)' : undefined, children: [_jsx("rect", { x: "132", y: "122", width: "188", height: "58", fill: `url(#sq2-mist-${id})` }), squares.map(renderSquare), detachedRects.map(renderSquare)] })] }));
|
|
70
99
|
}
|
|
71
100
|
export default SvgPixel2;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skubble picto illustration.
|
|
3
|
+
*
|
|
4
|
+
* The artwork is baked directly into JSX and colored from the active
|
|
5
|
+
* ColorPalette so the icon reacts to theme and color mode changes.
|
|
6
|
+
*/
|
|
7
|
+
import { type ColorPalette } from '@datalayer/primer-addons';
|
|
8
|
+
export declare function SvgSkubble({ palette: paletteProp }?: {
|
|
9
|
+
palette?: ColorPalette;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default SvgSkubble;
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
* Skubble picto illustration.
|
|
9
|
+
*
|
|
10
|
+
* The artwork is baked directly into JSX and colored from the active
|
|
11
|
+
* ColorPalette so the icon reacts to theme and color mode changes.
|
|
12
|
+
*/
|
|
13
|
+
import { useColorPalette } from '@datalayer/primer-addons';
|
|
14
|
+
export function SvgSkubble({ palette: paletteProp } = {}) {
|
|
15
|
+
const auto = useColorPalette();
|
|
16
|
+
const p = paletteProp ?? auto;
|
|
17
|
+
const ink = p.isLight ? p.primary : p.spark;
|
|
18
|
+
const disc = p.isLight ? p.bg : p.bgAlt;
|
|
19
|
+
const warm = p.glow;
|
|
20
|
+
const accent = p.isLight ? p.flame : p.pop;
|
|
21
|
+
return (_jsx("svg", { viewBox: "0 0 243.74999 243.74999", xmlns: "http://www.w3.org/2000/svg", role: "img", "aria-label": "Skubble", preserveAspectRatio: "xMidYMid meet", style: { width: '100%', height: '100%', display: 'block' }, children: _jsxs("g", { transform: "translate(0,-308.26772)", children: [_jsx("circle", { cx: "121.875", cy: "430.14273", r: "120.41112", fill: disc, stroke: ink, strokeWidth: "2.92776", strokeMiterlimit: "4" }), _jsx("path", { d: "M 112.41246,477.23841 95.46421,403.30415 c -4.2296,-19.16842 -16.97432,-14.7834 -11.44396,-0.55712 6.26679,10.89568 28.38883,21.76275 33.58218,6.10585 -4.52367,-5.74256 -6.62795,-12.58985 1.33229,-16.64929", fill: "none", stroke: warm, strokeWidth: "2.92759", strokeLinecap: "butt", strokeLinejoin: "miter", strokeMiterlimit: "4" }), _jsx("path", { d: "m 119.67478,477.58822 0.25291,-140.16632 c -73.53155,5.11029 -86.69542,84.24234 -28.2504,114.70058 l 0.61059,25.33929 z", fill: "none", stroke: ink, strokeWidth: "2.92776", strokeLinecap: "round", strokeLinejoin: "round", strokeMiterlimit: "4" }), _jsx("path", { d: "M 120.06949,482.65174 H 93.81434 c -2.94542,4.66719 -3.57543,8.04027 2.74762,13.12758 -6.61918,0.86494 -6.3776,8.54786 -2.90027,10.68524 -4.24126,1.55663 -5.28207,8.72698 6.86908,7.9376 l 1.62533,5.48548 c 0.73287,2.11363 1.746,2.54573 2.75988,2.97329 l 10.45835,-0.0863 c 1.99122,-0.7197 4.29846,-2.10452 4.38988,-5.01432 z", fill: "none", stroke: ink, strokeWidth: "2.92759", strokeLinecap: "butt", strokeLinejoin: "miter", strokeMiterlimit: "4" }), _jsx("path", { d: "m 124.2911,477.46177 -0.46878,-139.95045 c 73.53155,5.11029 86.69544,84.45821 28.25041,114.91645 l -0.61058,25.33929 z", fill: "none", stroke: accent, strokeWidth: "2.92776", strokeLinecap: "round", strokeLinejoin: "round", strokeMiterlimit: "4" }), _jsx("path", { d: "m 125.31946,482.95703 -0.3053,32.36102 c 1.31731,11.05851 11.07182,8.62882 10.99053,-0.6106 v -31.75042 z", fill: "none", stroke: accent, strokeWidth: "2.92759", strokeLinecap: "butt", strokeLinejoin: "miter", strokeMiterlimit: "4" }), _jsx("path", { d: "m 139.9574,482.95703 -0.30529,32.36102 c 1.3173,11.05851 11.07181,8.62882 10.99053,-0.6106 v -31.75042 z", fill: "none", stroke: accent, strokeWidth: "2.92759", strokeLinecap: "butt", strokeLinejoin: "miter", strokeMiterlimit: "4" }), _jsx("path", { d: "m 131.62747,399.81416 c 1.77794,-4.47145 12.6278,-9.48258 19.48634,-14.06198 7.11721,3.21293 17.74166,13.14465 12.80377,25.55515 -1.26467,4.90066 -28.04871,4.54388 -30.22396,2.13705 -4.48061,-4.60617 -3.11506,-10.02441 -2.06615,-13.63022 z", fill: "none", stroke: accent, strokeWidth: "2.92759", strokeLinecap: "butt", strokeLinejoin: "round", strokeMiterlimit: "4" }), _jsx("path", { d: "m 128.19835,428.25108 c -0.91063,7.57617 -0.57735,13.90845 -0.76323,20.75989 3.42438,0.78785 7.2616,0.33714 11.08153,-0.0616 -2.74985,-6.95029 -5.70336,-13.74795 -10.3183,-20.69824 z", fill: "none", stroke: accent, strokeWidth: "2.92759", strokeLinecap: "butt", strokeLinejoin: "round", strokeMiterlimit: "4" })] }) }));
|
|
22
|
+
}
|
|
23
|
+
export default SvgSkubble;
|
package/lib/svg/gallery.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const DATALAYER_SVG_GALLERY: readonly ["SvgJupyterEmbed", "SvgAgentRuntimes", "SvgVSCodeExtension", "SvgBlogHero", "SvgPricingHero", "SvgContactHero", "SvgAgentsHomeHero", "SvgLoginHero", "SvgUsecasesHero", "SvgIntegrationsHero", "SvgChangelogHero", "SvgAboutHero", "SvgCareersHero", "SvgCommunityHero", "SvgJoin", "SvgJoinConfirm", "SvgInvites", "SvgDiscord", "SvgTutorialsHero", "SvgResearchHero", "SvgEventsHero", "SvgStarsHero", "SvgSpitfire", "SvgBlackSnake", "SvgLinesLogo", "SvgOrganizationsAtScale", "SvgIndividualsAndTeams", "SvgAgentsHero", "SvgEarthHero", "SvgFastA2ADonation", "SvgRadar", "SvgNotebookArtifact", "SvgDocumentArtifact", "SvgCellArtifact", "
|
|
1
|
+
export declare const DATALAYER_SVG_GALLERY: readonly ["SvgJupyterEmbed", "SvgAgentRuntimes", "SvgVSCodeExtension", "SvgBlogHero", "SvgPricingHero", "SvgContactHero", "SvgAgentsHomeHero", "SvgLoginHero", "SvgUsecasesHero", "SvgIntegrationsHero", "SvgPartnersHero", "SvgChangelogHero", "SvgAboutHero", "SvgCareersHero", "SvgCommunityHero", "SvgJoin", "SvgJoinConfirm", "SvgInvites", "SvgDiscord", "SvgTutorialsHero", "SvgResearchHero", "SvgEvalsHero", "SvgEventsHero", "SvgStarsHero", "SvgSpitfire", "SvgBlackSnake", "SvgLinesLogo", "SvgOrganizationsAtScale", "SvgIndividualsAndTeams", "SvgAgentsHero", "SvgEarthHero", "SvgFastA2ADonation", "SvgJupyterMcp", "SvgOSAContributions", "SvgRadar", "SvgNotebookArtifact", "SvgDocumentArtifact", "SvgCellArtifact", "SvgCellOutputshotPlaceholder", "SvgLessonArtifact", "SvgExerciseArtifact", "SvgAssignmentArtifact", "SvgDataset", "SvgLines", "SvgPublication", "SvgPixel1", "SvgPixel2", "SvgSkubble", "SvgEricCharles", "SvgPrivacyHero", "SvgTermsHero", "SvgNotFound", "SvgUnauthorized", "SvgAI", "SvgAI2", "SvgAI3", "SvgDI"];
|
|
2
2
|
export type DatalayerSvgGalleryName = (typeof DATALAYER_SVG_GALLERY)[number];
|
package/lib/svg/gallery.js
CHANGED
|
@@ -14,6 +14,7 @@ export const DATALAYER_SVG_GALLERY = [
|
|
|
14
14
|
'SvgLoginHero',
|
|
15
15
|
'SvgUsecasesHero',
|
|
16
16
|
'SvgIntegrationsHero',
|
|
17
|
+
'SvgPartnersHero',
|
|
17
18
|
'SvgChangelogHero',
|
|
18
19
|
'SvgAboutHero',
|
|
19
20
|
'SvgCareersHero',
|
|
@@ -24,6 +25,7 @@ export const DATALAYER_SVG_GALLERY = [
|
|
|
24
25
|
'SvgDiscord',
|
|
25
26
|
'SvgTutorialsHero',
|
|
26
27
|
'SvgResearchHero',
|
|
28
|
+
'SvgEvalsHero',
|
|
27
29
|
'SvgEventsHero',
|
|
28
30
|
'SvgStarsHero',
|
|
29
31
|
'SvgSpitfire',
|
|
@@ -34,16 +36,29 @@ export const DATALAYER_SVG_GALLERY = [
|
|
|
34
36
|
'SvgAgentsHero',
|
|
35
37
|
'SvgEarthHero',
|
|
36
38
|
'SvgFastA2ADonation',
|
|
39
|
+
'SvgJupyterMcp',
|
|
40
|
+
'SvgOSAContributions',
|
|
37
41
|
'SvgRadar',
|
|
38
42
|
'SvgNotebookArtifact',
|
|
39
43
|
'SvgDocumentArtifact',
|
|
40
44
|
'SvgCellArtifact',
|
|
45
|
+
'SvgCellOutputshotPlaceholder',
|
|
46
|
+
'SvgLessonArtifact',
|
|
47
|
+
'SvgExerciseArtifact',
|
|
48
|
+
'SvgAssignmentArtifact',
|
|
41
49
|
'SvgDataset',
|
|
42
|
-
'SvgJupyterMcp',
|
|
43
50
|
'SvgLines',
|
|
44
51
|
'SvgPublication',
|
|
45
52
|
'SvgPixel1',
|
|
46
53
|
'SvgPixel2',
|
|
54
|
+
'SvgSkubble',
|
|
55
|
+
'SvgEricCharles',
|
|
56
|
+
'SvgPrivacyHero',
|
|
57
|
+
'SvgTermsHero',
|
|
47
58
|
'SvgNotFound',
|
|
48
59
|
'SvgUnauthorized',
|
|
60
|
+
'SvgAI',
|
|
61
|
+
'SvgAI2',
|
|
62
|
+
'SvgAI3',
|
|
63
|
+
'SvgDI',
|
|
49
64
|
];
|