Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

Photo covers everywhere + full space treatment for Orbital

nyblnet464b83e04f88
diff --git a/scripts/build-example-decks.mjs b/scripts/build-example-decks.mjs
index 462283c6..02d05960 100644
--- a/scripts/build-example-decks.mjs
+++ b/scripts/build-example-decks.mjs
@@ -121,6 +121,8 @@ function deckSignal() {
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 }),
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 } }),
@@ -251,9 +253,12 @@ function deckTerra() {
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: 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)' }, fx: { ambient: 'kenburns', ken: { dir: 'drift', scale: 1.03, duration: 9 } } }),
- 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)' }, fx: { ambient: 'kenburns', ken: { dir: 'drift', scale: 1.04, duration: 11 } } }),
+ 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 }),
text({ x: 96, y: 620, w: 500, h: 22, html: 'SPRING 2026 · EDITION OF 41', fontSize: 11, fontWeight: 600, letterSpacing: 4, color: SOFT }),
],
})
@@ -358,8 +363,10 @@ function deckOrbital() {
const s1 = slide({
id: 'orb-cover', background: VOID, transition: 'none',
- notes: 'TEMPLATE — “Orbital”, immersive dark-tech deck. Style family: void black, one luminous gradient, particles in slow orbit. The ring and wordmark morph through the whole deck. Use glow shadows sparingly — one lit object per slide.',
+ notes: 'TEMPLATE — “Orbital”, immersive dark-tech deck. Style family: void black, one luminous gradient, particles in slow orbit — over REAL sky: the backdrop is the Milky Way shot from the ISS (NASA, public domain), dimmed under a scrim so the type stays lit. The ring and wordmark morph through the whole deck.',
elements: [
+ img({ asset: 'ph-stars', x: 0, y: 0, w: 1280, h: 720, opacity: 0.6, fx: { ambient: 'kenburns', ken: { dir: 'drift', scale: 1.09, duration: 28 } } }),
+ shape('rect', { x: 0, y: 0, w: 1280, h: 720, fill: 'rgba(5,6,14,0.45)', fillGradient: grad(180, [0, 'rgba(5,6,14,0.6)'], [0.55, 'rgba(5,6,14,0.25)'], [1, 'rgba(5,6,14,0.7)']) }),
star(180, 140, 6, 17, 0), star(1050, 120, 4, 21, 2), star(940, 560, 8, 19, 4),
star(220, 540, 5, 23, 1), star(640, 90, 4, 25, 3), star(1160, 400, 6, 15, 5),
shape('ellipse', { id: 'orb-ring', x: 440, y: 120, w: 400, h: 400, fill: 'rgba(0,0,0,0)', stroke: CYAN, strokeWidth: 2, shadow: glow('rgba(56,225,255,0.45)', 60), fx: { ambient: 'kenburns', ken: { dir: 'drift', scale: 1.05, duration: 12 } } }),
@@ -413,19 +420,22 @@ function deckOrbital() {
],
})
- const stateBase = (sid, title, body, accent) => slide({
+ const stateBase = (sid, title, body, accent, ph, credit) => slide({
id: sid, stateOf: 'orb-system', background: DEEP, transition: 'morph', name: title,
- notes: 'A hidden state — reached only by clicking its node on the system map.',
+ notes: 'A hidden state — reached only by clicking its node on the system map. Each state gets its own NASA backdrop (public domain) under a deep scrim — the photo switch is what makes the zoom-in feel like a place, not a popup.',
elements: [
+ img({ asset: ph, x: 0, y: 0, w: 1280, h: 720, opacity: 0.55, fx: { ambient: 'kenburns', ken: { dir: 'drift', scale: 1.08, duration: 20 } } }),
+ shape('rect', { x: 0, y: 0, w: 1280, h: 720, fill: 'rgba(11,14,30,0.62)' }),
mono(96, 84, `02a · ${title} — CLICK ANYWHERE DIM TO GO BACK`),
shape('ellipse', { id: sid + '-halo', x: 460, y: 130, w: 360, h: 360, fill: 'rgba(0,0,0,0)', stroke: accent, strokeWidth: 2, shadow: glow(accent === VIOLET ? 'rgba(122,92,255,0.5)' : 'rgba(255,79,163,0.5)', 70) }),
text({ x: 340, y: 240, w: 600, h: 80, html: title, fontSize: 56, fontWeight: 800, color: '#EAF4FF', align: 'center', letterSpacing: 8, fontFamily: IN }),
text({ x: 340, y: 330, w: 600, h: 80, html: body, fontSize: 16, color: DIM, align: 'center', lineHeight: 1.6 }),
+ mono(96, 648, credit, 'rgba(178,196,224,0.4)', 9),
shape('rect', { x: 0, y: 0, w: 1280, h: 720, fill: 'rgba(0,0,0,0)', link: 'orb-system' }),
],
})
- const st1 = stateBase('orb-state-ingest', 'INGEST', '4.2 TB of telemetry per orbit,<br>deduplicated at the edge.', VIOLET)
- const st2 = stateBase('orb-state-model', 'MODEL', 'Anomaly scores in 90 seconds —<br>before the next ground pass.', MAG)
+ const st1 = stateBase('orb-state-ingest', 'INGEST', '4.2 TB of telemetry per orbit,<br>deduplicated at the edge.', VIOLET, 'ph-aurora', 'AURORA FROM THE ISS, EXPEDITION 30 · NASA — PUBLIC DOMAIN')
+ const st2 = stateBase('orb-state-model', 'MODEL', 'Anomaly scores in 90 seconds —<br>before the next ground pass.', MAG, 'ph-dragon', 'DRAGON ENDEAVOUR & THE MILKY WAY, EXPEDITION 71 · NASA — PUBLIC DOMAIN')
const s4 = slide({
id: 'orb-growth', background: VOID, transition: 'fade',
@@ -465,7 +475,11 @@ function deckOrbital() {
return doc({
title: 'Orbital — dark immersive template',
- assets: { 'ph-earth': photo('orbital-earth.jpg'), 'ph-nebula': photo('orbital-nebula.jpg') },
+ assets: {
+ 'ph-earth': photo('orbital-earth.jpg'), 'ph-nebula': photo('orbital-nebula.jpg'),
+ 'ph-stars': photo('orbital-stars.jpg'), 'ph-aurora': photo('orbital-aurora.jpg'),
+ 'ph-dragon': photo('orbital-dragon.jpg'),
+ },
theme: { background: VOID, color: '#EAF4FF', accent: CYAN, fontFamily: IN },
present: { progress: true },
slides: [s1, s2, s2b, s3, st1, st2, s4, s5],
@@ -492,6 +506,9 @@ function deckPicnic() {
chunky(120, 150, 'PIXEL<br>PICNIC', 130, INK, -2),
text({ x: 130, y: 470, w: 700, h: 60, html: 'a two-day jam for games,<br>toys &amp; gloriously useless websites', fontSize: 24, fontWeight: 700, color: INK, rotation: -2, lineHeight: 1.3 }),
text({ x: 850, y: 350, w: 340, h: 40, html: 'AUG 22–23 · THE OLD POOL', fontSize: 16, fontWeight: 800, color: INK, rotation: 3, letterSpacing: 1 }),
+ 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 } }),
],
})
diff --git a/scripts/build-landing.mjs b/scripts/build-landing.mjs
index f5c9ab72..1df0e110 100644
--- a/scripts/build-landing.mjs
+++ b/scripts/build-landing.mjs
@@ -23,8 +23,20 @@ const grab = (name) => {
let html = readFileSync(join(root, 'site-src/landing.html'), 'utf8')
html = html.replace('__FRAUNCES__', grab('FRAUNCES_900'))
html = html.replace('__INSTRUMENT__', grab('INSTRUMENT_VAR'))
-if (html.includes('__FRAUNCES__') || html.includes('__INSTRUMENT__')) {
- throw new Error('font placeholder not replaced')
+
+// gallery poster thumbs — small renditions of the decks' public-domain
+// photos (scripts/gallery-photos/thumbs), inlined so the page stays
+// self-contained
+const thumb = (file) =>
+ 'data:image/jpeg;base64,' + readFileSync(join(root, 'scripts/gallery-photos/thumbs', file)).toString('base64')
+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'],
+]) html = html.replace(ph, thumb(file))
+
+if (/__(FRAUNCES|INSTRUMENT|PH_[A-Z0-9]+)__/.test(html)) {
+ throw new Error('unreplaced placeholder in landing template')
}
mkdirSync(dirname(out), { recursive: true })
diff --git a/scripts/gallery-photos/SOURCES.md b/scripts/gallery-photos/SOURCES.md
index d7cdc469..7083fb36 100644
--- a/scripts/gallery-photos/SOURCES.md
+++ b/scripts/gallery-photos/SOURCES.md
@@ -9,3 +9,12 @@
| terra-v1.jpg | Met Museum open access (239499) | "Vase with blue jay", ca. 1882, CC0 |
| terra-v2.jpg | Met Museum open access (239487) | "Vase with goat masks", ca. 1894, CC0 |
| terra-v3.jpg | Met Museum open access (239506) | "Vase", 1879, CC0 |
+
+Added 2026-07-18 (v3):
+
+| file | source | credit / provenance |
+|---|---|---|
+| orbital-stars.jpg | NASA images (iss063e058409) | Milky Way over Earth's airglow limb, ISS Expedition 63 — public domain (top hardware strip cropped) |
+| 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 |
diff --git a/scripts/gallery-photos/orbital-aurora.jpg b/scripts/gallery-photos/orbital-aurora.jpg
new file mode 100644
index 00000000..a1b87941
Binary files /dev/null and b/scripts/gallery-photos/orbital-aurora.jpg differ
diff --git a/scripts/gallery-photos/orbital-dragon.jpg b/scripts/gallery-photos/orbital-dragon.jpg
new file mode 100644
index 00000000..e1d4ad34
Binary files /dev/null and b/scripts/gallery-photos/orbital-dragon.jpg differ
diff --git a/scripts/gallery-photos/orbital-stars.jpg b/scripts/gallery-photos/orbital-stars.jpg
new file mode 100644
index 00000000..300798ff
Binary files /dev/null and b/scripts/gallery-photos/orbital-stars.jpg differ
diff --git a/scripts/gallery-photos/thumbs/fair.jpg b/scripts/gallery-photos/thumbs/fair.jpg
new file mode 100644
index 00000000..70a49b0d
Binary files /dev/null and b/scripts/gallery-photos/thumbs/fair.jpg differ
diff --git a/scripts/gallery-photos/thumbs/press.jpg b/scripts/gallery-photos/thumbs/press.jpg
new file mode 100644
index 00000000..1bc58297
Binary files /dev/null and b/scripts/gallery-photos/thumbs/press.jpg differ
diff --git a/scripts/gallery-photos/thumbs/stars.jpg b/scripts/gallery-photos/thumbs/stars.jpg
new file mode 100644
index 00000000..2418908d
Binary files /dev/null and b/scripts/gallery-photos/thumbs/stars.jpg differ
diff --git a/scripts/gallery-photos/thumbs/vase1.jpg b/scripts/gallery-photos/thumbs/vase1.jpg
new file mode 100644
index 00000000..d3d1a5eb
Binary files /dev/null and b/scripts/gallery-photos/thumbs/vase1.jpg differ
diff --git a/scripts/gallery-photos/thumbs/vase2.jpg b/scripts/gallery-photos/thumbs/vase2.jpg
new file mode 100644
index 00000000..84a37236
Binary files /dev/null and b/scripts/gallery-photos/thumbs/vase2.jpg differ
diff --git a/scripts/gallery-photos/thumbs/vase3.jpg b/scripts/gallery-photos/thumbs/vase3.jpg
new file mode 100644
index 00000000..5e92f932
Binary files /dev/null and b/scripts/gallery-photos/thumbs/vase3.jpg differ
diff --git a/site-src/landing.html b/site-src/landing.html
index b510f51b..9ea5569e 100644
--- a/site-src/landing.html
+++ b/site-src/landing.html
@@ -377,15 +377,18 @@ section:not(.paper) .card p { color: var(--mist); }
.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; }
.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 */
.gp-terra { background: #F7F5F0; }
.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: linear-gradient(160deg, #CE7852, #B85F3E); }
-.gp-terra .v2 { right: 27%; top: 42%; width: 12%; height: 42%; border-radius: 999px; background: linear-gradient(160deg, #DDCDB9, #D2BFA6); }
-.gp-terra .v3 { right: 13%; bottom: 7%; width: 11%; aspect-ratio: 1; border-radius: 50%; background: #7D8471; }
+.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; }
/* orbital poster */
-.gp-orbital { background: #05060E; }
+.gp-orbital { background: #05060E url(__PH_STARS__) center 65%/cover; }
+.gp-orbital .ov { inset: 0; background: rgba(5, 6, 14, 0.5); }
.gp-orbital .ring { left: 50%; top: 50%; width: 52%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 1.5px solid #38E1FF; border-radius: 50%; box-shadow: 0 0 34px rgba(56, 225, 255, 0.35), inset 0 0 26px rgba(56, 225, 255, 0.12); }
.gp-orbital .t { left: 0; right: 0; top: 50%; transform: translateY(-58%); font-weight: 800; font-size: 21px; letter-spacing: 0.5em; text-indent: 0.5em; text-align: center; color: #F2F6FF; }
.gp-orbital .moon { left: 63%; top: 13%; width: 7%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(140deg, #8F7BF7, #38B6FF); }
@@ -394,10 +397,12 @@ section:not(.paper) .card p { color: var(--mist); }
/* picnic poster */
.gp-picnic { background: #FFD43A; }
.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: 56%; font-size: 10.5px; font-weight: 700; line-height: 1.35; color: #201A31; transform: rotate(-2deg); }
+.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; }
.gp-picnic .c2 { right: 31%; top: 48%; width: 13%; aspect-ratio: 1; border-radius: 26%; background: #4DC9F0; border: 2.5px solid #201A31; box-shadow: 4px 5px 0 #201A31; transform: rotate(-8deg); }
.gp-picnic .c3 { right: 9%; bottom: 10%; width: 15%; aspect-ratio: 1.1; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: #7BE382; filter: drop-shadow(4px 5px 0 rgba(32, 26, 49, 0.9)); }
+.gp-picnic .pol { left: 47%; top: 42%; width: 17%; height: 46%; border-radius: 7px; background: #fff; border: 2.5px solid #201A31; box-shadow: 4px 5px 0 #201A31; transform: rotate(-5deg); }
+.gp-picnic .polp { left: 48.6%; top: 47%; width: 13.8%; height: 32%; border-radius: 3px; background: url(__PH_FAIR__) center/cover; transform: rotate(-5deg); }
/* code vignette — the honest document */
.codebox {
@@ -532,6 +537,7 @@ footer b { color: var(--mist); font-weight: 600; }
<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="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>
@@ -559,6 +565,7 @@ footer b { color: var(--mist); font-weight: 600; }
</div>
<div class="gcard rv d1">
<a class="gposter gp-orbital" href="/gallery/orbital-dark-immersive.bento.html" target="_blank" rel="noopener" aria-label="Open the Orbital template in a new tab">
+ <span class="ov"></span>
<span class="ring"></span>
<span class="t">ORBITAL</span>
<span class="moon"></span>
@@ -576,6 +583,7 @@ footer b { color: var(--mist); font-weight: 600; }
<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="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>
<span class="c1"></span><span class="c2"></span><span class="c3"></span>
</a>
<div class="gmeta">