@spunto/brand-kit 0.7.0 → 0.8.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 +1 -1
- package/src/home/check.ts +14 -0
- package/src/home/editions/cms.json +394 -0
- package/src/home/guide.ts +16 -0
- package/src/home/home.tsx +45 -0
- package/src/home/index.ts +2 -0
- package/src/home/showcase/catalog.ts +62 -0
- package/src/home/showcase/cms/board.tsx +162 -0
- package/src/home/showcase/cms/page.tsx +169 -0
- package/src/home/showcase/cms/parts.tsx +130 -0
- package/src/home/showcase/cms/sample.ts +172 -0
- package/src/home/showcase/cms/table.tsx +207 -0
- package/src/home/showcase/cms/views.tsx +166 -0
- package/src/home/showcase/stage.tsx +328 -0
- package/src/home/showcase/view.tsx +30 -0
- package/src/home/types.ts +17 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spunto/brand-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.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
|
@@ -6,6 +6,7 @@ import { ILLUSTRATION_CATALOG } from "../illustrations/catalog"
|
|
|
6
6
|
import { BRAND_PRODUCT_BY_ID } from "../products"
|
|
7
7
|
import { PALETTE_BY_ID } from "@spunto/design-system/palettes"
|
|
8
8
|
import { MODULE3D_CATALOG, type Module3DRef } from "../three/catalog"
|
|
9
|
+
import { SHOWCASE_SCREEN_IDS, SHOWCASE_SCREENS } from "./showcase/catalog"
|
|
9
10
|
import type { HomeAction, HomeEdition, Words } from "./types"
|
|
10
11
|
|
|
11
12
|
export type EditionIssue = { level: "error" | "warning"; section?: string; message: string }
|
|
@@ -142,6 +143,19 @@ export function checkEdition(e: HomeEdition): EditionIssue[] {
|
|
|
142
143
|
illus(it.illustration)
|
|
143
144
|
})
|
|
144
145
|
break
|
|
146
|
+
case "showcase":
|
|
147
|
+
words("title", s.title)
|
|
148
|
+
words("lede", s.lede)
|
|
149
|
+
if (!s.stops.length) err("no stops", s.id)
|
|
150
|
+
s.stops.forEach((st, i) => {
|
|
151
|
+
words(`stop ${i + 1} kicker`, st.kicker)
|
|
152
|
+
words(`stop ${i + 1} title`, st.title, true)
|
|
153
|
+
words(`stop ${i + 1} text`, st.text, true)
|
|
154
|
+
const meta = SHOWCASE_SCREENS[st.screen]
|
|
155
|
+
if (!meta) err(`stop ${i + 1}: unknown screen "${st.screen}" — one of ${SHOWCASE_SCREEN_IDS.join(", ")}`, s.id)
|
|
156
|
+
else if (meta.product !== e.product) err(`stop ${i + 1}: "${st.screen}" is a screen of ${meta.product}, not of ${e.product}`, s.id)
|
|
157
|
+
})
|
|
158
|
+
break
|
|
145
159
|
case "command":
|
|
146
160
|
words("title", s.title)
|
|
147
161
|
words("lede", s.lede)
|
|
@@ -368,5 +368,399 @@
|
|
|
368
368
|
]
|
|
369
369
|
}
|
|
370
370
|
]
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"id": "cms-2026-11-vitrine",
|
|
374
|
+
"name": "Vitrine",
|
|
375
|
+
"product": "cms",
|
|
376
|
+
"date": "2026-11-13",
|
|
377
|
+
"note": "Constellation, with the workspace shown instead of told: under the hero, its four stops become four screens of the product at work — a card dragged across the board with the webhook and the Slack message it sets off, a cell edited in the table, a card open as a document, the same cards under three saved views. Drawn from the site's captures and its demo workspace; everything else is Constellation's.",
|
|
378
|
+
"sections": [
|
|
379
|
+
{
|
|
380
|
+
"id": "hero",
|
|
381
|
+
"kind": "hero",
|
|
382
|
+
"layout": "split",
|
|
383
|
+
"theme": "night",
|
|
384
|
+
"kicker": {
|
|
385
|
+
"en": "workspace · headless CMS · MCP",
|
|
386
|
+
"fr": "espace de travail · CMS headless · MCP"
|
|
387
|
+
},
|
|
388
|
+
"title": {
|
|
389
|
+
"en": "Write it once. *Read it everywhere.*",
|
|
390
|
+
"fr": "Écrit une fois. *Lu partout.*"
|
|
391
|
+
},
|
|
392
|
+
"lede": {
|
|
393
|
+
"en": "A workspace as comfortable as Notion, where every card is also an API. Your site, your AI assistant and your team’s tools read the rows your team moves, the moment they move. No export, no sync job, no per-seat bill.",
|
|
394
|
+
"fr": "Un espace de travail aussi confortable que Notion, dont chaque carte est aussi une API. Votre site, votre assistant IA et les outils de l’équipe lisent les lignes que votre équipe déplace, au moment où elle les déplace. Pas d’export, pas de synchronisation, pas de facture par siège."
|
|
395
|
+
},
|
|
396
|
+
"actions": [
|
|
397
|
+
{
|
|
398
|
+
"label": {
|
|
399
|
+
"en": "Start free",
|
|
400
|
+
"fr": "Commencer gratuitement"
|
|
401
|
+
},
|
|
402
|
+
"href": "https://cms.spunto.net/login",
|
|
403
|
+
"variant": "primary"
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"label": {
|
|
407
|
+
"en": "Read the docs",
|
|
408
|
+
"fr": "Lire la doc"
|
|
409
|
+
},
|
|
410
|
+
"href": "/docs",
|
|
411
|
+
"variant": "ghost"
|
|
412
|
+
}
|
|
413
|
+
],
|
|
414
|
+
"scene": {
|
|
415
|
+
"module": "orbits",
|
|
416
|
+
"params": {
|
|
417
|
+
"satellites": "cms",
|
|
418
|
+
"center": "product"
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"id": "workspace",
|
|
424
|
+
"kind": "showcase",
|
|
425
|
+
"theme": "paper",
|
|
426
|
+
"title": {
|
|
427
|
+
"en": "The part your team *opens every morning*.",
|
|
428
|
+
"fr": "Ce que votre équipe *ouvre chaque matin*."
|
|
429
|
+
},
|
|
430
|
+
"lede": {
|
|
431
|
+
"en": "Boards, tables, calendars and pages made of blocks, typed properties your team declares, a saved view for every question.",
|
|
432
|
+
"fr": "Kanbans, tableaux, calendriers et pages en blocs, des propriétés typées que l’équipe déclare, une vue enregistrée par question."
|
|
433
|
+
},
|
|
434
|
+
"stops": [
|
|
435
|
+
{
|
|
436
|
+
"kicker": {
|
|
437
|
+
"en": "Board",
|
|
438
|
+
"fr": "Kanban"
|
|
439
|
+
},
|
|
440
|
+
"title": {
|
|
441
|
+
"en": "Drag a card. *Everything downstream hears it.*",
|
|
442
|
+
"fr": "Déplacez une carte. *Tout ce qui suit l’apprend.*"
|
|
443
|
+
},
|
|
444
|
+
"text": {
|
|
445
|
+
"en": "Columns come from your statuses, cards carry their cover, tags and people. Dropping a card writes its new status: Slack gets a message, your site gets a signed webhook.",
|
|
446
|
+
"fr": "Les colonnes viennent de vos statuts, les cartes portent leur couverture, leurs étiquettes et leurs personnes. Déposer une carte écrit son nouveau statut : Slack reçoit un message, votre site un webhook signé."
|
|
447
|
+
},
|
|
448
|
+
"screen": "cms-board",
|
|
449
|
+
"layout": "wide"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"kicker": {
|
|
453
|
+
"en": "Table",
|
|
454
|
+
"fr": "Tableau"
|
|
455
|
+
},
|
|
456
|
+
"title": {
|
|
457
|
+
"en": "A spreadsheet that *knows its types*.",
|
|
458
|
+
"fr": "Un tableur qui *connaît ses types*."
|
|
459
|
+
},
|
|
460
|
+
"text": {
|
|
461
|
+
"en": "Every cell edits in place (a status, a person, a date, a set of tags), and the value is checked against the property’s type before it is written, not when a view later tries to read it.",
|
|
462
|
+
"fr": "Chaque cellule s’édite sur place (un statut, une personne, une date, des étiquettes), et la valeur est vérifiée contre le type de la propriété avant d’être écrite, pas quand une vue essaie de la lire."
|
|
463
|
+
},
|
|
464
|
+
"screen": "cms-table",
|
|
465
|
+
"layout": "split"
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"kicker": {
|
|
469
|
+
"en": "Page",
|
|
470
|
+
"fr": "Page"
|
|
471
|
+
},
|
|
472
|
+
"title": {
|
|
473
|
+
"en": "Every card is *a document*.",
|
|
474
|
+
"fr": "Chaque carte est *un document*."
|
|
475
|
+
},
|
|
476
|
+
"text": {
|
|
477
|
+
"en": "Cover, icon, headings, checklists, callouts, code and images, in a block format that cannot carry HTML, so there is nothing to sanitise when your site renders it.",
|
|
478
|
+
"fr": "Couverture, icône, titres, cases à cocher, encadrés, code et images, dans un format en blocs qui ne peut pas transporter de HTML : votre site n’a rien à assainir."
|
|
479
|
+
},
|
|
480
|
+
"screen": "cms-page",
|
|
481
|
+
"layout": "split"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"kicker": {
|
|
485
|
+
"en": "Views",
|
|
486
|
+
"fr": "Vues"
|
|
487
|
+
},
|
|
488
|
+
"title": {
|
|
489
|
+
"en": "One list, *as many views as questions*.",
|
|
490
|
+
"fr": "Une liste, *autant de vues que de questions*."
|
|
491
|
+
},
|
|
492
|
+
"text": {
|
|
493
|
+
"en": "A board for the weekly meeting, a table for the calendar, a list grouped by topic for the newsletter. Same cards, and the view your team saves is the one your site can send to the API.",
|
|
494
|
+
"fr": "Un kanban pour la réunion de la semaine, un tableau pour le calendrier, une liste groupée par thème pour la newsletter. Les mêmes cartes, et la vue que l’équipe enregistre est celle que votre site peut envoyer à l’API."
|
|
495
|
+
},
|
|
496
|
+
"screen": "cms-views",
|
|
497
|
+
"layout": "wide"
|
|
498
|
+
}
|
|
499
|
+
]
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"id": "measured",
|
|
503
|
+
"kind": "facts",
|
|
504
|
+
"theme": "night",
|
|
505
|
+
"title": {
|
|
506
|
+
"en": "What *we measured*.",
|
|
507
|
+
"fr": "Ce qu’on *a mesuré*."
|
|
508
|
+
},
|
|
509
|
+
"facts": [
|
|
510
|
+
"cms-keyset",
|
|
511
|
+
"cms-offset",
|
|
512
|
+
"cms-autosave"
|
|
513
|
+
]
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"id": "notion",
|
|
517
|
+
"kind": "compare",
|
|
518
|
+
"theme": "paper",
|
|
519
|
+
"title": {
|
|
520
|
+
"en": "Cheaper than Notion. *Faster than its API.*",
|
|
521
|
+
"fr": "Moins cher que Notion. *Plus rapide que son API.*"
|
|
522
|
+
},
|
|
523
|
+
"lede": {
|
|
524
|
+
"en": "Notion is a lovely editor and a tight CMS. Here is what your build runs into. Every Notion figure comes from Notion’s own pages.",
|
|
525
|
+
"fr": "Notion est un très bel éditeur et un CMS à l’étroit. Voici ce que votre build y rencontre. Chaque chiffre sur Notion vient de ses propres pages."
|
|
526
|
+
},
|
|
527
|
+
"them": {
|
|
528
|
+
"en": "Notion API",
|
|
529
|
+
"fr": "API Notion"
|
|
530
|
+
},
|
|
531
|
+
"us": {
|
|
532
|
+
"en": "Spunto CMS",
|
|
533
|
+
"fr": "Spunto CMS"
|
|
534
|
+
},
|
|
535
|
+
"rows": [
|
|
536
|
+
{
|
|
537
|
+
"label": {
|
|
538
|
+
"en": "Rate limit",
|
|
539
|
+
"fr": "Limite de débit"
|
|
540
|
+
},
|
|
541
|
+
"them": {
|
|
542
|
+
"en": "3 requests / s on average, on most plans",
|
|
543
|
+
"fr": "3 requêtes / s en moyenne, sur la plupart des offres"
|
|
544
|
+
},
|
|
545
|
+
"us": {
|
|
546
|
+
"en": "none today",
|
|
547
|
+
"fr": "aucune aujourd’hui"
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"label": {
|
|
552
|
+
"en": "A page and its body",
|
|
553
|
+
"fr": "Une page et son corps"
|
|
554
|
+
},
|
|
555
|
+
"them": {
|
|
556
|
+
"en": "one call per nesting level, 100 blocks each",
|
|
557
|
+
"fr": "un appel par niveau d’imbrication, 100 blocs chacun"
|
|
558
|
+
},
|
|
559
|
+
"us": {
|
|
560
|
+
"en": "one call, the whole document",
|
|
561
|
+
"fr": "un appel, le document entier"
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
"label": {
|
|
566
|
+
"en": "Images",
|
|
567
|
+
"fr": "Images"
|
|
568
|
+
},
|
|
569
|
+
"them": {
|
|
570
|
+
"en": "URLs that expire after an hour",
|
|
571
|
+
"fr": "des URL qui expirent au bout d’une heure"
|
|
572
|
+
},
|
|
573
|
+
"us": {
|
|
574
|
+
"en": "a stable id, cache it for good",
|
|
575
|
+
"fr": "un identifiant stable, à mettre en cache pour de bon"
|
|
576
|
+
}
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"label": {
|
|
580
|
+
"en": "Webhooks",
|
|
581
|
+
"fr": "Webhooks"
|
|
582
|
+
},
|
|
583
|
+
"them": {
|
|
584
|
+
"en": "a page id and an event type",
|
|
585
|
+
"fr": "un id de page et un type d’événement"
|
|
586
|
+
},
|
|
587
|
+
"us": {
|
|
588
|
+
"en": "the changed keys, before → after, signed",
|
|
589
|
+
"fr": "les clés modifiées, avant → après, signées"
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"label": {
|
|
594
|
+
"en": "Types for your code",
|
|
595
|
+
"fr": "Types pour votre code"
|
|
596
|
+
},
|
|
597
|
+
"them": {
|
|
598
|
+
"en": "an official JavaScript SDK",
|
|
599
|
+
"fr": "un SDK JavaScript officiel"
|
|
600
|
+
},
|
|
601
|
+
"us": {
|
|
602
|
+
"en": "any language with an OpenAPI generator",
|
|
603
|
+
"fr": "tout langage doté d’un générateur OpenAPI"
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
],
|
|
607
|
+
"source": "spuntodotnet/spunto-cms@89d131c apps/next/components/landing/copy.tsx:197-204 (fr 390-397), from apps/next/content/docs/guides/notion-as-a-cms.mdx (l. 22-70, each Notion cell linked to developers.notion.com: request-limits (3 req/s on most plans, 10 on Business and Enterprise), get-block-children, intro, file-object, webhooks) and content/docs/api/index.mdx § Rate limits (\"There are none today … not a promise\"); read 2026-11-08."
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"id": "seats",
|
|
611
|
+
"kind": "facts",
|
|
612
|
+
"theme": "signal",
|
|
613
|
+
"title": {
|
|
614
|
+
"en": "The tenth editor costs *what the first one did*.",
|
|
615
|
+
"fr": "Le dixième rédacteur coûte *ce qu’a coûté le premier*."
|
|
616
|
+
},
|
|
617
|
+
"facts": [
|
|
618
|
+
"cms-notion-plus",
|
|
619
|
+
"cms-notion-business"
|
|
620
|
+
]
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"id": "assistant",
|
|
624
|
+
"kind": "command",
|
|
625
|
+
"theme": "night",
|
|
626
|
+
"title": {
|
|
627
|
+
"en": "One address *for your assistant*.",
|
|
628
|
+
"fr": "Une adresse *pour votre assistant*."
|
|
629
|
+
},
|
|
630
|
+
"lede": {
|
|
631
|
+
"en": "Claude, ChatGPT, Cursor or Claude Code connect with one address and an OAuth consent screen. They read, search and write cards on your behalf, never above your role.",
|
|
632
|
+
"fr": "Claude, ChatGPT, Cursor ou Claude Code se branchent avec une adresse et un écran de consentement OAuth. Ils lisent, cherchent et écrivent des cartes en votre nom, jamais au-dessus de votre rôle."
|
|
633
|
+
},
|
|
634
|
+
"command": "claude mcp add --transport http spunto https://cms.spunto.net/mcp",
|
|
635
|
+
"caption": {
|
|
636
|
+
"en": "Claude Code · REST, webhooks and an OpenAPI spec for everything else",
|
|
637
|
+
"fr": "Claude Code · REST, webhooks et une spec OpenAPI pour tout le reste"
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"id": "faq",
|
|
642
|
+
"kind": "faq",
|
|
643
|
+
"theme": "paper",
|
|
644
|
+
"title": {
|
|
645
|
+
"en": "We’ve been asked.",
|
|
646
|
+
"fr": "On nous a posé la question."
|
|
647
|
+
},
|
|
648
|
+
"items": [
|
|
649
|
+
{
|
|
650
|
+
"q": {
|
|
651
|
+
"en": "What is Spunto CMS?",
|
|
652
|
+
"fr": "Qu’est-ce que Spunto CMS ?"
|
|
653
|
+
},
|
|
654
|
+
"a": {
|
|
655
|
+
"en": "A workspace in the style of Notion or ClickUp (lists of cards, a shared registry of typed properties, block-structured page bodies, saved views as boards, tables, lists and calendars) whose content is also consumable as a headless CMS. There is no export step: the rows a writer edits are the rows the REST API returns.",
|
|
656
|
+
"fr": "Un espace de travail dans l’esprit de Notion ou ClickUp (des listes de cartes, un registre partagé de propriétés typées, des corps de page en blocs, des vues enregistrées en kanban, tableau, liste ou calendrier), dont le contenu est aussi consommable comme un CMS headless. Pas d’étape d’export : les lignes qu’un rédacteur modifie sont celles que renvoie l’API REST."
|
|
657
|
+
}
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"q": {
|
|
661
|
+
"en": "How much does it cost?",
|
|
662
|
+
"fr": "Combien ça coûte ?"
|
|
663
|
+
},
|
|
664
|
+
"a": {
|
|
665
|
+
"en": "An account is free, and there is no per-seat price. For comparison, Notion prices its Plus and Business plans per member per month, billed annually: the figures are just above.",
|
|
666
|
+
"fr": "Un compte est gratuit, et il n’y a pas de prix par siège. Pour comparer, Notion facture ses offres Plus et Business par membre et par mois, à l’année : les chiffres sont juste au-dessus."
|
|
667
|
+
}
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"q": {
|
|
671
|
+
"en": "What does it plug into?",
|
|
672
|
+
"fr": "Sur quoi ça se branche ?"
|
|
673
|
+
},
|
|
674
|
+
"a": {
|
|
675
|
+
"en": "Your site over REST, with a typed client generated from /openapi.json, with guides for Next.js, Astro and Nuxt. AI assistants (Claude, ChatGPT, Cursor, Claude Code) over MCP at /mcp. Slack, Google Drive and GitHub through connectors installed from the marketplace. Notion databases through a replayable import. And anything that receives an HTTPS request, through signed webhooks.",
|
|
676
|
+
"fr": "Votre site en REST, avec un client typé généré depuis /openapi.json, avec des guides pour Next.js, Astro et Nuxt. Les assistants IA (Claude, ChatGPT, Cursor, Claude Code) en MCP sur /mcp. Slack, Google Drive et GitHub par des connecteurs installés depuis la marketplace. Les bases Notion par un import rejouable. Et tout ce qui reçoit une requête HTTPS, par des webhooks signés."
|
|
677
|
+
}
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
"q": {
|
|
681
|
+
"en": "Can content be created by a script or an AI agent?",
|
|
682
|
+
"fr": "Un script ou un agent IA peut-il créer du contenu ?"
|
|
683
|
+
},
|
|
684
|
+
"a": {
|
|
685
|
+
"en": "Yes: writing uses the same API a person’s session uses. A script or an assistant can create cards, set typed properties, write a block document and run a bulk update over a view definition. Every write appends to the workspace event log in the same transaction, so an event exists if and only if the change committed, and webhooks fire from that log.",
|
|
686
|
+
"fr": "Oui : l’écriture passe par la même API qu’une session humaine. Un script ou un assistant peut créer des cartes, renseigner des propriétés typées, écrire un document en blocs et lancer une mise à jour en masse sur une définition de vue. Chaque écriture s’ajoute au journal d’événements de l’espace dans la même transaction : un événement existe si et seulement si le changement a été validé, et les webhooks partent de ce journal."
|
|
687
|
+
}
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
"q": {
|
|
691
|
+
"en": "How are workspaces isolated from each other?",
|
|
692
|
+
"fr": "Comment les espaces sont-ils isolés les uns des autres ?"
|
|
693
|
+
},
|
|
694
|
+
"a": {
|
|
695
|
+
"en": "The scope comes from a verified membership, never from the URL, and PostgreSQL row-level security sits underneath as a fail-closed backstop. A non-member receives 404 rather than 403, so an identifier cannot be confirmed by enumeration. An API key carries its own workspace and role, and an installed app cannot exceed either its role or its scopes.",
|
|
696
|
+
"fr": "Le périmètre vient d’une appartenance vérifiée, jamais de l’URL, et la row-level security de PostgreSQL est en dessous comme filet fermé par défaut. Un non-membre reçoit un 404 plutôt qu’un 403 : un identifiant ne peut pas être confirmé par énumération. Une clé API porte son propre espace et son propre rôle, et une app installée ne peut dépasser ni son rôle ni ses scopes."
|
|
697
|
+
}
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
"q": {
|
|
701
|
+
"en": "What is not there yet?",
|
|
702
|
+
"fr": "Qu’est-ce qui manque encore ?"
|
|
703
|
+
},
|
|
704
|
+
"a": {
|
|
705
|
+
"en": "There is no scheduled publishing and no version history: a card has a draft and, once published, one published version. There is no full-text search over card bodies: search covers card titles and list names. Relations link cards but do not aggregate, as Notion’s rollups do. The full list is at /docs/limits.",
|
|
706
|
+
"fr": "Il n’y a ni publication programmée ni historique des versions : une carte a un brouillon et, une fois publiée, une version publiée. Il n’y a pas de recherche plein texte dans les corps des cartes : la recherche porte sur les titres des cartes et les noms des listes. Les relations relient des cartes mais n’agrègent rien, comme le font les rollups de Notion. La liste complète est sur /fr/docs/limits."
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
]
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
"id": "family",
|
|
713
|
+
"kind": "family",
|
|
714
|
+
"theme": "paper",
|
|
715
|
+
"title": {
|
|
716
|
+
"en": "Same universe, *different tools*.",
|
|
717
|
+
"fr": "Même univers, *outils différents*."
|
|
718
|
+
},
|
|
719
|
+
"lede": {
|
|
720
|
+
"en": "The rest of the Spunto family, each in its own colours. Same type, same grid, same care.",
|
|
721
|
+
"fr": "Le reste de la famille Spunto, chacun dans ses couleurs. Même typo, même grille, même soin."
|
|
722
|
+
},
|
|
723
|
+
"products": [
|
|
724
|
+
"cloud",
|
|
725
|
+
"lite",
|
|
726
|
+
"desktop",
|
|
727
|
+
"ci",
|
|
728
|
+
"search",
|
|
729
|
+
"ds",
|
|
730
|
+
"foyer"
|
|
731
|
+
]
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
"id": "ask",
|
|
735
|
+
"kind": "cta",
|
|
736
|
+
"theme": "night",
|
|
737
|
+
"title": {
|
|
738
|
+
"en": "Your team writes. *Everything else reads.*",
|
|
739
|
+
"fr": "Votre équipe écrit. *Tout le reste lit.*"
|
|
740
|
+
},
|
|
741
|
+
"lede": {
|
|
742
|
+
"en": "Open a workspace, declare the properties your content needs, and plug your site and your assistant into the same rows.",
|
|
743
|
+
"fr": "Ouvrez un espace, déclarez les propriétés dont votre contenu a besoin, et branchez votre site et votre assistant sur les mêmes lignes."
|
|
744
|
+
},
|
|
745
|
+
"actions": [
|
|
746
|
+
{
|
|
747
|
+
"label": {
|
|
748
|
+
"en": "Start free",
|
|
749
|
+
"fr": "Commencer gratuitement"
|
|
750
|
+
},
|
|
751
|
+
"href": "https://cms.spunto.net/login",
|
|
752
|
+
"variant": "primary"
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
"label": {
|
|
756
|
+
"en": "API reference",
|
|
757
|
+
"fr": "Référence de l’API"
|
|
758
|
+
},
|
|
759
|
+
"href": "https://cms.spunto.net/api/docs",
|
|
760
|
+
"variant": "ghost"
|
|
761
|
+
}
|
|
762
|
+
]
|
|
763
|
+
}
|
|
764
|
+
]
|
|
371
765
|
}
|
|
372
766
|
]
|
package/src/home/guide.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { ILLUSTRATION_CATALOG } from "../illustrations/catalog"
|
|
|
7
7
|
import { BRAND_PRODUCTS } from "../products"
|
|
8
8
|
import { HOME_EDITIONS, PUBLISHED_HOME } from "./editions"
|
|
9
9
|
import { MODULE3D_CATALOG } from "../three/catalog"
|
|
10
|
+
import { SHOWCASE_SCREENS } from "./showcase/catalog"
|
|
10
11
|
|
|
11
12
|
export function homeGuide(): string {
|
|
12
13
|
const facts = FACTS.map((f) => `- \`${f.id}\` — ${f.value.en} ${f.label.en} _(source: ${f.source})_`).join("\n")
|
|
@@ -15,6 +16,9 @@ export function homeGuide(): string {
|
|
|
15
16
|
const modules = Object.values(MODULE3D_CATALOG)
|
|
16
17
|
.map((m) => `- \`${m.id}\` (${m.name}) — ${m.story} Params: ${Object.entries(m.defaults).map(([k, v]) => `\`${k}\`=${JSON.stringify(v)}`).join(", ")}.`)
|
|
17
18
|
.join("\n")
|
|
19
|
+
const screens = Object.values(SHOWCASE_SCREENS)
|
|
20
|
+
.map((m) => `- \`${m.id}\` (${m.product}) — ${m.story}`)
|
|
21
|
+
.join("\n")
|
|
18
22
|
const editions = HOME_EDITIONS.map((e) => `- \`${e.id}\` « ${e.name} »${e.id === PUBLISHED_HOME ? " — **published**" : ""}: ${e.note}`).join("\n")
|
|
19
23
|
return `# Home editions — @spunto/brand-kit/home
|
|
20
24
|
|
|
@@ -36,6 +40,7 @@ type HomeEdition = { id: string /* kebab-case */; name: string; note: string; pr
|
|
|
36
40
|
hero { layout: "centered" | "split" | "band"; kicker?: Words; title: Words; lede?: Words; actions?: Action[]; illustration?: IllustrationId; scene?: Module3DRef }
|
|
37
41
|
facts { title?: Words; facts: FactId[] } // a figure is QUOTED by id, never typed
|
|
38
42
|
pillars { title?: Words; lede?: Words; items: { illustration?: IllustrationId; title: Words; text: Words }[] }
|
|
43
|
+
showcase { title?: Words; lede?: Words; stops: { kicker?: Words; title: Words; text: Words; screen: ShowcaseScreenId; layout?: "split" | "wide" }[] }
|
|
39
44
|
ways { title?: Words; lede?: Words; items: { kicker: Words; title: Words; text: Words; code?: string /* a real one */; chat?: { from: "you" | "agent"; text: Words }[]; marks?: MarkId[] }[] } // the ways in, a card each
|
|
40
45
|
pricing { title?: Words; lede?: Words; note?: Words } // the plan and the sizes — figures from facts.ts, never typed
|
|
41
46
|
mobile { kicker?: Words; title: Words; lede?: Words; points: Words[]; screen: { task: Words; project: string; harness: "claude" | "codex" | "mistral"; status: Words; state?: "live" | "done" | "failed"; events: ({ from: "you" | "agent" | "thinking"; text: Words } | { from: "steps"; text: Words; detail?: Words; failed?: Words; duration?: string } | { from: "tool"; name: string; text: string; duration?: string } | { from: "photos"; by: "you" | "agent"; shots: ("sketch" | "desktop" | "phone")[]; src?: string; caption?: Words })[] }; actions?: Action[] } // the iPhone app, a phone drawn with one task's session
|
|
@@ -81,6 +86,17 @@ wallpaper.
|
|
|
81
86
|
|
|
82
87
|
${modules}
|
|
83
88
|
|
|
89
|
+
## Product screens (\`showcase\`)
|
|
90
|
+
|
|
91
|
+
A \`showcase\` section shows the product at work, usually right under the hero: each stop is a title
|
|
92
|
+
and a text beside a screen — the product's interface redrawn by the kit, playing on a loop while it is
|
|
93
|
+
on screen, its layers moving with the scroll. A screen belongs to a product (an edition only shows its
|
|
94
|
+
own) and shows what the product really does; there is no screen to invent — to show something else,
|
|
95
|
+
one is drawn in \`src/home/showcase/\` from a capture of the product. Write the stop's words about what
|
|
96
|
+
plays on its screen.
|
|
97
|
+
|
|
98
|
+
${screens}
|
|
99
|
+
|
|
84
100
|
## Committed editions
|
|
85
101
|
|
|
86
102
|
${editions}
|
package/src/home/home.tsx
CHANGED
|
@@ -5,6 +5,7 @@ import { FACT_BY_ID } from "./facts-index"
|
|
|
5
5
|
import { Illustration } from "../illustrations"
|
|
6
6
|
import { Module3DView } from "../three/view"
|
|
7
7
|
import type { Module3DRef } from "../three/catalog"
|
|
8
|
+
import { ShowcaseScreen } from "./showcase/view"
|
|
8
9
|
import { BRAND_NEUTRALS, BRAND_PRODUCTS, brandProduct, plain, productHref, type BrandLocale } from "../products"
|
|
9
10
|
import { FONT, hexAlpha, surface, type Surface } from "../theme"
|
|
10
11
|
import { MARKS, MARK_COLORS } from "../marks"
|
|
@@ -184,6 +185,50 @@ function SectionView({ section, ctx, path: p }: { section: HomeSection; ctx: Ctx
|
|
|
184
185
|
</div>
|
|
185
186
|
</Band>
|
|
186
187
|
)
|
|
188
|
+
case "showcase":
|
|
189
|
+
return (
|
|
190
|
+
<Band s={s} id={section.id}>
|
|
191
|
+
{section.title && <H2 s={s} title={ctx.t(section.title, `${p}.title`, s.accent)} lede={ctx.t(section.lede, `${p}.lede`)} />}
|
|
192
|
+
<div style={{ display: "flex", flexDirection: "column", gap: "clamp(64px, 9cqi, 120px)", marginTop: section.title ? "clamp(40px, 6cqi, 72px)" : 0 }}>
|
|
193
|
+
{section.stops.map((st, i) => {
|
|
194
|
+
const wide = st.layout === "wide"
|
|
195
|
+
const title = (
|
|
196
|
+
<div style={{ display: "flex", flexDirection: "column", gap: 12 }}>
|
|
197
|
+
{st.kicker && (
|
|
198
|
+
<div style={{ display: "flex", alignItems: "center", gap: 10, fontFamily: FONT.mono, fontSize: 12, letterSpacing: "0.12em", textTransform: "uppercase", color: s.accent }}>
|
|
199
|
+
<span style={{ fontVariantNumeric: "tabular-nums", color: s.muted }}>{String(i + 1).padStart(2, "0")}</span>
|
|
200
|
+
{ctx.t(st.kicker, `${p}.stops.${i}.kicker`)}
|
|
201
|
+
</div>
|
|
202
|
+
)}
|
|
203
|
+
<h3 style={{ margin: 0, fontFamily: FONT.display, fontWeight: 400, fontSize: "clamp(26px, 3.1cqi, 36px)", lineHeight: 1.1, letterSpacing: "-0.015em", textWrap: "balance" }}>
|
|
204
|
+
{ctx.t(st.title, `${p}.stops.${i}.title`, s.accent)}
|
|
205
|
+
</h3>
|
|
206
|
+
</div>
|
|
207
|
+
)
|
|
208
|
+
const text = <p style={{ margin: 0, fontSize: 17, lineHeight: 1.6, color: s.muted, maxWidth: "52ch" }}>{ctx.t(st.text, `${p}.stops.${i}.text`)}</p>
|
|
209
|
+
const screen = <ShowcaseScreen screen={st.screen} locale={ctx.locale} product={ctx.product} theme={section.theme} palette={ctx.palette} label={`${plain(ctx.w(st.title))} — ${ctx.w(st.text)}`} />
|
|
210
|
+
// Wide: the words above, on two columns, and the screen across the page. Split: the words beside it, sides alternating.
|
|
211
|
+
return wide ? (
|
|
212
|
+
<div key={i} data-showcase-stop={st.screen} style={{ display: "flex", flexDirection: "column", gap: "clamp(24px, 3.4cqi, 40px)" }}>
|
|
213
|
+
<div style={{ display: "grid", gridTemplateColumns: "repeat(auto-fit, minmax(min(100%, 300px), 1fr))", gap: "16px 56px", alignItems: "end" }}>
|
|
214
|
+
{title}
|
|
215
|
+
{text}
|
|
216
|
+
</div>
|
|
217
|
+
{screen}
|
|
218
|
+
</div>
|
|
219
|
+
) : (
|
|
220
|
+
<div key={i} data-showcase-stop={st.screen} style={{ display: "flex", flexWrap: "wrap", flexDirection: i % 2 ? "row-reverse" : "row", gap: "28px 48px", alignItems: "center" }}>
|
|
221
|
+
<div style={{ flex: "1 1 260px", display: "flex", flexDirection: "column", gap: 16 }}>
|
|
222
|
+
{title}
|
|
223
|
+
{text}
|
|
224
|
+
</div>
|
|
225
|
+
<div style={{ flex: "3.2 1 520px", minWidth: 0 }}>{screen}</div>
|
|
226
|
+
</div>
|
|
227
|
+
)
|
|
228
|
+
})}
|
|
229
|
+
</div>
|
|
230
|
+
</Band>
|
|
231
|
+
)
|
|
187
232
|
case "roster":
|
|
188
233
|
return <RosterSection section={section} s={s} ctx={ctx} path={p} />
|
|
189
234
|
case "mobile":
|
package/src/home/index.ts
CHANGED
|
@@ -6,3 +6,5 @@ export { checkEdition } from "./check"
|
|
|
6
6
|
export type { EditionIssue } from "./check"
|
|
7
7
|
export type { HomeEdition, HomeSection, HomeSectionKind, HomeAction, MobileEvent, RosterBadge, Words } from "./types"
|
|
8
8
|
export { ALL_FACTS, FACT_BY_ID } from "./facts-index"
|
|
9
|
+
export { SHOWCASE_SCREENS, SHOWCASE_SCREEN_IDS } from "./showcase/catalog"
|
|
10
|
+
export type { ShowcaseScreenId, ShowcaseScreenMeta } from "./showcase/catalog"
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// The showcase screens, as data — ids, names, whose product each one shows, what plays on it.
|
|
2
|
+
//
|
|
3
|
+
// Pure (no React): check.ts reads it to validate an edition, guide.ts to tell an agent what exists,
|
|
4
|
+
// the studio's editor to fill its select. The screens themselves (cms/*.tsx) are client components,
|
|
5
|
+
// mounted by view.tsx.
|
|
6
|
+
//
|
|
7
|
+
// A screen is the product's interface redrawn by the kit, at work: it scales with the page, plays
|
|
8
|
+
// when it is looked at, and its layers move with the scroll — what a capture cannot do. The price is
|
|
9
|
+
// that it is a second drawing of an interface that lives elsewhere, so each one names the capture and
|
|
10
|
+
// the seed it was drawn from (`source`), and shows nothing the product doesn't do: when the product's
|
|
11
|
+
// screen changes, the drawing is redone from the new capture.
|
|
12
|
+
|
|
13
|
+
import type { BrandProductId } from "../../products"
|
|
14
|
+
|
|
15
|
+
export type ShowcaseScreenId = "cms-board" | "cms-table" | "cms-page" | "cms-views"
|
|
16
|
+
|
|
17
|
+
export type ShowcaseScreenMeta = {
|
|
18
|
+
id: ShowcaseScreenId
|
|
19
|
+
/** Whose interface it is: an edition only shows its own product's screens. */
|
|
20
|
+
product: BrandProductId
|
|
21
|
+
/** French name, as the studio shows it. */
|
|
22
|
+
name: string
|
|
23
|
+
/** What plays, in one sentence. */
|
|
24
|
+
story: string
|
|
25
|
+
/** The capture and the data it was drawn from. */
|
|
26
|
+
source: string
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const CMS_SOURCE = "spuntodotnet/spunto-cms@00155ca · apps/next/public/landing/*.webp, apps/api/src/scripts/vitrine.ts (l’espace de démo « Maison Lumen »)"
|
|
30
|
+
|
|
31
|
+
export const SHOWCASE_SCREENS: Record<ShowcaseScreenId, ShowcaseScreenMeta> = {
|
|
32
|
+
"cms-board": {
|
|
33
|
+
id: "cms-board",
|
|
34
|
+
product: "cms",
|
|
35
|
+
name: "Kanban",
|
|
36
|
+
story: "Le kanban de la liste Blog : une carte est prise, portée d’« En rédaction » à « Relecture », les compteurs suivent ; puis ce qui l’apprend — le webhook signé, le message Slack.",
|
|
37
|
+
source: CMS_SOURCE,
|
|
38
|
+
},
|
|
39
|
+
"cms-table": {
|
|
40
|
+
id: "cms-table",
|
|
41
|
+
product: "cms",
|
|
42
|
+
name: "Tableau",
|
|
43
|
+
story: "La même liste en tableau : un statut changé dans sa cellule, une étiquette ajoutée, et le registre des propriétés typées à côté.",
|
|
44
|
+
source: CMS_SOURCE,
|
|
45
|
+
},
|
|
46
|
+
"cms-page": {
|
|
47
|
+
id: "cms-page",
|
|
48
|
+
product: "cms",
|
|
49
|
+
name: "Carte ouverte",
|
|
50
|
+
story: "Une carte ouverte comme un document : couverture, propriétés, blocs ; une case se coche, un encadré s’écrit, la carte est publiée — et les blocs tels que le site les lit.",
|
|
51
|
+
source: CMS_SOURCE,
|
|
52
|
+
},
|
|
53
|
+
"cms-views": {
|
|
54
|
+
id: "cms-views",
|
|
55
|
+
product: "cms",
|
|
56
|
+
name: "Vues",
|
|
57
|
+
story: "Les trois vues enregistrées de la liste : les mêmes cartes passent du kanban au tableau puis à la liste groupée, avec la définition que chacune envoie à l’API.",
|
|
58
|
+
source: CMS_SOURCE,
|
|
59
|
+
},
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export const SHOWCASE_SCREEN_IDS = Object.keys(SHOWCASE_SCREENS) as ShowcaseScreenId[]
|