Bento, the office suite that fits in a file
TypeScript mit-licenseofficeoffice-365office-suiteoffice-toolsoffice365open-sourcepowerpointself-hostedsingle-page-appslidesslideshareslideshowslideshow-galleryslideshow-makerslideshows
Photo backgrounds on every cover slide + matching gallery posters
nyblnet451dd9c445b1
diff --git a/scripts/build-example-decks.mjs b/scripts/build-example-decks.mjsindex 02d05960..92cfc6d7 100644--- a/scripts/build-example-decks.mjs+++ b/scripts/build-example-decks.mjs@@ -116,19 +116,20 @@ function deckSignal() {const pageNo = (n) => text({ x: 1150, y: 654, w: 80, h: 24, html: n, fontSize: 13, fontWeight: 600, color: GREY, align: 'right', fontFamily: MONO })const s1 = slide({- id: 'sig-cover', background: BONE, transition: 'none',- notes: 'TEMPLATE — “Signal”, an editorial-typographic deck. The style family: type-as-layout, one paper tone, one ink, one violent accent. Replace the words, keep the bones. The red bar and the title share ids with slide 2 — they MORPH.',+ id: 'sig-cover', background: INK, transition: 'none',+ notes: 'TEMPLATE — “Signal”, an editorial-typographic deck. The cover is the poster: a full-bleed public-domain photograph pushed through a RED DUOTONE (ink scrim + red wash — two rects, no filters) with the masthead type reversed to bone. Slide 2 cuts back to paper. The red bar and the title share ids with slide 2 — they MORPH.',elements: [- kick(96, 84, 'SIGNAL — A FESTIVAL OF GRAPHIC IDEAS'),- rule(96, 118, 1088),- shape('rect', { x: 904, y: 194, w: 280, h: 290, fill: RED, fx: { enter: 'fade-up', order: 1 } }),- img({ asset: 'ph-press', x: 884, y: 174, w: 280, h: 290, fx: { enter: 'fade-up', order: 1, ambient: 'kenburns', ken: { dir: 'in', scale: 1.05, duration: 2.6 } } }),- text({ id: 'sig-title', x: 86, y: 128, w: 1120, h: 330, html: 'Loud<br>letters.', fontSize: 168, fontFamily: FR, fontWeight: 900, color: INK, lineHeight: 0.92 }),+ img({ asset: 'ph-press', x: 0, y: 0, w: 1280, h: 720, fx: { ambient: 'kenburns', ken: { dir: 'drift', scale: 1.07, duration: 24 } } }),+ shape('rect', { x: 0, y: 0, w: 1280, h: 720, fill: 'rgba(20,19,16,0.42)' }),+ shape('rect', { x: 0, y: 0, w: 1280, h: 720, fill: 'rgba(226,52,30,0.48)' }),+ kick(96, 84, 'SIGNAL — A FESTIVAL OF GRAPHIC IDEAS', BONE),+ shape('rect', { x: 96, y: 118, w: 1088, h: 2, fill: 'rgba(239,237,228,0.7)' }),+ text({ id: 'sig-title', x: 86, y: 128, w: 1120, h: 330, html: 'Loud<br>letters.', fontSize: 168, fontFamily: FR, fontWeight: 900, color: BONE, lineHeight: 0.92, shadow: { y: 3, blur: 26, color: 'rgba(20,19,16,0.4)' } }),shape('rect', { id: 'sig-bar', x: 96, y: 520, w: 320, h: 74, fill: RED }),- text({ x: 442, y: 524, w: 560, h: 80, html: 'Three days on typography, grids,<br>and the confidence to be simple.', fontSize: 19, color: GREY, lineHeight: 1.5, fx: { enter: 'fade-up', order: 1 } }),+ text({ x: 442, y: 524, w: 560, h: 80, html: 'Three days on typography, grids,<br>and the confidence to be simple.', fontSize: 19, color: 'rgba(239,237,228,0.85)', lineHeight: 1.5, fx: { enter: 'fade-up', order: 1 } }),text({ x: 96, y: 536, w: 320, h: 40, html: 'OCT 12—14', fontSize: 26, fontWeight: 800, color: BONE, align: 'center', fontFamily: IN, letterSpacing: 3 }),- text({ x: 96, y: 640, w: 800, h: 24, html: 'HALL 6 · MAKETOWN · TICKETS AT THE DOOR', fontSize: 12, fontWeight: 600, letterSpacing: 3, color: GREY }),- pageNo('01'),+ text({ x: 96, y: 640, w: 800, h: 24, html: 'HALL 6 · MAKETOWN · TICKETS AT THE DOOR · PHOTO: LIBRARY OF CONGRESS, 1942', fontSize: 12, fontWeight: 600, letterSpacing: 3, color: 'rgba(239,237,228,0.6)' }),+ text({ x: 1150, y: 654, w: 80, h: 24, html: '01', fontSize: 13, fontWeight: 600, color: 'rgba(239,237,228,0.6)', align: 'right', fontFamily: MONO }),],})@@ -248,18 +249,20 @@ function deckTerra() {const s1 = slide({id: 'ter-cover', background: WHITE, transition: 'none',- notes: 'TEMPLATE — “Terra”, premium product-brand deck. Style family: whitespace-first commerce. Gradient blocks stand in for product photography — replace them with images and keep the composition. The three “vessels” morph into the collection grid on slide 3.',+ notes: 'TEMPLATE — “Terra”, premium product-brand deck. The commerce classic: a SPLIT COVER — copy breathes on white, a full-height product photograph owns the right edge (ken-burns drift), and two photo pills straddle the seam. The three “vessels” morph into the collection grid on slide 3.',elements: [+ img({ asset: 'ph-vase-goat', x: 800, y: 0, w: 480, h: 720, fx: { ambient: 'kenburns', ken: { dir: 'drift', scale: 1.06, duration: 20 } } }),+ shape('rect', { x: 800, y: 0, w: 480, h: 720, fill: 'rgba(42,39,36,0.08)' }),kick(96, 96, 'TERRA OBJECTS — COLLECTION Nº4'),- text({ x: 90, y: 150, w: 760, h: 260, html: 'Quiet things,<br>well made.', fontSize: 96, fontFamily: FR, fontWeight: 900, color: CHAR, lineHeight: 1.02 }),+ text({ x: 90, y: 150, w: 700, h: 260, html: 'Quiet things,<br>well made.', fontSize: 92, fontFamily: FR, fontWeight: 900, color: CHAR, lineHeight: 1.02 }),text({ x: 96, y: 430, w: 480, h: 80, html: 'Thrown, glazed and fired in one workshop.<br>Forty-one objects. No two alike.', fontSize: 17, color: SOFT, lineHeight: 1.6, fx: { enter: 'fade-up', order: 1 } }),- shape('rect', { id: 'ter-a', x: 880, y: 120, w: 200, h: 300, radius: 100, fill: CLAY, fillGradient: GRAD_CLAY, shadow: { y: 24, blur: 50, color: 'rgba(42,39,36,0.22)' } }),- img({ asset: 'ph-vase-jay', x: 887, y: 127, w: 186, h: 286, radius: 93, fx: { ambient: 'kenburns', ken: { dir: 'drift', scale: 1.03, duration: 12 } } }),- shape('rect', { id: 'ter-b', x: 1010, y: 300, w: 150, h: 220, radius: 75, fill: SAND, fillGradient: GRAD_SAND, shadow: { y: 18, blur: 40, color: 'rgba(42,39,36,0.18)' } }),- img({ asset: 'ph-vase-classic', x: 1016, y: 306, w: 138, h: 208, radius: 69, fx: { ambient: 'kenburns', ken: { dir: 'drift', scale: 1.035, duration: 15 } } }),- shape('ellipse', { id: 'ter-c', x: 840, y: 430, w: 120, h: 120, fill: '#6F755C', fillGradient: GRAD_MOSS, shadow: { y: 14, blur: 34, color: 'rgba(42,39,36,0.2)' } }),- img({ asset: 'ph-vase-goat', x: 845, y: 435, w: 110, h: 110, radius: 55 }),+ shape('rect', { id: 'ter-a', x: 700, y: 110, w: 190, h: 280, radius: 95, fill: CLAY, fillGradient: GRAD_CLAY, shadow: { y: 24, blur: 50, color: 'rgba(42,39,36,0.28)' } }),+ img({ asset: 'ph-vase-jay', x: 707, y: 117, w: 176, h: 266, radius: 88, fx: { ambient: 'kenburns', ken: { dir: 'drift', scale: 1.03, duration: 12 } } }),+ shape('rect', { id: 'ter-b', x: 646, y: 440, w: 140, h: 200, radius: 70, fill: SAND, fillGradient: GRAD_SAND, shadow: { y: 18, blur: 40, color: 'rgba(42,39,36,0.22)' } }),+ img({ asset: 'ph-vase-classic', x: 652, y: 446, w: 128, h: 188, radius: 64, fx: { ambient: 'kenburns', ken: { dir: 'drift', scale: 1.035, duration: 15 } } }),+ shape('ellipse', { id: 'ter-c', x: 730, y: 350, w: 76, h: 76, fill: '#6F755C', fillGradient: GRAD_MOSS, shadow: { y: 12, blur: 26, color: 'rgba(42,39,36,0.25)' } }),text({ x: 96, y: 620, w: 500, h: 22, html: 'SPRING 2026 · EDITION OF 41', fontSize: 11, fontWeight: 600, letterSpacing: 4, color: SOFT }),+ text({ x: 900, y: 668, w: 360, h: 20, html: 'MET MUSEUM OPEN ACCESS · CC0', fontSize: 9, fontWeight: 600, letterSpacing: 3, color: 'rgba(247,245,240,0.75)', align: 'right' }),],})@@ -498,8 +501,10 @@ function deckPicnic() {const s1 = slide({id: 'pic-cover', background: SUN, transition: 'none',- notes: 'TEMPLATE — “Pixel Picnic”, a playful toy-style deck. Style family: saturated flats, hard sticker shadows (offset, zero blur), everything 2–4° askew, shapes that wobble on motion-path loops. The blobs morph into the schedule tiles.',+ notes: 'TEMPLATE — “Pixel Picnic”, a playful toy-style deck. The cover is a scrapbook: a full-bleed 1941 carnival Kodachrome (Library of Congress, public domain) washed with the brand yellow, stickers slapped on top. Style family: saturated flats, hard sticker shadows (offset, zero blur), everything 2–4° askew, wobble loops. The blobs morph into the schedule tiles.',elements: [+ img({ asset: 'ph-fairwide', x: 0, y: 0, w: 1280, h: 720, fx: { ambient: 'kenburns', ken: { dir: 'drift', scale: 1.06, duration: 22 } } }),+ shape('rect', { x: 0, y: 0, w: 1280, h: 720, fill: 'rgba(255,212,58,0.55)' }),shape('ellipse', { id: 'pic-a', x: 950, y: 90, w: 220, h: 220, fill: GUM, stroke: INK, strokeWidth: 5, shadow: sticker, fx: wobble(10, 7) }),shape('rect', { id: 'pic-b', x: 560, y: 110, w: 190, h: 190, radius: 40, fill: SKY, stroke: INK, strokeWidth: 5, rotation: -8, shadow: sticker, fx: wobble(8, 9, 2) }),shape('triangle', { id: 'pic-c', x: 1010, y: 430, w: 180, h: 160, fill: LIME, stroke: INK, strokeWidth: 5, rotation: 7, shadow: sticker, fx: wobble(9, 8, 4) }),@@ -509,6 +514,7 @@ function deckPicnic() {shape('rect', { x: 645, y: 405, w: 230, h: 272, radius: 12, fill: '#FFFFFF', stroke: INK, strokeWidth: 4, rotation: -5, shadow: sticker, fx: { enter: 'fade-up', order: 1 } }),img({ asset: 'ph-fair', x: 661, y: 421, w: 198, h: 204, radius: 6, rotation: -5, fx: { enter: 'fade-up', order: 1, ambient: 'kenburns', ken: { dir: 'drift', scale: 1.04, duration: 16 } } }),text({ x: 661, y: 633, w: 198, h: 30, html: 'last picnic!!', fontSize: 16, fontWeight: 800, color: INK, align: 'center', rotation: -5, fx: { enter: 'fade-up', order: 1 } }),+ text({ x: 130, y: 682, w: 700, h: 20, html: 'PHOTOS: JACK DELANO, 1941 · LIBRARY OF CONGRESS — PUBLIC DOMAIN', fontSize: 9, fontWeight: 700, letterSpacing: 2, color: 'rgba(32,26,49,0.55)' }),],})@@ -590,7 +596,7 @@ function deckPicnic() {return doc({title: 'Pixel Picnic — playful template',- assets: { 'ph-fair': photo('picnic-fair.jpg') },+ assets: { 'ph-fair': photo('picnic-fair.jpg'), 'ph-fairwide': photo('picnic-fairwide.jpg') },theme: { background: SUN, color: INK, accent: GUM, fontFamily: IN },slides: [s1, s2, s3, s3b, s4, s5],})diff --git a/scripts/build-landing.mjs b/scripts/build-landing.mjsindex 1df0e110..e8688806 100644--- a/scripts/build-landing.mjs+++ b/scripts/build-landing.mjs@@ -33,6 +33,7 @@ for (const [ph, file] of [['__PH_PRESS__', 'press.jpg'], ['__PH_VASE1__', 'vase1.jpg'],['__PH_VASE2__', 'vase2.jpg'], ['__PH_VASE3__', 'vase3.jpg'],['__PH_STARS__', 'stars.jpg'], ['__PH_FAIR__', 'fair.jpg'],+ ['__PH_FAIRWIDE__', 'fairwide.jpg'],]) html = html.replace(ph, thumb(file))if (/__(FRAUNCES|INSTRUMENT|PH_[A-Z0-9]+)__/.test(html)) {diff --git a/scripts/gallery-photos/SOURCES.md b/scripts/gallery-photos/SOURCES.mdindex 7083fb36..4a84572d 100644--- a/scripts/gallery-photos/SOURCES.md+++ b/scripts/gallery-photos/SOURCES.md@@ -18,3 +18,9 @@ Added 2026-07-18 (v3):| orbital-aurora.jpg | NASA images (iss030e119777) | Green/red aurora curtain from the ISS, Expedition 30 — public domain || orbital-dragon.jpg | NASA images (iss071e256593) | SpaceX Dragon Endeavour against the Milky Way, Expedition 71 — public domain || thumbs/*.jpg | derived | small renditions of the above for the landing page's gallery posters |++Added 2026-07-18 (v4 — cover backgrounds):++| file | source | credit / provenance |+|---|---|---|+| picnic-fairwide.jpg | Wikimedia Commons / Library of Congress (LCCN2017877389) | Jack Delano, backstage at the Vermont state fair, Rutland, 1941 Kodachrome, FSA/OWI — public domain (film mount cropped) |diff --git a/scripts/gallery-photos/picnic-fairwide.jpg b/scripts/gallery-photos/picnic-fairwide.jpgnew file mode 100644index 00000000..38ad5b94Binary files /dev/null and b/scripts/gallery-photos/picnic-fairwide.jpg differdiff --git a/scripts/gallery-photos/thumbs/fairwide.jpg b/scripts/gallery-photos/thumbs/fairwide.jpgnew file mode 100644index 00000000..3decbd49Binary files /dev/null and b/scripts/gallery-photos/thumbs/fairwide.jpg differdiff --git a/site-src/landing.html b/site-src/landing.htmlindex 9ea5569e..b8129364 100644--- a/site-src/landing.html+++ b/site-src/landing.html@@ -371,21 +371,22 @@ section:not(.paper) .card p { color: var(--mist); }transition: color 0.2s, border-color 0.2s, transform 0.2s;}.gbtn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); transform: translateY(-1px); }-/* signal poster */-.gp-signal { background: #EFEDE4; }-.gp-signal .k { left: 9%; top: 11%; font-size: 8.5px; font-weight: 700; letter-spacing: 0.26em; color: #E8442E; }-.gp-signal .hr { left: 9%; right: 9%; top: 22%; height: 1.5px; background: #141310; }-.gp-signal .t { left: 8.5%; top: 27%; font-family: Fraunces, Georgia, serif; font-weight: 900; font-size: 42px; line-height: 0.94; color: #141310; }+/* signal poster — red duotone photo, bone masthead */+.gp-signal { background: #141310 url(__PH_PRESS__) center/cover; }+.gp-signal .ov { inset: 0; background: rgba(20, 19, 16, 0.42); }+.gp-signal .ov2 { inset: 0; background: rgba(226, 52, 30, 0.48); }+.gp-signal .k { left: 9%; top: 11%; font-size: 8.5px; font-weight: 700; letter-spacing: 0.26em; color: #EFEDE4; }+.gp-signal .hr { left: 9%; right: 9%; top: 22%; height: 1.5px; background: rgba(239, 237, 228, 0.7); }+.gp-signal .t { left: 8.5%; top: 27%; font-family: Fraunces, Georgia, serif; font-weight: 900; font-size: 42px; line-height: 0.94; color: #EFEDE4; text-shadow: 0 2px 14px rgba(20, 19, 16, 0.45); }.gp-signal .bar { left: 9%; bottom: 13%; width: 27%; height: 12%; background: #E8442E; }-.gp-signal .phf { left: 70.5%; top: 28%; width: 22%; height: 40%; background: #E8442E; }-.gp-signal .ph { left: 69%; top: 24%; width: 22%; height: 40%; background: url(__PH_PRESS__) center/cover; filter: grayscale(1) contrast(1.05); }-/* terra poster */+/* terra poster — split cover, photo panel right */.gp-terra { background: #F7F5F0; }+.gp-terra .panel { right: 0; top: 0; width: 37%; height: 100%; background: url(__PH_VASE2__) center/cover; }.gp-terra .k { left: 8.5%; top: 13%; font-size: 8.5px; font-weight: 700; letter-spacing: 0.22em; color: #C96F4A; }-.gp-terra .t { left: 8%; top: 27%; max-width: 52%; font-family: Fraunces, Georgia, serif; font-weight: 900; font-size: 24px; line-height: 1.06; color: #2A2724; }-.gp-terra .v1 { right: 9%; top: 19%; width: 16%; height: 52%; border-radius: 999px; background: url(__PH_VASE1__) center/cover; border: 3px solid #C96F4A; }-.gp-terra .v2 { right: 27%; top: 42%; width: 12%; height: 42%; border-radius: 999px; background: url(__PH_VASE3__) center/cover; border: 3px solid #D9C9B4; }-.gp-terra .v3 { right: 13%; bottom: 7%; width: 11%; aspect-ratio: 1; border-radius: 50%; background: url(__PH_VASE2__) center/cover; border: 3px solid #7D8471; }+.gp-terra .t { left: 8%; top: 27%; max-width: 48%; font-family: Fraunces, Georgia, serif; font-weight: 900; font-size: 24px; line-height: 1.06; color: #2A2724; }+.gp-terra .v1 { right: 29%; top: 16%; width: 14%; height: 48%; border-radius: 999px; background: url(__PH_VASE1__) center/cover; border: 3px solid #C96F4A; box-shadow: 0 10px 24px rgba(42, 39, 36, 0.3); }+.gp-terra .v2 { right: 35%; bottom: 7%; width: 11%; height: 36%; border-radius: 999px; background: url(__PH_VASE3__) center/cover; border: 3px solid #D9C9B4; box-shadow: 0 8px 20px rgba(42, 39, 36, 0.25); }+.gp-terra .v3 { right: 31%; top: 47%; width: 6.5%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(15deg, #8D9376, #6F755C); box-shadow: 0 6px 14px rgba(42, 39, 36, 0.3); }/* orbital poster */.gp-orbital { background: #05060E url(__PH_STARS__) center 65%/cover; }.gp-orbital .ov { inset: 0; background: rgba(5, 6, 14, 0.5); }@@ -394,8 +395,9 @@ section:not(.paper) .card p { color: var(--mist); }.gp-orbital .moon { left: 63%; top: 13%; width: 7%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(140deg, #8F7BF7, #38B6FF); }.gp-orbital .s1, .gp-orbital .s2, .gp-orbital .s3 { width: 3px; height: 3px; border-radius: 50%; background: rgba(178, 196, 224, 0.8); }.gp-orbital .s1 { left: 14%; top: 30%; } .gp-orbital .s2 { left: 84%; top: 62%; } .gp-orbital .s3 { left: 24%; top: 78%; }-/* picnic poster */-.gp-picnic { background: #FFD43A; }+/* picnic poster — scrapbook: kodachrome under the sunshine wash */+.gp-picnic { background: #FFD43A url(__PH_FAIRWIDE__) center/cover; }+.gp-picnic .ov { inset: 0; background: rgba(255, 212, 58, 0.55); }.gp-picnic .t { left: 8%; top: 22%; font-weight: 900; font-size: 34px; line-height: 0.98; letter-spacing: -0.01em; color: #201A31; }.gp-picnic .sub { left: 8.5%; bottom: 13%; max-width: 40%; font-size: 10.5px; font-weight: 700; line-height: 1.35; color: #201A31; transform: rotate(-2deg); }.gp-picnic .c1 { right: 10%; top: 14%; width: 17%; aspect-ratio: 1; border-radius: 50%; background: #FF7BAC; border: 2.5px solid #201A31; box-shadow: 4px 5px 0 #201A31; }@@ -535,9 +537,9 @@ footer b { color: var(--mist); font-weight: 600; }<div class="gal"><div class="gcard rv"><a class="gposter gp-signal" href="/gallery/signal-editorial-type.bento.html" target="_blank" rel="noopener" aria-label="Open the Signal template in a new tab">+ <span class="ov"></span><span class="ov2"></span><span class="k">SIGNAL — A FESTIVAL OF GRAPHIC IDEAS</span><span class="hr"></span>- <span class="phf"></span><span class="ph"></span><span class="t">Loud<br>letters.</span><span class="bar"></span></a>@@ -551,6 +553,7 @@ footer b { color: var(--mist); font-weight: 600; }</div><div class="gcard rv d1"><a class="gposter gp-terra" href="/gallery/terra-premium-product.bento.html" target="_blank" rel="noopener" aria-label="Open the Terra template in a new tab">+ <span class="panel"></span><span class="k">TERRA OBJECTS — COLLECTION N°4</span><span class="t">Quiet things,<br>well made.</span><span class="v1"></span><span class="v2"></span><span class="v3"></span>@@ -581,6 +584,7 @@ footer b { color: var(--mist); font-weight: 600; }</div><div class="gcard rv d2"><a class="gposter gp-picnic" href="/gallery/picnic-playful.bento.html" target="_blank" rel="noopener" aria-label="Open the Pixel Picnic template in a new tab">+ <span class="ov"></span><span class="t">PIXEL<br>PICNIC</span><span class="sub">a two-day jam for gloriously useless websites</span><span class="pol"></span><span class="polp"></span>