@datalayer/design 1.0.2 → 1.0.3
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/lib/App.d.ts +1 -1
- package/lib/footer/MinimalFooter.d.ts +3 -3
- package/lib/footer/MinimalFooter.js +3 -1
- package/lib/footer/component-helpers.d.ts +2 -2
- package/lib/layout/SiteLayout.d.ts +1 -1
- package/lib/pages/HomePage.d.ts +1 -1
- package/lib/pages/IconsPage.d.ts +1 -1
- package/lib/pages/SvgPage.d.ts +1 -1
- package/lib/pages/SvgPage.js +23 -6
- package/lib/svg/SvgAboutHero.d.ts +1 -1
- package/lib/svg/SvgAgentRuntimes.d.ts +1 -1
- package/lib/svg/SvgAgentsHero.d.ts +1 -1
- package/lib/svg/SvgAgentsHomeHero.d.ts +9 -2
- package/lib/svg/SvgAgentsHomeHero.js +8 -2
- package/lib/svg/SvgAssignmentArtifact.d.ts +1 -1
- package/lib/svg/SvgBlackSnake.d.ts +1 -1
- package/lib/svg/SvgBlogHero.d.ts +1 -1
- package/lib/svg/SvgCareersHero.d.ts +1 -1
- package/lib/svg/SvgCellArtifact.d.ts +1 -1
- package/lib/svg/SvgCellOutputshotPlaceholder.d.ts +1 -0
- package/lib/svg/SvgCellOutputshotPlaceholder.js +0 -5
- package/lib/svg/SvgChangelogHero.d.ts +1 -1
- package/lib/svg/SvgCommunityHero.d.ts +1 -1
- package/lib/svg/SvgContactHero.d.ts +1 -1
- package/lib/svg/SvgDI.d.ts +19 -0
- package/lib/svg/SvgDI.js +20 -0
- package/lib/svg/SvgDataset.d.ts +1 -1
- package/lib/svg/SvgDaytonaStartupGrid.d.ts +19 -0
- package/lib/svg/SvgDaytonaStartupGrid.js +41 -0
- package/lib/svg/SvgDeckArtifact.d.ts +13 -0
- package/lib/svg/SvgDeckArtifact.js +21 -0
- package/lib/svg/SvgDiscord.d.ts +1 -1
- package/lib/svg/SvgDocumentArtifact.d.ts +1 -1
- package/lib/svg/SvgEarthHero.d.ts +1 -1
- package/lib/svg/SvgEvalsHero.d.ts +1 -1
- package/lib/svg/SvgEventsHero.d.ts +1 -1
- package/lib/svg/SvgExerciseArtifact.d.ts +1 -1
- package/lib/svg/SvgFastA2ADonation.d.ts +1 -1
- package/lib/svg/SvgIndividualsAndTeams.d.ts +1 -1
- package/lib/svg/SvgIntegrationsHero.d.ts +1 -1
- package/lib/svg/SvgInvites.d.ts +1 -1
- package/lib/svg/SvgJoin.d.ts +1 -1
- package/lib/svg/SvgJoinConfirm.d.ts +1 -1
- package/lib/svg/SvgJupyterEmbed.d.ts +1 -1
- package/lib/svg/SvgJupyterMcp.d.ts +1 -1
- package/lib/svg/SvgJupyterMcp.js +1 -1
- package/lib/svg/SvgJupyterMcp2.d.ts +25 -0
- package/lib/svg/SvgJupyterMcp2.js +74 -0
- package/lib/svg/SvgLessonArtifact.d.ts +1 -1
- package/lib/svg/SvgLibraryHero.d.ts +5 -0
- package/lib/svg/SvgLibraryHero.js +165 -0
- package/lib/svg/SvgLightHouse.d.ts +5 -0
- package/lib/svg/SvgLightHouse.js +84 -0
- package/lib/svg/SvgLines.d.ts +1 -1
- package/lib/svg/SvgLinesLogo.d.ts +13 -1
- package/lib/svg/SvgLinesLogo.js +10 -5
- package/lib/svg/SvgLoginHero.d.ts +1 -1
- package/lib/svg/SvgNotFound.d.ts +1 -1
- package/lib/svg/SvgNotebookArtifact.d.ts +1 -1
- package/lib/svg/SvgNotebookMock.d.ts +1 -0
- package/lib/svg/SvgNotebookMock.js +0 -5
- package/lib/svg/SvgOSAContributions.d.ts +1 -1
- package/lib/svg/SvgOg.d.ts +34 -0
- package/lib/svg/SvgOg.js +56 -0
- package/lib/svg/SvgOrganizationsAtScale.d.ts +1 -1
- package/lib/svg/SvgPartnersHero.d.ts +1 -1
- package/lib/svg/SvgPixel1.d.ts +1 -1
- package/lib/svg/SvgPixel2.d.ts +1 -1
- package/lib/svg/SvgPricingHero.d.ts +1 -1
- package/lib/svg/SvgPrivacyHero.d.ts +1 -1
- package/lib/svg/SvgPublication.d.ts +1 -1
- package/lib/svg/SvgRadar.d.ts +1 -1
- package/lib/svg/SvgResearchHero.d.ts +1 -1
- package/lib/svg/SvgSkubble.d.ts +1 -1
- package/lib/svg/SvgSpitfire.d.ts +1 -1
- package/lib/svg/SvgStarsHero.d.ts +1 -1
- package/lib/svg/SvgTermsHero.d.ts +1 -1
- package/lib/svg/SvgTutorialsHero.d.ts +1 -1
- package/lib/svg/SvgUnauthorized.d.ts +1 -1
- package/lib/svg/SvgUsecasesHero.d.ts +1 -1
- package/lib/svg/SvgVSCodeExtension.d.ts +1 -1
- package/lib/svg/SvgVSCodeExtension.js +13 -1
- package/lib/svg/gallery.d.ts +1 -1
- package/lib/svg/gallery.js +6 -0
- package/lib/svg/index.d.ts +6 -0
- package/lib/svg/index.js +6 -0
- package/package.json +9 -9
package/lib/svg/SvgJoin.d.ts
CHANGED
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
import { type ColorPalette } from '@datalayer/primer-addons';
|
|
16
16
|
export declare function SvgJoin({ palette: paletteProp }?: {
|
|
17
17
|
palette?: ColorPalette;
|
|
18
|
-
}): import("react
|
|
18
|
+
}): import("react").JSX.Element;
|
|
19
19
|
export default SvgJoin;
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
import { type ColorPalette } from '@datalayer/primer-addons';
|
|
13
13
|
export declare function SvgJoinConfirm({ palette: paletteProp }?: {
|
|
14
14
|
palette?: ColorPalette;
|
|
15
|
-
}): import("react
|
|
15
|
+
}): import("react").JSX.Element;
|
|
16
16
|
export default SvgJoinConfirm;
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
import { type ColorPalette } from '@datalayer/primer-addons';
|
|
13
13
|
export declare function SvgJupyterMcp({ palette: paletteProp }?: {
|
|
14
14
|
palette?: ColorPalette;
|
|
15
|
-
}): import("react
|
|
15
|
+
}): import("react").JSX.Element;
|
|
16
16
|
export default SvgJupyterMcp;
|
package/lib/svg/SvgJupyterMcp.js
CHANGED
|
@@ -22,6 +22,6 @@ export function SvgJupyterMcp({ palette: paletteProp } = {}) {
|
|
|
22
22
|
const jupyterLogoArc = p.isLight ? p.flame : p.glow;
|
|
23
23
|
const jupyterLogoPrimary = p.isLight ? p.blaze : p.gold;
|
|
24
24
|
const jupyterColorSoft = p.isLight ? p.surge : p.glow;
|
|
25
|
-
return (_jsxs("svg", { viewBox: "0 0 800 400", xmlns: "http://www.w3.org/2000/svg", style: { width: '100%', height: 'auto', display: 'block' }, children: [_jsxs("defs", { children: [_jsx(LightBoostFilter, {}), _jsxs("filter", { id: "jmcp-glow", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [_jsx("feGaussianBlur", { in: "SourceGraphic", stdDeviation: "6", result: "blur" }), _jsx("feComposite", { in: "SourceGraphic", in2: "blur", operator: "over" })] }), _jsx("filter", { id: "jmcp-halo", x: "-100%", y: "-100%", width: "300%", height: "300%", children: _jsx("feGaussianBlur", { stdDeviation: "18" }) }), _jsxs("linearGradient", { id: "jmcp-line-grad", x1: "0%", y1: "0%", x2: "100%", y2: "0%", children: [_jsx("stop", { offset: "0%", stopColor: jupyterLogoPrimary, stopOpacity: "0.8" }), _jsx("stop", { offset: "50%", stopColor: p.glow, stopOpacity: "0.6" }), _jsx("stop", { offset: "100%", stopColor: p.primary, stopOpacity: "0.8" })] }), _jsx("pattern", { id: "jmcp-dots", x: "0", y: "0", width: "30", height: "30", patternUnits: "userSpaceOnUse", children: _jsx("circle", { cx: "15", cy: "15", r: "0.6", fill: p.primary, opacity: "0.12" }) })] }), _jsx("rect", { width: "800", height: "400", fill: p.bg }), _jsxs("g", { filter: p.isLight ? 'url(#svgLightBoost)' : undefined, children: [_jsx("rect", { width: "800", height: "400", fill: "url(#jmcp-dots)" }), _jsx("circle", { cx: "220", cy: "200", r: "120", fill: jupyterColorSoft, opacity: "0.06", filter: "url(#jmcp-halo)" }), _jsx("circle", { cx: "580", cy: "200", r: "120", fill: p.primary, opacity: "0.04", filter: "url(#jmcp-halo)" }), _jsx("path", { d: "M 300 170 C 380 120, 480 120, 500 170", fill: "none", stroke: "url(#jmcp-line-grad)", strokeWidth: "1.5", opacity: "0.5", children: _jsx("animate", { attributeName: "opacity", values: "0.3;0.6;0.3", dur: "4s", repeatCount: "indefinite" }) }), _jsx("path", { d: "M 300 200 C 370 200, 430 200, 500 200", fill: "none", stroke: "url(#jmcp-line-grad)", strokeWidth: "2", opacity: "0.6", children: _jsx("animate", { attributeName: "opacity", values: "0.4;0.7;0.4", dur: "3.5s", repeatCount: "indefinite" }) }), _jsx("path", { d: "M 300 230 C 380 280, 480 280, 500 230", fill: "none", stroke: "url(#jmcp-line-grad)", strokeWidth: "1.5", opacity: "0.5", children: _jsx("animate", { attributeName: "opacity", values: "0.3;0.6;0.3", dur: "4.5s", repeatCount: "indefinite" }) }), _jsx("circle", { r: "3", fill: jupyterLogoPrimary, opacity: "0.8", children: _jsx("animateMotion", { dur: "3s", repeatCount: "indefinite", path: "M 300 170 C 380 120, 480 120, 500 170" }) }), _jsx("circle", { r: "3.5", fill: p.glow, opacity: "0.9", children: _jsx("animateMotion", { dur: "2.5s", repeatCount: "indefinite", path: "M 300 200 C 370 200, 430 200, 500 200" }) }), _jsx("circle", { r: "3", fill: p.primary, opacity: "0.8", children: _jsx("animateMotion", { dur: "3.5s", repeatCount: "indefinite", path: "M 300 230 C 380 280, 480 280, 500 230" }) }), _jsx("circle", { r: "2.5", fill: p.pop, opacity: "0.7", children: _jsx("animateMotion", { dur: "3s", repeatCount: "indefinite", path: "M 500 200 C 430 200, 370 200, 300 200" }) }), _jsx("g", { transform: "translate(220, 200) scale(5.5)", filter: "url(#jmcp-glow)", children: _jsxs("g", { transform: "translate(-10.385, -10.1)", children: [_jsx("path", { d: "M10.3848 3.63324C14.1395 3.63324 17.4395 4.98077 19.1458 6.97075C18.4837 5.18054 17.2891 3.63609 15.7228 2.54532C14.1564 1.45455 12.2935 0.869812 10.3848 0.869812C8.4761 0.869812 6.61315 1.45455 5.04681 2.54532C3.48046 3.63609 2.28586 5.18054 1.62381 6.97075C3.33012 4.9766 6.61343 3.63324 10.3848 3.63324Z", fill: jupyterLogoArc }), _jsx("path", { d: "M10.3848 16.5737C6.63011 16.5737 3.33012 15.2261 1.62381 13.2361C2.28586 15.0264 3.48046 16.5708 5.04681 17.6616C6.61315 18.7524 8.4761 19.3371 10.3848 19.3371C12.2935 19.3371 14.1564 18.7524 15.7228 17.6616C17.2891 16.5708 18.4837 15.0264 19.1458 13.2361C17.4437 15.2261 14.1562 16.5737 10.3848 16.5737Z", fill: jupyterLogoArc })] }) }), _jsx("text", { x: "220", y: "285", textAnchor: "middle", fill: p.textLight, fontSize: "16", fontWeight: "700", fontFamily: "system-ui, -apple-system, sans-serif", letterSpacing: "-0.02em", children: "Jupyter" }), _jsx("text", { x: "220", y: "305", textAnchor: "middle", fill: p.textMuted, fontSize: "11", fontFamily: "system-ui, -apple-system, sans-serif", children: "Notebooks &
|
|
25
|
+
return (_jsxs("svg", { viewBox: "0 0 800 400", xmlns: "http://www.w3.org/2000/svg", style: { width: '100%', height: 'auto', display: 'block' }, children: [_jsxs("defs", { children: [_jsx(LightBoostFilter, {}), _jsxs("filter", { id: "jmcp-glow", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [_jsx("feGaussianBlur", { in: "SourceGraphic", stdDeviation: "6", result: "blur" }), _jsx("feComposite", { in: "SourceGraphic", in2: "blur", operator: "over" })] }), _jsx("filter", { id: "jmcp-halo", x: "-100%", y: "-100%", width: "300%", height: "300%", children: _jsx("feGaussianBlur", { stdDeviation: "18" }) }), _jsxs("linearGradient", { id: "jmcp-line-grad", x1: "0%", y1: "0%", x2: "100%", y2: "0%", children: [_jsx("stop", { offset: "0%", stopColor: jupyterLogoPrimary, stopOpacity: "0.8" }), _jsx("stop", { offset: "50%", stopColor: p.glow, stopOpacity: "0.6" }), _jsx("stop", { offset: "100%", stopColor: p.primary, stopOpacity: "0.8" })] }), _jsx("pattern", { id: "jmcp-dots", x: "0", y: "0", width: "30", height: "30", patternUnits: "userSpaceOnUse", children: _jsx("circle", { cx: "15", cy: "15", r: "0.6", fill: p.primary, opacity: "0.12" }) })] }), _jsx("rect", { width: "800", height: "400", fill: p.bg }), _jsxs("g", { filter: p.isLight ? 'url(#svgLightBoost)' : undefined, children: [_jsx("rect", { width: "800", height: "400", fill: "url(#jmcp-dots)" }), _jsx("circle", { cx: "220", cy: "200", r: "120", fill: jupyterColorSoft, opacity: "0.06", filter: "url(#jmcp-halo)" }), _jsx("circle", { cx: "580", cy: "200", r: "120", fill: p.primary, opacity: "0.04", filter: "url(#jmcp-halo)" }), _jsx("path", { d: "M 300 170 C 380 120, 480 120, 500 170", fill: "none", stroke: "url(#jmcp-line-grad)", strokeWidth: "1.5", opacity: "0.5", children: _jsx("animate", { attributeName: "opacity", values: "0.3;0.6;0.3", dur: "4s", repeatCount: "indefinite" }) }), _jsx("path", { d: "M 300 200 C 370 200, 430 200, 500 200", fill: "none", stroke: "url(#jmcp-line-grad)", strokeWidth: "2", opacity: "0.6", children: _jsx("animate", { attributeName: "opacity", values: "0.4;0.7;0.4", dur: "3.5s", repeatCount: "indefinite" }) }), _jsx("path", { d: "M 300 230 C 380 280, 480 280, 500 230", fill: "none", stroke: "url(#jmcp-line-grad)", strokeWidth: "1.5", opacity: "0.5", children: _jsx("animate", { attributeName: "opacity", values: "0.3;0.6;0.3", dur: "4.5s", repeatCount: "indefinite" }) }), _jsx("circle", { r: "3", fill: jupyterLogoPrimary, opacity: "0.8", children: _jsx("animateMotion", { dur: "3s", repeatCount: "indefinite", path: "M 300 170 C 380 120, 480 120, 500 170" }) }), _jsx("circle", { r: "3.5", fill: p.glow, opacity: "0.9", children: _jsx("animateMotion", { dur: "2.5s", repeatCount: "indefinite", path: "M 300 200 C 370 200, 430 200, 500 200" }) }), _jsx("circle", { r: "3", fill: p.primary, opacity: "0.8", children: _jsx("animateMotion", { dur: "3.5s", repeatCount: "indefinite", path: "M 300 230 C 380 280, 480 280, 500 230" }) }), _jsx("circle", { r: "2.5", fill: p.pop, opacity: "0.7", children: _jsx("animateMotion", { dur: "3s", repeatCount: "indefinite", path: "M 500 200 C 430 200, 370 200, 300 200" }) }), _jsx("g", { transform: "translate(220, 200) scale(5.5)", filter: "url(#jmcp-glow)", children: _jsxs("g", { transform: "translate(-10.385, -10.1)", children: [_jsx("path", { d: "M10.3848 3.63324C14.1395 3.63324 17.4395 4.98077 19.1458 6.97075C18.4837 5.18054 17.2891 3.63609 15.7228 2.54532C14.1564 1.45455 12.2935 0.869812 10.3848 0.869812C8.4761 0.869812 6.61315 1.45455 5.04681 2.54532C3.48046 3.63609 2.28586 5.18054 1.62381 6.97075C3.33012 4.9766 6.61343 3.63324 10.3848 3.63324Z", fill: jupyterLogoArc }), _jsx("path", { d: "M10.3848 16.5737C6.63011 16.5737 3.33012 15.2261 1.62381 13.2361C2.28586 15.0264 3.48046 16.5708 5.04681 17.6616C6.61315 18.7524 8.4761 19.3371 10.3848 19.3371C12.2935 19.3371 14.1564 18.7524 15.7228 17.6616C17.2891 16.5708 18.4837 15.0264 19.1458 13.2361C17.4437 15.2261 14.1562 16.5737 10.3848 16.5737Z", fill: jupyterLogoArc })] }) }), _jsx("text", { x: "220", y: "285", textAnchor: "middle", fill: p.textLight, fontSize: "16", fontWeight: "700", fontFamily: "system-ui, -apple-system, sans-serif", letterSpacing: "-0.02em", children: "Jupyter" }), _jsx("text", { x: "220", y: "305", textAnchor: "middle", fill: p.textMuted, fontSize: "11", fontFamily: "system-ui, -apple-system, sans-serif", children: "Notebooks & Sandboxes" }), _jsx("g", { transform: "translate(580, 200) scale(4)", filter: "url(#jmcp-glow)", children: _jsxs("g", { transform: "translate(-12, -12)", children: [_jsx("path", { d: "M15.688 2.343a2.588 2.588 0 00-3.61 0l-9.626 9.44a.863.863 0 01-1.203 0 .823.823 0 010-1.18l9.626-9.44a4.313 4.313 0 016.016 0 4.116 4.116 0 011.204 3.54 4.3 4.3 0 013.609 1.18l.05.05a4.115 4.115 0 010 5.9l-8.706 8.537a.274.274 0 000 .393l1.788 1.754a.823.823 0 010 1.18.863.863 0 01-1.203 0l-1.788-1.753a1.92 1.92 0 010-2.754l8.706-8.538a2.47 2.47 0 000-3.54l-.05-.049a2.588 2.588 0 00-3.607-.003l-7.172 7.034-.002.002-.098.097a.863.863 0 01-1.204 0 .823.823 0 010-1.18l7.273-7.133a2.47 2.47 0 00-.003-3.537z", fill: p.primary }), _jsx("path", { d: "M14.485 4.703a.823.823 0 000-1.18.863.863 0 00-1.204 0l-7.119 6.982a4.115 4.115 0 000 5.9 4.314 4.314 0 006.016 0l7.12-6.982a.823.823 0 000-1.18.863.863 0 00-1.204 0l-7.119 6.982a2.588 2.588 0 01-3.61 0 2.47 2.47 0 010-3.54l7.12-6.982z", fill: p.primary })] }) }), _jsx("text", { x: "580", y: "285", textAnchor: "middle", fill: p.textLight, fontSize: "16", fontWeight: "700", fontFamily: "system-ui, -apple-system, sans-serif", letterSpacing: "-0.02em", children: "MCP" }), _jsx("text", { x: "580", y: "305", textAnchor: "middle", fill: p.textMuted, fontSize: "11", fontFamily: "system-ui, -apple-system, sans-serif", children: "Model Context Protocol" }), _jsx("line", { x1: "20", y1: "20", x2: "60", y2: "20", stroke: p.primary, strokeWidth: "1", opacity: "0.15" }), _jsx("line", { x1: "20", y1: "20", x2: "20", y2: "60", stroke: p.primary, strokeWidth: "1", opacity: "0.15" }), _jsx("line", { x1: "780", y1: "20", x2: "740", y2: "20", stroke: p.primary, strokeWidth: "1", opacity: "0.15" }), _jsx("line", { x1: "780", y1: "20", x2: "780", y2: "60", stroke: p.primary, strokeWidth: "1", opacity: "0.15" }), _jsx("line", { x1: "20", y1: "380", x2: "60", y2: "380", stroke: p.primary, strokeWidth: "1", opacity: "0.15" }), _jsx("line", { x1: "20", y1: "380", x2: "20", y2: "340", stroke: p.primary, strokeWidth: "1", opacity: "0.15" }), _jsx("line", { x1: "780", y1: "380", x2: "740", y2: "380", stroke: p.primary, strokeWidth: "1", opacity: "0.15" }), _jsx("line", { x1: "780", y1: "380", x2: "780", y2: "340", stroke: p.primary, strokeWidth: "1", opacity: "0.15" }), _jsx("rect", { x: "0", y: "392", width: "800", height: "2", fill: jupyterLogoPrimary, opacity: "0.12" }), _jsx("rect", { x: "0", y: "395", width: "800", height: "3", fill: p.glow, opacity: "0.10" }), _jsx("rect", { x: "0", y: "398", width: "800", height: "2", fill: p.primary, opacity: "0.08" })] })] }));
|
|
26
26
|
}
|
|
27
27
|
export default SvgJupyterMcp;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Announcement artwork for Jupyter MCP Server 2, the release built on the
|
|
3
|
+
* second generation of the Model Context Protocol.
|
|
4
|
+
*
|
|
5
|
+
* Visual motif: a hero numeral "2" drawn as a single geometric stroke sits
|
|
6
|
+
* at the centre of a rotating protocol orbit, its gradient melting Jupyter's
|
|
7
|
+
* warm orange into Datalayer's green. The Jupyter mark feeds the orbit from
|
|
8
|
+
* the left, the MCP mark draws from it on the right, with pulses travelling
|
|
9
|
+
* along ports docked on the ring — the version number is the conduit.
|
|
10
|
+
*
|
|
11
|
+
* Sibling of {@link SvgJupyterMcp}, sharing its logo geometry, corner
|
|
12
|
+
* accents and bottom accent bars.
|
|
13
|
+
*
|
|
14
|
+
* The soft passes (halos, numeral bloom) sit OUTSIDE the `svgLightBoost`
|
|
15
|
+
* group: that filter raises alpha by a 0.45 gamma, which turns a 0.06 wash
|
|
16
|
+
* into a 0.28 one and would blow the blurs into flat discs in light mode.
|
|
17
|
+
*
|
|
18
|
+
* Uses the shared ColorPalette theming system.
|
|
19
|
+
* ViewBox: 1200×520, renders inline (no absolute positioning).
|
|
20
|
+
*/
|
|
21
|
+
import { type ColorPalette } from '@datalayer/primer-addons';
|
|
22
|
+
export declare function SvgJupyterMcp2({ palette: paletteProp }?: {
|
|
23
|
+
palette?: ColorPalette;
|
|
24
|
+
}): import("react").JSX.Element;
|
|
25
|
+
export default SvgJupyterMcp2;
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
* Announcement artwork for Jupyter MCP Server 2, the release built on the
|
|
9
|
+
* second generation of the Model Context Protocol.
|
|
10
|
+
*
|
|
11
|
+
* Visual motif: a hero numeral "2" drawn as a single geometric stroke sits
|
|
12
|
+
* at the centre of a rotating protocol orbit, its gradient melting Jupyter's
|
|
13
|
+
* warm orange into Datalayer's green. The Jupyter mark feeds the orbit from
|
|
14
|
+
* the left, the MCP mark draws from it on the right, with pulses travelling
|
|
15
|
+
* along ports docked on the ring — the version number is the conduit.
|
|
16
|
+
*
|
|
17
|
+
* Sibling of {@link SvgJupyterMcp}, sharing its logo geometry, corner
|
|
18
|
+
* accents and bottom accent bars.
|
|
19
|
+
*
|
|
20
|
+
* The soft passes (halos, numeral bloom) sit OUTSIDE the `svgLightBoost`
|
|
21
|
+
* group: that filter raises alpha by a 0.45 gamma, which turns a 0.06 wash
|
|
22
|
+
* into a 0.28 one and would blow the blurs into flat discs in light mode.
|
|
23
|
+
*
|
|
24
|
+
* Uses the shared ColorPalette theming system.
|
|
25
|
+
* ViewBox: 1200×520, renders inline (no absolute positioning).
|
|
26
|
+
*/
|
|
27
|
+
import { useColorPalette, LightBoostFilter } from '@datalayer/primer-addons';
|
|
28
|
+
/**
|
|
29
|
+
* The hero numeral, drawn as one continuous stroke around the origin: a 240°
|
|
30
|
+
* bowl closing level on both sides, a lightly bowed diagonal, then the base
|
|
31
|
+
* bar. Stroked rather than typeset so it renders identically everywhere and
|
|
32
|
+
* can carry a gradient and a travelling shine.
|
|
33
|
+
*/
|
|
34
|
+
const TWO_PATH = 'M -53.7 -7 A 62 62 0 1 1 53.7 -7 C 33 27, -20 50, -58 82 L 60 82';
|
|
35
|
+
const TWO_TRANSFORM = 'translate(600, 228) scale(1.15)';
|
|
36
|
+
/**
|
|
37
|
+
* The neon breath: one cycle brightens over the first third and falls away
|
|
38
|
+
* across the rest, which is what reads as a glowing tube rather than a
|
|
39
|
+
* symmetrical throb. Every glow pass shares it so they pulse as one.
|
|
40
|
+
*/
|
|
41
|
+
const NEON_CYCLE = '3.6s';
|
|
42
|
+
const NEON_SPLINES = '0.35 0 0.25 1; 0.45 0 0.55 1';
|
|
43
|
+
const CENTER_X = 600;
|
|
44
|
+
const CENTER_Y = 218;
|
|
45
|
+
/** Ports where the flow lines dock onto the inner orbit (r = 148). */
|
|
46
|
+
const PORTS = [
|
|
47
|
+
{ x: 455, y: 190 },
|
|
48
|
+
{ x: 452, y: 218 },
|
|
49
|
+
{ x: 455, y: 246 },
|
|
50
|
+
{ x: 745, y: 190 },
|
|
51
|
+
{ x: 748, y: 218 },
|
|
52
|
+
{ x: 745, y: 246 },
|
|
53
|
+
];
|
|
54
|
+
const INBOUND = [
|
|
55
|
+
{ d: 'M 292 178 C 344 152, 404 156, 455 190', dur: '4s' },
|
|
56
|
+
{ d: 'M 292 218 C 348 218, 404 218, 452 218', dur: '3.5s' },
|
|
57
|
+
{ d: 'M 292 258 C 344 284, 404 280, 455 246', dur: '4.5s' },
|
|
58
|
+
];
|
|
59
|
+
const OUTBOUND = [
|
|
60
|
+
{ d: 'M 745 190 C 796 156, 856 152, 908 178', dur: '4.2s' },
|
|
61
|
+
{ d: 'M 748 218 C 796 218, 852 218, 908 218', dur: '3.7s' },
|
|
62
|
+
{ d: 'M 745 246 C 796 280, 856 284, 908 258', dur: '4.7s' },
|
|
63
|
+
];
|
|
64
|
+
export function SvgJupyterMcp2({ palette: paletteProp } = {}) {
|
|
65
|
+
const auto = useColorPalette();
|
|
66
|
+
const p = paletteProp ?? auto;
|
|
67
|
+
const jupyterLogoArc = p.isLight ? p.flame : p.glow;
|
|
68
|
+
const jupyterWarm = p.isLight ? p.flame : p.gold;
|
|
69
|
+
const accentText = p.isLight ? p.secondary : p.glow;
|
|
70
|
+
/* Light mode goes through the alpha boost, so it needs lower raw values. */
|
|
71
|
+
const dim = (light, dark) => (p.isLight ? light : dark);
|
|
72
|
+
return (_jsxs("svg", { viewBox: "0 0 1200 520", xmlns: "http://www.w3.org/2000/svg", style: { width: '100%', height: 'auto', display: 'block' }, role: "img", "aria-label": "Jupyter MCP Server 2 is now available, built on MCP 2", children: [_jsxs("defs", { children: [_jsx(LightBoostFilter, {}), _jsxs("filter", { id: "jmcp2-glow", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [_jsx("feGaussianBlur", { in: "SourceGraphic", stdDeviation: "5", result: "blur" }), _jsx("feComposite", { in: "SourceGraphic", in2: "blur", operator: "over" })] }), _jsxs("radialGradient", { id: "jmcp2-halo-jupyter", children: [_jsx("stop", { offset: "0%", stopColor: jupyterLogoArc, stopOpacity: dim('0.16', '0.22') }), _jsx("stop", { offset: "100%", stopColor: jupyterLogoArc, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: "jmcp2-halo-mcp", children: [_jsx("stop", { offset: "0%", stopColor: p.primary, stopOpacity: dim('0.18', '0.26') }), _jsx("stop", { offset: "100%", stopColor: p.primary, stopOpacity: "0" })] }), _jsx("filter", { id: "jmcp2-bloom", x: "-60%", y: "-60%", width: "220%", height: "220%", children: _jsx("feGaussianBlur", { stdDeviation: "18" }) }), _jsx("filter", { id: "jmcp2-bloom-tight", x: "-40%", y: "-40%", width: "180%", height: "180%", children: _jsx("feGaussianBlur", { stdDeviation: "6" }) }), _jsxs("linearGradient", { id: "jmcp2-two", x1: "0%", y1: "0%", x2: "20%", y2: "100%", children: [_jsx("stop", { offset: "0%", stopColor: p.flame }), _jsx("stop", { offset: "26%", stopColor: p.gold }), _jsx("stop", { offset: "48%", stopColor: p.spark }), _jsx("stop", { offset: "72%", stopColor: p.glow }), _jsx("stop", { offset: "100%", stopColor: p.primary })] }), _jsxs("linearGradient", { id: "jmcp2-shine", x1: "0%", y1: "0%", x2: "100%", y2: "0%", children: [_jsx("stop", { offset: "0", stopColor: dim(p.gold, '#ffffff'), stopOpacity: "0", children: _jsx("animate", { attributeName: "offset", values: "0;0.8", dur: "5s", repeatCount: "indefinite" }) }), _jsx("stop", { offset: "0.1", stopColor: dim(p.gold, '#ffffff'), stopOpacity: dim('0.4', '0.6'), children: _jsx("animate", { attributeName: "offset", values: "0.1;0.9", dur: "5s", repeatCount: "indefinite" }) }), _jsx("stop", { offset: "0.2", stopColor: dim(p.gold, '#ffffff'), stopOpacity: "0", children: _jsx("animate", { attributeName: "offset", values: "0.2;1", dur: "5s", repeatCount: "indefinite" }) })] }), _jsxs("linearGradient", { id: "jmcp2-line-in", x1: "0%", y1: "0%", x2: "100%", y2: "0%", children: [_jsx("stop", { offset: "0%", stopColor: jupyterWarm, stopOpacity: "0.85" }), _jsx("stop", { offset: "100%", stopColor: p.glow, stopOpacity: "0.7" })] }), _jsxs("linearGradient", { id: "jmcp2-line-out", x1: "0%", y1: "0%", x2: "100%", y2: "0%", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0.7" }), _jsx("stop", { offset: "100%", stopColor: p.primary, stopOpacity: "0.85" })] }), _jsxs("radialGradient", { id: "jmcp2-vignette", cx: "50%", cy: "42%", r: "60%", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: dim('0.1', '0.16') }), _jsx("stop", { offset: "100%", stopColor: p.glow, stopOpacity: "0" })] }), _jsx("pattern", { id: "jmcp2-dots", x: "0", y: "0", width: "30", height: "30", patternUnits: "userSpaceOnUse", children: _jsx("circle", { cx: "15", cy: "15", r: "0.6", fill: p.primary, opacity: "0.12" }) })] }), _jsx("rect", { width: "1200", height: "520", fill: p.bg }), _jsx("rect", { width: "1200", height: "520", fill: "url(#jmcp2-dots)" }), _jsx("rect", { width: "1200", height: "520", fill: "url(#jmcp2-vignette)" }), _jsx("circle", { cx: "225", cy: CENTER_Y, r: "150", fill: "url(#jmcp2-halo-jupyter)" }), _jsx("circle", { cx: "975", cy: CENTER_Y, r: "150", fill: "url(#jmcp2-halo-mcp)" }), _jsx("g", { transform: TWO_TRANSFORM, children: _jsx("path", { d: TWO_PATH, fill: "none", stroke: p.glow, strokeWidth: "34", strokeLinecap: "round", strokeLinejoin: "round", filter: "url(#jmcp2-bloom)", children: _jsx("animate", { attributeName: "opacity", values: dim('0.12;0.42;0.12', '0.2;0.78;0.2'), keyTimes: "0;0.38;1", calcMode: "spline", keySplines: NEON_SPLINES, dur: NEON_CYCLE, repeatCount: "indefinite" }) }) }), _jsxs("g", { filter: p.isLight ? 'url(#svgLightBoost)' : undefined, children: [_jsx("circle", { cx: CENTER_X, cy: CENTER_Y, r: "184", fill: "none", stroke: p.primary, strokeWidth: "1", opacity: dim('0.06', '0.14') }), _jsxs("g", { children: [_jsx("animateTransform", { attributeName: "transform", type: "rotate", from: `0 ${CENTER_X} ${CENTER_Y}`, to: `360 ${CENTER_X} ${CENTER_Y}`, dur: "64s", repeatCount: "indefinite" }), _jsx("circle", { cx: CENTER_X, cy: CENTER_Y, r: "148", fill: "none", stroke: p.primary, strokeWidth: "1.5", strokeDasharray: "2 11", opacity: dim('0.24', '0.42') }), _jsx("circle", { cx: CENTER_X + 148, cy: CENTER_Y, r: "4", fill: p.glow, opacity: "0.75" }), _jsx("circle", { cx: CENTER_X - 148, cy: CENTER_Y, r: "4", fill: jupyterWarm, opacity: "0.7" })] }), _jsxs("g", { children: [_jsx("animateTransform", { attributeName: "transform", type: "rotate", from: `360 ${CENTER_X} ${CENTER_Y}`, to: `0 ${CENTER_X} ${CENTER_Y}`, dur: "92s", repeatCount: "indefinite" }), _jsx("circle", { cx: CENTER_X, cy: CENTER_Y, r: "170", fill: "none", stroke: p.glow, strokeWidth: "1", strokeDasharray: "1 15", opacity: dim('0.2', '0.36') }), _jsx("rect", { x: CENTER_X - 4, y: CENTER_Y - 174, width: "8", height: "8", rx: "2", fill: p.pop, opacity: "0.6" }), _jsx("rect", { x: CENTER_X - 4, y: CENTER_Y + 166, width: "8", height: "8", rx: "2", fill: p.spark, opacity: "0.55" })] }), INBOUND.map((line) => (_jsx("path", { d: line.d, fill: "none", stroke: "url(#jmcp2-line-in)", strokeWidth: "2", strokeLinecap: "round", opacity: dim('0.45', '0.6'), children: _jsx("animate", { attributeName: "opacity", values: "0.3;0.7;0.3", dur: line.dur, repeatCount: "indefinite" }) }, line.d))), OUTBOUND.map((line) => (_jsx("path", { d: line.d, fill: "none", stroke: "url(#jmcp2-line-out)", strokeWidth: "2", strokeLinecap: "round", opacity: dim('0.45', '0.6'), children: _jsx("animate", { attributeName: "opacity", values: "0.3;0.7;0.3", dur: line.dur, repeatCount: "indefinite" }) }, line.d))), PORTS.map((port) => (_jsx("circle", { cx: port.x, cy: port.y, r: "3.5", fill: p.glow, opacity: "0.7" }, `${port.x}-${port.y}`))), INBOUND.map((line, index) => (_jsx("circle", { r: index === 1 ? 4.5 : 4, fill: jupyterWarm, opacity: "0.9", children: _jsx("animateMotion", { dur: index === 1 ? '2.5s' : `${3 + index * 0.4}s`, repeatCount: "indefinite", path: line.d }) }, `in-${line.d}`))), OUTBOUND.map((line, index) => (_jsx("circle", { r: index === 1 ? 4.5 : 4, fill: index === 1 ? p.primary : p.glow, opacity: "0.9", children: _jsx("animateMotion", { dur: index === 1 ? '2.6s' : `${3.2 + index * 0.4}s`, repeatCount: "indefinite", path: line.d }) }, `out-${line.d}`))), _jsx("circle", { r: "3.5", fill: p.pop, opacity: "0.8", children: _jsx("animateMotion", { dur: "3.6s", repeatCount: "indefinite", path: "M 908 218 C 852 218, 796 218, 748 218" }) }), _jsxs("g", { transform: TWO_TRANSFORM, children: [_jsx("path", { d: TWO_PATH, fill: "none", stroke: p.primary, strokeWidth: "26", strokeLinecap: "round", strokeLinejoin: "round", opacity: dim('0.07', '0.16'), transform: "translate(9, 9)" }), _jsx("path", { d: TWO_PATH, fill: "none", stroke: "url(#jmcp2-two)", strokeWidth: "26", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: TWO_PATH, fill: "none", stroke: "url(#jmcp2-shine)", strokeWidth: "26", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: TWO_PATH, fill: "none", stroke: "url(#jmcp2-two)", strokeWidth: "26", strokeLinecap: "round", strokeLinejoin: "round", filter: "url(#jmcp2-bloom-tight)", children: _jsx("animate", { attributeName: "opacity", values: dim('0.08;0.32;0.08', '0.18;0.58;0.18'), keyTimes: "0;0.38;1", calcMode: "spline", keySplines: NEON_SPLINES, dur: NEON_CYCLE, repeatCount: "indefinite" }) })] }), _jsx("g", { transform: `translate(225, ${CENTER_Y}) scale(5.6)`, filter: p.isLight ? undefined : 'url(#jmcp2-glow)', children: _jsxs("g", { transform: "translate(-10.385, -10.1)", children: [_jsx("path", { d: "M10.3848 3.63324C14.1395 3.63324 17.4395 4.98077 19.1458 6.97075C18.4837 5.18054 17.2891 3.63609 15.7228 2.54532C14.1564 1.45455 12.2935 0.869812 10.3848 0.869812C8.4761 0.869812 6.61315 1.45455 5.04681 2.54532C3.48046 3.63609 2.28586 5.18054 1.62381 6.97075C3.33012 4.9766 6.61343 3.63324 10.3848 3.63324Z", fill: jupyterLogoArc }), _jsx("path", { d: "M10.3848 16.5737C6.63011 16.5737 3.33012 15.2261 1.62381 13.2361C2.28586 15.0264 3.48046 16.5708 5.04681 17.6616C6.61315 18.7524 8.4761 19.3371 10.3848 19.3371C12.2935 19.3371 14.1564 18.7524 15.7228 17.6616C17.2891 16.5708 18.4837 15.0264 19.1458 13.2361C17.4437 15.2261 14.1562 16.5737 10.3848 16.5737Z", fill: jupyterLogoArc })] }) }), _jsx("text", { x: "225", y: "322", textAnchor: "middle", fill: p.textLight, fontSize: "20", fontWeight: "700", fontFamily: "system-ui, -apple-system, sans-serif", letterSpacing: "-0.02em", children: "Jupyter" }), _jsx("text", { x: "225", y: "346", textAnchor: "middle", fill: p.textMuted, fontSize: "13", fontFamily: "system-ui, -apple-system, sans-serif", children: "Notebooks & Sandboxes" }), _jsx("g", { transform: `translate(975, ${CENTER_Y}) scale(4.5)`, filter: p.isLight ? undefined : 'url(#jmcp2-glow)', children: _jsxs("g", { transform: "translate(-12, -12)", children: [_jsx("path", { d: "M15.688 2.343a2.588 2.588 0 00-3.61 0l-9.626 9.44a.863.863 0 01-1.203 0 .823.823 0 010-1.18l9.626-9.44a4.313 4.313 0 016.016 0 4.116 4.116 0 011.204 3.54 4.3 4.3 0 013.609 1.18l.05.05a4.115 4.115 0 010 5.9l-8.706 8.537a.274.274 0 000 .393l1.788 1.754a.823.823 0 010 1.18.863.863 0 01-1.203 0l-1.788-1.753a1.92 1.92 0 010-2.754l8.706-8.538a2.47 2.47 0 000-3.54l-.05-.049a2.588 2.588 0 00-3.607-.003l-7.172 7.034-.002.002-.098.097a.863.863 0 01-1.204 0 .823.823 0 010-1.18l7.273-7.133a2.47 2.47 0 00-.003-3.537z", fill: p.primary }), _jsx("path", { d: "M14.485 4.703a.823.823 0 000-1.18.863.863 0 00-1.204 0l-7.119 6.982a4.115 4.115 0 000 5.9 4.314 4.314 0 006.016 0l7.12-6.982a.823.823 0 000-1.18.863.863 0 00-1.204 0l-7.119 6.982a2.588 2.588 0 01-3.61 0 2.47 2.47 0 010-3.54l7.12-6.982z", fill: p.primary })] }) }), _jsx("text", { x: "975", y: "322", textAnchor: "middle", fill: p.textLight, fontSize: "20", fontWeight: "700", fontFamily: "system-ui, -apple-system, sans-serif", letterSpacing: "-0.02em", children: "MCP 2" }), _jsx("text", { x: "975", y: "346", textAnchor: "middle", fill: p.textMuted, fontSize: "13", fontFamily: "system-ui, -apple-system, sans-serif", children: "Model Context Protocol" }), _jsx("rect", { x: "505", y: "26", width: "190", height: "32", rx: "16", fill: p.bg, stroke: accentText, strokeOpacity: "0.45" }), _jsx("circle", { cx: "534", cy: "42", r: "4.5", fill: p.glow, children: _jsx("animate", { attributeName: "opacity", values: "0.35;1;0.35", dur: "2.4s", repeatCount: "indefinite" }) }), _jsx("text", { x: "619", y: "47", textAnchor: "middle", fill: accentText, fontSize: "11", fontWeight: "700", fontFamily: "system-ui, -apple-system, sans-serif", letterSpacing: "0.14em", children: "NOW AVAILABLE" }), _jsx("text", { x: "600", y: "434", textAnchor: "middle", fill: p.textLight, fontSize: "38", fontWeight: "750", fontFamily: "system-ui, -apple-system, sans-serif", letterSpacing: "-0.02em", children: "Jupyter MCP Server 2" }), _jsx("text", { x: "600", y: "466", textAnchor: "middle", fill: p.textMuted, fontSize: "16", fontFamily: "system-ui, -apple-system, sans-serif", children: "Notebooks and sandboxes for every agent \u2014 now speaking MCP 2" }), _jsx("line", { x1: "20", y1: "20", x2: "60", y2: "20", stroke: p.primary, strokeWidth: "1", opacity: "0.15" }), _jsx("line", { x1: "20", y1: "20", x2: "20", y2: "60", stroke: p.primary, strokeWidth: "1", opacity: "0.15" }), _jsx("line", { x1: "1180", y1: "20", x2: "1140", y2: "20", stroke: p.primary, strokeWidth: "1", opacity: "0.15" }), _jsx("line", { x1: "1180", y1: "20", x2: "1180", y2: "60", stroke: p.primary, strokeWidth: "1", opacity: "0.15" }), _jsx("line", { x1: "20", y1: "500", x2: "60", y2: "500", stroke: p.primary, strokeWidth: "1", opacity: "0.15" }), _jsx("line", { x1: "20", y1: "500", x2: "20", y2: "460", stroke: p.primary, strokeWidth: "1", opacity: "0.15" }), _jsx("line", { x1: "1180", y1: "500", x2: "1140", y2: "500", stroke: p.primary, strokeWidth: "1", opacity: "0.15" }), _jsx("line", { x1: "1180", y1: "500", x2: "1180", y2: "460", stroke: p.primary, strokeWidth: "1", opacity: "0.15" }), _jsx("rect", { x: "0", y: "512", width: "1200", height: "2", fill: jupyterWarm, opacity: "0.14" }), _jsx("rect", { x: "0", y: "515", width: "1200", height: "3", fill: p.glow, opacity: "0.12" }), _jsx("rect", { x: "0", y: "518", width: "1200", height: "2", fill: p.primary, opacity: "0.1" })] })] }));
|
|
73
|
+
}
|
|
74
|
+
export default SvgJupyterMcp2;
|
|
@@ -4,5 +4,5 @@ type SvgLessonArtifactProps = {
|
|
|
4
4
|
width?: number | string;
|
|
5
5
|
height?: number | string;
|
|
6
6
|
};
|
|
7
|
-
export declare function SvgLessonArtifact({ palette: paletteProp, width, height, }?: SvgLessonArtifactProps): import("react
|
|
7
|
+
export declare function SvgLessonArtifact({ palette: paletteProp, width, height, }?: SvgLessonArtifactProps): import("react").JSX.Element;
|
|
8
8
|
export default SvgLessonArtifact;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2022-2026 Datalayer, Inc.
|
|
4
|
+
*
|
|
5
|
+
* Datalayer License
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Wide SVG background for the library section of the home page.
|
|
9
|
+
*
|
|
10
|
+
* The motif is the word the library uses for a star: an **orbit**. What
|
|
11
|
+
* travels on them is what the library holds — a notebook, a document, a cell,
|
|
12
|
+
* a dataset, an agent — because a background for a library should be made of
|
|
13
|
+
* the things in it rather than of anonymous dots.
|
|
14
|
+
*
|
|
15
|
+
* **Two anchors, both off the canvas, neither in the middle.** The drawing
|
|
16
|
+
* used to be one bullseye centred at 700 × 260, which is exactly where the
|
|
17
|
+
* section puts its search field: the bright core surfaced above and below the
|
|
18
|
+
* input like a coin behind a letterbox, and every ring was concentric with the
|
|
19
|
+
* headline. Now the systems are pinned past the bottom-left and top-right
|
|
20
|
+
* corners, so only their outer arcs reach in, sweeping diagonally and leaving
|
|
21
|
+
* the middle to the words. There is no core to collide with anything — what
|
|
22
|
+
* marked the centre is a soft glow at each anchor, off screen.
|
|
23
|
+
*
|
|
24
|
+
* The orbits are circles rather than ellipses so that a rotation is real
|
|
25
|
+
* travel. Rotating a point around an ellipse's centre traces a circle, not the
|
|
26
|
+
* ellipse, which is why the marks used to drift off the ring they belonged to.
|
|
27
|
+
* Each artifact then counter-rotates at the same rate, so it rides the circle
|
|
28
|
+
* without tumbling — a notebook stays the right way up all the way round.
|
|
29
|
+
*
|
|
30
|
+
* Every colour comes from the palette, so the drawing holds in light and dark
|
|
31
|
+
* and under every theme variant rather than being a picture of one of them.
|
|
32
|
+
*
|
|
33
|
+
* A 1400 × 520 viewBox, sliced: the section is wider than it is tall on a
|
|
34
|
+
* desktop and taller than it is wide on a phone, and the composition must
|
|
35
|
+
* survive both — which is another reason nothing important sits at the centre,
|
|
36
|
+
* since the centre is the only part guaranteed to be visible.
|
|
37
|
+
*/
|
|
38
|
+
import { useId } from 'react';
|
|
39
|
+
import { useColorPalette } from '@datalayer/primer-addons';
|
|
40
|
+
/**
|
|
41
|
+
* One artifact, drawn in a 24 × 24 box centred on the origin.
|
|
42
|
+
*
|
|
43
|
+
* Stroked rather than filled, and reduced to the one feature that tells each
|
|
44
|
+
* kind from the others at this size: the notebook its spine, the document its
|
|
45
|
+
* folded corner, the cell its run marker, the dataset its cylinder, the agent
|
|
46
|
+
* its spark. Anything more is lost by the time it is this small and this faint.
|
|
47
|
+
*/
|
|
48
|
+
function ArtifactGlyph({ kind, size, color, }) {
|
|
49
|
+
const scale = size / 24;
|
|
50
|
+
const common = {
|
|
51
|
+
fill: 'none',
|
|
52
|
+
stroke: color,
|
|
53
|
+
strokeWidth: 2,
|
|
54
|
+
strokeLinecap: 'round',
|
|
55
|
+
strokeLinejoin: 'round',
|
|
56
|
+
};
|
|
57
|
+
return (_jsxs("g", { transform: `scale(${scale}) translate(-12 -12)`, children: [kind === 'notebook' && (_jsxs(_Fragment, { children: [_jsx("rect", { x: "4", y: "3", width: "16", height: "18", rx: "2.5", ...common }), _jsx("line", { x1: "8.5", y1: "3", x2: "8.5", y2: "21", ...common }), _jsx("line", { x1: "11.5", y1: "9", x2: "16.5", y2: "9", ...common }), _jsx("line", { x1: "11.5", y1: "13", x2: "16.5", y2: "13", ...common })] })), kind === 'document' && (_jsxs(_Fragment, { children: [_jsx("path", { d: "M6 3h8l4 4v14H6z", ...common }), _jsx("path", { d: "M14 3v4h4", ...common }), _jsx("line", { x1: "9", y1: "12", x2: "15", y2: "12", ...common }), _jsx("line", { x1: "9", y1: "16", x2: "15", y2: "16", ...common })] })), kind === 'cell' && (_jsxs(_Fragment, { children: [_jsx("rect", { x: "3", y: "7", width: "18", height: "11", rx: "2.5", ...common }), _jsx("path", { d: "M7 11l2.5 1.5L7 14", ...common }), _jsx("line", { x1: "12.5", y1: "14", x2: "17", y2: "14", ...common })] })), kind === 'dataset' && (_jsxs(_Fragment, { children: [_jsx("ellipse", { cx: "12", cy: "7", rx: "7", ry: "3", ...common }), _jsx("path", { d: "M5 7v10c0 1.7 3.1 3 7 3s7-1.3 7-3V7", ...common }), _jsx("path", { d: "M5 12c0 1.7 3.1 3 7 3s7-1.3 7-3", ...common })] })), kind === 'agent' && (_jsxs(_Fragment, { children: [_jsx("circle", { cx: "11", cy: "13", r: "6", ...common }), _jsx("path", { d: "M18.5 4.5v4M16.5 6.5h4", ...common }), _jsx("circle", { cx: "9", cy: "12", r: "0.9", fill: color, stroke: "none" }), _jsx("circle", { cx: "13", cy: "12", r: "0.9", fill: color, stroke: "none" })] }))] }));
|
|
58
|
+
}
|
|
59
|
+
export function SvgLibraryHero({ palette: paletteProp } = {}) {
|
|
60
|
+
const auto = useColorPalette();
|
|
61
|
+
const p = paletteProp ?? auto;
|
|
62
|
+
const id = useId().replace(/:/g, '');
|
|
63
|
+
/*
|
|
64
|
+
* Both centres sit outside the frame, in opposite corners. The starting
|
|
65
|
+
* angles put every artifact inside the canvas at rest — which is what a
|
|
66
|
+
* reader with reduced motion sees, and what the first paint shows before
|
|
67
|
+
* anything has turned.
|
|
68
|
+
*/
|
|
69
|
+
const systems = [
|
|
70
|
+
{
|
|
71
|
+
cx: 150,
|
|
72
|
+
cy: 505,
|
|
73
|
+
rings: [
|
|
74
|
+
{
|
|
75
|
+
r: 250,
|
|
76
|
+
duration: 96,
|
|
77
|
+
opacity: 0.3,
|
|
78
|
+
riders: [
|
|
79
|
+
{ kind: 'notebook', angle: -62, size: 36 },
|
|
80
|
+
{ kind: 'cell', angle: -14, size: 31 },
|
|
81
|
+
],
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
r: 385,
|
|
85
|
+
duration: 148,
|
|
86
|
+
opacity: 0.22,
|
|
87
|
+
riders: [
|
|
88
|
+
{ kind: 'document', angle: -78, size: 33 },
|
|
89
|
+
{ kind: 'dataset', angle: -32, size: 34 },
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
r: 530,
|
|
94
|
+
duration: 210,
|
|
95
|
+
opacity: 0.15,
|
|
96
|
+
riders: [
|
|
97
|
+
{ kind: 'agent', angle: -55, size: 37 },
|
|
98
|
+
{ kind: 'notebook', angle: -8, size: 31 },
|
|
99
|
+
{ kind: 'cell', angle: -96, size: 29 },
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
cx: 1275,
|
|
106
|
+
cy: 20,
|
|
107
|
+
rings: [
|
|
108
|
+
{
|
|
109
|
+
r: 215,
|
|
110
|
+
duration: 112,
|
|
111
|
+
opacity: 0.28,
|
|
112
|
+
riders: [
|
|
113
|
+
{ kind: 'agent', angle: 118, size: 33 },
|
|
114
|
+
{ kind: 'document', angle: 168, size: 30 },
|
|
115
|
+
],
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
r: 355,
|
|
119
|
+
duration: 168,
|
|
120
|
+
opacity: 0.2,
|
|
121
|
+
riders: [
|
|
122
|
+
{ kind: 'dataset', angle: 132, size: 32 },
|
|
123
|
+
{ kind: 'cell', angle: 176, size: 31 },
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
r: 495,
|
|
128
|
+
duration: 232,
|
|
129
|
+
opacity: 0.13,
|
|
130
|
+
riders: [
|
|
131
|
+
{ kind: 'notebook', angle: 150, size: 33 },
|
|
132
|
+
{ kind: 'document', angle: 196, size: 29 },
|
|
133
|
+
],
|
|
134
|
+
},
|
|
135
|
+
],
|
|
136
|
+
},
|
|
137
|
+
];
|
|
138
|
+
/** The palette, cycled so neighbouring artifacts are not the same colour. */
|
|
139
|
+
const inks = [p.pop, p.glow, p.accent];
|
|
140
|
+
return (_jsxs("svg", { viewBox: "0 0 1400 520", xmlns: "http://www.w3.org/2000/svg", preserveAspectRatio: "xMidYMid slice", "aria-hidden": "true", style: { width: '100%', height: '100%', display: 'block', position: 'absolute', inset: 0 }, children: [_jsxs("defs", { children: [_jsx("style", { children: `
|
|
141
|
+
@keyframes lib-turn-${id} { to { transform: rotate(360deg); } }
|
|
142
|
+
@keyframes lib-hold-${id} { to { transform: rotate(-360deg); } }
|
|
143
|
+
/*
|
|
144
|
+
Both halves run at the same duration, set per ring through --turn:
|
|
145
|
+
the ring carries its artifacts round, each artifact takes the same
|
|
146
|
+
angle back, and the two cancel to leave it upright.
|
|
147
|
+
*/
|
|
148
|
+
.lib-turn-${id} {
|
|
149
|
+
transform-origin: 0 0;
|
|
150
|
+
animation: lib-turn-${id} var(--turn) linear infinite;
|
|
151
|
+
}
|
|
152
|
+
.lib-hold-${id} {
|
|
153
|
+
transform-origin: 0 0;
|
|
154
|
+
animation: lib-hold-${id} var(--turn) linear infinite;
|
|
155
|
+
}
|
|
156
|
+
@media (prefers-reduced-motion: reduce) {
|
|
157
|
+
.lib-turn-${id}, .lib-hold-${id} { animation: none; }
|
|
158
|
+
}
|
|
159
|
+
` }), _jsxs("radialGradient", { id: `lib-anchor-${id}`, cx: "50%", cy: "50%", r: "50%", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0.42" }), _jsx("stop", { offset: "40%", stopColor: p.pop, stopOpacity: "0.14" }), _jsx("stop", { offset: "100%", stopColor: p.bg, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: `lib-veil-${id}`, cx: "50%", cy: "50%", r: "60%", children: [_jsx("stop", { offset: "0%", stopColor: p.bg, stopOpacity: "0.88" }), _jsx("stop", { offset: "52%", stopColor: p.bg, stopOpacity: "0.58" }), _jsx("stop", { offset: "100%", stopColor: p.bg, stopOpacity: "0" })] }), _jsxs("linearGradient", { id: `lib-ring-${id}`, x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: "0.06" }), _jsx("stop", { offset: "50%", stopColor: p.pop, stopOpacity: "0.85" }), _jsx("stop", { offset: "100%", stopColor: p.glow, stopOpacity: "0.06" })] })] }), _jsx("rect", { width: "1400", height: "520", fill: p.bg }), _jsxs("g", { opacity: "0.1", stroke: p.secondary, strokeWidth: "1", children: [Array.from({ length: 13 }, (_, column) => (_jsx("line", { x1: column * 116, y1: "0", x2: column * 116, y2: "520" }, `v${column}`))), Array.from({ length: 6 }, (_, row) => (_jsx("line", { x1: "0", y1: row * 104, x2: "1400", y2: row * 104 }, `h${row}`)))] }), systems.map((system, systemIndex) => (_jsxs("g", { transform: `translate(${system.cx} ${system.cy})`, children: [_jsx("circle", { r: "330", fill: `url(#lib-anchor-${id})` }), system.rings.map((ring, ringIndex) => (_jsxs("g", { children: [_jsx("circle", { r: ring.r, fill: "none", stroke: `url(#lib-ring-${id})`, strokeWidth: ringIndex === 0 ? 1.6 : 1.1, opacity: ring.opacity }), _jsx("g", { className: `lib-turn-${id}`, style: { ['--turn']: `${ring.duration}s` }, children: ring.riders.map((rider, riderIndex) => {
|
|
160
|
+
const radians = (rider.angle * Math.PI) / 180;
|
|
161
|
+
const ink = inks[(systemIndex + ringIndex + riderIndex) % inks.length];
|
|
162
|
+
return (_jsx("g", { transform: `translate(${(Math.cos(radians) * ring.r).toFixed(2)} ${(Math.sin(radians) * ring.r).toFixed(2)})`, children: _jsx("g", { className: `lib-hold-${id}`, style: { ['--turn']: `${ring.duration}s` }, children: _jsx("g", { opacity: "0.9", children: _jsx(ArtifactGlyph, { kind: rider.kind, size: rider.size, color: ink }) }) }) }, `rider-${systemIndex}-${ringIndex}-${riderIndex}`));
|
|
163
|
+
}) })] }, `ring-${systemIndex}-${ringIndex}`)))] }, `system-${systemIndex}`))), _jsx("rect", { width: "1400", height: "520", fill: `url(#lib-veil-${id})` })] }));
|
|
164
|
+
}
|
|
165
|
+
export default SvgLibraryHero;
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
* Animated lighthouse.
|
|
9
|
+
*
|
|
10
|
+
* The tower is the `LighthouseAlexandriaIcon` geometry (72×72 icon units:
|
|
11
|
+
* roof cone, lantern room, gallery, platform, tapered shaft, sea line) kept
|
|
12
|
+
* verbatim and dropped into an 800×400 scene through one scale transform, so
|
|
13
|
+
* the silhouette stays the icon's.
|
|
14
|
+
*
|
|
15
|
+
* The light TURNS. Two beams 180° apart rotate around the lamp inside a group
|
|
16
|
+
* squashed vertically — the honest projection of a horizontal sweep seen from
|
|
17
|
+
* just above the beam plane. So the beams run flat across the water when they
|
|
18
|
+
* face left and right, foreshorten to a stub as they swing toward and away
|
|
19
|
+
* from the reader, and the lamp flares each time a beam comes round to face
|
|
20
|
+
* them.
|
|
21
|
+
*
|
|
22
|
+
* Everything moving is a transform or an opacity, which is what the gallery's
|
|
23
|
+
* GIF export can bake per frame — animated gradient stops or radii would
|
|
24
|
+
* snap back to their t=0 value in the exported frames.
|
|
25
|
+
*
|
|
26
|
+
* Uses the shared ColorPalette theming system. ViewBox: 800×400.
|
|
27
|
+
*/
|
|
28
|
+
import { useId } from 'react';
|
|
29
|
+
import { useColorPalette } from '@datalayer/primer-addons';
|
|
30
|
+
const WIDTH = 800;
|
|
31
|
+
const HEIGHT = 400;
|
|
32
|
+
/* Where the icon's 72-unit world lands in the scene. */
|
|
33
|
+
const SCALE = 4.6;
|
|
34
|
+
const SEA_Y = 330;
|
|
35
|
+
const ICON_SEA_Y = 62.528;
|
|
36
|
+
const ICON_LAMP_X = 36;
|
|
37
|
+
/* Middle of the lantern room (icon rect y 14.029 → 20.232). */
|
|
38
|
+
const ICON_LAMP_Y = 17.131;
|
|
39
|
+
const TX = WIDTH / 2 - ICON_LAMP_X * SCALE;
|
|
40
|
+
const TY = SEA_Y - ICON_SEA_Y * SCALE;
|
|
41
|
+
const LAMP_X = WIDTH / 2;
|
|
42
|
+
const LAMP_Y = TY + ICON_LAMP_Y * SCALE;
|
|
43
|
+
/* One full turn of the lamp. */
|
|
44
|
+
const TURN_S = 8;
|
|
45
|
+
/* Beams reach past the edge of the frame. */
|
|
46
|
+
const BEAM_LENGTH = 470;
|
|
47
|
+
/* Half-spread of a beam, before the squash. */
|
|
48
|
+
const BEAM_HALF_WIDTH = 96;
|
|
49
|
+
/*
|
|
50
|
+
* How flat the sweep reads. 1 would be a searchlight spinning in the picture
|
|
51
|
+
* plane; this is the beam plane tipped almost edge-on to the reader.
|
|
52
|
+
*/
|
|
53
|
+
const BEAM_SQUASH = 0.26;
|
|
54
|
+
/* A cone with its apex on the lamp, opening to the right. */
|
|
55
|
+
const BEAM_PATH = `M 0 0 L ${BEAM_LENGTH} ${-BEAM_HALF_WIDTH} L ${BEAM_LENGTH} ${BEAM_HALF_WIDTH} Z`;
|
|
56
|
+
/* Sky flecks, kept off the tower and out of the beam's flat lane. */
|
|
57
|
+
const STARS = [
|
|
58
|
+
{ x: 78, y: 52, r: 1.6, begin: 0 },
|
|
59
|
+
{ x: 168, y: 96, r: 1.1, begin: 1.4 },
|
|
60
|
+
{ x: 246, y: 40, r: 1.4, begin: 2.6 },
|
|
61
|
+
{ x: 330, y: 74, r: 1, begin: 0.7 },
|
|
62
|
+
{ x: 486, y: 46, r: 1.5, begin: 3.1 },
|
|
63
|
+
{ x: 566, y: 88, r: 1.1, begin: 1.9 },
|
|
64
|
+
{ x: 654, y: 38, r: 1.3, begin: 0.4 },
|
|
65
|
+
{ x: 722, y: 106, r: 1.6, begin: 2.2 },
|
|
66
|
+
];
|
|
67
|
+
export function SvgLightHouse({ palette: paletteProp } = {}) {
|
|
68
|
+
const auto = useColorPalette();
|
|
69
|
+
const p = paletteProp ?? auto;
|
|
70
|
+
const id = useId().replace(/:/g, '');
|
|
71
|
+
/* The lamp reads warm against the brand green in both modes. */
|
|
72
|
+
const lampCore = p.isLight ? p.gold : p.spark;
|
|
73
|
+
const beamColor = p.isLight ? p.blaze : p.gold;
|
|
74
|
+
const towerBody = p.bgPanel;
|
|
75
|
+
const towerShade = p.bgAlt;
|
|
76
|
+
const towerLine = p.isLight ? p.secondary : p.primary;
|
|
77
|
+
const water = p.primary;
|
|
78
|
+
return (_jsxs("svg", { viewBox: `0 0 ${WIDTH} ${HEIGHT}`, xmlns: "http://www.w3.org/2000/svg", style: { width: '100%', height: 'auto', display: 'block' }, role: "img", "aria-label": "Lighthouse sweeping its beam across the water", children: [_jsxs("defs", { children: [_jsxs("linearGradient", { id: `lh-sky-${id}`, x1: "0%", y1: "0%", x2: "0%", y2: "100%", children: [_jsx("stop", { offset: "0%", stopColor: p.bg }), _jsx("stop", { offset: "100%", stopColor: p.bgAlt })] }), _jsxs("linearGradient", { id: `lh-sea-${id}`, x1: "0%", y1: "0%", x2: "0%", y2: "100%", children: [_jsx("stop", { offset: "0%", stopColor: water, stopOpacity: p.isLight ? '0.26' : '0.20' }), _jsx("stop", { offset: "100%", stopColor: water, stopOpacity: p.isLight ? '0.08' : '0.06' })] }), _jsxs("linearGradient", { id: `lh-beam-${id}`, x1: "0%", y1: "0%", x2: "100%", y2: "0%", children: [_jsx("stop", { offset: "0%", stopColor: beamColor, stopOpacity: "0.92" }), _jsx("stop", { offset: "45%", stopColor: beamColor, stopOpacity: "0.44" }), _jsx("stop", { offset: "100%", stopColor: beamColor, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: `lh-halo-${id}`, cx: "50%", cy: "50%", r: "50%", children: [_jsx("stop", { offset: "0%", stopColor: lampCore, stopOpacity: "0.95" }), _jsx("stop", { offset: "45%", stopColor: lampCore, stopOpacity: "0.35" }), _jsx("stop", { offset: "100%", stopColor: lampCore, stopOpacity: "0" })] }), _jsxs("linearGradient", { id: `lh-wake-${id}`, x1: "0%", y1: "0%", x2: "0%", y2: "100%", children: [_jsx("stop", { offset: "0%", stopColor: lampCore, stopOpacity: "0.42" }), _jsx("stop", { offset: "100%", stopColor: lampCore, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: `lh-haze-${id}`, cx: "50%", cy: "50%", r: "50%", children: [_jsx("stop", { offset: "0%", stopColor: p.glow, stopOpacity: p.isLight ? '0.20' : '0.16' }), _jsx("stop", { offset: "100%", stopColor: p.glow, stopOpacity: "0" })] }), _jsx("pattern", { id: `lh-dots-${id}`, width: "40", height: "40", patternUnits: "userSpaceOnUse", children: _jsx("circle", { cx: "20", cy: "20", r: "1", fill: p.primary, opacity: p.isLight ? '0.14' : '0.10' }) }), _jsx("filter", { id: `lh-soft-${id}`, x: "-30%", y: "-120%", width: "160%", height: "340%", children: _jsx("feGaussianBlur", { stdDeviation: "7" }) }), _jsx("filter", { id: `lh-glow-${id}`, x: "-100%", y: "-100%", width: "300%", height: "300%", children: _jsx("feGaussianBlur", { stdDeviation: "4" }) })] }), _jsx("rect", { width: WIDTH, height: HEIGHT, fill: `url(#lh-sky-${id})` }), _jsx("rect", { width: WIDTH, height: SEA_Y, fill: `url(#lh-dots-${id})` }), _jsx("ellipse", { cx: WIDTH / 2, cy: SEA_Y, rx: WIDTH * 0.42, ry: "52", fill: `url(#lh-haze-${id})` }), STARS.map((star) => (_jsx("circle", { cx: star.x, cy: star.y, r: star.r, fill: p.textMuted, opacity: "0.5", children: _jsx("animate", { attributeName: "opacity", values: "0.15;0.65;0.15", dur: "4s", begin: `${star.begin}s`, repeatCount: "indefinite" }) }, `${star.x}-${star.y}`))), _jsx("g", { transform: `translate(${LAMP_X} ${LAMP_Y}) scale(1 ${BEAM_SQUASH})`, children: _jsxs("g", { opacity: "0.95", children: [_jsx("animate", { attributeName: "opacity", values: "0.95;0.14;0.03;0.14;0.95", keyTimes: "0;0.34;0.5;0.66;1", dur: `${TURN_S / 2}s`, repeatCount: "indefinite" }), _jsxs("g", { filter: `url(#lh-soft-${id})`, children: [_jsx("animateTransform", { attributeName: "transform", type: "rotate", from: "0", to: "360", dur: `${TURN_S}s`, repeatCount: "indefinite" }), _jsx("path", { d: BEAM_PATH, fill: `url(#lh-beam-${id})` }), _jsx("path", { d: BEAM_PATH, fill: `url(#lh-beam-${id})`, transform: "rotate(180)" })] })] }) }), _jsxs("g", { transform: `translate(${TX} ${TY}) scale(${SCALE})`, strokeLinecap: "round", strokeLinejoin: "round", children: [_jsx("polygon", { points: "45.949 62.528 42.395 36.204 36 36.204 29.605 36.204 26.051 62.528 36 62.528 45.949 62.528", fill: towerBody, stroke: towerLine, strokeWidth: "0.55" }), _jsx("path", { d: "M39.9355,40.08a1,1,0,0,0-.9931-.8828H33.0576a1,1,0,0,0-.9931.8828L29.4233,62.41a1,1,0,0,0,.9932,1.1171H41.583a1.0009,1.0009,0,0,0,.9932-1.1171Z", fill: towerShade, opacity: "0.9" }), _jsx("polyline", { points: "41.224 59.486 38.942 40.197 33.058 40.197 30.776 59.486", fill: "none", stroke: towerLine, strokeWidth: "0.45", opacity: "0.75" }), _jsx("rect", { x: "27.9402", y: "32.6514", width: "16.1197", height: "3.5527", fill: towerBody, stroke: towerLine, strokeWidth: "0.55" }), _jsx("line", { x1: "27.9402", x2: "27.0351", y1: "32.6514", y2: "31.0403", stroke: towerLine, strokeWidth: "0.45" }), _jsx("line", { x1: "44.0598", x2: "44.9649", y1: "32.6514", y2: "31.0403", stroke: towerLine, strokeWidth: "0.45" }), _jsx("rect", { x: "31.7709", y: "20.2329", width: "8.4581", height: "12.4186", fill: towerBody, stroke: towerLine, strokeWidth: "0.55" }), _jsx("rect", { x: "37.1451", y: "20.2329", width: "3.0945", height: "12.4186", fill: towerShade, opacity: "0.85" }), _jsx("line", { x1: "40.2291", x2: "31.7709", y1: "23.2333", y2: "23.2333", stroke: towerLine, strokeWidth: "0.45" }), _jsx("line", { x1: "41.1355", x2: "30.8645", y1: "20.2329", y2: "20.2329", stroke: towerLine, strokeWidth: "0.55" }), _jsx("rect", { x: "33.349", y: "14.0294", width: "5.2692", height: "6.2034", fill: lampCore, opacity: "0.22", stroke: towerLine, strokeWidth: "0.55" }), _jsx("polygon", { points: "36 10.031 39.269 14.029 32.731 14.029", fill: towerBody, stroke: towerLine, strokeWidth: "0.55" }), _jsx("line", { x1: "36", x2: "36", y1: "7.6143", y2: "10.0312", stroke: towerLine, strokeWidth: "0.55" })] }), _jsx("circle", { cx: LAMP_X, cy: LAMP_Y, r: "46", fill: `url(#lh-halo-${id})`, opacity: "0.3", children: _jsx("animate", { attributeName: "opacity", values: "0.28;0.28;1;0.28;0.28", keyTimes: "0;0.66;0.75;0.86;1", dur: `${TURN_S}s`, repeatCount: "indefinite" }) }), _jsx("circle", { cx: LAMP_X, cy: LAMP_Y, r: "6", fill: lampCore, filter: `url(#lh-glow-${id})`, opacity: "0.9", children: _jsx("animate", { attributeName: "opacity", values: "0.55;0.55;1;0.55;0.55", keyTimes: "0;0.66;0.75;0.86;1", dur: `${TURN_S}s`, repeatCount: "indefinite" }) }), _jsx("rect", { y: SEA_Y, width: WIDTH, height: HEIGHT - SEA_Y, fill: `url(#lh-sea-${id})` }), _jsx("line", { x1: "0", x2: WIDTH, y1: SEA_Y, y2: SEA_Y, stroke: water, strokeWidth: "1.5", strokeOpacity: "0.55" }), _jsx("rect", { x: LAMP_X - 46, y: SEA_Y, width: "92", height: HEIGHT - SEA_Y, fill: `url(#lh-wake-${id})`, filter: `url(#lh-soft-${id})`, opacity: "0.3", children: _jsx("animate", { attributeName: "opacity", values: "0.25;0.25;0.85;0.25;0.25", keyTimes: "0;0.66;0.75;0.86;1", dur: `${TURN_S}s`, repeatCount: "indefinite" }) }), [0, 1, 2].map((lane) => {
|
|
79
|
+
const y = SEA_Y + 16 + lane * 18;
|
|
80
|
+
const drift = lane % 2 === 0 ? 26 : -26;
|
|
81
|
+
return (_jsxs("g", { opacity: 0.5 - lane * 0.1, children: [_jsx("animateTransform", { attributeName: "transform", type: "translate", values: `0 0; ${drift} 0; 0 0`, dur: `${9 + lane * 3}s`, repeatCount: "indefinite" }), _jsx("line", { x1: 60 - lane * 30, x2: WIDTH - 60 + lane * 30, y1: y, y2: y, stroke: water, strokeWidth: "2", strokeLinecap: "round", strokeDasharray: `${34 + lane * 12} ${52 + lane * 10}`, strokeOpacity: "0.6" })] }, lane));
|
|
82
|
+
})] }));
|
|
83
|
+
}
|
|
84
|
+
export default SvgLightHouse;
|
package/lib/svg/SvgLines.d.ts
CHANGED
|
@@ -12,5 +12,5 @@ type SvgLinesProps = {
|
|
|
12
12
|
* - Supports gradient direction inversion
|
|
13
13
|
* - Supports custom width/height sizing
|
|
14
14
|
*/
|
|
15
|
-
export declare function SvgLines({ palette: paletteProp, inverse, colored, width, height, }?: SvgLinesProps): import("react
|
|
15
|
+
export declare function SvgLines({ palette: paletteProp, inverse, colored, width, height, }?: SvgLinesProps): import("react").JSX.Element;
|
|
16
16
|
export default SvgLines;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ColorMode, ThemeVariant } from '@datalayer/primer-addons';
|
|
1
2
|
type SvgLinesLogoProps = {
|
|
2
3
|
height?: number;
|
|
3
4
|
inverse?: boolean;
|
|
@@ -5,6 +6,17 @@ type SvgLinesLogoProps = {
|
|
|
5
6
|
primaryColor?: string;
|
|
6
7
|
secondaryColor?: string;
|
|
7
8
|
textColor?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Draw it for this theme rather than for the reader's own.
|
|
11
|
+
*
|
|
12
|
+
* The wordmark's gradients are chosen by the VARIANT, so naming colours is
|
|
13
|
+
* not enough to move it off the stored theme — which is what a surface with
|
|
14
|
+
* a theme of its own needs, a deck being drawn in one, say. Absent means the
|
|
15
|
+
* theme store, which is what every other caller wants.
|
|
16
|
+
*/
|
|
17
|
+
variant?: ThemeVariant;
|
|
18
|
+
/** The colour mode to go with `variant`. The store's when absent. */
|
|
19
|
+
colorMode?: ColorMode;
|
|
8
20
|
};
|
|
9
|
-
export declare function SvgLinesLogo({ height, inverse, colored, primaryColor, secondaryColor, textColor, }?: SvgLinesLogoProps): import("react
|
|
21
|
+
export declare function SvgLinesLogo({ height, inverse, colored, primaryColor, secondaryColor, textColor, variant, colorMode: colorModeProp, }?: SvgLinesLogoProps): import("react").JSX.Element;
|
|
10
22
|
export default SvgLinesLogo;
|
package/lib/svg/SvgLinesLogo.js
CHANGED
|
@@ -5,15 +5,20 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
* Datalayer License
|
|
6
6
|
*/
|
|
7
7
|
import { useId } from 'react';
|
|
8
|
-
import { DatalayerLogoText,
|
|
8
|
+
import { DatalayerLogoText, getColorPalette, getLogoColors, useThemeStore, } from '@datalayer/primer-addons';
|
|
9
9
|
import { SvgLines } from './SvgLines';
|
|
10
|
-
export function SvgLinesLogo({ height = 44, inverse = false, colored = false, primaryColor, secondaryColor, textColor, } = {}) {
|
|
11
|
-
const
|
|
12
|
-
const
|
|
10
|
+
export function SvgLinesLogo({ height = 44, inverse = false, colored = false, primaryColor, secondaryColor, textColor, variant, colorMode: colorModeProp, } = {}) {
|
|
11
|
+
const stored = useThemeStore();
|
|
12
|
+
const theme = variant ?? stored.theme;
|
|
13
|
+
const colorMode = colorModeProp ?? stored.colorMode;
|
|
13
14
|
const effectiveColorMode = colorMode === 'auto'
|
|
14
15
|
? (typeof window !== 'undefined' && window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light')
|
|
15
16
|
: colorMode;
|
|
16
17
|
const logoColors = getLogoColors(theme, effectiveColorMode);
|
|
18
|
+
// Derived from the theme IN FORCE rather than read from the store: the
|
|
19
|
+
// lines take a palette and would otherwise colour themselves from the
|
|
20
|
+
// reader's own theme while the wordmark beside them had moved.
|
|
21
|
+
const palette = getColorPalette(theme, effectiveColorMode);
|
|
17
22
|
const themedPrimaryColor = primaryColor ?? logoColors.primary ?? palette.primary;
|
|
18
23
|
const themedSecondaryColor = secondaryColor ?? logoColors.secondary ?? palette.secondary;
|
|
19
24
|
const themedTextColor = textColor ?? logoColors.textColor ?? palette.secondary;
|
|
@@ -54,6 +59,6 @@ export function SvgLinesLogo({ height = 44, inverse = false, colored = false, pr
|
|
|
54
59
|
max-width: none !important;
|
|
55
60
|
max-height: none !important;
|
|
56
61
|
}
|
|
57
|
-
` }), _jsx("div", { className: `${scopeClass}__lines`, children: _jsx(SvgLines, { height: linesHeight, inverse: inverse, colored: colored }) }), _jsx(DatalayerLogoText, { size: logoSize, inverse: true, variant: theme, colorMode: effectiveColorMode, primaryColor: themedPrimaryColor, secondaryColor: themedSecondaryColor, textColor: themedTextColor, className: `${scopeClass}__wordmark` })] }));
|
|
62
|
+
` }), _jsx("div", { className: `${scopeClass}__lines`, children: _jsx(SvgLines, { height: linesHeight, inverse: inverse, colored: colored, palette: palette }) }), _jsx(DatalayerLogoText, { size: logoSize, inverse: true, variant: theme, colorMode: effectiveColorMode, primaryColor: themedPrimaryColor, secondaryColor: themedSecondaryColor, textColor: themedTextColor, className: `${scopeClass}__wordmark` })] }));
|
|
58
63
|
}
|
|
59
64
|
export default SvgLinesLogo;
|
package/lib/svg/SvgNotFound.d.ts
CHANGED
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
import { type ColorPalette } from '@datalayer/primer-addons';
|
|
9
9
|
export declare function SvgNotFound({ palette: paletteProp, }?: {
|
|
10
10
|
palette?: ColorPalette;
|
|
11
|
-
}): import("react
|
|
11
|
+
}): import("react").JSX.Element;
|
|
12
12
|
export default SvgNotFound;
|
|
@@ -4,5 +4,5 @@ type SvgNotebookArtifactProps = {
|
|
|
4
4
|
width?: number | string;
|
|
5
5
|
height?: number | string;
|
|
6
6
|
};
|
|
7
|
-
export declare function SvgNotebookArtifact({ palette: paletteProp, width, height, }?: SvgNotebookArtifactProps): import("react
|
|
7
|
+
export declare function SvgNotebookArtifact({ palette: paletteProp, width, height, }?: SvgNotebookArtifactProps): import("react").JSX.Element;
|
|
8
8
|
export default SvgNotebookArtifact;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
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
2
|
import { Text } from '@primer/react';
|
|
8
3
|
import { Box, useColorPalette } from '@datalayer/primer-addons';
|
|
9
4
|
import { ZapIcon } from '@primer/octicons-react';
|