Bento, the office suite that fits in a file
TypeScript mit-licenseofficeoffice-365office-suiteoffice-toolsoffice365open-sourcepowerpointself-hostedsingle-page-appslidesslideshareslideshowslideshow-galleryslideshow-makerslideshows
v0.2.7: hero grounds get the dot grid + exaggerated ken-out; auroras roam; particles livelier
nyblnet537faf934dd1
diff --git a/slides/package.json b/slides/package.jsonindex ac37a7c8..5b7231ee 100644--- a/slides/package.json+++ b/slides/package.json@@ -1,7 +1,7 @@{"name": "bento-slides","private": true,- "version": "0.2.6",+ "version": "0.2.7","type": "module","scripts": {"dev": "vite",diff --git a/slides/src/starterdeck.ts b/slides/src/starterdeck.tsindex 16790997..a1c223bb 100644--- a/slides/src/starterdeck.ts+++ b/slides/src/starterdeck.ts@@ -92,9 +92,9 @@ const ghost = (n: string): TextElement =>fontSize: 300, fontWeight: 900, fontFamily: DISPLAY, color: 'rgba(15,23,36,0.05)',})-const dots = (dark: boolean): SvgElement => ({+const dots = (dark: boolean, fx?: SvgElement['fx']): SvgElement => ({id: uid('sv'), type: 'svg', x: 0, y: 0, w: 1280, h: 720, rotation: 0, opacity: 1,- asset: dark ? 'dots-ink' : 'dots-paper',+ asset: dark ? 'dots-ink' : 'dots-paper', ...(fx ? { fx } : {}),})/** Seamless closed-loop drift path (tiny circle, radius r) for floating tiles. */@@ -105,9 +105,15 @@ const floatPath = (r: number): string => {}/** Soft aurora blob — svg radial-gradient glow (edge-free), breathing on ken drift. */-const aurora = (x: number, y: number, size: number, asset: string, dur: number): SvgElement => ({+const aurora = (+ x: number, y: number, size: number, asset: string, dur: number,+ roam = 0, roamDur = 50, delay = 0,+): SvgElement => ({id: uid('sv'), type: 'svg', x, y, w: size, h: size, rotation: 0, opacity: 1, asset,- fx: { ambient: 'kenburns', ken: { dir: 'drift', scale: 1.22, duration: dur } },+ fx: {+ ambient: 'kenburns', ken: { dir: 'drift', scale: 1.22, duration: dur },+ ...(roam ? { loop: { type: 'motion-path' as const, path: floatPath(roam), duration: roamDur, delay } } : {}),+ },})/** Out-of-focus light speck (blurred svg disc) adrift on a slow closed loop. */@@ -299,27 +305,28 @@ export function starterDoc(): BentoDoc {},}),// atmosphere: breathing aurora blobs + bento tiles adrift around the logo- aurora(700, -80, 680, 'aurora-amber', 24),- aurora(880, 220, 560, 'aurora-blue', 32),+ dots(true, { ambient: 'kenburns', ken: { dir: 'out', scale: 1.35, duration: 3.2 } }),+ aurora(700, -80, 680, 'aurora-amber', 24, 80, 52),+ aurora(880, 220, 560, 'aurora-blue', 32, 70, 44, 10),// near field — large, bright, biggest drift- bokeh(770, 128, 44, true, 0.5, 26, 26),- bokeh(1198, 208, 30, false, 0.42, 32, 22, 5),- bokeh(1174, 468, 36, true, 0.34, 40, 30, 11),- bokeh(1226, 600, 26, true, 0.3, 30, 24, 7),- bokeh(716, 560, 28, false, 0.3, 34, 27, 13),+ bokeh(770, 128, 44, true, 0.5, 39, 17),+ bokeh(1198, 208, 30, false, 0.42, 48, 14, 5),+ bokeh(1174, 468, 36, true, 0.34, 60, 20, 11),+ bokeh(1226, 600, 26, true, 0.3, 45, 16, 7),+ bokeh(716, 560, 28, false, 0.3, 51, 18, 13),// mid field- bokeh(902, 108, 20, false, 0.38, 24, 18, 8),- bokeh(812, 520, 18, true, 0.3, 26, 21, 15),- bokeh(1080, 88, 16, true, 0.32, 22, 17, 3),- bokeh(960, 604, 18, false, 0.28, 28, 19, 9),- bokeh(656, 78, 14, false, 0.3, 20, 16, 12),+ bokeh(902, 108, 20, false, 0.38, 36, 12, 8),+ bokeh(812, 520, 18, true, 0.3, 39, 14, 15),+ bokeh(1080, 88, 16, true, 0.32, 33, 11, 3),+ bokeh(960, 604, 18, false, 0.28, 42, 12, 9),+ bokeh(656, 78, 14, false, 0.3, 30, 10, 12),// far field — small, dim, may pass over the text column- bokeh(200, 138, 10, false, 0.22, 16, 14, 2),- bokeh(420, 88, 8, true, 0.2, 14, 15, 6),- bokeh(300, 566, 10, true, 0.22, 18, 13, 10),- bokeh(522, 622, 8, false, 0.2, 15, 17, 4),- bokeh(138, 424, 8, false, 0.18, 14, 16, 14),- bokeh(624, 296, 7, true, 0.16, 12, 15, 18),+ bokeh(200, 138, 10, false, 0.22, 24, 9, 2),+ bokeh(420, 88, 8, true, 0.2, 21, 10, 6),+ bokeh(300, 566, 10, true, 0.22, 27, 8, 10),+ bokeh(522, 622, 8, false, 0.2, 22, 11, 4),+ bokeh(138, 424, 8, false, 0.18, 21, 10, 14),+ bokeh(624, 296, 7, true, 0.16, 18, 10, 18),// the bento logo, built from the castshape('rect', {id: T_D, x: 850, y: 170, w: 320, h: 320, radius: 36, fill: PANEL,@@ -700,27 +707,28 @@ export function starterDoc(): BentoDoc {{ at: 1, color: 'rgba(91,141,239,0.16)' },]),// atmosphere mirrors the title: auroras breathing, tiles adrift- aurora(320, -60, 660, 'aurora-amber', 26),- aurora(600, 80, 560, 'aurora-blue', 34),+ dots(true, { ambient: 'kenburns', ken: { dir: 'out', scale: 1.35, duration: 3.2 } }),+ aurora(320, -60, 660, 'aurora-amber', 26, 80, 56),+ aurora(600, 80, 560, 'aurora-blue', 34, 70, 48, 12),// near field- bokeh(404, 140, 44, true, 0.5, 26, 26),- bokeh(872, 122, 30, false, 0.42, 32, 22, 5),- bokeh(846, 372, 32, true, 0.34, 40, 30, 11),- bokeh(160, 180, 26, true, 0.3, 34, 25, 3),- bokeh(1156, 420, 28, true, 0.3, 36, 27, 9),+ bokeh(404, 140, 44, true, 0.5, 39, 17),+ bokeh(872, 122, 30, false, 0.42, 48, 14, 5),+ bokeh(846, 372, 32, true, 0.34, 60, 20, 11),+ bokeh(160, 180, 26, true, 0.3, 51, 16, 3),+ bokeh(1156, 420, 28, true, 0.3, 54, 18, 9),// mid field- bokeh(508, 82, 18, false, 0.36, 24, 18, 8),- bokeh(438, 420, 18, true, 0.3, 26, 21, 15),- bokeh(1090, 148, 24, false, 0.32, 30, 23, 7),- bokeh(200, 520, 22, false, 0.28, 30, 20, 13),- bokeh(1058, 600, 20, true, 0.26, 26, 19, 6),+ bokeh(508, 82, 18, false, 0.36, 36, 12, 8),+ bokeh(438, 420, 18, true, 0.3, 39, 14, 15),+ bokeh(1090, 148, 24, false, 0.32, 45, 15, 7),+ bokeh(200, 520, 22, false, 0.28, 45, 13, 13),+ bokeh(1058, 600, 20, true, 0.26, 39, 12, 6),// far field- bokeh(320, 300, 12, false, 0.22, 18, 15, 2),- bokeh(958, 282, 12, true, 0.24, 20, 16, 10),- bokeh(118, 358, 10, false, 0.2, 16, 14, 12),- bokeh(1222, 258, 10, true, 0.22, 16, 17, 4),- bokeh(640, 58, 10, false, 0.24, 18, 15, 16),- bokeh(900, 478, 8, true, 0.18, 13, 14, 18),+ bokeh(320, 300, 12, false, 0.22, 27, 10, 2),+ bokeh(958, 282, 12, true, 0.24, 30, 10, 10),+ bokeh(118, 358, 10, false, 0.2, 24, 9, 12),+ bokeh(1222, 258, 10, true, 0.22, 24, 11, 4),+ bokeh(640, 58, 10, false, 0.24, 27, 10, 16),+ bokeh(900, 478, 8, true, 0.18, 20, 9, 18),shape('rect', {id: T_D, x: 500, y: 120, w: 280, h: 280, radius: 56, fill: PANEL,stroke: 'rgba(185,196,212,0.28)', strokeWidth: 1.5,