@spunto/brand-kit 0.3.0 → 0.4.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spunto/brand-kit",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Spunto's brand kit — the centre of the brand: the product family and its paints (the colours the design system renders), the voice, the sourced figures, the home editions, the illustrations and the templates (social cards, video scenes, stories) everything we say about Spunto is made from.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/home/check.ts CHANGED
@@ -121,6 +121,7 @@ export function checkEdition(e: HomeEdition): EditionIssue[] {
121
121
  case "roster":
122
122
  words("title", s.title)
123
123
  words("lede", s.lede)
124
+ words("port label", s.portLabel)
124
125
  if (!s.badges.length) err("no badges", s.id)
125
126
  s.badges.forEach((b, i) => {
126
127
  words(`badge ${i + 1} role`, b.role, true)
@@ -1,4 +1,545 @@
1
1
  [
2
+ {
3
+ "id": "lite-2026-11-etabli",
4
+ "name": "Établi",
5
+ "note": "Lite in the spirit of Cloud's Atelier: sandboxes for your agents, on your own machine. The agents as access badges (Lite's own rights: a repository by its clone URL, secrets, MCP servers, shared services, .localhost ports), three ways in, the one-line install, Lite or Cloud side by side, then the fine print. Old Bac-à-sable kept.",
6
+ "product": "lite",
7
+ "date": "2026-11-09",
8
+ "sections": [
9
+ {
10
+ "id": "hero",
11
+ "kind": "hero",
12
+ "layout": "split",
13
+ "theme": "night",
14
+ "kicker": {
15
+ "en": "Spunto Lite",
16
+ "fr": "Spunto Lite"
17
+ },
18
+ "title": {
19
+ "en": "A sandbox for every agent. *On your machine.*",
20
+ "fr": "Une sandbox par agent. *Sur votre machine.*"
21
+ },
22
+ "lede": {
23
+ "en": "One Docker container. Each agent gets a throwaway workspace with its own secrets, its own tools and its own ports. Free, open source, no account: everything runs on your Docker.",
24
+ "fr": "Un seul conteneur Docker. Chaque agent a son espace de travail jetable, avec ses secrets, ses outils et ses ports. Gratuit, open source, sans compte : tout tourne sur votre Docker."
25
+ },
26
+ "actions": [
27
+ {
28
+ "label": {
29
+ "en": "Install it",
30
+ "fr": "L’installer"
31
+ },
32
+ "href": "/docs/installation"
33
+ },
34
+ {
35
+ "label": {
36
+ "en": "GitHub",
37
+ "fr": "GitHub"
38
+ },
39
+ "href": "https://github.com/spuntodotnet/spunto-lite",
40
+ "variant": "ghost"
41
+ }
42
+ ],
43
+ "scene": {
44
+ "module": "diorama"
45
+ }
46
+ },
47
+ {
48
+ "id": "why",
49
+ "kind": "roster",
50
+ "theme": "paper",
51
+ "title": {
52
+ "en": "Each agent in *its own box*.",
53
+ "fr": "Chaque agent dans *sa boîte*."
54
+ },
55
+ "lede": {
56
+ "en": "You wouldn’t give every employee the same keys. In Spunto Lite, one project per role: what it may touch, the agent it runs, the services it reaches.",
57
+ "fr": "Vous ne donnez pas les mêmes clés à tous vos employés. Dans Spunto Lite, un projet par rôle : ce qu’il peut toucher, l’agent qui y travaille, les services qu’il joint."
58
+ },
59
+ "portLabel": {
60
+ "en": "its .localhost address",
61
+ "fr": "son adresse .localhost"
62
+ },
63
+ "badges": [
64
+ {
65
+ "role": {
66
+ "en": "Front-end",
67
+ "fr": "Front-end"
68
+ },
69
+ "harness": "claude",
70
+ "model": "claude-opus-5-5",
71
+ "rows": [
72
+ {
73
+ "label": {
74
+ "en": "Repository",
75
+ "fr": "Dépôt"
76
+ },
77
+ "value": "git@github.com:acme/web.git"
78
+ },
79
+ {
80
+ "label": {
81
+ "en": "Secrets",
82
+ "fr": "Secrets"
83
+ },
84
+ "value": "STRIPE_TEST_KEY"
85
+ },
86
+ {
87
+ "label": {
88
+ "en": "Services",
89
+ "fr": "Services"
90
+ },
91
+ "value": "postgres"
92
+ },
93
+ {
94
+ "label": {
95
+ "en": "MCP",
96
+ "fr": "MCP"
97
+ },
98
+ "value": "Linear"
99
+ },
100
+ {
101
+ "label": {
102
+ "en": "Production",
103
+ "fr": "Production"
104
+ },
105
+ "value": "PROD_DATABASE_URL",
106
+ "denied": true
107
+ }
108
+ ],
109
+ "port": "3000"
110
+ },
111
+ {
112
+ "role": {
113
+ "en": "Review",
114
+ "fr": "Relecture"
115
+ },
116
+ "harness": "codex",
117
+ "model": "gpt-5.5",
118
+ "rows": [
119
+ {
120
+ "label": {
121
+ "en": "Repository",
122
+ "fr": "Dépôt"
123
+ },
124
+ "value": "git@github.com:acme/web.git"
125
+ },
126
+ {
127
+ "label": {
128
+ "en": "Secrets",
129
+ "fr": "Secrets"
130
+ },
131
+ "value": "STRIPE_TEST_KEY",
132
+ "denied": true
133
+ },
134
+ {
135
+ "label": {
136
+ "en": "Production",
137
+ "fr": "Production"
138
+ },
139
+ "value": "PROD_DATABASE_URL",
140
+ "denied": true
141
+ }
142
+ ]
143
+ },
144
+ {
145
+ "role": {
146
+ "en": "Data",
147
+ "fr": "Données"
148
+ },
149
+ "harness": "mistral",
150
+ "rows": [
151
+ {
152
+ "label": {
153
+ "en": "Repository",
154
+ "fr": "Dépôt"
155
+ },
156
+ "value": "git@gitlab.acme.lan:data/api.git"
157
+ },
158
+ {
159
+ "label": {
160
+ "en": "Secrets",
161
+ "fr": "Secrets"
162
+ },
163
+ "value": "STAGING_DATABASE_URL"
164
+ },
165
+ {
166
+ "label": {
167
+ "en": "Services",
168
+ "fr": "Services"
169
+ },
170
+ "value": "postgres, elasticsearch"
171
+ },
172
+ {
173
+ "label": {
174
+ "en": "Production",
175
+ "fr": "Production"
176
+ },
177
+ "value": "PROD_DATABASE_URL",
178
+ "denied": true
179
+ }
180
+ ],
181
+ "port": "8080"
182
+ }
183
+ ],
184
+ "points": [
185
+ {
186
+ "title": {
187
+ "en": "*Its rights*, nothing more.",
188
+ "fr": "*Ses droits*, rien de plus."
189
+ },
190
+ "text": {
191
+ "en": "Its repository, its secrets, its MCP servers. What it isn’t given, it doesn’t see.",
192
+ "fr": "Son dépôt, ses secrets, ses serveurs MCP. Ce qu’on ne lui donne pas, il ne le voit pas."
193
+ }
194
+ },
195
+ {
196
+ "title": {
197
+ "en": "*Its harness*, its model.",
198
+ "fr": "*Son harnais*, son modèle."
199
+ },
200
+ "text": {
201
+ "en": "Claude Code, Codex or Mistral Vibe, on your own API keys: each task picks its own.",
202
+ "fr": "Claude Code, Codex ou Mistral Vibe, sur vos propres clés d’API : chaque tâche choisit le sien."
203
+ }
204
+ },
205
+ {
206
+ "title": {
207
+ "en": "*One Postgres* for all.",
208
+ "fr": "*Un Postgres* pour tous."
209
+ },
210
+ "text": {
211
+ "en": "Declare a service once: every workspace of every project reaches it at its name.",
212
+ "fr": "Déclarez un service une fois : chaque espace de travail de chaque projet le joint à son nom."
213
+ }
214
+ },
215
+ {
216
+ "title": {
217
+ "en": "*Its ports*, at an address.",
218
+ "fr": "*Ses ports*, à une adresse."
219
+ },
220
+ "text": {
221
+ "en": "What it starts opens at worker-<id>-<port>.localhost, for you as for it.",
222
+ "fr": "Ce qu’il lance s’ouvre à worker-<id>-<port>.localhost, pour vous comme pour lui."
223
+ }
224
+ },
225
+ {
226
+ "title": {
227
+ "en": "*Your SSH key*, anywhere.",
228
+ "fr": "*Votre clé SSH*, partout."
229
+ },
230
+ "text": {
231
+ "en": "A repository is a clone URL: git push keeps your identity, on any host your key reaches.",
232
+ "fr": "Un dépôt, c’est une URL de clone : git push garde votre identité, chez n’importe quel hébergeur que votre clé atteint."
233
+ }
234
+ },
235
+ {
236
+ "title": {
237
+ "en": "*Throwaway*, really.",
238
+ "fr": "*Jetable*, vraiment."
239
+ },
240
+ "text": {
241
+ "en": "Break a workspace, delete it, launch another. Shared caches stay, nothing piles up on your laptop.",
242
+ "fr": "Cassez un espace, supprimez-le, relancez-en un autre. Les caches partagés restent, rien ne s’entasse sur votre portable."
243
+ }
244
+ }
245
+ ]
246
+ },
247
+ {
248
+ "id": "ways",
249
+ "kind": "ways",
250
+ "theme": "night",
251
+ "title": {
252
+ "en": "Three ways to *work with it*.",
253
+ "fr": "Trois façons de *s’en servir*."
254
+ },
255
+ "lede": {
256
+ "en": "Hand a task to an agent, open the workspace in your browser, or take the terminal yourself.",
257
+ "fr": "Confiez une tâche à un agent, ouvrez l’espace dans votre navigateur, ou prenez le terminal vous-même."
258
+ },
259
+ "items": [
260
+ {
261
+ "kicker": {
262
+ "en": "Agents",
263
+ "fr": "Agents"
264
+ },
265
+ "title": {
266
+ "en": "Hand it *a task*.",
267
+ "fr": "Confiez-lui *une tâche*."
268
+ },
269
+ "text": {
270
+ "en": "Watch it type, answer it or interrupt it, read the diff, then Accept or Drop.",
271
+ "fr": "Regardez-le taper, répondez-lui ou interrompez-le, lisez le diff, puis Accept ou Drop."
272
+ },
273
+ "chat": [
274
+ {
275
+ "from": "you",
276
+ "text": {
277
+ "en": "Fix the login that breaks on Safari.",
278
+ "fr": "Corrige la connexion qui casse sur Safari."
279
+ }
280
+ },
281
+ {
282
+ "from": "agent",
283
+ "text": {
284
+ "en": "Found it: a cookie set without SameSite. Fixed, *the diff is ready*.",
285
+ "fr": "Trouvé : un cookie posé sans SameSite. Corrigé, *le diff est prêt*."
286
+ }
287
+ }
288
+ ]
289
+ },
290
+ {
291
+ "kicker": {
292
+ "en": "IDE",
293
+ "fr": "IDE"
294
+ },
295
+ "title": {
296
+ "en": "An IDE, *in your browser*.",
297
+ "fr": "Un IDE, *dans votre navigateur*."
298
+ },
299
+ "text": {
300
+ "en": "Open IDE, and it’s there, opened on /workspace, nothing to install on your machine.",
301
+ "fr": "Open IDE, et il est là, ouvert sur /workspace, rien à installer sur votre machine."
302
+ },
303
+ "code": "open http://worker-<id>.localhost"
304
+ },
305
+ {
306
+ "kicker": {
307
+ "en": "Terminal",
308
+ "fr": "Terminal"
309
+ },
310
+ "title": {
311
+ "en": "A terminal *that won’t die*.",
312
+ "fr": "Un terminal *increvable*."
313
+ },
314
+ "text": {
315
+ "en": "Close the tab, the build goes on. Come back, the screen is where you left it.",
316
+ "fr": "Fermez l’onglet, le build continue. Revenez, l’écran est là où vous l’avez laissé."
317
+ },
318
+ "code": "npm run build"
319
+ }
320
+ ]
321
+ },
322
+ {
323
+ "id": "run",
324
+ "kind": "command",
325
+ "theme": "paper",
326
+ "title": {
327
+ "en": "Installed in *one line*.",
328
+ "fr": "Installé en *une ligne*."
329
+ },
330
+ "lede": {
331
+ "en": "Then open http://localhost. There is no account to create.",
332
+ "fr": "Ouvrez ensuite http://localhost. Il n’y a pas de compte à créer."
333
+ },
334
+ "command": "docker run -d --name spunto-lite --restart unless-stopped -p 80:80 \\\n -e DATA_ENCRYPTION_KEY=\"$(openssl rand -hex 32)\" \\\n -v /var/run/docker.sock:/var/run/docker.sock \\\n -v \"$HOME/.ssh:/host-ssh:ro\" \\\n -v spunto-lite-ssh-agent:/run/spunto-ssh-agent \\\n -v spunto-lite-data:/app/data \\\n ghcr.io/spuntodotnet/spunto-lite:latest",
335
+ "caption": {
336
+ "en": "keep the encryption key: the same one every time you recreate the container",
337
+ "fr": "gardez la clé de chiffrement : la même à chaque fois que vous recréez le conteneur"
338
+ }
339
+ },
340
+ {
341
+ "id": "vs",
342
+ "kind": "compare",
343
+ "theme": "night",
344
+ "title": {
345
+ "en": "Lite or *Cloud*?",
346
+ "fr": "Lite ou *Cloud* ?"
347
+ },
348
+ "lede": {
349
+ "en": "Same agents, same screens. The difference is where the boxes run.",
350
+ "fr": "Mêmes agents, mêmes écrans. La différence, c’est où tournent les boîtes."
351
+ },
352
+ "them": {
353
+ "en": "Spunto Cloud",
354
+ "fr": "Spunto Cloud"
355
+ },
356
+ "us": {
357
+ "en": "Spunto Lite",
358
+ "fr": "Spunto Lite"
359
+ },
360
+ "rows": [
361
+ {
362
+ "label": {
363
+ "en": "Where it runs",
364
+ "fr": "Où ça tourne"
365
+ },
366
+ "them": {
367
+ "en": "On our servers",
368
+ "fr": "Sur nos serveurs"
369
+ },
370
+ "us": {
371
+ "en": "On your machine, amd64 or arm64",
372
+ "fr": "Sur votre machine, amd64 ou arm64"
373
+ }
374
+ },
375
+ {
376
+ "label": {
377
+ "en": "A box is",
378
+ "fr": "Une boîte, c’est"
379
+ },
380
+ "them": {
381
+ "en": "A Firecracker microVM, its own kernel",
382
+ "fr": "Une microVM Firecracker, son propre noyau"
383
+ },
384
+ "us": {
385
+ "en": "A Docker container on your daemon",
386
+ "fr": "Un conteneur Docker sur votre démon"
387
+ }
388
+ },
389
+ {
390
+ "label": {
391
+ "en": "Price",
392
+ "fr": "Prix"
393
+ },
394
+ "them": {
395
+ "en": "By the minute, on the RAM that runs",
396
+ "fr": "À la minute, sur la RAM qui tourne"
397
+ },
398
+ "us": {
399
+ "en": "Free, MIT",
400
+ "fr": "Gratuit, MIT"
401
+ }
402
+ },
403
+ {
404
+ "label": {
405
+ "en": "Account",
406
+ "fr": "Compte"
407
+ },
408
+ "them": {
409
+ "en": "A Spunto account",
410
+ "fr": "Un compte Spunto"
411
+ },
412
+ "us": {
413
+ "en": "None",
414
+ "fr": "Aucun"
415
+ }
416
+ },
417
+ {
418
+ "label": {
419
+ "en": "Laptop closed",
420
+ "fr": "Ordinateur fermé"
421
+ },
422
+ "them": {
423
+ "en": "Your agents keep going",
424
+ "fr": "Vos agents continuent"
425
+ },
426
+ "us": {
427
+ "en": "Everything stops with it",
428
+ "fr": "Tout s’arrête avec lui"
429
+ }
430
+ },
431
+ {
432
+ "label": {
433
+ "en": "Agents",
434
+ "fr": "Agents"
435
+ },
436
+ "them": {
437
+ "en": "Claude Code, Codex, Mistral Vibe",
438
+ "fr": "Claude Code, Codex, Mistral Vibe"
439
+ },
440
+ "us": {
441
+ "en": "The same three, on your keys",
442
+ "fr": "Les trois mêmes, sur vos clés"
443
+ }
444
+ }
445
+ ],
446
+ "source": "spuntodotnet/spunto-lite README and docs (read 2026-11-09); Spunto Cloud: docs/sandboxes.md, billing rates.ts"
447
+ },
448
+ {
449
+ "id": "fine-print",
450
+ "kind": "faq",
451
+ "theme": "paper",
452
+ "title": {
453
+ "en": "We’ve been asked.",
454
+ "fr": "On nous a posé la question."
455
+ },
456
+ "items": [
457
+ {
458
+ "q": {
459
+ "en": "Is there a login screen?",
460
+ "fr": "Y a-t-il un écran de connexion ?"
461
+ },
462
+ "a": {
463
+ "en": "No. Anyone who can reach Lite's port controls it, and Lite holds your Docker socket. Keep it on localhost; never on the open internet.",
464
+ "fr": "Non. Quiconque joint le port de Lite le contrôle, et Lite tient votre socket Docker. Gardez-le sur localhost ; jamais sur l’internet ouvert."
465
+ }
466
+ },
467
+ {
468
+ "q": {
469
+ "en": "Does it phone home?",
470
+ "fr": "Est-ce qu’il appelle la maison ?"
471
+ },
472
+ "a": {
473
+ "en": "No telemetry. The only outbound traffic is what you cause: pulling images and features, the extension gallery, your git remotes, your agents' providers and your MCP servers.",
474
+ "fr": "Aucune télémétrie. Le seul trafic sortant est celui que vous provoquez : images et features tirées, galerie d’extensions, vos remotes git, les fournisseurs de vos agents et vos serveurs MCP."
475
+ }
476
+ },
477
+ {
478
+ "q": {
479
+ "en": "Which machines?",
480
+ "fr": "Quelles machines ?"
481
+ },
482
+ "a": {
483
+ "en": "Any with Docker: the image is built for amd64 and arm64. MIT licensed.",
484
+ "fr": "Toute machine avec Docker : l’image est construite pour amd64 et arm64. Sous licence MIT."
485
+ }
486
+ }
487
+ ]
488
+ },
489
+ {
490
+ "id": "family",
491
+ "kind": "family",
492
+ "theme": "night",
493
+ "title": {
494
+ "en": "Same universe, *different tools*.",
495
+ "fr": "Même univers, *outils différents*."
496
+ },
497
+ "lede": {
498
+ "en": "The other Spunto products, each in its own colours. Same type, same grid.",
499
+ "fr": "Les autres produits Spunto, chacun dans ses couleurs. Même typo, même grille."
500
+ },
501
+ "products": [
502
+ "cloud",
503
+ "cms",
504
+ "desktop",
505
+ "ci",
506
+ "search",
507
+ "ds",
508
+ "foyer"
509
+ ]
510
+ },
511
+ {
512
+ "id": "end",
513
+ "kind": "cta",
514
+ "theme": "signal",
515
+ "title": {
516
+ "en": "Break one. *Launch another.*",
517
+ "fr": "Cassez-en un. *Relancez-en un autre.*"
518
+ },
519
+ "lede": {
520
+ "en": "MIT · amd64 and arm64 · no telemetry",
521
+ "fr": "MIT · amd64 et arm64 · aucune télémétrie"
522
+ },
523
+ "actions": [
524
+ {
525
+ "label": {
526
+ "en": "Install it",
527
+ "fr": "L’installer"
528
+ },
529
+ "href": "/docs/installation"
530
+ },
531
+ {
532
+ "label": {
533
+ "en": "GitHub",
534
+ "fr": "GitHub"
535
+ },
536
+ "href": "https://github.com/spuntodotnet/spunto-lite",
537
+ "variant": "ghost"
538
+ }
539
+ ]
540
+ }
541
+ ]
542
+ },
2
543
  {
3
544
  "id": "lite-2026-11-bac-a-sable",
4
545
  "name": "Bac-à-sable",
@@ -37,7 +37,7 @@ export const HOME_EDITION_BY_ID: Record<string, HomeEdition> = Object.fromEntrie
37
37
  `cloud` is spunto.net's `/`; the others are imported by their sites (`<ProductHome product="lite" />`). */
38
38
  export const PUBLISHED: Record<BrandProductId, string | null> = {
39
39
  cloud: "cloud-2026-11-atelier",
40
- lite: null,
40
+ lite: "lite-2026-11-etabli",
41
41
  cms: null,
42
42
  desktop: null,
43
43
  ci: null,
package/src/home/home.tsx CHANGED
@@ -488,7 +488,7 @@ function RosterSection({ section, s, ctx, path: p }: { section: Extract<HomeSect
488
488
  <span style={{ fontFamily: FONT.mono, fontSize: 10.5, letterSpacing: "0.1em", textTransform: "uppercase", color: sub }}>{ctx.t(r.label, `${bp}.rows.${j}.label`)}</span>
489
489
  <span style={{ display: "flex", gap: 8, alignItems: "baseline", minWidth: 0, fontFamily: FONT.mono, fontSize: 12.5, lineHeight: 1.45, color: r.denied ? sub : ink, overflowWrap: "anywhere" }}>
490
490
  <span aria-hidden style={{ flex: "none", fontWeight: 700, color: r.denied ? "#c2410c" : s.accent }}>{r.denied ? "×" : "✓"}</span>
491
- <span style={{ textDecoration: r.denied ? "line-through" : "none", textDecorationColor: hexAlpha(sub, 0.7) }}>{ctx.r(r.value, `${bp}.rows.${j}.value`)}</span>
491
+ <span style={{ minWidth: 0, overflowWrap: "anywhere", textDecoration: r.denied ? "line-through" : "none", textDecorationColor: hexAlpha(sub, 0.7) }}>{ctx.r(r.value, `${bp}.rows.${j}.value`)}</span>
492
492
  </span>
493
493
  </div>
494
494
  ))}
@@ -499,7 +499,7 @@ function RosterSection({ section, s, ctx, path: p }: { section: Extract<HomeSect
499
499
  <span style={{ display: "inline-flex", alignItems: "center", gap: 8, minWidth: 0, fontFamily: FONT.mono, fontSize: 11.5, color: ink }}>
500
500
  <span aria-hidden style={{ width: 7, height: 7, borderRadius: 999, background: "#22c55e", boxShadow: "0 0 0 3px rgba(34,197,94,0.18)" }} />
501
501
  <span style={{ overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }}>
502
- :{ctx.r(b.port, `${bp}.port`)} → {ctx.locale === "fr" ? "son URL HTTPS" : "its HTTPS URL"}
502
+ :{ctx.r(b.port, `${bp}.port`)} → {section.portLabel ? ctx.t(section.portLabel, `${p}.portLabel`) : ctx.locale === "fr" ? "son URL HTTPS" : "its HTTPS URL"}
503
503
  </span>
504
504
  </span>
505
505
  ) : (
@@ -939,7 +939,60 @@ const BAR_COPY = {
939
939
  fr: { products: "Produits", workshop: "De l’atelier", pricing: "Tarifs", docs: "Docs", blog: "Blog", signIn: "Se connecter", console: "Console" },
940
940
  }
941
941
 
942
- function SiteBar({ ctx, theme, session }: { ctx: Ctx; theme: HomeSection["theme"]; session: { name: string; picture?: string } | null }) {
942
+ /** A product whose site has its own bar (not spunto.net's): its links, and the one button it shows. No account,
943
+ so no sign-in and nothing changes for someone signed in. Read from that site's SiteNav. */
944
+ const OWN_BAR: Partial<Record<HomeEdition["product"], { links: [Words, string][]; cta: [Words, string] }>> = {
945
+ // spuntodotnet/spunto-lite site/src/components/SiteNav.astro
946
+ lite: {
947
+ links: [
948
+ [{ en: "Docs", fr: "Docs" }, "/docs"],
949
+ [{ en: "GitHub", fr: "GitHub" }, "https://github.com/spuntodotnet/spunto-lite"],
950
+ ],
951
+ cta: [{ en: "Get started", fr: "Commencer" }, "/docs/installation"],
952
+ },
953
+ }
954
+
955
+ function SiteBar(props: { ctx: Ctx; theme: HomeSection["theme"]; session: { name: string; picture?: string } | null }) {
956
+ const own = OWN_BAR[props.ctx.product]
957
+ return own ? <ProductBar {...props} own={own} /> : <SpuntoBar {...props} />
958
+ }
959
+
960
+ /** The bar of a product's own site: "Spunto <Name>", its few links, the language, its button. */
961
+ function ProductBar({ ctx, theme, own }: { ctx: Ctx; theme: HomeSection["theme"]; own: NonNullable<(typeof OWN_BAR)[keyof typeof OWN_BAR]> }) {
962
+ const s = ctx.s(theme)
963
+ const light = theme === "night"
964
+ const fg = light ? "#ffffff" : BRAND_NEUTRALS.ink
965
+ const soft = light ? hexAlpha("#ffffff", 0.72) : hexAlpha(BRAND_NEUTRALS.ink, 0.68)
966
+ const button = theme === "night" ? { bg: s.signal, fg: s.field } : theme === "signal" ? { bg: s.field, fg: "#ffffff" } : { bg: s.accent, fg: "#ffffff" }
967
+ const name = brandProduct(ctx.product).name.replace(/^Spunto /, "")
968
+ const other = ctx.locale === "en" ? "fr" : "en"
969
+ return (
970
+ <nav style={{ position: "absolute", top: 0, left: 0, right: 0, zIndex: 20, color: fg }}>
971
+ <style>{`@container (max-width: 640px) { [data-bar-sm] { display: none !important } }`}</style>
972
+ <div style={{ ...WRAP, maxWidth: 1240, height: 64, padding: "0 clamp(20px, 3cqi, 40px)", display: "flex", alignItems: "center", justifyContent: "space-between", gap: 16 }}>
973
+ <Anchor ctx={ctx} href={ctx.href("/")} style={{ display: "flex", alignItems: "center", gap: 10, color: fg, textDecoration: "none" }}>
974
+ <SpuntoLogo size={30} paint={{ tile: theme === "signal" ? s.field : s.signal, ink: theme === "signal" ? s.signal : s.field }} style={{ borderRadius: 6 }} />
975
+ <span style={{ fontFamily: FONT.display, fontSize: 17, letterSpacing: "-0.01em" }}>
976
+ Spunto <span style={{ color: light ? s.signal : s.accent }}>{name}</span>
977
+ </span>
978
+ </Anchor>
979
+ <div style={{ display: "flex", alignItems: "center", gap: 4, fontSize: 14 }}>
980
+ {own.links.map(([label, h], i) => (
981
+ <Anchor ctx={ctx} key={h} href={h.startsWith("/") ? ctx.href(h) : h} data-bar-sm={i > 0 ? "" : undefined} style={{ padding: "6px 12px", color: soft, textDecoration: "none" }}>
982
+ {ctx.w(label)}
983
+ </Anchor>
984
+ ))}
985
+ <span style={{ padding: "6px 12px", fontFamily: FONT.mono, fontSize: 12, letterSpacing: "0.14em", textTransform: "uppercase", color: soft }}>{other}</span>
986
+ <Anchor ctx={ctx} href={ctx.href(own.cta[1])} data-bar-sm="" style={{ marginLeft: 4, display: "inline-flex", alignItems: "center", height: 38, padding: "0 16px", borderRadius: 6, background: button.bg, color: button.fg, fontSize: 14, fontWeight: 600, textDecoration: "none", whiteSpace: "nowrap" }}>
987
+ {ctx.w(own.cta[0])}
988
+ </Anchor>
989
+ </div>
990
+ </div>
991
+ </nav>
992
+ )
993
+ }
994
+
995
+ function SpuntoBar({ ctx, theme, session }: { ctx: Ctx; theme: HomeSection["theme"]; session: { name: string; picture?: string } | null }) {
943
996
  const [menu, setMenu] = useState(false)
944
997
  const s = ctx.s(theme)
945
998
  const t = BAR_COPY[ctx.locale]
package/src/home/types.ts CHANGED
@@ -58,6 +58,8 @@ export type HomeSection =
58
58
  /** Agents drawn as access badges — each its own harness, model, rights. Every row must be something
59
59
  Spunto really gives a sandbox (a project's repos, secrets, skills; a port's URL). */
60
60
  badges: RosterBadge[]
61
+ /** Where a badge's port opens, after its number — Cloud's "its HTTPS URL" by default. */
62
+ portLabel?: Words
61
63
  /** What it buys, under the badges. */
62
64
  points: { title: Words; text: Words }[]
63
65
  })