Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

feat(studio): the seven cover archetypes a decorated book starts from

Mauriceea5447056b8e
diff --git a/shared/src/book/book-archetypes.ts b/shared/src/book/book-archetypes.ts
new file mode 100644
index 000000000..f85402e25
--- /dev/null
+++ b/shared/src/book/book-archetypes.ts
@@ -0,0 +1,22 @@
+/**
+ * The seven cover archetypes a decorated book starts from: the Studio's cover
+ * templates are drawn in them, and the assistant's art direction names one.
+ *
+ * - spine-band: a bleed photo with a coloured band on the binding side.
+ * - poster-pop: a two-tone colour block, a heavy two-line title, a tilted inset photo.
+ * - cutout: a saturated page, organic cut-out shapes around a bordered portrait photo.
+ * - postcard: a pastel page, a landmark drawing, a display serif title and a script line.
+ * - grid-badge: a two by two photo grid with a round title badge at its centre.
+ * - minimal-serif: a white page, a large photo with a hairline, a very large thin serif title.
+ * - stamp-collage: photos in arches and stamps over a checker band, with a round postmark.
+ */
+export const BOOK_COVER_ARCHETYPES = [
+ 'spine-band',
+ 'poster-pop',
+ 'cutout',
+ 'postcard',
+ 'grid-badge',
+ 'minimal-serif',
+ 'stamp-collage',
+] as const;
+export type BookCoverArchetype = (typeof BOOK_COVER_ARCHETYPES)[number];
diff --git a/shared/src/index.ts b/shared/src/index.ts
index 7a9c2c184..717b0c2b2 100644
--- a/shared/src/index.ts
+++ b/shared/src/index.ts
@@ -183,6 +183,7 @@ export * from './book/book-text-findings';
export * from './book/book-text-describe';
export * from './book/book-text-ops.schema';
export * from './book/book-lockups';
+export * from './book/book-archetypes';
export * from './book/book-lockups.data';
export * from './book/auto/auto-types';
export * from './book/auto/auto-book';