Canvix — Free & open-source graphic design tool. A community-built Canva alternative with a drag-and-drop editor, templates, shapes, text, images & one-click export. Works on desktop, tablet & mobile.
TypeScript canva-alternativecanvasdesigndesign-tooldrag-and-dropeditorgraphic-designkonvanextjsopen-sourcereactself-hostedtemplatestypescript
feat(v0.8.0): Supabase-ready database & the 110-template library
Ashiq Hussain Mird80dd581e5f9
diff --git a/.env.example b/.env.exampleindex 94dca88..206f4ff 100644--- a/.env.example+++ b/.env.example@@ -1,15 +1,28 @@# Canvix — environment variables## ── Database (required) ────────────────────────────────────────-# PostgreSQL connection string. Works with any Postgres server:-# - local install: postgresql://user:password@localhost:5432/canvix-# - Docker: postgresql://user:password@localhost:5432/canvix-# - Neon (serverless): postgresql://user:[email protected]/canvix?sslmode=require-# - Supabase / RDS / etc: same format-#-# Local development quick-start (Docker):-# docker run --name canvix-pg -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=canvix -p 5432:5432 -d postgres:17-DATABASE_URL=postgresql://user:password@localhost:5432/canvix+# PostgreSQL connection string. Works with any Postgres server.+#+# RECOMMENDED · Supabase (free tier is plenty):+# 1. Create a project at supabase.com+# 2. Dashboard → Connect → copy the URI (either style below)+# 3. Replace [YOUR-PASSWORD] with your database password+#+# Transaction pooler (best for servers without IPv6):+# postgresql://postgres.abcdefghij:[YOUR-PASSWORD]@aws-0-eu-central-1.pooler.supabase.com:6543/postgres+# Direct connection (needs an IPv6 route on your host):+# postgresql://postgres:[YOUR-PASSWORD]@db.abcdefghij.supabase.co:5432/postgres+#+# You do NOT need to add sslmode or pgbouncer flags by hand — Canvix+# auto-applies them for Supabase (see src/lib/db-url.ts).+#+# Then run: npm run db:setup (migrations + 110 template seed, one command)+#+# Other hosts, same format:+# - Neon (serverless): postgresql://user:[email protected]/canvix+# - local install/Docker: postgresql://user:password@localhost:5432/canvix+# (docker run --name canvix-pg -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=canvix -p 5432:5432 -d postgres:17)+DATABASE_URL=postgresql://postgres.[YOUR-PROJECT-REF]:[YOUR-PASSWORD]@aws-0-eu-central-1.pooler.supabase.com:6543/postgres# ── AI provider (optional) ─────────────────────────────────────# Canvix works without any AI provider (local features keep working).diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 6cba1bd..e04d529 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -3,6 +3,63 @@All notable changes to Canvix will be documented in this file.The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).+## [0.8.0] — 2026-10-28++The "Supabase-ready & 110 Templates" release: switching your database to+Supabase (or any Postgres host) is now a one-command, self-diagnosing+operation, and the template library grows from 60 to **110** — still+100% free forever, no subscriptions, no paywalls.++### Database: Supabase-first infrastructure+- **Real migrations ship in the repo** (`prisma/migrations/0001_init`) —+ `npm run db:setup` applies them plus the template seed against any+ Postgres host: brand-new Supabase project, Neon, RDS, Docker or local.+ The SQL is idempotent (`IF NOT EXISTS` + guarded constraints), and the+ setup wrapper self-heals the "old database provisioned via `db push`"+ case by baselining the migration history (Prisma's documented path)+ instead of failing with P3005.+- **Smart connection handling** (`src/lib/db-url.ts`) — copy-pasting a+ Supabase URI just works: TLS is auto-required for remote hosts, and the+ transaction pooler (`…pooler.supabase.com:6543`) automatically receives+ `pgbouncer=true&connection_limit=1` so Prisma's prepared statements+ survive. Every auto-fix is logged so nothing is silent magic.+- **`GET /api/health`** — one-page diagnosis: env → connectivity →+ migration → seed, with the exact fix printed per step (including the+ Supabase IPv6/pooler hint when a direct connection can't route).+- **Template-opening failures now explain themselves** — the reported+ "could not open template" dead end is gone. API errors are classified+ (`DB_NOT_MIGRATED`, `DB_UNREACHABLE`, `DB_TIMEOUT`), the dashboard+ shows a persistent setup banner with the command to run, and toasts+ carry the fix text.+- **Quieter production Prisma logs** — query logging is dev-only now.+- `.env.example` rewritten Supabase-first; README quick start covers both+ pooler and direct connection styles.++### Template library: 60 → 110, all free+- **50 new original premium-grade templates** (designed in-house, styled+ after 2026 template-platform trends — nothing copied), organized as+ collections in the new `src/lib/templates/` module:+ - **social +14** — podcast quote card, real-estate new listing, bootcamp,+ restaurant daily special, quiet-luxury lookbook, webinar announcement,+ LinkedIn banner, recipe pin, birthday story, Black Friday, playlist+ cover, Monday motivation, flash-sale countdown story, grand opening+ - **presentation +8** — investor pitch (4-page system), marketing plan,+ course intro, agency portfolio, quarterly review, demo day, nonprofit+ impact, product launch keynote+ - **print +9** — wedding invitation, gym flyer, cafe menu, concert+ poster, yoga flyer, gift certificate, business card, open mic, moving+ sale+ - **documents +9** — executive & creative resumes, matching cover letter,+ project proposal, invoice, school newsletter, whitepaper, meeting+ agenda, press release+ - **thumbnails +7** — gaming, tech review, vlog, tutorial, podcast,+ fitness, cooking+ - **logos +3** — roastery badge, geometric tech mark, salon monogram+- `scripts/validate-templates.ts` — structural validator (unique slugs,+ pages/backgrounds/element geometry) wired for CI-style checks.+- Category totals now: social 33 · presentation 17 · print 19 ·+ documents 22 · thumbnails 12 · logos 7.+## [0.7.0] — 2026-10-28The "Fast & Free Forever" release: the canvas rendering hot path is rebuiltdiff --git a/README.md b/README.mdindex 2caa925..55b585f 100644--- a/README.md+++ b/README.md@@ -35,7 +35,7 @@ Pro tier, no subscription, no trial countdown, no watermark ransom, no"premium" element you can drag but not drop. The whole point of this projectis a design tool that never asks you for a credit card:-- All **60 templates** — including the entire premium collection — are free+- All **110 templates** — including the entire premium collection — are free- All **exports** (PNG, JPG, SVG, PDF, video) are free and unwatermarked- All **AI features** (magic edit, magic write, background removal, translate)run against your own API keys, so there is nothing for us to meter@@ -47,6 +47,40 @@ is right here.## 🎨 Features+### v0.8.0 — Supabase-ready infrastructure & the 110-template library++- **Supabase-first database support** — switching hosts (Neon → Supabase,+ or anything else) is now a two-command move:+ - **Real migrations** — `prisma/migrations` ships in the repo, so+ `npm run db:setup` creates the full schema on a brand-new database+ (Supabase, Neon, RDS, local…) and seeds the template library in one go+ - **Self-healing setup** — if your database was provisioned with the+ pre-v0.8 `db push` flow, `db:setup` detects it, baselines the migration+ history (Prisma's documented path) and continues instead of dead-ending+ - **Smart connection handling** (`src/lib/db-url.ts`) — a copy-pasted+ Supabase connection string just works: TLS is auto-required for remote+ hosts, and the transaction pooler (port 6543) automatically gets+ pgbouncer-compatible settings so prepared statements don't break+ - **`/api/health`** — a one-page diagnosis of env → connectivity →+ migration → seed, with the exact fix printed at each step+ - **Actionable errors everywhere** — “Could not open template” is dead:+ API failures now carry classified codes (`DB_NOT_MIGRATED`,+ `DB_UNREACHABLE`…), the dashboard shows a setup banner with the fix,+ and toasts tell you exactly what to run+- **The template library, ×1.8 — now 110 templates, all free** — 50 new+ 2026-trend originals across every category, authored in-house (podcast+ quote card, new-listing post, bootcamp, restaurant special, lookbook,+ webinar, LinkedIn banner, recipe pin, birthday story, Black Friday,+ playlist cover, flash-sale countdown, grand opening · investor pitch,+ marketing plan, course, agency portfolio, quarterly review, demo day,+ nonprofit impact, product launch · wedding invitation, gym flyer, cafe+ menu, concert poster, yoga flyer, gift certificate, business card, open+ mic, moving sale · executive & creative resumes, cover letter, proposal,+ invoice, newsletter, whitepaper, agenda, press release · 7 thumbnails ·+ 3 logos). The library lives in `src/lib/templates/` as collections so it+ can keep growing, and a validator (`scripts/validate-templates.ts`)+ checks every entry at CI time+### v0.7.0 — Fast & Free Forever: rendering performance & the premium template collection- **Rendering performance** — the canvas was rebuilt around three classic@@ -75,7 +109,7 @@ is right here.- **`perfectDrawEnabled: false`** on element nodes — skips Konva'shit-canvas perfection pass during drag/transform for a big interactive win- **Lazy template thumbnails** — preview stages mount via- IntersectionObserver (300 px pre-roll), so scrolling the 60-template+ IntersectionObserver (300 px pre-roll), so scrolling the 110-templatelibrary stays smooth; only visible cards own a canvas- Locked in by tests: `src/store/editor-store.test.ts` asserts the identityguarantees (untouched pages/elements keep references, history shares@@ -329,26 +363,38 @@ is right here.## 🚀 Quick start-> **Prerequisites:** [Node.js 20+](https://nodejs.org) or [Bun](https://bun.sh), and a [PostgreSQL](https://www.postgresql.org) database (local install, Docker, or a free serverless host like [Neon](https://neon.tech)).+> **Prerequisites:** [Node.js 20+](https://nodejs.org) (or [Bun](https://bun.sh)), and a PostgreSQL database — a free [Supabase](https://supabase.com) project is the easiest start (any other Postgres works too: Neon, RDS, Docker, local).```bashgit clone https://github.com/mir-ashiq/canvix.gitcd canvix-bun install # or: npm install+npm install # or: bun install-# set up the database-cp .env.example .env # then edit DATABASE_URL with your Postgres connection string-bun run db:push # create tables-bun run db:seed # load the built-in templates+# set up the database (get a connection string first — see below)+cp .env.example .env # then edit DATABASE_URL+npm run db:setup # migrations + 110 free templates, in one command-bun run dev # → http://localhost:3000+npm run dev # → http://localhost:3000```+**Getting your Supabase connection string:** Supabase dashboard →+**Connect** (or Project Settings → Database) → copy the URI. Both styles work+out of the box — Canvix auto-applies the right flags:++| Style | Looks like | Notes |+|---|---|---|+| Transaction pooler *(recommended)* | `…pooler.supabase.com:6543/postgres` | IPv4-friendly; Canvix auto-adds `pgbouncer=true&connection_limit=1` |+| Direct connection | `db.<ref>.supabase.co:5432/postgres` | IPv6-only on most plans — use it only if your host has an IPv6 route |++Replace `[YOUR-PASSWORD]` with your database password, and you're done. If+anything looks off later, open **`/api/health`** on your server — it checks+env → connectivity → migrations → seed and prints the exact fix.+Production build:```bash-bun run build-bun run start+npm run build+npm run start```## 🛠 Tech stack@@ -540,7 +586,8 @@ tool descriptions so agents pick the right format.- [x] Magic Suite: AI image editing, Magic Resize, Translate, PostgreSQL *(v0.4.0)*- [x] Magic Layers, real-time collaboration, comments, animations, SVG & video export, AI Assistant 2.0 *(v0.5.0)*- [x] MCP server (20 agent tools), tables, frames, curved text, embed cards *(v0.6.0)*-- [x] Rendering performance (structural sharing, memoized nodes, O(1) undo) & the 60-template premium collection, free forever *(v0.7.0)*+- [x] Rendering performance (structural sharing, memoized nodes, O(1) undo) & the premium collection *(v0.7.0)*+- [x] 110-template library, Supabase-first migrations & self-diagnosing setup *(v0.8.0)*- [ ] Accounts & per-design ownership (identity layer groundwork shipped in v0.5)- [ ] Yjs-grade offline merge for collaboration- [ ] Audio/video elements & Beat Syncdiff --git a/package-lock.json b/package-lock.jsonindex bf7b01a..7f47859 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,12 @@{"name": "canvix",- "version": "0.6.0",+ "version": "0.8.0","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "canvix",- "version": "0.6.0",+ "version": "0.8.0","dependencies": {"@imgly/background-removal": "^1.7.0","@prisma/client": "^6.11.1",@@ -43,6 +43,7 @@"eslint": "^9","eslint-config-next": "^16.1.1","tailwindcss": "^4",+ "tsx": "^4.23.15","tw-animate-css": "^1.3.5","typescript": "^5","vitest": "^5.0.5"@@ -343,6 +344,448 @@"tslib": "^2.4.0"}},+ "node_modules/@esbuild/aix-ppc64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz",+ "integrity": "sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.2.tgz",+ "integrity": "sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.2.tgz",+ "integrity": "sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-x64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.2.tgz",+ "integrity": "sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-arm64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.2.tgz",+ "integrity": "sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-x64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.2.tgz",+ "integrity": "sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-arm64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.2.tgz",+ "integrity": "sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-x64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.2.tgz",+ "integrity": "sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.2.tgz",+ "integrity": "sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.2.tgz",+ "integrity": "sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ia32": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.2.tgz",+ "integrity": "sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-loong64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.2.tgz",+ "integrity": "sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-mips64el": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.2.tgz",+ "integrity": "sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ppc64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.2.tgz",+ "integrity": "sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-riscv64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.2.tgz",+ "integrity": "sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-s390x": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.2.tgz",+ "integrity": "sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-x64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.2.tgz",+ "integrity": "sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-arm64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.2.tgz",+ "integrity": "sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-x64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.2.tgz",+ "integrity": "sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-arm64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.2.tgz",+ "integrity": "sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-x64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.2.tgz",+ "integrity": "sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openharmony-arm64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.2.tgz",+ "integrity": "sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/sunos-x64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.2.tgz",+ "integrity": "sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-arm64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.2.tgz",+ "integrity": "sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-ia32": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.2.tgz",+ "integrity": "sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-x64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.2.tgz",+ "integrity": "sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },"node_modules/@eslint-community/eslint-utils": {"version": "4.10.1","resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.10.1.tgz",@@ -5053,6 +5496,48 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/esbuild": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.2.tgz",+ "integrity": "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=18"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.28.2",+ "@esbuild/android-arm": "0.28.2",+ "@esbuild/android-arm64": "0.28.2",+ "@esbuild/android-x64": "0.28.2",+ "@esbuild/darwin-arm64": "0.28.2",+ "@esbuild/darwin-x64": "0.28.2",+ "@esbuild/freebsd-arm64": "0.28.2",+ "@esbuild/freebsd-x64": "0.28.2",+ "@esbuild/linux-arm": "0.28.2",+ "@esbuild/linux-arm64": "0.28.2",+ "@esbuild/linux-ia32": "0.28.2",+ "@esbuild/linux-loong64": "0.28.2",+ "@esbuild/linux-mips64el": "0.28.2",+ "@esbuild/linux-ppc64": "0.28.2",+ "@esbuild/linux-riscv64": "0.28.2",+ "@esbuild/linux-s390x": "0.28.2",+ "@esbuild/linux-x64": "0.28.2",+ "@esbuild/netbsd-arm64": "0.28.2",+ "@esbuild/netbsd-x64": "0.28.2",+ "@esbuild/openbsd-arm64": "0.28.2",+ "@esbuild/openbsd-x64": "0.28.2",+ "@esbuild/openharmony-arm64": "0.28.2",+ "@esbuild/sunos-x64": "0.28.2",+ "@esbuild/win32-arm64": "0.28.2",+ "@esbuild/win32-ia32": "0.28.2",+ "@esbuild/win32-x64": "0.28.2"+ }+ },"node_modules/escalade": {"version": "3.2.0","resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",@@ -5731,7 +6216,6 @@"os": ["darwin"],- "peer": true,"engines": {"node": "^8.16.0 || ^10.6.0 || >=11.0.0"}@@ -9642,6 +10126,25 @@"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==","license": "0BSD"},+ "node_modules/tsx": {+ "version": "4.23.15",+ "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.23.15.tgz",+ "integrity": "sha512-Yiex1Ovn8z2xPpOWckIiysV1SSyRMY9BkLF++q0yKiDxCqRhosKfMg3janKkiLBwZ5c/YryloKwGZcrEmtwxKw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "esbuild": "~0.28.0"+ },+ "bin": {+ "tsx": "dist/cli.mjs"+ },+ "engines": {+ "node": ">=18.0.0"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ }+ },"node_modules/tw-animate-css": {"version": "1.4.0","resolved": "https://registry.npmjs.org/tw-animate-css/-/tw-animate-css-1.4.0.tgz",diff --git a/package.json b/package.jsonindex 980f58d..711d99e 100644--- a/package.json+++ b/package.json@@ -1,8 +1,8 @@{"name": "canvix",- "version": "0.7.0",+ "version": "0.8.0","private": false,- "description": "Canvix — free & open-source graphic design tool. A community-built Canva alternative.",+ "description": "Canvix \u2014 free & open-source graphic design tool. A community-built Canva alternative.","scripts": {"dev": "next dev -p 3000 2>&1 | tee dev.log","build": "next build && cp -r .next/static .next/standalone/.next/ && cp -r public .next/standalone/",@@ -10,14 +10,16 @@"lint": "eslint .","db:push": "prisma db push","db:generate": "prisma generate",- "db:seed": "bun prisma/seed.ts",+ "db:seed": "tsx prisma/seed.ts","db:migrate": "prisma migrate dev","db:reset": "prisma migrate reset","test": "vitest run","test:watch": "vitest","test:ui": "playwright test","test:mcp": "bash scripts/mcp-e2e.sh",- "typecheck": "tsc --noEmit"+ "typecheck": "tsc --noEmit",+ "db:setup": "bash scripts/db-setup.sh",+ "db:migrate:deploy": "prisma migrate deploy"},"dependencies": {"@imgly/background-removal": "^1.7.0",@@ -55,8 +57,12 @@"eslint": "^9","eslint-config-next": "^16.1.1","tailwindcss": "^4",+ "tsx": "^4.23.15","tw-animate-css": "^1.3.5","typescript": "^5","vitest": "^5.0.5"+ },+ "prisma": {+ "seed": "tsx prisma/seed.ts"}-}+}\ No newline at end of filediff --git a/prisma/migrations/0001_init/migration.sql b/prisma/migrations/0001_init/migration.sqlnew file mode 100644index 0000000..d2f8017--- /dev/null+++ b/prisma/migrations/0001_init/migration.sql@@ -0,0 +1,139 @@+-- Canvix initial schema (all 7 tables + indexes)+-- Idempotent by design: safe to run on a fresh database AND on one that+-- was previously provisioned with `prisma db push` (v0.7 and earlier),+-- so switching hosts (e.g. Neon → Supabase) never dead-ends deploy.+-- Apply with: npx prisma migrate deploy++-- CreateSchema+CREATE SCHEMA IF NOT EXISTS "public";++-- CreateTable+CREATE TABLE IF NOT EXISTS "Design" (+ "id" TEXT NOT NULL,+ "name" TEXT NOT NULL DEFAULT 'Untitled design',+ "width" INTEGER NOT NULL DEFAULT 1080,+ "height" INTEGER NOT NULL DEFAULT 1080,+ "pages" JSONB NOT NULL DEFAULT '[]',+ "thumbnail" TEXT,+ "source" TEXT NOT NULL DEFAULT 'blank',+ "deletedAt" TIMESTAMP(3),+ "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,+ "updatedAt" TIMESTAMP(3) NOT NULL,++ CONSTRAINT "Design_pkey" PRIMARY KEY ("id")+);++-- CreateTable+CREATE TABLE IF NOT EXISTS "DesignVersion" (+ "id" TEXT NOT NULL,+ "designId" TEXT NOT NULL,+ "label" TEXT NOT NULL DEFAULT 'Version',+ "name" TEXT NOT NULL,+ "width" INTEGER NOT NULL,+ "height" INTEGER NOT NULL,+ "pages" JSONB NOT NULL,+ "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,++ CONSTRAINT "DesignVersion_pkey" PRIMARY KEY ("id")+);++-- CreateTable+CREATE TABLE IF NOT EXISTS "Template" (+ "id" TEXT NOT NULL,+ "slug" TEXT NOT NULL,+ "name" TEXT NOT NULL,+ "category" TEXT NOT NULL,+ "width" INTEGER NOT NULL,+ "height" INTEGER NOT NULL,+ "pages" JSONB NOT NULL,+ "accent" TEXT NOT NULL DEFAULT '#00C4CC',+ "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,++ CONSTRAINT "Template_pkey" PRIMARY KEY ("id")+);++-- CreateTable+CREATE TABLE IF NOT EXISTS "DesignEvent" (+ "id" BIGSERIAL NOT NULL,+ "designId" TEXT NOT NULL,+ "actorId" TEXT NOT NULL,+ "kind" TEXT NOT NULL,+ "payload" JSONB NOT NULL,+ "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,++ CONSTRAINT "DesignEvent_pkey" PRIMARY KEY ("id")+);++-- CreateTable+CREATE TABLE IF NOT EXISTS "Presence" (+ "id" TEXT NOT NULL,+ "designId" TEXT NOT NULL,+ "name" TEXT NOT NULL,+ "color" TEXT NOT NULL,+ "cursor" JSONB,+ "lastSeen" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,++ CONSTRAINT "Presence_pkey" PRIMARY KEY ("id")+);++-- CreateTable+CREATE TABLE IF NOT EXISTS "Comment" (+ "id" TEXT NOT NULL,+ "designId" TEXT NOT NULL,+ "pageId" TEXT NOT NULL,+ "x" DOUBLE PRECISION NOT NULL,+ "y" DOUBLE PRECISION NOT NULL,+ "elementId" TEXT,+ "authorId" TEXT NOT NULL,+ "authorName" TEXT NOT NULL,+ "authorColor" TEXT NOT NULL,+ "body" TEXT NOT NULL,+ "parentId" TEXT,+ "resolved" BOOLEAN NOT NULL DEFAULT false,+ "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,+ "updatedAt" TIMESTAMP(3) NOT NULL,++ CONSTRAINT "Comment_pkey" PRIMARY KEY ("id")+);++-- CreateTable+CREATE TABLE IF NOT EXISTS "AIUsage" (+ "id" TEXT NOT NULL,+ "feature" TEXT NOT NULL,+ "provider" TEXT NOT NULL,+ "ok" BOOLEAN NOT NULL DEFAULT true,+ "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,++ CONSTRAINT "AIUsage_pkey" PRIMARY KEY ("id")+);++-- CreateIndex+CREATE INDEX IF NOT EXISTS "DesignVersion_designId_createdAt_idx" ON "DesignVersion"("designId", "createdAt" DESC);++-- CreateIndex+CREATE UNIQUE INDEX IF NOT EXISTS "Template_slug_key" ON "Template"("slug");++-- CreateIndex+CREATE INDEX IF NOT EXISTS "DesignEvent_designId_id_idx" ON "DesignEvent"("designId", "id" DESC);++-- CreateIndex+CREATE INDEX IF NOT EXISTS "Presence_designId_lastSeen_idx" ON "Presence"("designId", "lastSeen");++-- CreateIndex+CREATE UNIQUE INDEX IF NOT EXISTS "Presence_designId_id_key" ON "Presence"("designId", "id");++-- CreateIndex+CREATE INDEX IF NOT EXISTS "Comment_designId_createdAt_idx" ON "Comment"("designId", "createdAt");++-- CreateIndex+CREATE INDEX IF NOT EXISTS "Comment_designId_resolved_idx" ON "Comment"("designId", "resolved");++-- CreateIndex+CREATE INDEX IF NOT EXISTS "AIUsage_createdAt_idx" ON "AIUsage"("createdAt");++-- AddForeignKey+DO $$ BEGIN+ ALTER TABLE "DesignVersion" ADD CONSTRAINT "DesignVersion_designId_fkey" FOREIGN KEY ("designId") REFERENCES "Design"("id") ON DELETE CASCADE ON UPDATE CASCADE;+EXCEPTION WHEN duplicate_object THEN NULL;+END $$;+diff --git a/prisma/migrations/migration_lock.toml b/prisma/migrations/migration_lock.tomlnew file mode 100644index 0000000..2fe25d8--- /dev/null+++ b/prisma/migrations/migration_lock.toml@@ -0,0 +1 @@+provider = "postgresql"diff --git a/prisma/seed.ts b/prisma/seed.tsindex d3e88f2..6d4e75b 100644--- a/prisma/seed.ts+++ b/prisma/seed.ts@@ -1,7 +1,11 @@// Seed the Canvix database with built-in templates.-// Run: bun run db:seed+// Run: npm run db:seed (or as part of: npm run db:setup)import { PrismaClient, Prisma } from '@prisma/client'import { TEMPLATES } from '../src/lib/templates'+import { normalizeDatabaseUrl } from '../src/lib/db-url'++// v0.8: Supabase-ready — apply sslmode/pgbouncer defaults before connecting.+process.env.DATABASE_URL = normalizeDatabaseUrl(process.env.DATABASE_URL)const db = new PrismaClient()diff --git a/scripts/db-check.ts b/scripts/db-check.tsnew file mode 100644index 0000000..846fb34--- /dev/null+++ b/scripts/db-check.ts@@ -0,0 +1,33 @@+// scripts/db-check.ts — tiny Prisma-based SQL checker used by verify-db-setup.sh+// Usage: npx tsx scripts/db-check.ts <DATABASE_URL> <json-spec>+// { "sql": "SELECT COUNT(*)::int AS c FROM \"Template\"", "expectField": "c", "expect": 110 }+import { PrismaClient } from '@prisma/client'++async function main() {+ const url = process.argv[2]+ const spec = JSON.parse(process.argv[3]) as {+ sql: string+ expectField?: string+ expect?: number | string+ label?: string+ }+ const db = new PrismaClient({ datasources: { db: { url } } })+ try {+ const rows = await db.$queryRawUnsafe(spec.sql) as Array<Record<string, unknown>>+ if (spec.expectField !== undefined) {+ const got = rows[0]?.[spec.expectField]+ const want = spec.expect+ const ok = String(got) === String(want)+ console.log(`${ok ? '✓' : '✗'} ${spec.label ?? spec.sql} → ${got} (want ${want})`)+ process.exit(ok ? 0 : 1)+ }+ console.log('✓ ' + (spec.label ?? 'query') + ' → ' + JSON.stringify(rows[0] ?? null))+ process.exit(0)+ } catch (e) {+ console.error('✗ ' + (spec.label ?? spec.sql) + ' → ' + (e as Error).message.slice(0, 200))+ process.exit(1)+ } finally {+ await db.$disconnect()+ }+}+main()diff --git a/scripts/db-setup.sh b/scripts/db-setup.shnew file mode 100755index 0000000..e889d53--- /dev/null+++ b/scripts/db-setup.sh@@ -0,0 +1,53 @@+#!/bin/bash+# scripts/db-setup.sh — one command to point Canvix at ANY Postgres host+# (Supabase, Neon, RDS, local…) and end up with a working database.+#+# npm run db:setup+#+# What it does, in order:+# 1. prisma migrate deploy+# - fresh database → creates all tables/indexes+# - already-migrated database → no-op ("No pending migrations")+# - db-push-prepared database (pre-v0.8 setups, e.g. a Neon DB you+# kept after moving to Supabase) → Prisma exits P3005; we then+# baseline the initial migration (mark it applied) and re-run,+# which is Prisma's documented path for adopting migrations on+# an existing schema.+# 2. seed the built-in template library (idempotent upserts — safe to+# re-run any time, it also refreshes templates after upgrades).+set -u+cd "$(dirname "$0")/.."++MIGRATION="${1:-0001_init}"++echo "── Canvix database setup ──────────────────────────────"+echo " DATABASE_URL host: $(node -e "try{const u=new URL(process.env.DATABASE_URL||'');console.log(u.hostname)}catch{console.log('(unset)')}")"++echo " [1/2] applying migrations…"+if npx prisma migrate deploy; then+ echo " migrations: ok"+else+ RC=$?+ if [ "$RC" -eq 5 ] || [ "$RC" -eq 1 ]; then+ # P3005 (schema not empty, no migration history) comes back as exit 5+ # from migrate deploy; older CLIs used 1. Try the baseline recovery.+ echo " existing schema without migration history detected — baselining…"+ if npx prisma migrate resolve --applied "$MIGRATION"; then+ npx prisma migrate deploy && echo " migrations: ok (baselined)" || exit 1+ else+ echo " migrate deploy failed and baselining did not apply."+ echo " If this is a fresh database, check DATABASE_URL / credentials."+ echo " Full diagnosis: start the app and open /api/health"+ exit "$RC"+ fi+ else+ echo " migrate deploy failed (exit $RC). Check DATABASE_URL / network / password."+ echo " Full diagnosis: start the app and open /api/health"+ exit "$RC"+ fi+fi++echo " [2/2] seeding the template library…"+npx tsx prisma/seed.ts || exit 1++echo "── done. Your database is ready: 110 templates, all free. ──"diff --git a/scripts/validate-templates.ts b/scripts/validate-templates.tsnew file mode 100644index 0000000..bb25a74--- /dev/null+++ b/scripts/validate-templates.ts@@ -0,0 +1,24 @@+// Template library validator — run: npx tsx scripts/validate-templates.ts+import { TEMPLATES } from '../src/lib/templates'++const byCat: Record<string, number> = {}+let problems = 0+const seen = new Set<string>()+for (const t of TEMPLATES) {+ byCat[t.category] = (byCat[t.category] ?? 0) + 1+ if (seen.has(t.slug)) { problems++; console.error('DUPLICATE SLUG:', t.slug) }+ seen.add(t.slug)+ if (!t.pages.length) { problems++; console.error('NO PAGES:', t.slug) }+ for (const p of t.pages) {+ if (!p.background) { problems++; console.error('PAGE WITHOUT BG:', t.slug) }+ for (const el of p.elements as unknown as Array<Record<string, unknown>>) {+ if (typeof el.x !== 'number' || typeof el.y !== 'number') { problems++; console.error('BAD XY:', t.slug, String(el.type)) }+ if (!el.id) { problems++; console.error('NO ID:', t.slug, String(el.type)) }+ }+ }+}+console.log('TOTAL:', TEMPLATES.length)+console.log('by category:', JSON.stringify(byCat, null, 0))+console.log('premium badges:', TEMPLATES.filter((t) => t.badge === 'premium').length)+console.log('problems:', problems)+process.exit(problems ? 1 : 0)diff --git a/src/app/api/designs/route.ts b/src/app/api/designs/route.tsindex a5b6c53..4cd0447 100644--- a/src/app/api/designs/route.ts+++ b/src/app/api/designs/route.ts@@ -1,6 +1,7 @@import { NextRequest, NextResponse } from 'next/server'import { Prisma } from '@prisma/client'import { db } from '@/lib/db'+import { dbErrorResponse } from '@/lib/db-errors'// Normalise incoming pages payload (accepts object or legacy JSON string)// into a value suitable for the Postgres jsonb column.@@ -33,8 +34,7 @@ export async function GET(req: NextRequest) {})return NextResponse.json(designs)} catch (error) {- console.error('GET /api/designs failed', error)- return NextResponse.json({ error: 'Failed to list designs' }, { status: 500 })+ return dbErrorResponse(error, 'GET /api/designs')}}@@ -54,7 +54,8 @@ export async function POST(req: NextRequest) {})return NextResponse.json(design, { status: 201 })} catch (error) {- console.error('POST /api/designs failed', error)- return NextResponse.json({ error: 'Failed to create design' }, { status: 500 })+ // v0.8: template-opening failures get a classified, actionable payload+ // (DB_NOT_MIGRATED after a host switch etc.) instead of a bare 500.+ return dbErrorResponse(error, 'POST /api/designs')}}diff --git a/src/app/api/health/route.ts b/src/app/api/health/route.tsnew file mode 100644index 0000000..8e01f02--- /dev/null+++ b/src/app/api/health/route.ts@@ -0,0 +1,104 @@+import { NextResponse } from 'next/server'+import { db } from '@/lib/db'+import { describeDatabaseUrl } from '@/lib/db-url'++// GET /api/health — one-shot setup diagnostics.+// Tells you whether the database is reachable, migrated and seeded,+// and prints the exact fix when it is not. Point a browser here first+// whenever designs/templates fail to open after a host switch+// (e.g. Neon → Supabase).++const REQUIRED_TABLES = [+ 'Design',+ 'DesignVersion',+ 'Template',+ 'DesignEvent',+ 'Presence',+ 'Comment',+ 'AIUsage',+] as const++export async function GET() {+ const url = process.env.DATABASE_URL+ const info = describeDatabaseUrl(url)++ // 1. no DATABASE_URL at all+ if (!url) {+ return NextResponse.json(+ {+ ok: false,+ step: 'env',+ error: 'DATABASE_URL is not set',+ fix: 'Copy .env.example to .env and put your Postgres/Supabase connection string in it.',+ },+ { status: 503 }+ )+ }++ // 2. reachable at all?+ try {+ await db.$queryRaw`SELECT 1`+ } catch (error) {+ const message = error instanceof Error ? error.message : String(error)+ const poolerHint =+ info.kind === 'supabase-direct'+ ? ' Tip: Supabase direct connections (db.<ref>.supabase.co:5432) are IPv6-only on most plans — use the transaction pooler URL (…pooler.supabase.com:6543) if the host has no IPv6 route.'+ : ''+ return NextResponse.json(+ {+ ok: false,+ step: 'connect',+ database: { kind: info.kind, host: info.host, database: info.database },+ error: 'Cannot connect to the database',+ detail: message.slice(0, 300),+ fix: `Check the URL, database password and network access.${poolerHint}`,+ },+ { status: 503 }+ )+ }++ // 3. migrated? (all tables present)+ const rows = await db.$queryRaw<{ table_name: string }[]>`+ SELECT table_name FROM information_schema.tables+ WHERE table_schema = 'public'+ `+ const present = new Set(rows.map((r) => r.table_name))+ const missing = REQUIRED_TABLES.filter((t) => !present.has(t))+ if (missing.length) {+ return NextResponse.json(+ {+ ok: false,+ step: 'migrate',+ database: { kind: info.kind, host: info.host, database: info.database },+ error: `Missing tables: ${missing.join(', ')}`,+ fix: 'Run npm run db:setup (applies migrations + seeds the template library).',+ },+ { status: 503 }+ )+ }++ // 4. seeded? (template library loaded)+ const [templateCount] = await db.$queryRaw<{ count: bigint }[]>`+ SELECT COUNT(*)::bigint AS count FROM "Template"+ `+ const templates = Number(templateCount?.count ?? 0)+ if (templates === 0) {+ return NextResponse.json(+ {+ ok: false,+ step: 'seed',+ database: { kind: info.kind, host: info.host, database: info.database },+ error: 'Template table is empty',+ fix: 'Run npm run db:seed to load the built-in template library.',+ },+ { status: 503 }+ )+ }++ // 5. all green+ return NextResponse.json({+ ok: true,+ database: { kind: info.kind, host: info.host, database: info.database },+ templates,+ })+}diff --git a/src/app/api/templates/route.ts b/src/app/api/templates/route.tsindex 980ecde..bcb6ca6 100644--- a/src/app/api/templates/route.ts+++ b/src/app/api/templates/route.ts@@ -1,5 +1,6 @@import { NextResponse } from 'next/server'import { db } from '@/lib/db'+import { dbErrorResponse } from '@/lib/db-errors'// GET /api/templates — built-in template library (from DB, falls back empty)export async function GET() {@@ -20,7 +21,6 @@ export async function GET() {})))} catch (error) {- console.error('GET /api/templates failed', error)- return NextResponse.json({ error: 'Failed to list templates' }, { status: 500 })+ return dbErrorResponse(error, 'GET /api/templates')}}diff --git a/src/components/dashboard/Dashboard.tsx b/src/components/dashboard/Dashboard.tsxindex 2cc41df..cf396f6 100644--- a/src/components/dashboard/Dashboard.tsx+++ b/src/components/dashboard/Dashboard.tsx@@ -25,6 +25,7 @@ import {CircleHelp,Info,Heart,+ AlertTriangle,} from 'lucide-react'import { useAppStore } from '@/store/app-store'import { useEditorStore } from '@/store/editor-store'@@ -38,6 +39,7 @@ import { createPage, TEMPLATE_CATEGORIES, type TemplateRecord } from '@/lib/typeimport { PRESET_SIZES } from '@/lib/editor-utils'import { cn } from '@/lib/utils'import {+ ApiError,createDesign,deleteDesign,deleteDesignForever,@@ -82,11 +84,29 @@ function newBlankPages() {return [createPage()]}+/** v0.8: translate server-side DB trouble into a toast that says what to DO+ * (the #1 confusion after switching database hosts, e.g. Neon → Supabase). */+function apiErrorToast(error: unknown, fallbackTitle: string) {+ if (error instanceof ApiError) {+ const detail =+ error.code === 'DB_NOT_MIGRATED'+ ? ' — run npm run db:setup once'+ : error.code === 'DB_UNREACHABLE'+ ? ' — check DATABASE_URL (see /api/health)'+ : error.fix+ ? ` — ${error.fix}`+ : ''+ toast({ title: `${error.message}${detail}`, variant: 'destructive' })+ } else {+ toast({ title: fallbackTitle, variant: 'destructive' })+ }+}+export function Dashboard() {const goLanding = useAppStore((s) => s.goLanding)const openEditor = useAppStore((s) => s.openEditor)const loadEditorDesign = useEditorStore((s) => s.loadDesign)- const { designs, loading, refresh } = useDesigns()+ const { designs, loading, refresh, dbIssue } = useDesigns()const isMobile = useIsMobile()const [helpOpen, setHelpOpen] = useState(false)@@ -176,8 +196,8 @@ export function Dashboard() {})openEditor(record)loadEditorDesign(record)- } catch {- toast({ title: 'Could not create design', variant: 'destructive' })+ } catch (error) {+ apiErrorToast(error, 'Could not create design')} finally {setCreating(false)}@@ -195,8 +215,10 @@ export function Dashboard() {})openEditor(record)loadEditorDesign(record)- } catch {- toast({ title: 'Could not open template', variant: 'destructive' })+ } catch (error) {+ // v0.8: “Could not open template” now explains itself (migration/host+ // switch issues include the exact fix instead of a dead end).+ apiErrorToast(error, 'Could not open template')} finally {setCreating(false)}@@ -491,6 +513,24 @@ export function Dashboard() {{/* ── AI agents (MCP) ── */}<McpCard />+ {/* ── v0.8: database setup banner (host switch / missing migration) ── */}+ {dbIssue && (+ <section className="mt-6 rounded-xl border border-amber-400/30 bg-amber-400/10 p-4 flex items-start gap-3">+ <AlertTriangle className="size-5 text-amber-300 shrink-0 mt-0.5" />+ <div className="text-sm">+ <p className="font-semibold text-amber-200">Database needs attention</p>+ <p className="text-white/70 mt-1">+ Designs and templates can’t be saved until the database is set up on this host.+ Run <code className="rounded bg-black/40 px-1.5 py-0.5 text-amber-200">npm run db:setup</code> in the project+ (migrations + template seed), then reload. Full diagnosis:{' '}+ <a href="/api/health" target="_blank" rel="noreferrer" className="underline text-amber-200 hover:text-amber-100">+ /api/health+ </a>+ </p>+ </div>+ </section>+ )}+{/* ── Recent designs ── */}<section id="cv-recents" className="pt-12 scroll-mt-20"><div className="flex items-center justify-between flex-wrap gap-3">diff --git a/src/components/dashboard/hooks.ts b/src/components/dashboard/hooks.tsindex 786133b..51d047f 100644--- a/src/components/dashboard/hooks.ts+++ b/src/components/dashboard/hooks.ts@@ -20,15 +20,46 @@ function toRecord(row: Record<string, unknown>): DesignRecord {return { ...(row as unknown as DesignRecord), pages: pages as PageData[] }}+/** v0.8: fetch a JSON error body if the API produced one (server sends+ * { error, code, fix } for database trouble) so the UI can show the fix. */+async function readApiError(res: Response): Promise<{ message: string; code?: string; fix?: string }> {+ try {+ const body = (await res.json()) as { error?: string; code?: string; fix?: string }+ return { message: body.error ?? 'Request failed', code: body.code, fix: body.fix }+ } catch {+ return { message: `Request failed (${res.status})` }+ }+}++export class ApiError extends Error {+ code?: string+ fix?: string+ constructor(message: string, code?: string, fix?: string) {+ super(message)+ this.code = code+ this.fix = fix+ }+}+export function useDesigns() {const [designs, setDesigns] = useState<DesignMeta[] | null>(null)const [loading, setLoading] = useState(true)+ // v0.8: null = healthy; otherwise an error code/message from the API+ const [dbIssue, setDbIssue] = useState<string | null>(null)const refresh = useCallback(async () => {try {const res = await fetch('/api/designs', { cache: 'no-store' })- if (res.ok) setDesigns(await res.json())+ if (res.ok) {+ setDesigns(await res.json())+ } else {+ // v0.8: surface DB setup trouble (host switch, missing migration…)+ const err = await readApiError(res)+ setDbIssue(err.code ?? err.message)+ setDesigns([])+ }} catch {+ setDbIssue('NETWORK')setDesigns([])} finally {setLoading(false)@@ -42,7 +73,7 @@ export function useDesigns() {void Promise.resolve().then(() => refresh())}, [refresh])- return { designs, loading, refresh }+ return { designs, loading, refresh, dbIssue, clearDbIssue: () => setDbIssue(null) }}export async function createDesign(opts: {@@ -63,13 +94,19 @@ export async function createDesign(opts: {source: opts.source ?? 'blank',}),})- if (!res.ok) throw new Error('Failed to create design')+ if (!res.ok) {+ const err = await readApiError(res)+ throw new ApiError(err.message, err.code, err.fix)+ }return toRecord(await res.json())}export async function fetchDesign(id: string): Promise<DesignRecord> {const res = await fetch(`/api/designs/${id}`, { cache: 'no-store' })- if (!res.ok) throw new Error('Failed to fetch design')+ if (!res.ok) {+ const err = await readApiError(res)+ throw new ApiError(err.message, err.code, err.fix)+ }return toRecord(await res.json())}diff --git a/src/components/editor/canvas/use-loaded-image.ts b/src/components/editor/canvas/use-loaded-image.tsindex 1b53051..d93f259 100644--- a/src/components/editor/canvas/use-loaded-image.ts+++ b/src/components/editor/canvas/use-loaded-image.ts@@ -1,17 +1,21 @@'use client'-import { useEffect, useState } from 'react'+import { useCallback, useSyncExternalStore } from 'react'// ── v0.7 rendering performance: shared image cache ────────────// Module-level cache so images decode once per URL, no matter how many// nodes mount/unmount them (page switching, thumbnails, duplicated images).// In-flight loads are deduplicated; failures are remembered (negative cache)// so a broken URL can't re-trigger a request loop on every render.+//+// v0.8: exposed through useSyncExternalStore — the cache IS an external+// store, so React gets cache-change notifications without effect-time+// setState (cleaner renders, lint-clean, hydration-safe).interface CacheEntry {image: HTMLImageElement | nullready: boolean- listeners: Set<(image: HTMLImageElement | null) => void>+ listeners: Set<() => void>}const cache = new Map<string, CacheEntry>()@@ -29,7 +33,7 @@ function load(src: string): CacheEntry {if (!e) returne.image = imagee.ready = true- for (const fn of e.listeners) fn(image)+ for (const fn of e.listeners) fn()e.listeners.clear()// keep at most ~300 decoded images; drop the oldest entriesif (cache.size > 300) {@@ -43,36 +47,30 @@ function load(src: string): CacheEntry {return entry}+const noop = () => {}+/** Loads an HTMLImageElement for use inside Konva. Supports dataURLs and* CORS-friendly URLs. Results are cached per URL across the whole app. */export function useLoadedImage(src?: string): HTMLImageElement | null {- const [image, setImage] = useState<HTMLImageElement | null>(() => {- if (!src) return null- const entry = cache.get(src)- return entry?.ready ? entry.image : null- })+ // subscribe is stable per src — resubscription only happens when src changes+ const subscribe = useCallback(+ (onChange: () => void) => {+ if (!src) return noop+ const entry = load(src) // starts the fetch on first mount (effect context)+ if (entry.ready) return noop // already settled — snapshot read is enough+ entry.listeners.add(onChange)+ return () => {+ entry.listeners.delete(onChange)+ }+ },+ [src]+ )- useEffect(() => {- if (!src) {- setImage(null)- return- }- const entry = load(src)- if (entry.ready) {- setImage(entry.image)- return- }- // still loading — subscribe- let alive = true- const listener = (img: HTMLImageElement | null) => {- if (alive) setImage(img)- }- entry.listeners.add(listener)- return () => {- alive = false- entry.listeners.delete(listener)- }- }, [src])+ const image = useSyncExternalStore(+ subscribe,+ () => (src ? (cache.get(src)?.image ?? null) : null),+ () => null+ )return image}diff --git a/src/components/editor/panels/TemplatesPanel.tsx b/src/components/editor/panels/TemplatesPanel.tsxindex 922b715..ca89e0b 100644--- a/src/components/editor/panels/TemplatesPanel.tsx+++ b/src/components/editor/panels/TemplatesPanel.tsx@@ -175,15 +175,12 @@ export function TemplatesPanel() {*/const LazyPreview = memo(function LazyPreview({ page, width, height }: { page: import('@/lib/types').PageData; width: number; height: number }) {const ref = useRef<HTMLDivElement>(null)- const [visible, setVisible] = useState(false)+ // environments without IntersectionObserver (old browsers, tests) render eagerly+ const [visible, setVisible] = useState(() => typeof IntersectionObserver === 'undefined')useEffect(() => {const el = ref.currentif (!el || visible) return- if (typeof IntersectionObserver === 'undefined') {- setVisible(true)- return- }const io = new IntersectionObserver((entries) => {if (entries.some((e) => e.isIntersecting)) {diff --git a/src/lib/db-errors.ts b/src/lib/db-errors.tsnew file mode 100644index 0000000..4e4e725--- /dev/null+++ b/src/lib/db-errors.ts@@ -0,0 +1,67 @@+// ─────────────────────────────────────────────────────────────+// db-errors — turn Prisma errors into actionable API payloads.+//+// v0.8: after moving the database (e.g. Neon → Supabase) the classic+// failure is a 500 with no explanation and a bare "Could not open+// template" toast. These helpers classify the Prisma error code and+// return a `code` the UI can translate into a real instruction.+// ─────────────────────────────────────────────────────────────+import { NextResponse } from 'next/server'++export interface DbErrorPayload {+ error: string+ code:+ | 'DB_NOT_MIGRATED' // tables missing → npm run db:setup+ | 'DB_UNREACHABLE' // bad URL / network / password+ | 'DB_TIMEOUT' // serverless cold start or pooler stall+ | 'DB_UNKNOWN'+ fix?: string+}++const FRIENDLY: Record<DbErrorPayload['code'], { error: string; fix: string }> = {+ DB_NOT_MIGRATED: {+ error: 'Database is not set up on this host',+ fix: 'Run npm run db:setup (migrations + template seed).',+ },+ DB_UNREACHABLE: {+ error: 'Cannot reach the database',+ fix: 'Check DATABASE_URL, password and network. See /api/health for details.',+ },+ DB_TIMEOUT: {+ error: 'Database timed out',+ fix: 'The host may be waking up (serverless pause) — retry, or see /api/health.',+ },+ DB_UNKNOWN: {+ error: 'Database error',+ fix: 'See /api/health for a full diagnosis.',+ },+}++/** Map a thrown Prisma (or raw pg) error to a stable code. */+export function classifyDbError(error: unknown): DbErrorPayload['code'] {+ const e = error as { code?: string; message?: string }+ const code = e?.code ?? ''+ const message = e?.message ?? ''++ // P2021 table does not exist / P2022 column does not exist / P2025 record not found on bootstrap+ if (code === 'P2021' || code === 'P2022' || /does not exist/i.test(message)) return 'DB_NOT_MIGRATED'+ // P1001 can't reach / P1002 timed out connecting / P1000 auth failed+ if (code === 'P1001') return 'DB_UNREACHABLE'+ if (code === 'P1002') return 'DB_TIMEOUT'+ if (code === 'P1000' || /password authentication failed/i.test(message)) return 'DB_UNREACHABLE'+ if (/prepared statement .* does not exist/i.test(message) || code === 'P2023') return 'DB_UNREACHABLE'+ if (/timed out|timeout|ETIMEDOUT/i.test(message)) return 'DB_TIMEOUT'+ if (/ECONNREFUSED|ENOTFOUND|EAI_AGAIN|ECONNRESET/i.test(message)) return 'DB_UNREACHABLE'+ return 'DB_UNKNOWN'+}++/** Build a 500 response that actually tells the user what to do next. */+export function dbErrorResponse(error: unknown, route: string): NextResponse {+ const code = classifyDbError(error)+ const friendly = FRIENDLY[code]+ console.error(`${route} failed [${code}]`, error)+ return NextResponse.json(+ { error: friendly.error, code, fix: friendly.fix } satisfies DbErrorPayload,+ { status: 500 }+ )+}diff --git a/src/lib/db-url.ts b/src/lib/db-url.tsnew file mode 100644index 0000000..4ce8d77--- /dev/null+++ b/src/lib/db-url.ts@@ -0,0 +1,132 @@+// ─────────────────────────────────────────────────────────────+// db-url — Supabase-ready DATABASE_URL handling (v0.8)+//+// Hosted Postgres (Supabase, Neon, RDS…) needs slightly different+// connection flags than a local install, and the #1 source of+// "Could not open template" / 500 errors after moving to Supabase+// is a URL that is missing one of them:+//+// 1. sslmode=require — hosted servers reject plain TCP+// 2. pgbouncer=true — Supabase's *transaction pooler*+// (port 6543 / *.pooler.supabase.com)+// does not support prepared statements;+// the flag switches Prisma to a+// pgbouncer-compatible mode+// 3. connection_limit=1 — recommended alongside pgbouncer+//+// This module patches those in automatically (with a console note)+// so a copy-pasted Supabase connection string just works.+// ─────────────────────────────────────────────────────────────++export type DatabaseUrlKind =+ | 'supabase-pooler'+ | 'supabase-direct'+ | 'neon'+ | 'remote'+ | 'local'+ | 'unset'++interface ParsedUrl {+ kind: DatabaseUrlKind+ host: string+ port: number+ database: string+}++function parse(url: string): ParsedUrl | null {+ try {+ const u = new URL(url)+ return {+ kind: classify(u),+ host: u.hostname,+ port: Number(u.port) || (u.protocol === 'postgres:' || u.protocol === 'postgresql:' ? 5432 : 0),+ database: u.pathname.replace(/^\//, ''),+ }+ } catch {+ return null+ }+}++function classify(u: URL): DatabaseUrlKind {+ const h = u.hostname+ if (h.endsWith('.pooler.supabase.com')) return 'supabase-pooler'+ if (h.endsWith('.supabase.co') || h.endsWith('.supabase.com')) return 'supabase-direct'+ if (h.endsWith('.neon.tech') || h.endsWith('.neon.build')) return 'neon'+ if (h === 'localhost' || h === '127.0.0.1' || h === '::1' || h === '[::1]') return 'local'+ return 'remote'+}++function isRemote(kind: DatabaseUrlKind): boolean {+ return kind !== 'local' && kind !== 'unset'+}++/**+ * Normalise a Postgres connection string for the driver:+ * - adds `sslmode=require` for remote hosts when not specified+ * - adds `pgbouncer=true&connection_limit=1` for Supabase's+ * transaction pooler when not specified+ */+export function normalizeDatabaseUrl(rawUrl: string | undefined): string {+ const url = (rawUrl ?? '').trim()+ if (!url) return url++ const parsed = parse(url)+ if (!parsed) return url++ const u = new URL(url)+ const notes: string[] = []++ // 1. remote hosts → require TLS unless the URL already pins an sslmode+ if (isRemote(parsed.kind) && !u.searchParams.has('sslmode') && !u.searchParams.has('ssl')) {+ u.searchParams.set('sslmode', 'require')+ notes.push('sslmode=require')+ }++ // 2. Supabase transaction pooler → pgbouncer-compatible mode+ if (+ parsed.kind === 'supabase-pooler' &&+ !u.searchParams.has('pgbouncer')+ ) {+ u.searchParams.set('pgbouncer', 'true')+ if (!u.searchParams.has('connection_limit')) u.searchParams.set('connection_limit', '1')+ notes.push('pgbouncer=true&connection_limit=1')+ }++ if (notes.length) {+ // visible in server logs so the magic is never a mystery+ console.info(+ `[db] ${parsed.kind} connection detected → auto-applied: ${notes.join(', ')}`+ )+ }++ return u.toString()+}++/** Human-readable description of the configured database (no credentials). */+export function describeDatabaseUrl(rawUrl: string | undefined): {+ kind: DatabaseUrlKind+ host: string+ database: string+ normalized: string+} {+ const url = (rawUrl ?? '').trim()+ const parsed = parse(url)+ if (!parsed || !url) {+ return { kind: 'unset', host: '', database: '', normalized: '' }+ }+ return {+ kind: parsed.kind,+ host: parsed.host,+ database: parsed.database,+ normalized: normalizeDatabaseUrl(url),+ }+}++/** Configure process.env.DATABASE_URL for Prisma (idempotent). */+export function applyDatabaseUrlDefaults(): void {+ const raw = process.env.DATABASE_URL+ const normalized = normalizeDatabaseUrl(raw)+ if (normalized && normalized !== raw) {+ process.env.DATABASE_URL = normalized+ }+}diff --git a/src/lib/db.ts b/src/lib/db.tsindex 7dfb80c..0a828bd 100644--- a/src/lib/db.ts+++ b/src/lib/db.ts@@ -1,4 +1,9 @@import { PrismaClient } from '@prisma/client'+import { applyDatabaseUrlDefaults } from '@/lib/db-url'++// v0.8: Supabase-ready connection — see src/lib/db-url.ts. Patches the URL+// before the first PrismaClient is constructed (sslmode / pgbouncer flags).+applyDatabaseUrlDefaults()const globalForPrisma = globalThis as unknown as {prisma: PrismaClient | undefined@@ -7,7 +12,12 @@ const globalForPrisma = globalThis as unknown as {export const db =globalForPrisma.prisma ??new PrismaClient({- log: ['query'],+ // v0.8: keep production logs quiet (query logging is a dev aid and a+ // performance tax on every request — Supabase poolers dislike noise).+ log:+ process.env.NODE_ENV === 'production'+ ? ['error']+ : ['query', 'error', 'warn'],})-if (process.env.NODE_ENV !== 'production') globalForPrisma.prisma = db\ No newline at end of file+if (process.env.NODE_ENV !== 'production') globalForPrisma.prisma = dbdiff --git a/src/lib/templates.ts b/src/lib/templates/collection-v07.tssimilarity index 98%rename from src/lib/templates.tsrename to src/lib/templates/collection-v07.tsindex 90c6f56..12a4028 100644--- a/src/lib/templates.ts+++ b/src/lib/templates/collection-v07.ts@@ -1,47 +1,14 @@// ─────────────────────────────────────────────────────────────-// Canvix built-in templates (seeded into DB + used client-side)+// collection-v07 — the original 60-template library shipped in+// v0.7.0 (21 starters + 39 premium). Kept verbatim; the v0.8+// collections below extend it to 110.// ─────────────────────────────────────────────────────────────-import {- createPage,- createShapeElement,- createTextElement,- createLineElement,- createStickerElement,- type PageData,- type TemplateRecord,-} from './types'-import { GRAPHICS } from './editor-utils'+import type { TemplateDef } from './helpers'+import { tx, sh, ln, st, gr } from './helpers'+import { GRAPHICS } from '../editor-utils'-export interface TemplateDef {- slug: string- name: string- category: string- width: number- height: number- accent: string- /** v0.7: premium library expansion — every template stays 100% free,- * the badge is a quality label only (never a paywall). */- badge?: 'premium' | 'new'- pages: PageData[]-}--// compact element builders-const tx = (o: Record<string, unknown>) =>- createTextElement(o as Parameters<typeof createTextElement>[0])-const sh = (type: 'rect' | 'ellipse' | 'triangle' | 'star' | 'path', o: Record<string, unknown>) =>- createShapeElement(type, o as Parameters<typeof createShapeElement>[1])-const ln = (o: Record<string, unknown>) =>- createLineElement(o as Parameters<typeof createLineElement>[0])-const st = (char: string, o: Record<string, unknown>) =>- createStickerElement(char, o as Parameters<typeof createStickerElement>[1])-const gr = (graphicId: string, o: Record<string, unknown>) =>- createShapeElement('path', {- pathData: GRAPHICS.find((g) => g.id === graphicId)?.path ?? GRAPHICS[0].path,- ...(o as Parameters<typeof createShapeElement>[1]),- })--export const TEMPLATES: TemplateDef[] = [+export const COLLECTION_V07: TemplateDef[] = [// ── Social media ───────────────────────────────────────────{slug: 'mega-sale',@@ -1801,20 +1768,3 @@ export const TEMPLATES: TemplateDef[] = [],},]--export function templatesAsRecords(): TemplateRecord[] {- return TEMPLATES.map((t) => ({- id: t.slug,- slug: t.slug,- name: t.name,- category: t.category,- width: t.width,- height: t.height,- accent: t.accent,- pages: t.pages,- }))-}--export function blankPage(): PageData {- return createPage()-}diff --git a/src/lib/templates/collection-v08-decks.ts b/src/lib/templates/collection-v08-decks.tsnew file mode 100644index 0000000..048b0f9--- /dev/null+++ b/src/lib/templates/collection-v08-decks.ts@@ -0,0 +1,548 @@+// ─────────────────────────────────────────────────────────────+// collection-v08/decks — 8 new premium presentation templates+// (1920×1080, multi-page systems with consistent headers/footers).+// Original designs with real deck structure: cover → story → data → ask.+// ─────────────────────────────────────────────────────────────++import type { TemplateDef } from './helpers'+import { tx, sh, ln, st, gr } from './helpers'++export const COLLECTION_V08_DECKS: TemplateDef[] = [+ // 1 ── Investor pitch deck · 4-page system+ {+ slug: 'investor-pitch',+ name: 'Investor Pitch Deck',+ category: 'presentation',+ width: 1920,+ height: 1080,+ accent: '#2563EB',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#0F172A' },+ elements: [+ sh('ellipse', { x: 1450, y: -260, width: 820, height: 820, fill: '#2563EB', opacity: 0.22 }),+ sh('ellipse', { x: 1600, y: 620, width: 520, height: 520, fill: '#38BDF8', opacity: 0.14 }),+ tx({ x: 120, y: 180, width: 900, height: 60, text: 'SERIES A · CONFIDENTIAL · 2026', fontFamily: 'DM Mono', bold: true, fontSize: 26, letterSpacing: 5, fill: '#64748B', align: 'left' }),+ tx({ x: 110, y: 260, width: 1100, height: 150, text: 'Loop', fontFamily: 'Outfit', bold: true, fontSize: 120, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 120, y: 430, width: 1000, height: 90, text: 'Support that closes the loop.', fontFamily: 'Space Grotesk', fontSize: 52, fill: '#38BDF8', align: 'left' }),+ ln({ x: 122, y: 560, width: 140, height: 0, stroke: '#38BDF8', strokeWidth: 6 }),+ tx({ x: 120, y: 600, width: 800, height: 60, text: 'Dana Kim, CEO · [email protected] · loop.io', fontFamily: 'Inter', fontSize: 28, fill: '#94A3B8', align: 'left' }),+ st('🚀', { x: 1480, y: 700, width: 260, height: 260, fontSize: 190 }),+ ],+ },+ {+ id: 'p2',+ background: { type: 'solid', color: '#FFFFFF' },+ elements: [+ tx({ x: 120, y: 90, width: 900, height: 55, text: 'THE PROBLEM', fontFamily: 'DM Mono', bold: true, fontSize: 26, letterSpacing: 5, fill: '#2563EB', align: 'left' }),+ tx({ x: 110, y: 160, width: 1300, height: 190, text: 'Support teams answer', fontFamily: 'Outfit', bold: true, fontSize: 74, fill: '#0F172A', align: 'left' }),+ tx({ x: 110, y: 250, width: 1300, height: 190, text: 'the same 12 questions.', fontFamily: 'Outfit', bold: true, fontSize: 74, fill: '#94A3B8', align: 'left' }),+ ln({ x: 122, y: 400, width: 1680, height: 0, stroke: '#E2E8F0', strokeWidth: 2 }),+ sh('rect', { x: 120, y: 470, width: 520, height: 420, fill: '#F8FAFC', cornerRadius: 24 }),+ tx({ x: 160, y: 510, width: 440, height: 90, text: '63%', fontFamily: 'Space Grotesk', bold: true, fontSize: 76, fill: '#2563EB', align: 'left' }),+ tx({ x: 160, y: 610, width: 440, height: 240, text: 'of ticket volume is repetitive across SaaS support desks (2025 industry survey, n=1,900).', fontFamily: 'Inter', fontSize: 27, lineHeight: 1.5, fill: '#475569', align: 'left' }),+ sh('rect', { x: 700, y: 470, width: 520, height: 420, fill: '#F8FAFC', cornerRadius: 24 }),+ tx({ x: 740, y: 510, width: 440, height: 90, text: '11 min', fontFamily: 'Space Grotesk', bold: true, fontSize: 76, fill: '#2563EB', align: 'left' }),+ tx({ x: 740, y: 610, width: 440, height: 240, text: 'average first-response time — while customers expect answers in under two.', fontFamily: 'Inter', fontSize: 27, lineHeight: 1.5, fill: '#475569', align: 'left' }),+ sh('rect', { x: 1280, y: 470, width: 520, height: 420, fill: '#0F172A', cornerRadius: 24 }),+ tx({ x: 1320, y: 510, width: 440, height: 90, text: '$41B', fontFamily: 'Space Grotesk', bold: true, fontSize: 76, fill: '#38BDF8', align: 'left' }),+ tx({ x: 1320, y: 610, width: 440, height: 240, text: 'burned yearly on tier-1 work that automation never quite solved.', fontFamily: 'Inter', fontSize: 27, lineHeight: 1.5, fill: '#CBD5E1', align: 'left' }),+ tx({ x: 120, y: 980, width: 900, height: 40, text: 'LOOP · 02', fontFamily: 'DM Mono', fontSize: 20, letterSpacing: 3, fill: '#94A3B8', align: 'left' }),+ ],+ },+ {+ id: 'p3',+ background: { type: 'solid', color: '#FFFFFF' },+ elements: [+ tx({ x: 120, y: 90, width: 900, height: 55, text: 'TRACTION', fontFamily: 'DM Mono', bold: true, fontSize: 26, letterSpacing: 5, fill: '#2563EB', align: 'left' }),+ tx({ x: 110, y: 160, width: 1400, height: 130, text: 'Compounding, word-of-mouth, paid-back in months.', fontFamily: 'Outfit', bold: true, fontSize: 58, fill: '#0F172A', align: 'left' }),+ ln({ x: 120, y: 380, width: 820, height: 0, stroke: '#CBD5E1', strokeWidth: 2 }),+ ln({ x: 120, y: 490, width: 660, height: 0, stroke: '#CBD5E1', strokeWidth: 2 }),+ ln({ x: 120, y: 600, width: 500, height: 0, stroke: '#CBD5E1', strokeWidth: 2 }),+ sh('rect', { x: 120, y: 340, width: 360, height: 40, fill: '#2563EB' }),+ sh('rect', { x: 120, y: 450, width: 280, height: 40, fill: '#60A5FA' }),+ sh('rect', { x: 120, y: 560, width: 200, height: 40, fill: '#93C5FD' }),+ tx({ x: 500, y: 342, width: 400, height: 40, text: 'ARR $2.4M', fontFamily: 'Inter', bold: true, fontSize: 26, fill: '#0F172A', align: 'left' }),+ tx({ x: 420, y: 452, width: 400, height: 40, text: 'ARR $1.1M', fontFamily: 'Inter', bold: true, fontSize: 26, fill: '#475569', align: 'left' }),+ tx({ x: 340, y: 562, width: 400, height: 40, text: 'ARR $340K', fontFamily: 'Inter', bold: true, fontSize: 26, fill: '#475569', align: 'left' }),+ tx({ x: 120, y: 620, width: 400, height: 40, text: '2024', fontFamily: 'Inter', fontSize: 24, fill: '#94A3B8', align: 'left' }),+ tx({ x: 420, y: 620, width: 400, height: 40, text: '2025', fontFamily: 'Inter', fontSize: 24, fill: '#94A3B8', align: 'left' }),+ tx({ x: 700, y: 620, width: 400, height: 40, text: 'Q1 2026', fontFamily: 'Inter', fontSize: 24, fill: '#94A3B8', align: 'left' }),+ sh('rect', { x: 1120, y: 340, width: 680, height: 330, fill: '#0F172A', cornerRadius: 24 }),+ tx({ x: 1170, y: 380, width: 580, height: 70, text: '126%', fontFamily: 'Space Grotesk', bold: true, fontSize: 66, fill: '#38BDF8', align: 'left' }),+ tx({ x: 1170, y: 460, width: 580, height: 180, text: 'net revenue retention · 4.1% logo churn · 62% of new signups from referrals', fontFamily: 'Inter', fontSize: 27, lineHeight: 1.5, fill: '#CBD5E1', align: 'left' }),+ tx({ x: 120, y: 760, width: 900, height: 55, text: 'WHY NOW', fontFamily: 'DM Mono', bold: true, fontSize: 26, letterSpacing: 5, fill: '#2563EB', align: 'left' }),+ tx({ x: 120, y: 820, width: 1680, height: 110, text: 'LLM fluency finally crossed the accuracy bar for tier-1 resolution — and buyers know it.', fontFamily: 'Inter', fontSize: 34, lineHeight: 1.4, fill: '#334155', align: 'left' }),+ tx({ x: 120, y: 980, width: 900, height: 40, text: 'LOOP · 03', fontFamily: 'DM Mono', fontSize: 20, letterSpacing: 3, fill: '#94A3B8', align: 'left' }),+ ],+ },+ {+ id: 'p4',+ background: { type: 'solid', color: '#0F172A' },+ elements: [+ tx({ x: 120, y: 160, width: 900, height: 55, text: 'THE ASK', fontFamily: 'DM Mono', bold: true, fontSize: 26, letterSpacing: 5, fill: '#38BDF8', align: 'left' }),+ tx({ x: 110, y: 240, width: 1400, height: 200, text: '$8M Series A', fontFamily: 'Outfit', bold: true, fontSize: 110, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 120, y: 450, width: 900, height: 70, text: '18 months of runway to $12M ARR.', fontFamily: 'Space Grotesk', fontSize: 40, fill: '#38BDF8', align: 'left' }),+ ln({ x: 122, y: 570, width: 1680, height: 0, stroke: '#334155', strokeWidth: 2 }),+ tx({ x: 120, y: 620, width: 500, height: 45, text: '45% — ENGINEERING', fontFamily: 'Inter', bold: true, fontSize: 27, fill: '#E2E8F0', align: 'left' }),+ ln({ x: 120, y: 675, width: 760, height: 0, stroke: '#38BDF8', strokeWidth: 10 }),+ tx({ x: 680, y: 620, width: 600, height: 45, text: '30% — GO-TO-MARKET', fontFamily: 'Inter', bold: true, fontSize: 27, fill: '#E2E8F0', align: 'left' }),+ ln({ x: 680, y: 675, width: 500, height: 0, stroke: '#64748B', strokeWidth: 10 }),+ tx({ x: 120, y: 730, width: 500, height: 45, text: '25% — SUPPORT & SUCCESS', fontFamily: 'Inter', bold: true, fontSize: 27, fill: '#E2E8F0', align: 'left' }),+ ln({ x: 120, y: 785, width: 420, height: 0, stroke: '#334155', strokeWidth: 10 }),+ tx({ x: 120, y: 900, width: 1400, height: 55, text: '[email protected] · thank you.', fontFamily: 'Inter', fontSize: 30, fill: '#94A3B8', align: 'left' }),+ ],+ },+ ],+ },++ // 2 ── Marketing plan · 3-page coral system+ {+ slug: 'marketing-plan',+ name: 'Marketing Plan Deck',+ category: 'presentation',+ width: 1920,+ height: 1080,+ accent: '#F97316',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#FFF7ED' },+ elements: [+ sh('rect', { x: 0, y: 0, width: 640, height: 1080, fill: '#F97316' }),+ tx({ x: 90, y: 380, width: 470, height: 70, text: 'FY 2026', fontFamily: 'DM Mono', bold: true, fontSize: 30, letterSpacing: 6, fill: '#FFEDD5', align: 'left' }),+ tx({ x: 80, y: 450, width: 500, height: 300, text: 'Marketing Plan', fontFamily: 'Fraunces', fontSize: 96, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 90, y: 760, width: 470, height: 60, text: 'Northwind Goods', fontFamily: 'Inter', fontSize: 30, fill: '#FFEDD5', align: 'left' }),+ tx({ x: 740, y: 240, width: 1000, height: 60, text: 'WHAT’S INSIDE', fontFamily: 'DM Mono', bold: true, fontSize: 24, letterSpacing: 5, fill: '#C2410C', align: 'left' }),+ ln({ x: 742, y: 310, width: 1000, height: 0, stroke: '#FED7AA', strokeWidth: 2 }),+ tx({ x: 740, y: 350, width: 1000, height: 55, text: '01 — Where we play (channels & segments)', fontFamily: 'Inter', fontSize: 32, fill: '#431407', align: 'left' }),+ tx({ x: 740, y: 430, width: 1000, height: 55, text: '02 — How we win (campaigns & calendar)', fontFamily: 'Inter', fontSize: 32, fill: '#431407', align: 'left' }),+ tx({ x: 740, y: 510, width: 1000, height: 55, text: '03 — What success looks like (KPIs & budget)', fontFamily: 'Inter', fontSize: 32, fill: '#431407', align: 'left' }),+ st('📈', { x: 1400, y: 640, width: 280, height: 280, fontSize: 200 }),+ ],+ },+ {+ id: 'p2',+ background: { type: 'solid', color: '#FFFFFF' },+ elements: [+ tx({ x: 120, y: 100, width: 900, height: 55, text: '01 · CHANNEL MIX', fontFamily: 'DM Mono', bold: true, fontSize: 25, letterSpacing: 4, fill: '#F97316', align: 'left' }),+ tx({ x: 110, y: 170, width: 1400, height: 130, text: 'Double down on owned, rent less.', fontFamily: 'Outfit', bold: true, fontSize: 62, fill: '#1C1917', align: 'left' }),+ sh('rect', { x: 120, y: 380, width: 820, height: 90, fill: '#FFEDD5', cornerRadius: 16 }),+ tx({ x: 150, y: 405, width: 760, height: 50, text: 'SEO & content hub — 40% of budget →', fontFamily: 'Inter', bold: true, fontSize: 28, fill: '#9A3412', align: 'left' }),+ sh('rect', { x: 120, y: 500, width: 620, height: 90, fill: '#FFEDD5', cornerRadius: 16 }),+ tx({ x: 150, y: 525, width: 560, height: 50, text: 'Lifecycle email & SMS — 25%', fontFamily: 'Inter', bold: true, fontSize: 28, fill: '#9A3412', align: 'left' }),+ sh('rect', { x: 120, y: 620, width: 430, height: 90, fill: '#FFEDD5', cornerRadius: 16 }),+ tx({ x: 150, y: 645, width: 380, height: 50, text: 'Creators & affiliates — 20%', fontFamily: 'Inter', bold: true, fontSize: 28, fill: '#9A3412', align: 'left' }),+ sh('rect', { x: 120, y: 740, width: 300, height: 90, fill: '#F97316', cornerRadius: 16 }),+ tx({ x: 150, y: 765, width: 250, height: 50, text: 'Paid — 15%', fontFamily: 'Inter', bold: true, fontSize: 28, fill: '#FFFFFF', align: 'left' }),+ sh('rect', { x: 1100, y: 380, width: 700, height: 450, fill: '#1C1917', cornerRadius: 24 }),+ tx({ x: 1150, y: 420, width: 600, height: 60, text: 'THE BET', fontFamily: 'DM Mono', bold: true, fontSize: 24, letterSpacing: 4, fill: '#FDBA74', align: 'left' }),+ tx({ x: 1150, y: 490, width: 610, height: 320, text: 'Two long-form guides per month, repurposed into 30+ assets. Email list to 250K. CAC down 22% by Q4.', fontFamily: 'Inter', fontSize: 30, lineHeight: 1.55, fill: '#E7E5E4', align: 'left' }),+ tx({ x: 120, y: 980, width: 900, height: 40, text: 'NORTHWIND · MARKETING PLAN · 02', fontFamily: 'DM Mono', fontSize: 19, letterSpacing: 3, fill: '#A8A29E', align: 'left' }),+ ],+ },+ {+ id: 'p3',+ background: { type: 'solid', color: '#FFFFFF' },+ elements: [+ tx({ x: 120, y: 100, width: 900, height: 55, text: '03 · TARGETS', fontFamily: 'DM Mono', bold: true, fontSize: 25, letterSpacing: 4, fill: '#F97316', align: 'left' }),+ tx({ x: 110, y: 170, width: 1400, height: 130, text: 'What we commit to.', fontFamily: 'Outfit', bold: true, fontSize: 62, fill: '#1C1917', align: 'left' }),+ sh('rect', { x: 120, y: 380, width: 540, height: 380, fill: '#FFF7ED', cornerRadius: 24 }),+ tx({ x: 165, y: 430, width: 460, height: 110, text: '2.1×', fontFamily: 'Outfit', bold: true, fontSize: 90, fill: '#F97316', align: 'left' }),+ tx({ x: 165, y: 560, width: 460, height: 160, text: 'organic sessions — 380K/mo exit rate for 2026', fontFamily: 'Inter', fontSize: 28, lineHeight: 1.5, fill: '#57534E', align: 'left' }),+ sh('rect', { x: 690, y: 380, width: 540, height: 380, fill: '#FFF7ED', cornerRadius: 24 }),+ tx({ x: 735, y: 430, width: 460, height: 110, text: '250K', fontFamily: 'Outfit', bold: true, fontSize: 90, fill: '#F97316', align: 'left' }),+ tx({ x: 735, y: 560, width: 460, height: 160, text: 'email subscribers with a 4.5% average CTR floor', fontFamily: 'Inter', fontSize: 28, lineHeight: 1.5, fill: '#57534E', align: 'left' }),+ sh('rect', { x: 1260, y: 380, width: 540, height: 380, fill: '#1C1917', cornerRadius: 24 }),+ tx({ x: 1305, y: 430, width: 460, height: 110, text: '-22%', fontFamily: 'Outfit', bold: true, fontSize: 90, fill: '#FDBA74', align: 'left' }),+ tx({ x: 1305, y: 560, width: 460, height: 160, text: 'blended CAC by Q4 while holding lead quality', fontFamily: 'Inter', fontSize: 28, lineHeight: 1.5, fill: '#E7E5E4', align: 'left' }),+ tx({ x: 120, y: 830, width: 1680, height: 60, text: 'Quarterly reviews · owner: M. Osei · budget guardrails on the shared sheet', fontFamily: 'Inter', fontSize: 28, fill: '#78716C', align: 'left' }),+ tx({ x: 120, y: 980, width: 900, height: 40, text: 'NORTHWIND · MARKETING PLAN · 03', fontFamily: 'DM Mono', fontSize: 19, letterSpacing: 3, fill: '#A8A29E', align: 'left' }),+ ],+ },+ ],+ },++ // 3 ── Course intro · 3-page indigo learning system+ {+ slug: 'course-intro',+ name: 'Course Intro Deck',+ category: 'presentation',+ width: 1920,+ height: 1080,+ accent: '#4338CA',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'gradient', from: '#312E81', to: '#4338CA', angle: 130 },+ elements: [+ sh('ellipse', { x: -220, y: 600, width: 700, height: 700, fill: '#6366F1', opacity: 0.35 }),+ tx({ x: 120, y: 240, width: 900, height: 60, text: 'ONLINE COURSE · 6 WEEKS · COHORT #7', fontFamily: 'DM Mono', bold: true, fontSize: 25, letterSpacing: 4, fill: '#C7D2FE', align: 'left' }),+ tx({ x: 110, y: 320, width: 1300, height: 150, text: 'Design Systems', fontFamily: 'Manrope', bold: true, fontSize: 100, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 110, y: 470, width: 1300, height: 150, text: 'from Zero', fontFamily: 'Manrope', bold: true, fontSize: 100, fill: '#A5B4FC', align: 'left' }),+ ln({ x: 122, y: 660, width: 140, height: 0, stroke: '#FBBF24', strokeWidth: 6 }),+ tx({ x: 120, y: 700, width: 900, height: 60, text: 'Live sessions · real code · your own system by week 6', fontFamily: 'Inter', fontSize: 32, fill: '#E0E7FF', align: 'left' }),+ st('🎓', { x: 1400, y: 320, width: 300, height: 300, fontSize: 220 }),+ tx({ x: 120, y: 950, width: 900, height: 45, text: 'TEACHER: JO ALVAREZ · 9,400 STUDENTS TAUGHT', fontFamily: 'Inter', bold: true, fontSize: 24, letterSpacing: 2, fill: '#A5B4FC', align: 'left' }),+ ],+ },+ {+ id: 'p2',+ background: { type: 'solid', color: '#FFFFFF' },+ elements: [+ tx({ x: 120, y: 100, width: 900, height: 55, text: 'WHAT WE COVER', fontFamily: 'DM Mono', bold: true, fontSize: 25, letterSpacing: 4, fill: '#4338CA', align: 'left' }),+ tx({ x: 110, y: 170, width: 1400, height: 130, text: 'Six weeks, one system.', fontFamily: 'Manrope', bold: true, fontSize: 62, fill: '#1E1B4B', align: 'left' }),+ sh('rect', { x: 120, y: 360, width: 540, height: 260, fill: '#EEF2FF', cornerRadius: 24 }),+ tx({ x: 160, y: 400, width: 120, height: 60, text: '01', fontFamily: 'DM Mono', bold: true, fontSize: 40, fill: '#4338CA', align: 'left' }),+ tx({ x: 160, y: 470, width: 460, height: 55, text: 'Tokens & foundations', fontFamily: 'Manrope', bold: true, fontSize: 32, fill: '#1E1B4B', align: 'left' }),+ tx({ x: 160, y: 525, width: 460, height: 80, text: 'color, type, spacing that scale', fontFamily: 'Inter', fontSize: 24, fill: '#6366F1', align: 'left' }),+ sh('rect', { x: 690, y: 360, width: 540, height: 260, fill: '#EEF2FF', cornerRadius: 24 }),+ tx({ x: 730, y: 400, width: 120, height: 60, text: '02', fontFamily: 'DM Mono', bold: true, fontSize: 40, fill: '#4338CA', align: 'left' }),+ tx({ x: 730, y: 470, width: 460, height: 55, text: 'Component library', fontFamily: 'Manrope', bold: true, fontSize: 32, fill: '#1E1B4B', align: 'left' }),+ tx({ x: 730, y: 525, width: 460, height: 80, text: 'buttons to data tables, tested', fontFamily: 'Inter', fontSize: 24, fill: '#6366F1', align: 'left' }),+ sh('rect', { x: 1260, y: 360, width: 540, height: 260, fill: '#EEF2FF', cornerRadius: 24 }),+ tx({ x: 1300, y: 400, width: 120, height: 60, text: '03', fontFamily: 'DM Mono', bold: true, fontSize: 40, fill: '#4338CA', align: 'left' }),+ tx({ x: 1300, y: 470, width: 460, height: 55, text: 'Docs & adoption', fontFamily: 'Manrope', bold: true, fontSize: 32, fill: '#1E1B4B', align: 'left' }),+ tx({ x: 1300, y: 525, width: 460, height: 80, text: 'get the team to actually use it', fontFamily: 'Inter', fontSize: 24, fill: '#6366F1', align: 'left' }),+ sh('rect', { x: 120, y: 660, width: 540, height: 260, fill: '#EEF2FF', cornerRadius: 24 }),+ tx({ x: 160, y: 700, width: 120, height: 60, text: '04', fontFamily: 'DM Mono', bold: true, fontSize: 40, fill: '#4338CA', align: 'left' }),+ tx({ x: 160, y: 770, width: 460, height: 55, text: 'Theming & dark mode', fontFamily: 'Manrope', bold: true, fontSize: 32, fill: '#1E1B4B', align: 'left' }),+ tx({ x: 160, y: 825, width: 460, height: 80, text: 'multi-brand from one codebase', fontFamily: 'Inter', fontSize: 24, fill: '#6366F1', align: 'left' }),+ sh('rect', { x: 690, y: 660, width: 540, height: 260, fill: '#EEF2FF', cornerRadius: 24 }),+ tx({ x: 730, y: 700, width: 120, height: 60, text: '05', fontFamily: 'DM Mono', bold: true, fontSize: 40, fill: '#4338CA', align: 'left' }),+ tx({ x: 730, y: 770, width: 460, height: 55, text: 'Versioning & releases', fontFamily: 'Manrope', bold: true, fontSize: 32, fill: '#1E1B4B', align: 'left' }),+ tx({ x: 730, y: 825, width: 460, height: 80, text: 'ship safely, deprecate kindly', fontFamily: 'Inter', fontSize: 24, fill: '#6366F1', align: 'left' }),+ sh('rect', { x: 1260, y: 660, width: 540, height: 260, fill: '#4338CA', cornerRadius: 24 }),+ tx({ x: 1300, y: 700, width: 120, height: 60, text: '06', fontFamily: 'DM Mono', bold: true, fontSize: 40, fill: '#C7D2FE', align: 'left' }),+ tx({ x: 1300, y: 770, width: 460, height: 55, text: 'Capstone review', fontFamily: 'Manrope', bold: true, fontSize: 32, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 1300, y: 825, width: 460, height: 80, text: 'present your system, get feedback', fontFamily: 'Inter', fontSize: 24, fill: '#C7D2FE', align: 'left' }),+ ],+ },+ {+ id: 'p3',+ background: { type: 'solid', color: '#1E1B4B' },+ elements: [+ tx({ x: 120, y: 180, width: 900, height: 55, text: 'OUTCOMES', fontFamily: 'DM Mono', bold: true, fontSize: 25, letterSpacing: 4, fill: '#A5B4FC', align: 'left' }),+ tx({ x: 110, y: 250, width: 1400, height: 150, text: 'You leave with a system,', fontFamily: 'Manrope', bold: true, fontSize: 76, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 110, y: 375, width: 1400, height: 150, text: 'not a certificate.', fontFamily: 'Manrope', bold: true, fontSize: 76, fill: '#FBBF24', align: 'left' }),+ gr('check-circle', { x: 130, y: 620, width: 56, height: 56, fill: '#FBBF24' }),+ tx({ x: 220, y: 628, width: 1400, height: 55, text: 'A production-ready component library in your repo', fontFamily: 'Inter', fontSize: 33, fill: '#E0E7FF', align: 'left' }),+ gr('check-circle', { x: 130, y: 720, width: 56, height: 56, fill: '#FBBF24' }),+ tx({ x: 220, y: 728, width: 1400, height: 55, text: 'Documentation your engineers actually read', fontFamily: 'Inter', fontSize: 33, fill: '#E0E7FF', align: 'left' }),+ gr('check-circle', { x: 130, y: 820, width: 56, height: 56, fill: '#FBBF24' }),+ tx({ x: 220, y: 828, width: 1400, height: 55, text: 'A 90-day adoption plan for your team', fontFamily: 'Inter', fontSize: 33, fill: '#E0E7FF', align: 'left' }),+ ],+ },+ ],+ },++ // 4 ── Agency portfolio · 3-page black/white editorial+ {+ slug: 'agency-portfolio',+ name: 'Agency Portfolio Deck',+ category: 'presentation',+ width: 1920,+ height: 1080,+ accent: '#FFFFFF',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#0A0A0A' },+ elements: [+ tx({ x: 120, y: 200, width: 900, height: 55, text: 'PORTFOLIO · 2026', fontFamily: 'DM Mono', fontSize: 25, letterSpacing: 6, fill: '#737373', align: 'left' }),+ tx({ x: 110, y: 280, width: 1500, height: 220, text: 'Studio Mono', fontFamily: 'Bodoni Moda', fontSize: 150, fill: '#FFFFFF', align: 'left' }),+ ln({ x: 122, y: 560, width: 400, height: 0, stroke: '#FFFFFF', strokeWidth: 3 }),+ tx({ x: 120, y: 600, width: 900, height: 60, text: 'BRAND · DIGITAL · MOTION', fontFamily: 'Inter', bold: true, fontSize: 30, letterSpacing: 8, fill: '#A3A3A3', align: 'left' }),+ sh('rect', { x: 1300, y: 620, width: 500, height: 340, fill: '#262626' }),+ sh('ellipse', { x: 1400, y: 700, width: 300, height: 220, fill: '#525252' }),+ tx({ x: 120, y: 880, width: 900, height: 55, text: 'Brooklyn · Oslo · remote', fontFamily: 'Inter', fontSize: 28, fill: '#737373', align: 'left' }),+ ],+ },+ {+ id: 'p2',+ background: { type: 'solid', color: '#FAFAFA' },+ elements: [+ tx({ x: 120, y: 100, width: 900, height: 55, text: 'SELECTED WORK', fontFamily: 'DM Mono', fontSize: 25, letterSpacing: 5, fill: '#737373', align: 'left' }),+ tx({ x: 110, y: 165, width: 1400, height: 130, text: 'Four of nineteen.', fontFamily: 'Bodoni Moda', fontSize: 74, fill: '#0A0A0A', align: 'left' }),+ sh('rect', { x: 120, y: 360, width: 830, height: 250, fill: '#E5E5E5' }),+ sh('rect', { x: 160, y: 400, width: 750, height: 170, fill: '#A3A3A3' }),+ tx({ x: 120, y: 630, width: 830, height: 50, text: 'VELLUM — identity & site for a slow-publishing house', fontFamily: 'Inter', bold: true, fontSize: 26, fill: '#262626', align: 'left' }),+ sh('rect', { x: 980, y: 360, width: 820, height: 250, fill: '#D4D4D4' }),+ sh('ellipse', { x: 1180, y: 410, width: 420, height: 250, fill: '#525252' }),+ tx({ x: 980, y: 630, width: 820, height: 50, text: 'ORBIT LABS — product launch film & deck system', fontFamily: 'Inter', bold: true, fontSize: 26, fill: '#262626', align: 'left' }),+ sh('rect', { x: 120, y: 720, width: 830, height: 250, fill: '#D4D4D4' }),+ sh('triangle', { x: 300, y: 760, width: 470, height: 170, fill: '#737373' }),+ tx({ x: 120, y: 990, width: 830, height: 50, text: 'ATLAS COFFEE — packaging across 9 SKUs', fontFamily: 'Inter', bold: true, fontSize: 26, fill: '#262626', align: 'left' }),+ sh('rect', { x: 980, y: 720, width: 820, height: 250, fill: '#E5E5E5' }),+ ln({ x: 1040, y: 800, width: 700, height: 0, stroke: '#737373', strokeWidth: 40 }),+ tx({ x: 980, y: 990, width: 820, height: 50, text: 'NORTHFIELD — museum wayfinding & motion', fontFamily: 'Inter', bold: true, fontSize: 26, fill: '#262626', align: 'left' }),+ ],+ },+ {+ id: 'p3',+ background: { type: 'solid', color: '#0A0A0A' },+ elements: [+ tx({ x: 120, y: 260, width: 900, height: 55, text: 'START A PROJECT', fontFamily: 'DM Mono', fontSize: 25, letterSpacing: 6, fill: '#737373', align: 'left' }),+ tx({ x: 110, y: 340, width: 1500, height: 220, text: 'Let’s make', fontFamily: 'Bodoni Moda', italic: true, fontSize: 130, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 110, y: 540, width: 1500, height: 220, text: 'something rare.', fontFamily: 'Bodoni Moda', italic: true, fontSize: 130, fill: '#A3E635', align: 'left' }),+ ln({ x: 122, y: 820, width: 1680, height: 0, stroke: '#404040', strokeWidth: 2 }),+ tx({ x: 120, y: 860, width: 700, height: 55, text: '[email protected]', fontFamily: 'Inter', bold: true, fontSize: 32, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 120, y: 915, width: 700, height: 50, text: 'We take four projects a season.', fontFamily: 'Inter', fontSize: 26, fill: '#737373', align: 'left' }),+ tx({ x: 1100, y: 860, width: 700, height: 55, text: '@studiomono', fontFamily: 'Inter', bold: true, fontSize: 32, fill: '#A3E635', align: 'left' }),+ ],+ },+ ],+ },++ // 5 ── Quarterly review · navy + emerald metrics+ {+ slug: 'quarterly-review',+ name: 'Quarterly Review Deck',+ category: 'presentation',+ width: 1920,+ height: 1080,+ accent: '#10B981',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#062033' },+ elements: [+ tx({ x: 120, y: 260, width: 900, height: 55, text: 'Q1 2026 · BUSINESS REVIEW', fontFamily: 'DM Mono', bold: true, fontSize: 26, letterSpacing: 5, fill: '#34D399', align: 'left' }),+ tx({ x: 110, y: 340, width: 1400, height: 170, text: 'The quarter,', fontFamily: 'Fraunces', fontSize: 100, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 110, y: 500, width: 1400, height: 170, text: 'on one slide.', fontFamily: 'Fraunces', italic: true, fontSize: 100, fill: '#34D399', align: 'left' }),+ tx({ x: 120, y: 780, width: 900, height: 55, text: 'Finance & Ops · prepared by R. Silva', fontFamily: 'Inter', fontSize: 28, fill: '#94A3B8', align: 'left' }),+ st('📊', { x: 1450, y: 700, width: 280, height: 280, fontSize: 200 }),+ ],+ },+ {+ id: 'p2',+ background: { type: 'solid', color: '#FFFFFF' },+ elements: [+ tx({ x: 120, y: 100, width: 900, height: 55, text: 'SCORECARD', fontFamily: 'DM Mono', bold: true, fontSize: 25, letterSpacing: 4, fill: '#062033', align: 'left' }),+ tx({ x: 110, y: 165, width: 1400, height: 120, text: 'Green across the board.', fontFamily: 'Fraunces', fontSize: 62, fill: '#062033', align: 'left' }),+ sh('rect', { x: 120, y: 340, width: 840, height: 200, fill: '#ECFDF5', cornerRadius: 20 }),+ tx({ x: 170, y: 375, width: 400, height: 90, text: '$4.2M', fontFamily: 'Space Grotesk', bold: true, fontSize: 70, fill: '#065F46', align: 'left' }),+ tx({ x: 170, y: 470, width: 740, height: 50, text: 'revenue · ▲ 18% QoQ · beat plan by $300K', fontFamily: 'Inter', fontSize: 27, fill: '#047857', align: 'left' }),+ sh('rect', { x: 1000, y: 340, width: 800, height: 200, fill: '#ECFDF5', cornerRadius: 20 }),+ tx({ x: 1050, y: 375, width: 400, height: 90, text: '71%', fontFamily: 'Space Grotesk', bold: true, fontSize: 70, fill: '#065F46', align: 'left' }),+ tx({ x: 1050, y: 470, width: 700, height: 50, text: 'gross margin · ▲ 3 pts · pricing fix landed', fontFamily: 'Inter', fontSize: 27, fill: '#047857', align: 'left' }),+ sh('rect', { x: 120, y: 580, width: 840, height: 200, fill: '#F8FAFC', cornerRadius: 20 }),+ tx({ x: 170, y: 615, width: 400, height: 90, text: '9.1K', fontFamily: 'Space Grotesk', bold: true, fontSize: 70, fill: '#0F766E', align: 'left' }),+ tx({ x: 170, y: 710, width: 740, height: 50, text: 'new accounts · ▲ 24% · partner channel working', fontFamily: 'Inter', fontSize: 27, fill: '#0F766E', align: 'left' }),+ sh('rect', { x: 1000, y: 580, width: 800, height: 200, fill: '#FEF2F2', cornerRadius: 20 }),+ tx({ x: 1050, y: 615, width: 400, height: 90, text: '2.9%', fontFamily: 'Space Grotesk', bold: true, fontSize: 70, fill: '#B91C1C', align: 'left' }),+ tx({ x: 1050, y: 710, width: 700, height: 50, text: 'churn · ▲ 0.4 pts · watch: enterprise tier', fontFamily: 'Inter', fontSize: 27, fill: '#B91C1C', align: 'left' }),+ tx({ x: 120, y: 850, width: 1680, height: 60, text: 'Next quarter: fix enterprise onboarding, ship usage-based pricing pilot, hire two AEs.', fontFamily: 'Inter', bold: true, fontSize: 30, fill: '#334155', align: 'left' }),+ ],+ },+ {+ id: 'p3',+ background: { type: 'solid', color: '#062033' },+ elements: [+ tx({ x: 120, y: 140, width: 900, height: 55, text: 'NEXT QUARTER · FOCUS', fontFamily: 'DM Mono', bold: true, fontSize: 25, letterSpacing: 4, fill: '#34D399', align: 'left' }),+ tx({ x: 110, y: 210, width: 1500, height: 150, text: 'Three bets, one theme:', fontFamily: 'Fraunces', fontSize: 80, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 110, y: 330, width: 1500, height: 120, text: 'keep what we won.', fontFamily: 'Fraunces', italic: true, fontSize: 80, fill: '#34D399', align: 'left' }),+ sh('rect', { x: 120, y: 540, width: 540, height: 360, fill: '#0B3149', cornerRadius: 24 }),+ tx({ x: 165, y: 585, width: 460, height: 55, text: '01', fontFamily: 'DM Mono', bold: true, fontSize: 36, fill: '#34D399', align: 'left' }),+ tx({ x: 165, y: 650, width: 460, height: 120, text: 'Enterprise onboarding revamp', fontFamily: 'Inter', bold: true, fontSize: 34, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 165, y: 780, width: 460, height: 100, text: 'target: churn back under 2.5%', fontFamily: 'Inter', fontSize: 25, fill: '#94A3B8', align: 'left' }),+ sh('rect', { x: 690, y: 540, width: 540, height: 360, fill: '#0B3149', cornerRadius: 24 }),+ tx({ x: 735, y: 585, width: 460, height: 55, text: '02', fontFamily: 'DM Mono', bold: true, fontSize: 36, fill: '#34D399', align: 'left' }),+ tx({ x: 735, y: 650, width: 460, height: 120, text: 'Usage-based pricing pilot', fontFamily: 'Inter', bold: true, fontSize: 34, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 735, y: 780, width: 460, height: 100, text: '50 design partners, ship in July', fontFamily: 'Inter', fontSize: 25, fill: '#94A3B8', align: 'left' }),+ sh('rect', { x: 1260, y: 540, width: 540, height: 360, fill: '#0B3149', cornerRadius: 24 }),+ tx({ x: 1305, y: 585, width: 460, height: 55, text: '03', fontFamily: 'DM Mono', bold: true, fontSize: 36, fill: '#34D399', align: 'left' }),+ tx({ x: 1305, y: 650, width: 460, height: 120, text: 'Two AE hires, EMEA focus', fontFamily: 'Inter', bold: true, fontSize: 34, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 1305, y: 780, width: 460, height: 100, text: 'ramped by end of Q3', fontFamily: 'Inter', fontSize: 25, fill: '#94A3B8', align: 'left' }),+ ],+ },+ ],+ },++ // 6 ── Demo day · dark + neon startup+ {+ slug: 'demo-day',+ name: 'Demo Day Deck',+ category: 'presentation',+ width: 1920,+ height: 1080,+ accent: '#A3E635',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#111111' },+ elements: [+ sh('ellipse', { x: 1400, y: 100, width: 640, height: 640, fill: '#A3E635', opacity: 0.12 }),+ tx({ x: 120, y: 220, width: 900, height: 55, text: 'Y-ACCELERATOR · DEMO DAY · S25', fontFamily: 'Space Mono', bold: true, fontSize: 25, letterSpacing: 4, fill: '#A3E635', align: 'left' }),+ tx({ x: 110, y: 300, width: 1400, height: 170, text: 'Fernway', fontFamily: 'Space Grotesk', bold: true, fontSize: 120, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 110, y: 470, width: 1400, height: 110, text: 'Parking, solved with math.', fontFamily: 'Space Grotesk', fontSize: 56, fill: '#A3E635', align: 'left' }),+ ln({ x: 122, y: 620, width: 1680, height: 0, stroke: '#333333', strokeWidth: 2 }),+ tx({ x: 120, y: 660, width: 780, height: 120, text: '40,000 drivers find a spot in 12 cities —\nwithout circling the block.', fontFamily: 'Inter', fontSize: 32, lineHeight: 1.5, fill: '#D4D4D4', align: 'left' }),+ tx({ x: 120, y: 900, width: 1680, height: 50, text: 'FOUNDERS: INES WARD · TOM OKAFOR', fontFamily: 'Space Mono', bold: true, fontSize: 24, letterSpacing: 3, fill: '#737373', align: 'left' }),+ st('🅿️', { x: 1480, y: 700, width: 260, height: 260, fontSize: 190 }),+ ],+ },+ {+ id: 'p2',+ background: { type: 'solid', color: '#111111' },+ elements: [+ tx({ x: 120, y: 110, width: 900, height: 55, text: 'TRACTION · 10 MONTHS IN', fontFamily: 'Space Mono', bold: true, fontSize: 25, letterSpacing: 4, fill: '#A3E635', align: 'left' }),+ tx({ x: 110, y: 180, width: 1400, height: 120, text: '$1.6M ARR, growing 21% a month.', fontFamily: 'Space Grotesk', bold: true, fontSize: 58, fill: '#FFFFFF', align: 'left' }),+ sh('rect', { x: 120, y: 380, width: 400, height: 300, fill: '#1A1A1A', cornerRadius: 20 }),+ tx({ x: 160, y: 420, width: 320, height: 90, text: '12', fontFamily: 'Space Grotesk', bold: true, fontSize: 72, fill: '#A3E635', align: 'left' }),+ tx({ x: 160, y: 520, width: 320, height: 130, text: 'cities live, 9 more signed for Q3', fontFamily: 'Inter', fontSize: 26, lineHeight: 1.4, fill: '#A3A3A3', align: 'left' }),+ sh('rect', { x: 560, y: 380, width: 400, height: 300, fill: '#1A1A1A', cornerRadius: 20 }),+ tx({ x: 600, y: 420, width: 320, height: 90, text: '40K', fontFamily: 'Space Grotesk', bold: true, fontSize: 72, fill: '#A3E635', align: 'left' }),+ tx({ x: 600, y: 520, width: 320, height: 130, text: 'monthly drivers, 68% weekly retention', fontFamily: 'Inter', fontSize: 26, lineHeight: 1.4, fill: '#A3A3A3', align: 'left' }),+ sh('rect', { x: 1000, y: 380, width: 400, height: 300, fill: '#1A1A1A', cornerRadius: 20 }),+ tx({ x: 1040, y: 420, width: 320, height: 90, text: '4.8★', fontFamily: 'Space Grotesk', bold: true, fontSize: 72, fill: '#A3E635', align: 'left' }),+ tx({ x: 1040, y: 520, width: 320, height: 130, text: 'app-store rating across 22K reviews', fontFamily: 'Inter', fontSize: 26, lineHeight: 1.4, fill: '#A3A3A3', align: 'left' }),+ sh('rect', { x: 1440, y: 380, width: 360, height: 300, fill: '#A3E635', cornerRadius: 20 }),+ tx({ x: 1480, y: 420, width: 280, height: 90, text: '$0', fontFamily: 'Space Grotesk', bold: true, fontSize: 72, fill: '#111111', align: 'left' }),+ tx({ x: 1480, y: 520, width: 280, height: 130, text: 'spent on paid acquisition to date', fontFamily: 'Inter', bold: true, fontSize: 26, lineHeight: 1.4, fill: '#1A2E05', align: 'left' }),+ tx({ x: 120, y: 760, width: 1680, height: 55, text: 'Unit economics: $1.90 CAC (organic) · $62 first-year value per driver · 71% gross margin.', fontFamily: 'Inter', fontSize: 29, fill: '#D4D4D4', align: 'left' }),+ ],+ },+ {+ id: 'p3',+ background: { type: 'solid', color: '#A3E635' },+ elements: [+ tx({ x: 120, y: 200, width: 900, height: 55, text: 'THE TEAM', fontFamily: 'Space Mono', bold: true, fontSize: 25, letterSpacing: 4, fill: '#1A2E05', align: 'left' }),+ tx({ x: 110, y: 270, width: 1400, height: 150, text: 'Built by people who', fontFamily: 'Space Grotesk', bold: true, fontSize: 76, fill: '#111111', align: 'left' }),+ tx({ x: 110, y: 395, width: 1400, height: 150, text: 'hate parking.', fontFamily: 'Space Grotesk', bold: true, fontSize: 76, fill: '#3F6212', align: 'left' }),+ sh('ellipse', { x: 140, y: 640, width: 260, height: 260, fill: '#111111' }),+ tx({ x: 170, y: 730, width: 200, height: 60, text: 'IW', fontFamily: 'Space Grotesk', bold: true, fontSize: 48, fill: '#A3E635', align: 'center' }),+ tx({ x: 140, y: 930, width: 300, height: 50, text: 'Ines Ward — CEO', fontFamily: 'Inter', bold: true, fontSize: 28, fill: '#111111', align: 'center' }),+ tx({ x: 140, y: 975, width: 300, height: 45, text: 'ex-Uber mobility, MIT', fontFamily: 'Inter', fontSize: 23, fill: '#3F6212', align: 'center' }),+ sh('ellipse', { x: 560, y: 640, width: 260, height: 260, fill: '#111111' }),+ tx({ x: 590, y: 730, width: 200, height: 60, text: 'TO', fontFamily: 'Space Grotesk', bold: true, fontSize: 48, fill: '#A3E635', align: 'center' }),+ tx({ x: 560, y: 930, width: 300, height: 50, text: 'Tom Okafor — CTO', fontFamily: 'Inter', bold: true, fontSize: 28, fill: '#111111', align: 'center' }),+ tx({ x: 560, y: 975, width: 300, height: 45, text: 'ex-Waymo routing, CMU', fontFamily: 'Inter', fontSize: 23, fill: '#3F6212', align: 'center' }),+ sh('rect', { x: 1000, y: 640, width: 800, height: 260, fill: '#111111', cornerRadius: 20 }),+ tx({ x: 1050, y: 690, width: 700, height: 60, text: 'We’re raising $3M', fontFamily: 'Space Grotesk', bold: true, fontSize: 46, fill: '#A3E635', align: 'left' }),+ tx({ x: 1050, y: 760, width: 700, height: 100, text: 'to reach 30 cities and 150K drivers by S26 demo day.', fontFamily: 'Inter', fontSize: 28, lineHeight: 1.4, fill: '#D4D4D4', align: 'left' }),+ ],+ },+ ],+ },++ // 7 ── Nonprofit impact · warm report system+ {+ slug: 'nonprofit-impact',+ name: 'Nonprofit Impact Deck',+ category: 'presentation',+ width: 1920,+ height: 1080,+ accent: '#0D9488',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#FDFBF7' },+ elements: [+ sh('rect', { x: 0, y: 0, width: 1920, height: 240, fill: '#0D9488' }),+ tx({ x: 120, y: 70, width: 1200, height: 60, text: 'ANNUAL IMPACT REPORT · 2025', fontFamily: 'DM Mono', bold: true, fontSize: 26, letterSpacing: 5, fill: '#CCFBF1', align: 'left' }),+ tx({ x: 110, y: 320, width: 1300, height: 170, text: 'Grow Together', fontFamily: 'Prata', fontSize: 110, fill: '#134E4A', align: 'left' }),+ tx({ x: 120, y: 520, width: 1100, height: 70, text: 'Community gardens that feed neighborhoods — year six.', fontFamily: 'Lora', italic: true, fontSize: 38, fill: '#0F766E', align: 'left' }),+ ln({ x: 122, y: 650, width: 140, height: 0, stroke: '#F59E0B', strokeWidth: 8 }),+ tx({ x: 120, y: 700, width: 1000, height: 60, text: '142 gardens · 11 cities · 61,000 neighbors fed', fontFamily: 'Inter', bold: true, fontSize: 32, fill: '#134E4A', align: 'left' }),+ st('🌱', { x: 1450, y: 560, width: 300, height: 300, fontSize: 220 }),+ ],+ },+ {+ id: 'p2',+ background: { type: 'solid', color: '#FDFBF7' },+ elements: [+ tx({ x: 120, y: 100, width: 900, height: 55, text: 'WHERE THE GROWTH WENT', fontFamily: 'DM Mono', bold: true, fontSize: 25, letterSpacing: 4, fill: '#0F766E', align: 'left' }),+ tx({ x: 110, y: 170, width: 1400, height: 120, text: 'Every dollar, twice over.', fontFamily: 'Prata', fontSize: 62, fill: '#134E4A', align: 'left' }),+ sh('rect', { x: 120, y: 360, width: 840, height: 280, fill: '#FFFFFF', cornerRadius: 20 }),+ tx({ x: 170, y: 400, width: 700, height: 100, text: '18,400 kg', fontFamily: 'Space Grotesk', bold: true, fontSize: 80, fill: '#0D9488', align: 'left' }),+ tx({ x: 170, y: 510, width: 740, height: 100, text: 'of fresh produce harvested — 71% distributed free through pantries and fridges.', fontFamily: 'Inter', fontSize: 28, lineHeight: 1.5, fill: '#44403C', align: 'left' }),+ sh('rect', { x: 1000, y: 360, width: 800, height: 280, fill: '#FFFFFF', cornerRadius: 20 }),+ tx({ x: 1050, y: 400, width: 700, height: 100, text: '2,100 kids', fontFamily: 'Space Grotesk', bold: true, fontSize: 80, fill: '#0D9488', align: 'left' }),+ tx({ x: 1050, y: 510, width: 700, height: 100, text: 'learned to grow food in school programs — 43 new beds built by volunteers.', fontFamily: 'Inter', fontSize: 28, lineHeight: 1.5, fill: '#44403C', align: 'left' }),+ sh('rect', { x: 120, y: 680, width: 1680, height: 220, fill: '#134E4A', cornerRadius: 20 }),+ tx({ x: 180, y: 720, width: 700, height: 60, text: '89¢ of every dollar', fontFamily: 'Space Grotesk', bold: true, fontSize: 46, fill: '#FDE68A', align: 'left' }),+ tx({ x: 180, y: 790, width: 1400, height: 80, text: 'went straight to programs — our leanest year yet, thanks to 900+ volunteer hours a month.', fontFamily: 'Inter', fontSize: 29, fill: '#CCFBF1', align: 'left' }),+ ],+ },+ {+ id: 'p3',+ background: { type: 'gradient', from: '#134E4A', to: '#0D9488', angle: 140 },+ elements: [+ tx({ x: 120, y: 260, width: 900, height: 55, text: '2026 · WHAT’S NEXT', fontFamily: 'DM Mono', bold: true, fontSize: 25, letterSpacing: 4, fill: '#FDE68A', align: 'left' }),+ tx({ x: 110, y: 340, width: 1500, height: 170, text: 'A garden within', fontFamily: 'Prata', fontSize: 100, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 110, y: 500, width: 1500, height: 170, text: 'ten minutes of everyone.', fontFamily: 'Prata', italic: true, fontSize: 100, fill: '#FDE68A', align: 'left' }),+ tx({ x: 120, y: 740, width: 1100, height: 100, text: 'Help us open 30 new gardens next spring — every $250 seeds a bed that feeds 12 families a week.', fontFamily: 'Lora', fontSize: 34, lineHeight: 1.5, fill: '#CCFBF1', align: 'left' }),+ sh('rect', { x: 120, y: 900, width: 520, height: 100, fill: '#FDE68A', cornerRadius: 50 }),+ tx({ x: 140, y: 930, width: 480, height: 50, text: 'GROWTOGETHER.ORG/DONATE', fontFamily: 'Outfit', bold: true, fontSize: 28, fill: '#134E4A', align: 'center' }),+ ],+ },+ ],+ },++ // 8 ── Product launch · violet keynote+ {+ slug: 'product-launch-deck',+ name: 'Product Launch Keynote',+ category: 'presentation',+ width: 1920,+ height: 1080,+ accent: '#7C3AED',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#0F0A1E' },+ elements: [+ sh('ellipse', { x: 240, y: 520, width: 900, height: 900, fill: '#7C3AED', opacity: 0.18 }),+ sh('ellipse', { x: 1200, y: -200, width: 800, height: 800, fill: '#A78BFA', opacity: 0.16 }),+ tx({ x: 120, y: 300, width: 900, height: 60, text: 'INTRODUCING · SPRING ’26 EVENT', fontFamily: 'DM Mono', bold: true, fontSize: 26, letterSpacing: 5, fill: '#A78BFA', align: 'left' }),+ tx({ x: 110, y: 380, width: 1500, height: 200, text: 'Cadence', fontFamily: 'Outfit', bold: true, fontSize: 150, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 110, y: 590, width: 1300, height: 100, text: 'The calendar that plans your week for you.', fontFamily: 'Space Grotesk', fontSize: 50, fill: '#C4B5FD', align: 'left' }),+ st('✨', { x: 1480, y: 380, width: 260, height: 260, fontSize: 190 }),+ ],+ },+ {+ id: 'p2',+ background: { type: 'solid', color: '#0F0A1E' },+ elements: [+ tx({ x: 120, y: 110, width: 900, height: 55, text: 'THREE IDEAS, ONE APP', fontFamily: 'DM Mono', bold: true, fontSize: 25, letterSpacing: 4, fill: '#A78BFA', align: 'left' }),+ tx({ x: 110, y: 180, width: 1400, height: 120, text: 'Your week, composed.', fontFamily: 'Outfit', bold: true, fontSize: 60, fill: '#FFFFFF', align: 'left' }),+ sh('rect', { x: 120, y: 380, width: 540, height: 480, fill: '#1C1333', cornerRadius: 24 }),+ gr('bolt', { x: 165, y: 425, width: 80, height: 80, fill: '#A78BFA' }),+ tx({ x: 165, y: 540, width: 460, height: 110, text: 'Auto-scheduling that respects energy', fontFamily: 'Outfit', bold: true, fontSize: 34, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 165, y: 660, width: 460, height: 160, text: 'Deep work lands in your best hours; meetings cluster into one protected block.', fontFamily: 'Inter', fontSize: 26, lineHeight: 1.5, fill: '#A78BFA', align: 'left' }),+ sh('rect', { x: 690, y: 380, width: 540, height: 480, fill: '#1C1333', cornerRadius: 24 }),+ gr('moon', { x: 735, y: 425, width: 80, height: 80, fill: '#A78BFA' }),+ tx({ x: 735, y: 540, width: 460, height: 110, text: 'Evenings that actually end', fontFamily: 'Outfit', bold: true, fontSize: 34, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 735, y: 660, width: 460, height: 160, text: 'Wind-down mode fades notifications and preps tomorrow before you sign off.', fontFamily: 'Inter', fontSize: 26, lineHeight: 1.5, fill: '#A78BFA', align: 'left' }),+ sh('rect', { x: 1260, y: 380, width: 540, height: 480, fill: '#7C3AED', cornerRadius: 24 }),+ gr('sparkle', { x: 1305, y: 425, width: 80, height: 80, fill: '#F5F3FF' }),+ tx({ x: 1305, y: 540, width: 460, height: 110, text: 'Plans that bend, not break', fontFamily: 'Outfit', bold: true, fontSize: 34, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 1305, y: 660, width: 460, height: 160, text: 'When life happens, Cadence re-flows your day in one tap — no Tetris required.', fontFamily: 'Inter', fontSize: 26, lineHeight: 1.5, fill: '#EDE9FE', align: 'left' }),+ ],+ },+ {+ id: 'p3',+ background: { type: 'solid', color: '#0F0A1E' },+ elements: [+ tx({ x: 120, y: 200, width: 900, height: 55, text: 'AVAILABILITY', fontFamily: 'DM Mono', bold: true, fontSize: 25, letterSpacing: 4, fill: '#A78BFA', align: 'left' }),+ tx({ x: 110, y: 280, width: 1500, height: 200, text: 'Free. Forever.', fontFamily: 'Outfit', bold: true, fontSize: 140, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 110, y: 500, width: 1300, height: 80, text: 'Every feature, every update — no tiers, no locks.', fontFamily: 'Space Grotesk', fontSize: 44, fill: '#C4B5FD', align: 'left' }),+ ln({ x: 122, y: 640, width: 1680, height: 0, stroke: '#2E2250', strokeWidth: 2 }),+ tx({ x: 120, y: 690, width: 780, height: 60, text: 'cadence.app — out now for iOS, Android & web', fontFamily: 'Inter', bold: true, fontSize: 32, fill: '#A78BFA', align: 'left' }),+ tx({ x: 120, y: 770, width: 900, height: 55, text: 'Import your calendar in under a minute.', fontFamily: 'Inter', fontSize: 28, fill: '#8B7BB8', align: 'left' }),+ st('📅', { x: 1450, y: 640, width: 280, height: 280, fontSize: 200 }),+ ],+ },+ ],+ },+]diff --git a/src/lib/templates/collection-v08-docs.ts b/src/lib/templates/collection-v08-docs.tsnew file mode 100644index 0000000..ef5f0ac--- /dev/null+++ b/src/lib/templates/collection-v08-docs.ts@@ -0,0 +1,404 @@+// ─────────────────────────────────────────────────────────────+// collection-v08/docs — 9 new premium document templates:+// resumes, cover letters, proposals, invoices, newsletters,+// whitepapers, agendas and press releases (A4 @ 150dpi).+// ─────────────────────────────────────────────────────────────++import type { TemplateDef } from './helpers'+import { tx, sh, ln, st, gr } from './helpers'++export const COLLECTION_V08_DOCS: TemplateDef[] = [+ // 1 ── Executive resume · navy sidebar+ {+ slug: 'resume-executive',+ name: 'Executive Resume',+ category: 'document',+ width: 1240,+ height: 1754,+ accent: '#1E3A5F',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#FFFFFF' },+ elements: [+ sh('rect', { x: 0, y: 0, width: 430, height: 1754, fill: '#1E3A5F' }),+ tx({ x: 60, y: 100, width: 320, height: 70, text: 'RACHEL', fontFamily: 'Playfair Display', bold: true, fontSize: 46, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 60, y: 160, width: 320, height: 70, text: 'OKONJO', fontFamily: 'Playfair Display', bold: true, fontSize: 46, fill: '#7FB3D5', align: 'left' }),+ tx({ x: 60, y: 240, width: 320, height: 45, text: 'CHIEF OPERATING OFFICER', fontFamily: 'Inter', bold: true, fontSize: 19, letterSpacing: 2, fill: '#BFD9EA', align: 'left' }),+ ln({ x: 62, y: 300, width: 80, height: 0, stroke: '#7FB3D5', strokeWidth: 3 }),+ tx({ x: 60, y: 350, width: 320, height: 50, text: 'CONTACT', fontFamily: 'Inter', bold: true, fontSize: 21, letterSpacing: 3, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 60, y: 400, width: 320, height: 200, text: '[email protected]\n+1 (555) 240-1188\nNew York, NY\nlinkedin.com/in/rokoonjo', fontFamily: 'Inter', fontSize: 20, lineHeight: 1.7, fill: '#BFD9EA', align: 'left' }),+ tx({ x: 60, y: 640, width: 320, height: 50, text: 'CORE STRENGTHS', fontFamily: 'Inter', bold: true, fontSize: 21, letterSpacing: 3, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 60, y: 695, width: 320, height: 330, text: 'P&L ownership · $120M scale\nOperations & supply chain\nTurnaround leadership\nBoard & investor relations\nM&A integration\nTeam building · 400+ orgs', fontFamily: 'Inter', fontSize: 20, lineHeight: 1.9, fill: '#BFD9EA', align: 'left' }),+ tx({ x: 60, y: 1080, width: 320, height: 50, text: 'EDUCATION', fontFamily: 'Inter', bold: true, fontSize: 21, letterSpacing: 3, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 60, y: 1135, width: 320, height: 180, text: 'MBA, Wharton (2011)\nBS Industrial Eng.,\nGeorgia Tech (2005)', fontFamily: 'Inter', fontSize: 20, lineHeight: 1.7, fill: '#BFD9EA', align: 'left' }),+ tx({ x: 60, y: 1370, width: 320, height: 50, text: 'LANGUAGES', fontFamily: 'Inter', bold: true, fontSize: 21, letterSpacing: 3, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 60, y: 1425, width: 320, height: 120, text: 'English (native)\nFrench (fluent)\nIgbo (native)', fontFamily: 'Inter', fontSize: 20, lineHeight: 1.7, fill: '#BFD9EA', align: 'left' }),+ tx({ x: 510, y: 100, width: 660, height: 60, text: 'OPERATIONS LEADER · 18 YEARS', fontFamily: 'Inter', bold: true, fontSize: 24, letterSpacing: 2, fill: '#1E3A5F', align: 'left' }),+ ln({ x: 512, y: 170, width: 660, height: 0, stroke: '#D7E2EC', strokeWidth: 3 }),+ tx({ x: 510, y: 220, width: 660, height: 130, text: 'I build operations that scale quietly — where the numbers move and nobody has to fight the process to do their job.', fontFamily: 'Lora', italic: true, fontSize: 25, lineHeight: 1.5, fill: '#42566B', align: 'left' }),+ tx({ x: 510, y: 400, width: 660, height: 50, text: 'EXPERIENCE', fontFamily: 'Inter', bold: true, fontSize: 22, letterSpacing: 3, fill: '#1E3A5F', align: 'left' }),+ tx({ x: 510, y: 455, width: 660, height: 45, text: 'COO — Meridian Logistics', fontFamily: 'Playfair Display', bold: true, fontSize: 28, fill: '#172A40', align: 'left' }),+ tx({ x: 510, y: 502, width: 660, height: 40, text: '2020 – present · New York', fontFamily: 'Inter', fontSize: 19, fill: '#7A8CA0', align: 'left' }),+ tx({ x: 510, y: 550, width: 660, height: 220, text: 'Scaled revenue from $38M to $121M in five years with flat headcount growth.\nCut order-to-delivery time 46% by rebuilding the routing stack.\nLed the $60M acquisition of a regional carrier — integrated in 90 days.\nGrew eNPS from +11 to +48 across a 400-person operations org.', fontFamily: 'Inter', fontSize: 20, lineHeight: 1.75, fill: '#3B4D61', align: 'left' }),+ tx({ x: 510, y: 800, width: 660, height: 45, text: 'VP Operations — Craft Retail Group', fontFamily: 'Playfair Display', bold: true, fontSize: 28, fill: '#172A40', align: 'left' }),+ tx({ x: 510, y: 847, width: 660, height: 40, text: '2015 – 2020 · Chicago', fontFamily: 'Inter', fontSize: 19, fill: '#7A8CA0', align: 'left' }),+ tx({ x: 510, y: 895, width: 660, height: 170, text: 'Owned supply chain for 120 stores and the e-commerce fulfilment build-out.\nRebuilt demand forecasting — stockouts down 31% year over year.\nPromoted twice; ran the ops side of the 2018 rebrand cutover.', fontFamily: 'Inter', fontSize: 20, lineHeight: 1.75, fill: '#3B4D61', align: 'left' }),+ tx({ x: 510, y: 1090, width: 660, height: 45, text: 'Director, Supply Chain — Atlas Foods', fontFamily: 'Playfair Display', bold: true, fontSize: 28, fill: '#172A40', align: 'left' }),+ tx({ x: 510, y: 1137, width: 660, height: 40, text: '2011 – 2015 · Atlanta', fontFamily: 'Inter', fontSize: 19, fill: '#7A8CA0', align: 'left' }),+ tx({ x: 510, y: 1185, width: 660, height: 170, text: 'Introduced S&OP across four plants; saved $9.2M in working capital.\nStarted as senior analyst in 2007 — grew with the function.', fontFamily: 'Inter', fontSize: 20, lineHeight: 1.75, fill: '#3B4D61', align: 'left' }),+ tx({ x: 510, y: 1400, width: 660, height: 50, text: 'SELECTED RECOGNITION', fontFamily: 'Inter', bold: true, fontSize: 22, letterSpacing: 3, fill: '#1E3A5F', align: 'left' }),+ tx({ x: 510, y: 1455, width: 660, height: 130, text: 'Supply Chain Executive of the Year, LogiTech Awards 2024\nFortune 40 Under 40 (2022)', fontFamily: 'Inter', fontSize: 20, lineHeight: 1.75, fill: '#3B4D61', align: 'left' }),+ ],+ },+ ],+ },++ // 2 ── Creative resume · coral two-column+ {+ slug: 'resume-creative',+ name: 'Creative Resume',+ category: 'document',+ width: 1240,+ height: 1754,+ accent: '#FB7185',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#FFF7F7' },+ elements: [+ sh('rect', { x: 0, y: 0, width: 1240, height: 420, fill: '#FB7185' }),+ tx({ x: 80, y: 90, width: 700, height: 90, text: 'Kai Nakamura', fontFamily: 'Fraunces', bold: true, fontSize: 68, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 84, y: 200, width: 700, height: 55, text: 'Product Designer · Systems thinker', fontFamily: 'Outfit', fontSize: 30, fill: '#FFE4E6', align: 'left' }),+ tx({ x: 84, y: 280, width: 700, height: 45, text: 'kai.design · [email protected] · Oakland, CA', fontFamily: 'Inter', fontSize: 22, fill: '#FECDD3', align: 'left' }),+ st('🎨', { x: 950, y: 90, width: 180, height: 180, fontSize: 130 }),+ tx({ x: 80, y: 480, width: 1080, height: 100, text: 'I turn messy product problems into systems — design tokens, components, and the docs that keep them honest.', fontFamily: 'Lora', italic: true, fontSize: 27, lineHeight: 1.5, fill: '#4C4C55', align: 'left' }),+ ln({ x: 80, y: 620, width: 1080, height: 0, stroke: '#FECDD3', strokeWidth: 3 }),+ tx({ x: 80, y: 670, width: 1080, height: 50, text: 'EXPERIENCE', fontFamily: 'Outfit', bold: true, fontSize: 26, letterSpacing: 3, fill: '#E11D48', align: 'left' }),+ tx({ x: 80, y: 730, width: 640, height: 45, text: 'Senior Product Designer — Fable', fontFamily: 'Fraunces', bold: true, fontSize: 30, fill: '#1F2937', align: 'left' }),+ tx({ x: 80, y: 778, width: 640, height: 40, text: '2021 – now', fontFamily: 'Inter', fontSize: 20, fill: '#9CA3AF', align: 'left' }),+ tx({ x: 80, y: 825, width: 640, height: 190, text: 'Led the design system from 40 chaotic components to 130 documented ones.\nShipped dark mode + 2 brand themes from one token pipeline.\nMentored 4 juniors; two promoted within a year.', fontFamily: 'Inter', fontSize: 21, lineHeight: 1.75, fill: '#4B5563', align: 'left' }),+ tx({ x: 80, y: 1040, width: 640, height: 45, text: 'Product Designer — Hearth', fontFamily: 'Fraunces', bold: true, fontSize: 30, fill: '#1F2937', align: 'left' }),+ tx({ x: 80, y: 1088, width: 640, height: 40, text: '2018 – 2021', fontFamily: 'Inter', fontSize: 20, fill: '#9CA3AF', align: 'left' }),+ tx({ x: 80, y: 1135, width: 640, height: 190, text: 'Owned onboarding end-to-end; activation up 27%.\nFirst design hire — built the brand, the site and the app UI.\nRan weekly research with 200+ customers.', fontFamily: 'Inter', fontSize: 21, lineHeight: 1.75, fill: '#4B5563', align: 'left' }),+ tx({ x: 80, y: 1350, width: 640, height: 45, text: 'Design Intern — Studio Dash', fontFamily: 'Fraunces', bold: true, fontSize: 30, fill: '#1F2937', align: 'left' }),+ tx({ x: 80, y: 1398, width: 640, height: 40, text: 'Summer 2017', fontFamily: 'Inter', fontSize: 20, fill: '#9CA3AF', align: 'left' }),+ tx({ x: 80, y: 1445, width: 640, height: 100, text: 'Brand + web for three small clients. Learned to present, and to bill.', fontFamily: 'Inter', fontSize: 21, lineHeight: 1.75, fill: '#4B5563', align: 'left' }),+ sh('rect', { x: 800, y: 730, width: 380, height: 640, fill: '#FFFFFF', cornerRadius: 24 }),+ tx({ x: 840, y: 770, width: 300, height: 50, text: 'TOOLKIT', fontFamily: 'Outfit', bold: true, fontSize: 22, letterSpacing: 3, fill: '#E11D48', align: 'left' }),+ tx({ x: 840, y: 820, width: 300, height: 40, text: 'Figma', fontFamily: 'Inter', bold: true, fontSize: 21, fill: '#374151', align: 'left' }),+ sh('rect', { x: 840, y: 862, width: 300, height: 12, fill: '#FECDD3', cornerRadius: 6 }),+ sh('rect', { x: 840, y: 862, width: 285, height: 12, fill: '#FB7185', cornerRadius: 6 }),+ tx({ x: 840, y: 890, width: 300, height: 40, text: 'Design systems', fontFamily: 'Inter', bold: true, fontSize: 21, fill: '#374151', align: 'left' }),+ sh('rect', { x: 840, y: 932, width: 300, height: 12, fill: '#FECDD3', cornerRadius: 6 }),+ sh('rect', { x: 840, y: 932, width: 270, height: 12, fill: '#FB7185', cornerRadius: 6 }),+ tx({ x: 840, y: 960, width: 300, height: 40, text: 'Prototyping', fontFamily: 'Inter', bold: true, fontSize: 21, fill: '#374151', align: 'left' }),+ sh('rect', { x: 840, y: 1002, width: 300, height: 12, fill: '#FECDD3', cornerRadius: 6 }),+ sh('rect', { x: 840, y: 1002, width: 240, height: 12, fill: '#FB7185', cornerRadius: 6 }),+ tx({ x: 840, y: 1030, width: 300, height: 40, text: 'Motion', fontFamily: 'Inter', bold: true, fontSize: 21, fill: '#374151', align: 'left' }),+ sh('rect', { x: 840, y: 1072, width: 300, height: 12, fill: '#FECDD3', cornerRadius: 6 }),+ sh('rect', { x: 840, y: 1072, width: 180, height: 12, fill: '#FB7185', cornerRadius: 6 }),+ tx({ x: 840, y: 1110, width: 300, height: 40, text: 'HTML/CSS', fontFamily: 'Inter', bold: true, fontSize: 21, fill: '#374151', align: 'left' }),+ sh('rect', { x: 840, y: 1152, width: 300, height: 12, fill: '#FECDD3', cornerRadius: 6 }),+ sh('rect', { x: 840, y: 1152, width: 210, height: 12, fill: '#FB7185', cornerRadius: 6 }),+ tx({ x: 840, y: 1210, width: 300, height: 50, text: 'EDUCATION', fontFamily: 'Outfit', bold: true, fontSize: 22, letterSpacing: 3, fill: '#E11D48', align: 'left' }),+ tx({ x: 840, y: 1260, width: 300, height: 90, text: 'BFA Communication Design\nCCA, 2018', fontFamily: 'Inter', fontSize: 21, lineHeight: 1.6, fill: '#4B5563', align: 'left' }),+ tx({ x: 80, y: 1600, width: 1080, height: 45, text: 'Portfolio: kai.design/work · References on request', fontFamily: 'Inter', bold: true, fontSize: 21, fill: '#E11D48', align: 'left' }),+ ],+ },+ ],+ },++ // 3 ── Cover letter · matching navy classic+ {+ slug: 'cover-letter',+ name: 'Cover Letter',+ category: 'document',+ width: 1240,+ height: 1754,+ accent: '#1E3A5F',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#FFFFFF' },+ elements: [+ sh('rect', { x: 0, y: 0, width: 1240, height: 200, fill: '#1E3A5F' }),+ tx({ x: 90, y: 60, width: 700, height: 60, text: 'RACHEL OKONJO', fontFamily: 'Playfair Display', bold: true, fontSize: 38, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 92, y: 125, width: 700, height: 45, text: 'Chief Operating Officer · New York, NY', fontFamily: 'Inter', fontSize: 22, fill: '#BFD9EA', align: 'left' }),+ tx({ x: 90, y: 260, width: 1060, height: 45, text: 'March 4, 2026', fontFamily: 'Inter', fontSize: 21, fill: '#7A8CA0', align: 'left' }),+ tx({ x: 90, y: 330, width: 1060, height: 45, text: 'Hiring Committee · Northbay Industrial', fontFamily: 'Inter', bold: true, fontSize: 22, fill: '#172A40', align: 'left' }),+ tx({ x: 90, y: 375, width: 1060, height: 45, text: '300 Harbor Street, Boston, MA', fontFamily: 'Inter', fontSize: 21, fill: '#7A8CA0', align: 'left' }),+ tx({ x: 90, y: 450, width: 1060, height: 60, text: 'Dear Committee,', fontFamily: 'Playfair Display', fontSize: 32, fill: '#1E3A5F', align: 'left' }),+ tx({ x: 90, y: 540, width: 1060, height: 200, text: 'Your posting describes a company doubling in size while trying not to double its complexity. That is the exact problem I have spent the last decade solving — most recently as COO of Meridian Logistics, where we grew from $38M to $121M with flat headcount.', fontFamily: 'Inter', fontSize: 23, lineHeight: 1.7, fill: '#3B4D61', align: 'left' }),+ tx({ x: 90, y: 760, width: 1060, height: 200, text: 'I noticed Northbay’s 10-K flags inventory turns as your top drag on margin. At Atlas Foods I led an S&OP rollout that freed $9.2M in working capital across four plants, and at Craft Retail I cut stockouts by 31% without adding a single planner. Operations should be boring in the best way — predictable, measured, quietly compounding.', fontFamily: 'Inter', fontSize: 23, lineHeight: 1.7, fill: '#3B4D61', align: 'left' }),+ tx({ x: 90, y: 980, width: 1060, height: 200, text: 'What drew me to your posting specifically was the line about “building the company our grandmothers could work at.” Culture at scale is an operations problem too. At Meridian, our eNPS went from +11 to +48 while we integrated a $60M acquisition — not because of perks, but because we fixed the processes that made people’s weeks miserable.', fontFamily: 'Inter', fontSize: 23, lineHeight: 1.7, fill: '#3B4D61', align: 'left' }),+ tx({ x: 90, y: 1200, width: 1060, height: 200, text: 'I would welcome the chance to walk you through the routing-stack rebuild in detail — it maps closely to your distribution expansion, and I suspect parts of it would transfer. Thank you for your time and consideration.', fontFamily: 'Inter', fontSize: 23, lineHeight: 1.7, fill: '#3B4D61', align: 'left' }),+ tx({ x: 90, y: 1430, width: 1060, height: 60, text: 'Warm regards,', fontFamily: 'Playfair Display', italic: true, fontSize: 32, fill: '#1E3A5F', align: 'left' }),+ tx({ x: 90, y: 1500, width: 1060, height: 55, text: 'Rachel Okonjo', fontFamily: 'Great Vibes', fontSize: 52, fill: '#172A40', align: 'left' }),+ ln({ x: 92, y: 1570, width: 320, height: 0, stroke: '#D7E2EC', strokeWidth: 2 }),+ tx({ x: 90, y: 1590, width: 700, height: 45, text: '[email protected] · +1 (555) 240-1188', fontFamily: 'Inter', fontSize: 20, fill: '#7A8CA0', align: 'left' }),+ ],+ },+ ],+ },++ // 4 ── Project proposal · clean scoped+ {+ slug: 'project-proposal',+ name: 'Project Proposal',+ category: 'document',+ width: 1240,+ height: 1754,+ accent: '#0F766E',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#FFFFFF' },+ elements: [+ sh('rect', { x: 0, y: 0, width: 1240, height: 330, fill: '#F0FDFA' }),+ tx({ x: 90, y: 70, width: 700, height: 50, text: 'PROJECT PROPOSAL · #2026-014', fontFamily: 'DM Mono', bold: true, fontSize: 22, letterSpacing: 3, fill: '#0F766E', align: 'left' }),+ tx({ x: 85, y: 125, width: 1000, height: 110, text: 'Willow Park Playground Rebuild', fontFamily: 'Outfit', bold: true, fontSize: 64, fill: '#134E4A', align: 'left' }),+ tx({ x: 90, y: 250, width: 1000, height: 50, text: 'Prepared for the City of Willow Park · April 2026', fontFamily: 'Inter', fontSize: 24, fill: '#0F766E', align: 'left' }),+ tx({ x: 90, y: 390, width: 1060, height: 50, text: '1 · WHAT WE PROPOSE', fontFamily: 'Outfit', bold: true, fontSize: 26, letterSpacing: 2, fill: '#134E4A', align: 'left' }),+ tx({ x: 90, y: 450, width: 1060, height: 170, text: 'A full rebuild of the Willow Park playground on its existing footprint: inclusive surfacing, a fenced toddler zone, shade canopies over 60% of the play area, and a water-mist feature for summer months. The current structure is 24 years old and fails current safety standards in three areas.', fontFamily: 'Inter', fontSize: 22, lineHeight: 1.7, fill: '#3F5450', align: 'left' }),+ tx({ x: 90, y: 660, width: 1060, height: 50, text: '2 · SCOPE OF WORK', fontFamily: 'Outfit', bold: true, fontSize: 26, letterSpacing: 2, fill: '#134E4A', align: 'left' }),+ tx({ x: 90, y: 715, width: 500, height: 300, text: 'Demolition & site prep (2 weeks)\nNew play structure, ages 2–12 (3 weeks)\nPoured rubber surfacing, all-access (1 week)\nShade canopies + misting station (1 week)\nLandscaping & benches (1 week)', fontFamily: 'Inter', fontSize: 22, lineHeight: 1.9, fill: '#3F5450', align: 'left' }),+ sh('rect', { x: 660, y: 700, width: 490, height: 330, fill: '#F0FDFA', cornerRadius: 20 }),+ tx({ x: 700, y: 735, width: 410, height: 45, text: 'TIMELINE', fontFamily: 'DM Mono', bold: true, fontSize: 20, letterSpacing: 3, fill: '#0F766E', align: 'left' }),+ tx({ x: 700, y: 790, width: 410, height: 220, text: 'Kickoff: May 26\nSubstantial completion: August 4\nInspection & handover: August 11–15\nEight working weeks, weather buffer included.', fontFamily: 'Inter', fontSize: 22, lineHeight: 1.8, fill: '#3F5450', align: 'left' }),+ tx({ x: 90, y: 1080, width: 1060, height: 50, text: '3 · INVESTMENT', fontFamily: 'Outfit', bold: true, fontSize: 26, letterSpacing: 2, fill: '#134E4A', align: 'left' }),+ ln({ x: 90, y: 1140, width: 1060, height: 0, stroke: '#CCFBF1', strokeWidth: 2 }),+ tx({ x: 90, y: 1160, width: 760, height: 45, text: 'Play structure, inclusive design', fontFamily: 'Inter', fontSize: 22, fill: '#3F5450', align: 'left' }),+ tx({ x: 870, y: 1160, width: 280, height: 45, text: '$148,000', fontFamily: 'Inter', bold: true, fontSize: 22, fill: '#134E4A', align: 'right' }),+ tx({ x: 90, y: 1215, width: 760, height: 45, text: 'Surfacing & site works', fontFamily: 'Inter', fontSize: 22, fill: '#3F5450', align: 'left' }),+ tx({ x: 870, y: 1215, width: 280, height: 45, text: '$ 96,500', fontFamily: 'Inter', bold: true, fontSize: 22, fill: '#134E4A', align: 'right' }),+ tx({ x: 90, y: 1270, width: 760, height: 45, text: 'Shade, misting & landscaping', fontFamily: 'Inter', fontSize: 22, fill: '#3F5450', align: 'left' }),+ tx({ x: 870, y: 1270, width: 280, height: 45, text: '$ 52,000', fontFamily: 'Inter', bold: true, fontSize: 22, fill: '#134E4A', align: 'right' }),+ ln({ x: 90, y: 1330, width: 1060, height: 0, stroke: '#0F766E', strokeWidth: 3 }),+ tx({ x: 90, y: 1350, width: 760, height: 55, text: 'Total, fixed fee', fontFamily: 'Outfit', bold: true, fontSize: 26, fill: '#134E4A', align: 'left' }),+ tx({ x: 870, y: 1350, width: 280, height: 55, text: '$296,500', fontFamily: 'Outfit', bold: true, fontSize: 28, fill: '#0F766E', align: 'right' }),+ tx({ x: 90, y: 1450, width: 1060, height: 100, text: 'Includes permits, safety certification and a 5-year structure warranty. Payment: 30% at kickoff, 40% at substantial completion, 30% after handover.', fontFamily: 'Inter', fontSize: 21, lineHeight: 1.6, fill: '#5C6F6B', align: 'left' }),+ tx({ x: 90, y: 1620, width: 700, height: 45, text: 'Greenfield Build Co. · lic #BC-4471 · bond available on request', fontFamily: 'Inter', bold: true, fontSize: 19, fill: '#0F766E', align: 'left' }),+ ],+ },+ ],+ },++ // 5 ── Invoice · clean & fast to read+ {+ slug: 'invoice-clean',+ name: 'Clean Invoice',+ category: 'document',+ width: 1240,+ height: 1754,+ accent: '#334155',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#FFFFFF' },+ elements: [+ tx({ x: 90, y: 100, width: 500, height: 70, text: 'INVOICE', fontFamily: 'Space Grotesk', bold: true, fontSize: 54, fill: '#0F172A', align: 'left' }),+ tx({ x: 90, y: 180, width: 500, height: 45, text: '#INV-2026-0347', fontFamily: 'DM Mono', fontSize: 24, letterSpacing: 2, fill: '#64748B', align: 'left' }),+ sh('rect', { x: 840, y: 100, width: 310, height: 125, fill: '#0F172A', cornerRadius: 16 }),+ tx({ x: 860, y: 120, width: 270, height: 45, text: 'AMOUNT DUE', fontFamily: 'Inter', bold: true, fontSize: 17, letterSpacing: 2, fill: '#94A3B8', align: 'left' }),+ tx({ x: 860, y: 155, width: 270, height: 60, text: '$4,280.00', fontFamily: 'Space Grotesk', bold: true, fontSize: 40, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 90, y: 290, width: 400, height: 45, text: 'FROM', fontFamily: 'Inter', bold: true, fontSize: 19, letterSpacing: 3, fill: '#64748B', align: 'left' }),+ tx({ x: 90, y: 335, width: 420, height: 160, text: 'Studio Fern\[email protected]\n34 Alder Ave, Suite 2\nPortland, OR 97204', fontFamily: 'Inter', fontSize: 21, lineHeight: 1.7, fill: '#334155', align: 'left' }),+ tx({ x: 700, y: 290, width: 400, height: 45, text: 'BILL TO', fontFamily: 'Inter', bold: true, fontSize: 19, letterSpacing: 3, fill: '#64748B', align: 'left' }),+ tx({ x: 700, y: 335, width: 450, height: 160, text: 'Meridian Logistics\[email protected]\nAttn: Priya Shah\n1200 Wharf Rd, NY 10014', fontFamily: 'Inter', fontSize: 21, lineHeight: 1.7, fill: '#334155', align: 'left' }),+ sh('rect', { x: 90, y: 540, width: 1060, height: 60, fill: '#F1F5F9' }),+ tx({ x: 110, y: 555, width: 500, height: 40, text: 'DESCRIPTION', fontFamily: 'Inter', bold: true, fontSize: 18, letterSpacing: 2, fill: '#64748B', align: 'left' }),+ tx({ x: 700, y: 555, width: 120, height: 40, text: 'QTY', fontFamily: 'Inter', bold: true, fontSize: 18, letterSpacing: 2, fill: '#64748B', align: 'left' }),+ tx({ x: 830, y: 555, width: 300, height: 40, text: 'AMOUNT', fontFamily: 'Inter', bold: true, fontSize: 18, letterSpacing: 2, fill: '#64748B', align: 'right' }),+ tx({ x: 110, y: 625, width: 520, height: 90, text: 'Brand identity — logo system,\ncolor & type', fontFamily: 'Inter', fontSize: 21, lineHeight: 1.5, fill: '#334155', align: 'left' }),+ tx({ x: 700, y: 625, width: 120, height: 45, text: '1', fontFamily: 'Inter', fontSize: 21, fill: '#334155', align: 'left' }),+ tx({ x: 830, y: 625, width: 300, height: 45, text: '$2,400.00', fontFamily: 'Inter', fontSize: 21, fill: '#334155', align: 'right' }),+ ln({ x: 90, y: 720, width: 1060, height: 0, stroke: '#E2E8F0', strokeWidth: 1.5 }),+ tx({ x: 110, y: 740, width: 520, height: 90, text: 'Website design — 5 pages,\nresponsive build', fontFamily: 'Inter', fontSize: 21, lineHeight: 1.5, fill: '#334155', align: 'left' }),+ tx({ x: 700, y: 740, width: 120, height: 45, text: '1', fontFamily: 'Inter', fontSize: 21, fill: '#334155', align: 'left' }),+ tx({ x: 830, y: 740, width: 300, height: 45, text: '$1,600.00', fontFamily: 'Inter', fontSize: 21, fill: '#334155', align: 'right' }),+ ln({ x: 90, y: 835, width: 1060, height: 0, stroke: '#E2E8F0', strokeWidth: 1.5 }),+ tx({ x: 110, y: 855, width: 520, height: 90, text: 'Consulting — brand rollout\nsessions (2 × 2 hrs)', fontFamily: 'Inter', fontSize: 21, lineHeight: 1.5, fill: '#334155', align: 'left' }),+ tx({ x: 700, y: 855, width: 120, height: 45, text: '2', fontFamily: 'Inter', fontSize: 21, fill: '#334155', align: 'left' }),+ tx({ x: 830, y: 855, width: 300, height: 45, text: '$ 280.00', fontFamily: 'Inter', fontSize: 21, fill: '#334155', align: 'right' }),+ ln({ x: 90, y: 950, width: 1060, height: 0, stroke: '#E2E8F0', strokeWidth: 1.5 }),+ tx({ x: 620, y: 980, width: 310, height: 45, text: 'Subtotal', fontFamily: 'Inter', fontSize: 22, fill: '#64748B', align: 'left' }),+ tx({ x: 830, y: 980, width: 300, height: 45, text: '$4,280.00', fontFamily: 'Inter', bold: true, fontSize: 22, fill: '#334155', align: 'right' }),+ tx({ x: 620, y: 1035, width: 310, height: 45, text: 'Tax (0%)', fontFamily: 'Inter', fontSize: 22, fill: '#64748B', align: 'left' }),+ tx({ x: 830, y: 1035, width: 300, height: 45, text: '$0.00', fontFamily: 'Inter', bold: true, fontSize: 22, fill: '#334155', align: 'right' }),+ sh('rect', { x: 620, y: 1095, width: 530, height: 90, fill: '#0F172A', cornerRadius: 14 }),+ tx({ x: 640, y: 1120, width: 280, height: 45, text: 'TOTAL DUE', fontFamily: 'Inter', bold: true, fontSize: 22, fill: '#94A3B8', align: 'left' }),+ tx({ x: 830, y: 1118, width: 300, height: 50, text: '$4,280.00', fontFamily: 'Space Grotesk', bold: true, fontSize: 30, fill: '#FFFFFF', align: 'right' }),+ ln({ x: 90, y: 1290, width: 1060, height: 0, stroke: '#E2E8F0', strokeWidth: 2 }),+ tx({ x: 90, y: 1320, width: 1060, height: 45, text: 'PAYMENT TERMS', fontFamily: 'Inter', bold: true, fontSize: 19, letterSpacing: 3, fill: '#64748B', align: 'left' }),+ tx({ x: 90, y: 1370, width: 1060, height: 130, text: 'Due within 14 days of issue (Mar 26, 2026).\nBank transfer — Meridian NW Bank · Acct 0043 8821 · Routing 123 000 789\nLate payments accrue 1.5% monthly. Questions: [email protected]', fontFamily: 'Inter', fontSize: 21, lineHeight: 1.7, fill: '#475569', align: 'left' }),+ st('🌱', { x: 90, y: 1560, width: 100, height: 100, fontSize: 70 }),+ tx({ x: 210, y: 1580, width: 500, height: 45, text: 'Studio Fern — design for quiet brands', fontFamily: 'Caveat', bold: true, fontSize: 36, fill: '#64748B', align: 'left' }),+ ],+ },+ ],+ },++ // 6 ── School newsletter · friendly & organized+ {+ slug: 'school-newsletter',+ name: 'School Newsletter',+ category: 'document',+ width: 1240,+ height: 1754,+ accent: '#2563EB',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#FFFFFF' },+ elements: [+ sh('rect', { x: 0, y: 0, width: 1240, height: 300, fill: '#2563EB' }),+ sh('ellipse', { x: 1000, y: -80, width: 380, height: 380, fill: '#3B82F6', opacity: 0.6 }),+ tx({ x: 90, y: 70, width: 900, height: 50, text: 'WILLOW CREEK ELEMENTARY · ISSUE 24', fontFamily: 'Inter', bold: true, fontSize: 21, letterSpacing: 3, fill: '#BFDBFE', align: 'left' }),+ tx({ x: 85, y: 120, width: 1000, height: 110, text: 'The Willow Weekly', fontFamily: 'Quicksand', bold: true, fontSize: 74, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 90, y: 235, width: 900, height: 45, text: 'News for families · Friday, March 6, 2026', fontFamily: 'Inter', fontSize: 24, fill: '#DBEAFE', align: 'left' }),+ tx({ x: 90, y: 350, width: 660, height: 50, text: '🌟 STUDENTS OF THE MONTH', fontFamily: 'Quicksand', bold: true, fontSize: 30, fill: '#1E40AF', align: 'left' }),+ tx({ x: 90, y: 410, width: 660, height: 180, text: 'Congratulations to Leila M. (Grade 2) and Sam O. (Grade 5)! Leila organized the library’s lost-book rescue, and Sam built a rain gauge the whole third grade now uses. Both received their awards at Monday’s assembly — and the loudest applause, per tradition.', fontFamily: 'Inter', fontSize: 22, lineHeight: 1.7, fill: '#334155', align: 'left' }),+ sh('rect', { x: 90, y: 640, width: 660, height: 250, fill: '#EFF6FF', cornerRadius: 20 }),+ tx({ x: 130, y: 675, width: 580, height: 50, text: '📚 SPRING BOOK FAIR — NEXT WEEK', fontFamily: 'Quicksand', bold: true, fontSize: 28, fill: '#1E40AF', align: 'left' }),+ tx({ x: 130, y: 735, width: 580, height: 140, text: 'The gym turns into a bookstore March 10–12. Family night is Wednesday until 7 PM with pizza by donation. Volunteers still needed for Tuesday morning — sign up at the front desk.', fontFamily: 'Inter', fontSize: 22, lineHeight: 1.7, fill: '#334155', align: 'left' }),+ tx({ x: 90, y: 940, width: 660, height: 50, text: '🥗 LUNCH MENU CHANGES', fontFamily: 'Quicksand', bold: true, fontSize: 30, fill: '#1E40AF', align: 'left' }),+ tx({ x: 90, y: 1000, width: 660, height: 130, text: 'New menu starts after spring break: Taco Tuesday gains a veggie option, and Friday is now “build your own grain bowl” day. Full menu on the school portal.', fontFamily: 'Inter', fontSize: 22, lineHeight: 1.7, fill: '#334155', align: 'left' }),+ sh('rect', { x: 800, y: 350, width: 350, height: 540, fill: '#FEF9C3', cornerRadius: 20 }),+ tx({ x: 840, y: 385, width: 270, height: 50, text: 'DATES TO KNOW', fontFamily: 'Quicksand', bold: true, fontSize: 26, fill: '#854D0E', align: 'left' }),+ tx({ x: 840, y: 445, width: 270, height: 420, text: 'Mar 10–12 · Book Fair\nMar 13 · No school\nMar 16–20 · Conferences\nMar 23–27 · Spring break\nApr 2 · Science Night\nApr 10 · Fun Run', fontFamily: 'Inter', fontSize: 22, lineHeight: 2.0, fill: '#57430A', align: 'left' }),+ sh('rect', { x: 800, y: 920, width: 350, height: 300, fill: '#DCFCE7', cornerRadius: 20 }),+ tx({ x: 840, y: 955, width: 270, height: 50, text: '🏃 FUN RUN SPONSORS', fontFamily: 'Quicksand', bold: true, fontSize: 26, fill: '#166534', align: 'left' }),+ tx({ x: 840, y: 1015, width: 270, height: 180, text: 'Pledges are at $4,180 of our $6,000 goal. Every dollar funds new playground balls, art supplies and field trips. Pledge forms went home Monday!', fontFamily: 'Inter', fontSize: 22, lineHeight: 1.7, fill: '#14532D', align: 'left' }),+ ln({ x: 90, y: 1380, width: 1060, height: 0, stroke: '#DBEAFE', strokeWidth: 3 }),+ tx({ x: 90, y: 1420, width: 1060, height: 50, text: 'A NOTE FROM MRS. ADEYEMI', fontFamily: 'Quicksand', bold: true, fontSize: 26, fill: '#1E40AF', align: 'left' }),+ tx({ x: 90, y: 1475, width: 1060, height: 130, text: '“Conference sign-ups close Friday — even five minutes with your child’s teacher changes the whole spring term. And thank you for the warm welcome back; the knee brace is temporary, the enthusiasm is not.”', fontFamily: 'Lora', italic: true, fontSize: 23, lineHeight: 1.7, fill: '#334155', align: 'left' }),+ tx({ x: 90, y: 1660, width: 1060, height: 45, text: 'willowcreek.edu/weekly · [email protected] · (555) 011-4400', fontFamily: 'Inter', bold: true, fontSize: 19, fill: '#64748B', align: 'left' }),+ ],+ },+ ],+ },++ // 7 ── Tech whitepaper cover · abstract systems+ {+ slug: 'whitepaper-cover',+ name: 'Tech Whitepaper',+ category: 'document',+ width: 1240,+ height: 1754,+ accent: '#4F46E5',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#0B0B1A' },+ elements: [+ sh('ellipse', { x: 340, y: 260, width: 560, height: 560, fill: 'transparent', stroke: '#4F46E5', strokeWidth: 3 }),+ sh('ellipse', { x: 415, y: 335, width: 410, height: 410, fill: 'transparent', stroke: '#818CF8', strokeWidth: 2 }),+ sh('ellipse', { x: 490, y: 410, width: 260, height: 260, fill: 'transparent', stroke: '#A5B4FC', strokeWidth: 2 }),+ gr('hexagon', { x: 555, y: 475, width: 130, height: 130, fill: '#4F46E5' }),+ tx({ x: 90, y: 950, width: 1060, height: 55, text: 'TECHNICAL WHITEPAPER · V1.2 · MARCH 2026', fontFamily: 'DM Mono', bold: true, fontSize: 22, letterSpacing: 3, fill: '#818CF8', align: 'left' }),+ tx({ x: 85, y: 1010, width: 1080, height: 120, text: 'Event-Sourced', fontFamily: 'Space Grotesk', bold: true, fontSize: 78, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 85, y: 1110, width: 1080, height: 120, text: 'Collaboration', fontFamily: 'Space Grotesk', bold: true, fontSize: 78, fill: '#A5B4FC', align: 'left' }),+ ln({ x: 87, y: 1270, width: 160, height: 0, stroke: '#4F46E5', strokeWidth: 5 }),+ tx({ x: 90, y: 1310, width: 800, height: 130, text: 'A practical architecture for real-time editing without a WebSocket server — append-only logs, sequence numbers, and SSE replay.', fontFamily: 'Inter', fontSize: 26, lineHeight: 1.6, fill: '#C7D2FE', align: 'left' }),+ tx({ x: 90, y: 1520, width: 1060, height: 45, text: 'D. KIM · R. SILVA · CANVIX ENGINEERING', fontFamily: 'Inter', bold: true, fontSize: 21, letterSpacing: 2, fill: '#6366F1', align: 'left' }),+ tx({ x: 90, y: 1570, width: 1060, height: 45, text: 'engineering.canvix.dev/papers', fontFamily: 'DM Mono', fontSize: 20, fill: '#64748B', align: 'left' }),+ ],+ },+ ],+ },++ // 8 ── Meeting agenda · minimal timed+ {+ slug: 'meeting-agenda',+ name: 'Meeting Agenda',+ category: 'document',+ width: 1240,+ height: 1754,+ accent: '#57534E',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#FAFAF9' },+ elements: [+ tx({ x: 100, y: 110, width: 800, height: 55, text: 'WEEKLY TEAM SYNC', fontFamily: 'Inter', bold: true, fontSize: 21, letterSpacing: 4, fill: '#A8A29E', align: 'left' }),+ tx({ x: 95, y: 160, width: 900, height: 90, text: 'Product Review — Q2 Roadmap', fontFamily: 'Manrope', bold: true, fontSize: 52, fill: '#1C1917', align: 'left' }),+ ln({ x: 100, y: 280, width: 1040, height: 0, stroke: '#E7E5E4', strokeWidth: 3 }),+ tx({ x: 100, y: 310, width: 700, height: 45, text: 'Thursday, March 12 · 10:00 – 11:00 · Room 4 / Zoom', fontFamily: 'Inter', fontSize: 23, fill: '#57534E', align: 'left' }),+ tx({ x: 100, y: 360, width: 700, height: 45, text: 'Facilitator: Jo Alvarez · Notes: shared doc', fontFamily: 'Inter', fontSize: 23, fill: '#57534E', align: 'left' }),+ sh('rect', { x: 100, y: 460, width: 1040, height: 90, fill: '#FFFFFF', cornerRadius: 14 }),+ tx({ x: 130, y: 485, width: 160, height: 45, text: '10:00', fontFamily: 'DM Mono', bold: true, fontSize: 26, fill: '#A8A29E', align: 'left' }),+ tx({ x: 320, y: 482, width: 640, height: 50, text: 'Check-in — one word each', fontFamily: 'Inter', bold: true, fontSize: 27, fill: '#1C1917', align: 'left' }),+ tx({ x: 990, y: 487, width: 120, height: 45, text: '5 min', fontFamily: 'Inter', fontSize: 21, fill: '#A8A29E', align: 'right' }),+ sh('rect', { x: 100, y: 570, width: 1040, height: 90, fill: '#FFFFFF', cornerRadius: 14 }),+ tx({ x: 130, y: 595, width: 160, height: 45, text: '10:05', fontFamily: 'DM Mono', bold: true, fontSize: 26, fill: '#A8A29E', align: 'left' }),+ tx({ x: 320, y: 592, width: 640, height: 50, text: 'Metrics review — signup funnel', fontFamily: 'Inter', bold: true, fontSize: 27, fill: '#1C1917', align: 'left' }),+ tx({ x: 990, y: 597, width: 120, height: 45, text: '10 min', fontFamily: 'Inter', fontSize: 21, fill: '#A8A29E', align: 'right' }),+ sh('rect', { x: 100, y: 680, width: 1040, height: 130, fill: '#FFFFFF', cornerRadius: 14 }),+ tx({ x: 130, y: 705, width: 160, height: 45, text: '10:15', fontFamily: 'DM Mono', bold: true, fontSize: 26, fill: '#A8A29E', align: 'left' }),+ tx({ x: 320, y: 702, width: 640, height: 50, text: 'Q2 roadmap — decide top 3 bets', fontFamily: 'Inter', bold: true, fontSize: 27, fill: '#1C1917', align: 'left' }),+ tx({ x: 990, y: 707, width: 120, height: 45, text: '25 min', fontFamily: 'Inter', fontSize: 21, fill: '#A8A29E', align: 'right' }),+ tx({ x: 320, y: 755, width: 640, height: 45, text: 'Decision needed: staffing for the API rebuild', fontFamily: 'Inter', fontSize: 22, fill: '#78716C', align: 'left' }),+ sh('rect', { x: 100, y: 830, width: 1040, height: 90, fill: '#FFFFFF', cornerRadius: 14 }),+ tx({ x: 130, y: 855, width: 160, height: 45, text: '10:40', fontFamily: 'DM Mono', bold: true, fontSize: 26, fill: '#A8A29E', align: 'left' }),+ tx({ x: 320, y: 852, width: 640, height: 50, text: 'Design system adoption — blockers', fontFamily: 'Inter', bold: true, fontSize: 27, fill: '#1C1917', align: 'left' }),+ tx({ x: 990, y: 857, width: 120, height: 45, text: '10 min', fontFamily: 'Inter', fontSize: 21, fill: '#A8A29E', align: 'right' }),+ sh('rect', { x: 100, y: 940, width: 1040, height: 90, fill: '#FFFFFF', cornerRadius: 14 }),+ tx({ x: 130, y: 965, width: 160, height: 45, text: '10:50', fontFamily: 'DM Mono', bold: true, fontSize: 26, fill: '#A8A29E', align: 'left' }),+ tx({ x: 320, y: 962, width: 640, height: 50, text: 'Asks & shout-outs', fontFamily: 'Inter', bold: true, fontSize: 27, fill: '#1C1917', align: 'left' }),+ tx({ x: 990, y: 967, width: 120, height: 45, text: '10 min', fontFamily: 'Inter', fontSize: 21, fill: '#A8A29E', align: 'right' }),+ sh('rect', { x: 100, y: 1120, width: 1040, height: 300, fill: '#F5F5F4', cornerRadius: 18 }),+ tx({ x: 140, y: 1155, width: 960, height: 50, text: 'NOTES & PARKING LOT', fontFamily: 'Inter', bold: true, fontSize: 21, letterSpacing: 3, fill: '#78716C', align: 'left' }),+ ln({ x: 140, y: 1240, width: 960, height: 0, stroke: '#D6D3D1', strokeWidth: 1.5, dashed: true }),+ ln({ x: 140, y: 1310, width: 960, height: 0, stroke: '#D6D3D1', strokeWidth: 1.5, dashed: true }),+ ln({ x: 140, y: 1380, width: 960, height: 0, stroke: '#D6D3D1', strokeWidth: 1.5, dashed: true }),+ tx({ x: 100, y: 1500, width: 1040, height: 45, text: 'Outcomes we need today: 3 ranked bets · API staffing decision · next facilitator', fontFamily: 'Inter', bold: true, fontSize: 22, fill: '#44403C', align: 'left' }),+ ],+ },+ ],+ },++ // 9 ── Press release · classic masthead+ {+ slug: 'press-release',+ name: 'Press Release',+ category: 'document',+ width: 1240,+ height: 1754,+ accent: '#991B1B',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#FFFFFF' },+ elements: [+ tx({ x: 90, y: 100, width: 1060, height: 70, text: 'FERNWAY', fontFamily: 'Bodoni Moda', bold: true, fontSize: 54, fill: '#111827', align: 'center' }),+ ln({ x: 240, y: 185, width: 760, height: 0, stroke: '#111827', strokeWidth: 3 }),+ ln({ x: 240, y: 193, width: 760, height: 0, stroke: '#111827', strokeWidth: 1 }),+ tx({ x: 90, y: 210, width: 1060, height: 45, text: 'URBAN MOBILITY · PRESS OFFICE', fontFamily: 'Inter', bold: true, fontSize: 19, letterSpacing: 6, fill: '#6B7280', align: 'center' }),+ sh('rect', { x: 90, y: 300, width: 340, height: 55, fill: '#991B1B', cornerRadius: 6 }),+ tx({ x: 110, y: 313, width: 300, height: 35, text: 'FOR IMMEDIATE RELEASE', fontFamily: 'Inter', bold: true, fontSize: 18, letterSpacing: 1, fill: '#FFFFFF', align: 'center' }),+ tx({ x: 90, y: 400, width: 1060, height: 120, text: 'Fernway passes 40,000 drivers as it expands\nparking prediction to three new cities', fontFamily: 'Playfair Display', bold: true, fontSize: 44, lineHeight: 1.25, fill: '#111827', align: 'left' }),+ tx({ x: 90, y: 550, width: 1060, height: 45, text: 'Denver, Austin and Philadelphia join the platform in June; company predicts a free 12-minute average search time.', fontFamily: 'Lora', italic: true, fontSize: 25, fill: '#4B5563', align: 'left' }),+ ln({ x: 90, y: 620, width: 1060, height: 0, stroke: '#E5E7EB', strokeWidth: 2 }),+ tx({ x: 90, y: 660, width: 1060, height: 190, text: 'Brooklyn, NY — March 5, 2026 — Fernway, the parking prediction app that tells drivers where a spot will open before they arrive, today announced it has passed 40,000 monthly active drivers across 12 cities. The company also confirmed expansion to Denver, Austin and Philadelphia this June, funded entirely by its city-partnership model rather than driver fees.', fontFamily: 'Inter', fontSize: 23, lineHeight: 1.75, fill: '#374151', align: 'left' }),+ tx({ x: 90, y: 880, width: 1060, height: 160, text: '“Parking is a math problem, not a luck problem,” said co-founder and CEO Ines Ward. “Every circling car is a small tax on the whole street. When 40,000 people stop circling, the block gets quieter, faster and safer — that’s the mission, and these three cities double our reach.”', fontFamily: 'Inter', fontSize: 23, lineHeight: 1.75, fill: '#374151', align: 'left' }),+ tx({ x: 90, y: 1070, width: 1060, height: 190, text: 'Fernway’s model uses anonymized curbside sensors and historical turnover data to predict where spaces will free up within a 12-minute arrival window, with 87% accuracy in its densest market. The app remains free for drivers; cities pay for the congestion analytics layer, and nine of Fernway’s twelve municipal partners have renewed for a second year.', fontFamily: 'Inter', fontSize: 23, lineHeight: 1.75, fill: '#374151', align: 'left' }),+ tx({ x: 90, y: 1300, width: 1060, height: 45, text: 'About Fernway', fontFamily: 'Playfair Display', bold: true, fontSize: 30, fill: '#111827', align: 'left' }),+ tx({ x: 90, y: 1355, width: 1060, height: 120, text: 'Founded in 2023 by Ines Ward and Tom Okafor, Fernway works with cities to reduce curbside congestion through prediction. The company is remote-first with a 22-person team across Brooklyn and Oslo.', fontFamily: 'Inter', fontSize: 22, lineHeight: 1.7, fill: '#4B5563', align: 'left' }),+ ln({ x: 90, y: 1500, width: 1060, height: 0, stroke: '#E5E7EB', strokeWidth: 2 }),+ tx({ x: 90, y: 1530, width: 1060, height: 45, text: 'Press contact: Dana Kim · [email protected] · +1 (555) 903-2210', fontFamily: 'Inter', bold: true, fontSize: 21, fill: '#991B1B', align: 'left' }),+ tx({ x: 90, y: 1580, width: 1060, height: 45, text: '###', fontFamily: 'Inter', bold: true, fontSize: 24, fill: '#9CA3AF', align: 'left' }),+ ],+ },+ ],+ },+]diff --git a/src/lib/templates/collection-v08-logos.ts b/src/lib/templates/collection-v08-logos.tsnew file mode 100644index 0000000..336b083--- /dev/null+++ b/src/lib/templates/collection-v08-logos.ts@@ -0,0 +1,90 @@+// ─────────────────────────────────────────────────────────────+// collection-v08/logos — 3 new premium logo templates (800×800).+// Badge marks, geometric wordmarks and elegant monograms —+// original designs ready to restyle with brand colors.+// ─────────────────────────────────────────────────────────────++import type { TemplateDef } from './helpers'+import { tx, sh, ln, st, gr } from './helpers'++export const COLLECTION_V08_LOGOS: TemplateDef[] = [+ // 1 ── Coffee roastery · stamped badge+ {+ slug: 'roastery-badge-logo',+ name: 'Roastery Badge Logo',+ category: 'logo',+ width: 800,+ height: 800,+ accent: '#78350F',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#FDFBF7' },+ elements: [+ sh('ellipse', { x: 100, y: 100, width: 600, height: 600, fill: 'transparent', stroke: '#78350F', strokeWidth: 10 }),+ sh('ellipse', { x: 125, y: 125, width: 550, height: 550, fill: 'transparent', stroke: '#B45309', strokeWidth: 3 }),+ sh('ellipse', { x: 150, y: 150, width: 500, height: 500, fill: '#78350F' }),+ tx({ x: 200, y: 195, width: 400, height: 55, text: 'EST. 2018', fontFamily: 'Cinzel', bold: true, fontSize: 30, letterSpacing: 6, fill: '#FCD9A8', align: 'center' }),+ ln({ x: 250, y: 265, width: 300, height: 0, stroke: '#B45309', strokeWidth: 2 }),+ st('☕', { x: 330, y: 290, width: 140, height: 140, fontSize: 100 }),+ tx({ x: 175, y: 450, width: 450, height: 90, text: 'NORTH PEAK', fontFamily: 'Prata', fontSize: 56, fill: '#FFF7E8', align: 'center' }),+ tx({ x: 175, y: 530, width: 450, height: 50, text: 'COFFEE ROASTERS', fontFamily: 'Inter', bold: true, fontSize: 26, letterSpacing: 5, fill: '#FCD9A8', align: 'center' }),+ ln({ x: 250, y: 590, width: 300, height: 0, stroke: '#B45309', strokeWidth: 2 }),+ tx({ x: 175, y: 605, width: 450, height: 45, text: 'SMALL BATCH · HIGH ALTITUDE', fontFamily: 'Inter', fontSize: 19, letterSpacing: 3, fill: '#D9A45B', align: 'center' }),+ ],+ },+ ],+ },++ // 2 ── Tech startup · geometric hex+ {+ slug: 'nova-labs-logo',+ name: 'Tech Startup Logo',+ category: 'logo',+ width: 800,+ height: 800,+ accent: '#06B6D4',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#FFFFFF' },+ elements: [+ gr('hexagon', { x: 250, y: 130, width: 300, height: 300, fill: '#0F172A' }),+ gr('hexagon', { x: 290, y: 170, width: 220, height: 220, fill: 'transparent', stroke: '#06B6D4', strokeWidth: 8 }),+ sh('ellipse', { x: 385, y: 265, width: 30, height: 30, fill: '#06B6D4' }),+ tx({ x: 100, y: 490, width: 600, height: 110, text: 'NOVA LABS', fontFamily: 'Space Grotesk', bold: true, fontSize: 84, letterSpacing: 4, fill: '#0F172A', align: 'center' }),+ tx({ x: 100, y: 610, width: 600, height: 45, text: 'Q U A N T U M S Y S T E M S', fontFamily: 'Inter', fontSize: 26, letterSpacing: 2, fill: '#06B6D4', align: 'center' }),+ ln({ x: 280, y: 690, width: 240, height: 0, stroke: '#E2E8F0', strokeWidth: 4 }),+ ],+ },+ ],+ },++ // 3 ── Salon monogram · framed serif+ {+ slug: 'monogram-salon-logo',+ name: 'Elegant Monogram Logo',+ category: 'logo',+ width: 800,+ height: 800,+ accent: '#9D174D',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#FDF8F6' },+ elements: [+ sh('rect', { x: 110, y: 110, width: 580, height: 580, fill: 'transparent', stroke: '#9D174D', strokeWidth: 2 }),+ gr('frame', { x: 90, y: 90, width: 620, height: 620, fill: 'transparent', stroke: '#D4AF37', strokeWidth: 3 }),+ tx({ x: 150, y: 180, width: 500, height: 300, text: 'ÉM', fontFamily: 'Cormorant Garamond', bold: true, fontSize: 200, fill: '#831843', align: 'center' }),+ ln({ x: 300, y: 480, width: 200, height: 0, stroke: '#D4AF37', strokeWidth: 2 }),+ gr('diamond', { x: 386, y: 466, width: 28, height: 28, fill: '#D4AF37' }),+ tx({ x: 150, y: 510, width: 500, height: 70, text: 'ÉLAN', fontFamily: 'Cormorant Garamond', bold: true, fontSize: 54, letterSpacing: 14, fill: '#831843', align: 'center' }),+ tx({ x: 150, y: 590, width: 500, height: 45, text: 'HAIR · BEAUTY · SANCTUARY', fontFamily: 'Inter', fontSize: 22, letterSpacing: 4, fill: '#9D174D', align: 'center' }),+ ],+ },+ ],+ },+]diff --git a/src/lib/templates/collection-v08-print.ts b/src/lib/templates/collection-v08-print.tsnew file mode 100644index 0000000..099945d--- /dev/null+++ b/src/lib/templates/collection-v08-print.ts@@ -0,0 +1,313 @@+// ─────────────────────────────────────────────────────────────+// collection-v08/print — 9 new premium print templates:+// invitations, flyers, menus, posters, cards & certificates.+// Original designs with print-grade margins and hierarchy.+// ─────────────────────────────────────────────────────────────++import type { TemplateDef } from './helpers'+import { tx, sh, ln, st, gr } from './helpers'++export const COLLECTION_V08_PRINT: TemplateDef[] = [+ // 1 ── Wedding invitation · ivory classic+ {+ slug: 'wedding-invitation',+ name: 'Wedding Invitation',+ category: 'print',+ width: 1080,+ height: 1350,+ accent: '#B08D57',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#FFFDF8' },+ elements: [+ sh('rect', { x: 60, y: 60, width: 960, height: 1230, fill: 'transparent', stroke: '#B08D57', strokeWidth: 3 }),+ sh('rect', { x: 80, y: 80, width: 920, height: 1190, fill: 'transparent', stroke: '#D9C6A5', strokeWidth: 1.5 }),+ tx({ x: 140, y: 190, width: 800, height: 60, text: 'TOGETHER WITH THEIR FAMILIES', fontFamily: 'Cormorant Garamond', fontSize: 28, letterSpacing: 6, fill: '#8C7355', align: 'center' }),+ tx({ x: 140, y: 280, width: 800, height: 130, text: 'Amara', fontFamily: 'Great Vibes', fontSize: 110, fill: '#3E3226', align: 'center' }),+ tx({ x: 140, y: 430, width: 800, height: 70, text: 'and', fontFamily: 'Cormorant Garamond', italic: true, fontSize: 46, fill: '#B08D57', align: 'center' }),+ tx({ x: 140, y: 510, width: 800, height: 130, text: 'Julian', fontFamily: 'Great Vibes', fontSize: 110, fill: '#3E3226', align: 'center' }),+ ln({ x: 390, y: 700, width: 300, height: 0, stroke: '#B08D57', strokeWidth: 2 }),+ gr('diamond', { x: 516, y: 686, width: 28, height: 28, fill: '#B08D57' }),+ tx({ x: 140, y: 750, width: 800, height: 60, text: 'INVITE YOU TO CELEBRATE THEIR MARRIAGE', fontFamily: 'Cormorant Garamond', fontSize: 28, letterSpacing: 4, fill: '#8C7355', align: 'center' }),+ tx({ x: 140, y: 830, width: 800, height: 70, text: 'Saturday · the nineteenth of June', fontFamily: 'Cormorant Garamond', fontSize: 44, fill: '#3E3226', align: 'center' }),+ tx({ x: 140, y: 895, width: 800, height: 70, text: 'at half past four in the afternoon', fontFamily: 'Cormorant Garamond', italic: true, fontSize: 36, fill: '#8C7355', align: 'center' }),+ tx({ x: 140, y: 980, width: 800, height: 60, text: 'THE ORCHARD HOUSE · WILLOW CREEK', fontFamily: 'Inter', bold: true, fontSize: 26, letterSpacing: 4, fill: '#3E3226', align: 'center' }),+ tx({ x: 140, y: 1050, width: 800, height: 60, text: 'DINNER, DANCING & JOY TO FOLLOW', fontFamily: 'Inter', fontSize: 22, letterSpacing: 5, fill: '#B08D57', align: 'center' }),+ st('💍', { x: 490, y: 1130, width: 100, height: 100, fontSize: 70 }),+ ],+ },+ ],+ },++ // 2 ── Gym membership flyer · A4 black/lime+ {+ slug: 'gym-flyer',+ name: 'Gym Membership Flyer',+ category: 'print',+ width: 1240,+ height: 1754,+ accent: '#A3E635',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#0C0C0C' },+ elements: [+ sh('rect', { x: 0, y: 0, width: 1240, height: 24, fill: '#A3E635' }),+ tx({ x: 100, y: 120, width: 1040, height: 60, text: 'IRON DISTRICT GYM · MEMBERSHIP DRIVE', fontFamily: 'DM Mono', bold: true, fontSize: 28, letterSpacing: 5, fill: '#A3E635', align: 'left' }),+ tx({ x: 90, y: 200, width: 1060, height: 220, text: 'GET', fontFamily: 'Anton', fontSize: 200, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 90, y: 420, width: 1060, height: 220, text: 'STRONG', fontFamily: 'Anton', fontSize: 200, fill: '#A3E635', align: 'left' }),+ tx({ x: 90, y: 640, width: 1060, height: 220, text: 'HERE', fontFamily: 'Anton', fontSize: 200, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 100, y: 890, width: 800, height: 60, text: 'No contracts. No crowds. Just iron and coaches who show up.', fontFamily: 'Inter', fontSize: 30, fill: '#D4D4D4', align: 'left' }),+ sh('rect', { x: 90, y: 990, width: 1060, height: 420, fill: '#161616', cornerRadius: 24 }),+ tx({ x: 140, y: 1030, width: 900, height: 55, text: 'SPRING RATES — FIRST 100 JOINERS', fontFamily: 'DM Mono', bold: true, fontSize: 26, letterSpacing: 3, fill: '#A3E635', align: 'left' }),+ tx({ x: 140, y: 1100, width: 960, height: 60, text: 'Monthly · $39', fontFamily: 'Outfit', bold: true, fontSize: 44, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 700, y: 1100, width: 420, height: 60, text: 'no sign-up fee', fontFamily: 'Inter', italic: true, fontSize: 28, fill: '#737373', align: 'left' }),+ tx({ x: 140, y: 1180, width: 960, height: 60, text: 'Annual · $349', fontFamily: 'Outfit', bold: true, fontSize: 44, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 700, y: 1180, width: 420, height: 60, text: 'two months free', fontFamily: 'Inter', italic: true, fontSize: 28, fill: '#737373', align: 'left' }),+ tx({ x: 140, y: 1260, width: 960, height: 60, text: 'Student · $29', fontFamily: 'Outfit', bold: true, fontSize: 44, fill: '#A3E635', align: 'left' }),+ tx({ x: 700, y: 1260, width: 420, height: 60, text: 'with valid ID', fontFamily: 'Inter', italic: true, fontSize: 28, fill: '#737373', align: 'left' }),+ ln({ x: 100, y: 1490, width: 1040, height: 0, stroke: '#333333', strokeWidth: 2 }),+ tx({ x: 100, y: 1530, width: 700, height: 55, text: '118 Foundry St · opendaily 5 AM – 11 PM', fontFamily: 'Inter', bold: true, fontSize: 30, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 100, y: 1590, width: 700, height: 50, text: 'irondistrict.fit · @irondistrictgym', fontFamily: 'Inter', fontSize: 26, fill: '#737373', align: 'left' }),+ st('💪', { x: 950, y: 1470, width: 200, height: 200, fontSize: 150 }),+ ],+ },+ ],+ },++ // 3 ── Cafe menu · kraft board+ {+ slug: 'cafe-menu',+ name: 'Cafe Menu Board',+ category: 'print',+ width: 1080,+ height: 1350,+ accent: '#7C5A3A',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#EFE6D8' },+ elements: [+ sh('rect', { x: 0, y: 0, width: 1080, height: 250, fill: '#7C5A3A' }),+ tx({ x: 90, y: 60, width: 900, height: 100, text: 'GROUND & CO', fontFamily: 'Abril Fatface', fontSize: 72, fill: '#F5EDE0', align: 'center' }),+ tx({ x: 90, y: 170, width: 900, height: 50, text: 'COFFEE BAR · BAKERY · SINCE 2019', fontFamily: 'Inter', bold: true, fontSize: 22, letterSpacing: 6, fill: '#D9BE96', align: 'center' }),+ tx({ x: 90, y: 310, width: 900, height: 50, text: '— ESPRESSO —', fontFamily: 'Caveat', bold: true, fontSize: 48, fill: '#7C5A3A', align: 'center' }),+ tx({ x: 100, y: 390, width: 420, height: 45, text: 'Espresso', fontFamily: 'Lora', bold: true, fontSize: 30, fill: '#3B2D20', align: 'left' }),+ ln({ x: 130, y: 412, width: 200, height: 0, stroke: '#C4AF94', strokeWidth: 2, dashed: true }),+ tx({ x: 660, y: 390, width: 320, height: 45, text: '3.2', fontFamily: 'Lora', bold: true, fontSize: 30, fill: '#7C5A3A', align: 'right' }),+ tx({ x: 100, y: 455, width: 420, height: 45, text: 'Flat white', fontFamily: 'Lora', bold: true, fontSize: 30, fill: '#3B2D20', align: 'left' }),+ ln({ x: 130, y: 477, width: 190, height: 0, stroke: '#C4AF94', strokeWidth: 2, dashed: true }),+ tx({ x: 660, y: 455, width: 320, height: 45, text: '4.0', fontFamily: 'Lora', bold: true, fontSize: 30, fill: '#7C5A3A', align: 'right' }),+ tx({ x: 100, y: 520, width: 420, height: 45, text: 'Cortado', fontFamily: 'Lora', bold: true, fontSize: 30, fill: '#3B2D20', align: 'left' }),+ ln({ x: 130, y: 542, width: 205, height: 0, stroke: '#C4AF94', strokeWidth: 2, dashed: true }),+ tx({ x: 660, y: 520, width: 320, height: 45, text: '3.8', fontFamily: 'Lora', bold: true, fontSize: 30, fill: '#7C5A3A', align: 'right' }),+ tx({ x: 100, y: 585, width: 420, height: 45, text: 'Honey oat latte', fontFamily: 'Lora', bold: true, fontSize: 30, fill: '#3B2D20', align: 'left' }),+ ln({ x: 130, y: 607, width: 115, height: 0, stroke: '#C4AF94', strokeWidth: 2, dashed: true }),+ tx({ x: 660, y: 585, width: 320, height: 45, text: '4.6', fontFamily: 'Lora', bold: true, fontSize: 30, fill: '#7C5A3A', align: 'right' }),+ ln({ x: 90, y: 680, width: 900, height: 0, stroke: '#D2C0A6', strokeWidth: 2 }),+ tx({ x: 90, y: 720, width: 900, height: 50, text: '— FROM THE OVEN —', fontFamily: 'Caveat', bold: true, fontSize: 48, fill: '#7C5A3A', align: 'center' }),+ tx({ x: 100, y: 800, width: 420, height: 45, text: 'Cardamom bun', fontFamily: 'Lora', bold: true, fontSize: 30, fill: '#3B2D20', align: 'left' }),+ ln({ x: 130, y: 822, width: 195, height: 0, stroke: '#C4AF94', strokeWidth: 2, dashed: true }),+ tx({ x: 660, y: 800, width: 320, height: 45, text: '3.5', fontFamily: 'Lora', bold: true, fontSize: 30, fill: '#7C5A3A', align: 'right' }),+ tx({ x: 100, y: 865, width: 420, height: 45, text: 'Sourdough toast + jam', fontFamily: 'Lora', bold: true, fontSize: 30, fill: '#3B2D20', align: 'left' }),+ ln({ x: 130, y: 887, width: 105, height: 0, stroke: '#C4AF94', strokeWidth: 2, dashed: true }),+ tx({ x: 660, y: 865, width: 320, height: 45, text: '5.0', fontFamily: 'Lora', bold: true, fontSize: 30, fill: '#7C5A3A', align: 'right' }),+ tx({ x: 100, y: 930, width: 420, height: 45, text: 'Breakfast sandwich', fontFamily: 'Lora', bold: true, fontSize: 30, fill: '#3B2D20', align: 'left' }),+ ln({ x: 130, y: 952, width: 125, height: 0, stroke: '#C4AF94', strokeWidth: 2, dashed: true }),+ tx({ x: 660, y: 930, width: 320, height: 45, text: '6.5', fontFamily: 'Lora', bold: true, fontSize: 30, fill: '#7C5A3A', align: 'right' }),+ st('☕', { x: 760, y: 380, width: 220, height: 220, fontSize: 160 }),+ sh('rect', { x: 90, y: 1060, width: 900, height: 130, fill: '#7C5A3A', cornerRadius: 16 }),+ tx({ x: 120, y: 1090, width: 840, height: 70, text: 'Bring this menu back with 10 stamps → your 11th coffee is on us.', fontFamily: 'Inter', fontSize: 27, lineHeight: 1.4, fill: '#F5EDE0', align: 'center' }),+ tx({ x: 90, y: 1250, width: 900, height: 45, text: 'OPEN 6:30 AM – 4 PM · 44 MILL LANE', fontFamily: 'Inter', bold: true, fontSize: 22, letterSpacing: 3, fill: '#A18A6E', align: 'center' }),+ ],+ },+ ],+ },++ // 4 ── Concert poster · stacked Bungee night show+ {+ slug: 'concert-poster',+ name: 'Concert Poster',+ category: 'print',+ width: 1240,+ height: 1754,+ accent: '#E11D48',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#1A0B2E' },+ elements: [+ sh('ellipse', { x: 170, y: 130, width: 900, height: 900, fill: 'transparent', stroke: '#E11D48', strokeWidth: 5 }),+ sh('ellipse', { x: 220, y: 180, width: 800, height: 800, fill: 'transparent', stroke: '#F59E0B', strokeWidth: 3 }),+ st('🎸', { x: 430, y: 330, width: 380, height: 380, fontSize: 280 }),+ tx({ x: 90, y: 1090, width: 1060, height: 130, text: 'STATIC', fontFamily: 'Bungee', fontSize: 120, fill: '#FFFFFF', align: 'center' }),+ tx({ x: 90, y: 1220, width: 1060, height: 130, text: 'BLOOM', fontFamily: 'Bungee', fontSize: 120, fill: '#E11D48', align: 'center' }),+ tx({ x: 90, y: 1390, width: 1060, height: 60, text: 'WORLD TOUR 2026 · WITH SPECIAL GUESTS NOVA KID', fontFamily: 'Inter', bold: true, fontSize: 28, letterSpacing: 2, fill: '#F59E0B', align: 'center' }),+ sh('rect', { x: 170, y: 1480, width: 900, height: 100, fill: '#E11D48', cornerRadius: 12 }),+ tx({ x: 190, y: 1508, width: 860, height: 50, text: 'FRI · JUL 17 · THE GLASSHOUSE · DOORS 7 PM', fontFamily: 'Outfit', bold: true, fontSize: 34, fill: '#FFFFFF', align: 'center' }),+ tx({ x: 90, y: 1620, width: 1060, height: 45, text: 'TICKETS AT STATICBLOOM.BAND · ALL AGES', fontFamily: 'DM Mono', fontSize: 24, letterSpacing: 3, fill: '#A78BFA', align: 'center' }),+ ],+ },+ ],+ },++ // 5 ── Yoga studio flyer · sage calm+ {+ slug: 'yoga-flyer',+ name: 'Yoga Studio Flyer',+ category: 'print',+ width: 1080,+ height: 1560,+ accent: '#7C9885',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#F2F5F0' },+ elements: [+ gr('moon', { x: 400, y: 120, width: 280, height: 280, fill: '#C9D8CC' }),+ gr('cloud', { x: 150, y: 260, width: 220, height: 130, fill: '#DCE7DD' }),+ gr('cloud', { x: 700, y: 300, width: 180, height: 110, fill: '#DCE7DD' }),+ tx({ x: 90, y: 470, width: 900, height: 130, text: 'Breathe.', fontFamily: 'Amatic SC', bold: true, fontSize: 130, fill: '#3E5347', align: 'center' }),+ tx({ x: 90, y: 610, width: 900, height: 60, text: 'MOVE. RETURN.', fontFamily: 'Amatic SC', bold: true, fontSize: 64, letterSpacing: 8, fill: '#7C9885', align: 'center' }),+ ln({ x: 390, y: 720, width: 300, height: 0, stroke: '#C9D8CC', strokeWidth: 3 }),+ tx({ x: 90, y: 760, width: 900, height: 90, text: 'Morning flow, yin nights and everything between —\na small studio for busy people.', fontFamily: 'Lora', fontSize: 30, lineHeight: 1.5, fill: '#5C6F62', align: 'center' }),+ sh('rect', { x: 90, y: 910, width: 900, height: 400, fill: '#FFFFFF', cornerRadius: 24 }),+ tx({ x: 140, y: 950, width: 800, height: 50, text: 'THIS WEEK AT STILL POINT', fontFamily: 'DM Mono', bold: true, fontSize: 24, letterSpacing: 4, fill: '#7C9885', align: 'left' }),+ tx({ x: 140, y: 1015, width: 800, height: 45, text: 'Mon – Fri · Sunrise flow · 6:30 am', fontFamily: 'Inter', bold: true, fontSize: 28, fill: '#3E5347', align: 'left' }),+ tx({ x: 140, y: 1075, width: 800, height: 45, text: 'Wed · Yin + sound bath · 7:30 pm', fontFamily: 'Inter', bold: true, fontSize: 28, fill: '#3E5347', align: 'left' }),+ tx({ x: 140, y: 1135, width: 800, height: 45, text: 'Sat · Family yoga · 10:00 am', fontFamily: 'Inter', bold: true, fontSize: 28, fill: '#3E5347', align: 'left' }),+ tx({ x: 140, y: 1195, width: 800, height: 45, text: 'Sun · Slow restore · 5:00 pm', fontFamily: 'Inter', bold: true, fontSize: 28, fill: '#3E5347', align: 'left' }),+ tx({ x: 140, y: 1255, width: 800, height: 40, text: 'Drop-in $18 · 10-class pass $150 · first class free', fontFamily: 'Inter', fontSize: 24, fill: '#7C9885', align: 'left' }),+ st('🧘', { x: 465, y: 1350, width: 150, height: 150, fontSize: 110 }),+ tx({ x: 90, y: 1500, width: 900, height: 45, text: 'STILL POINT YOGA · 8 HARBOR LANE · stillpoint.studio', fontFamily: 'DM Mono', fontSize: 22, letterSpacing: 2, fill: '#8FA396', align: 'center' }),+ ],+ },+ ],+ },++ // 6 ── Gift certificate · gold border+ {+ slug: 'gift-certificate',+ name: 'Gift Certificate',+ category: 'print',+ width: 1123,+ height: 794,+ accent: '#B8860B',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#FFFCF5' },+ elements: [+ sh('rect', { x: 40, y: 40, width: 1043, height: 714, fill: 'transparent', stroke: '#B8860B', strokeWidth: 4 }),+ sh('rect', { x: 56, y: 56, width: 1011, height: 682, fill: 'transparent', stroke: '#D4AF37', strokeWidth: 1.5 }),+ tx({ x: 120, y: 120, width: 880, height: 60, text: 'GIFT CERTIFICATE', fontFamily: 'Cinzel', bold: true, fontSize: 44, letterSpacing: 8, fill: '#8B6914', align: 'center' }),+ ln({ x: 340, y: 210, width: 440, height: 0, stroke: '#D4AF37', strokeWidth: 2 }),+ tx({ x: 120, y: 260, width: 880, height: 60, text: 'This certificate is presented to', fontFamily: 'Cormorant Garamond', italic: true, fontSize: 34, fill: '#7A6A45', align: 'center' }),+ tx({ x: 120, y: 330, width: 880, height: 90, text: '_________________________', fontFamily: 'Cormorant Garamond', fontSize: 48, fill: '#3E3623', align: 'center' }),+ tx({ x: 120, y: 470, width: 880, height: 70, text: 'for one spa day of your choosing', fontFamily: 'Cormorant Garamond', fontSize: 38, fill: '#7A6A45', align: 'center' }),+ sh('rect', { x: 430, y: 570, width: 260, height: 110, fill: '#8B6914', cornerRadius: 12 }),+ tx({ x: 450, y: 598, width: 220, height: 55, text: 'VALUE $150', fontFamily: 'Cinzel', bold: true, fontSize: 32, fill: '#FFF8E1', align: 'center' }),+ tx({ x: 120, y: 700, width: 460, height: 40, text: 'MAISON SERENITY DAY SPA', fontFamily: 'Inter', bold: true, fontSize: 20, letterSpacing: 3, fill: '#8B6914', align: 'left' }),+ tx({ x: 560, y: 700, width: 440, height: 40, text: 'EXPIRES ONE YEAR FROM ISSUE · NO. 0218', fontFamily: 'Inter', fontSize: 18, letterSpacing: 1, fill: '#A08B5F', align: 'right' }),+ st('🌿', { x: 130, y: 560, width: 130, height: 130, fontSize: 90 }),+ st('🌿', { x: 860, y: 560, width: 130, height: 130, fontSize: 90 }),+ ],+ },+ ],+ },++ // 7 ── Business card · modern dark+ {+ slug: 'modern-business-card',+ name: 'Modern Business Card',+ category: 'print',+ width: 1050,+ height: 600,+ accent: '#F59E0B',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#111827' },+ elements: [+ sh('rect', { x: 0, y: 0, width: 46, height: 600, fill: '#F59E0B' }),+ tx({ x: 110, y: 120, width: 700, height: 70, text: 'Maya Torres', fontFamily: 'Outfit', bold: true, fontSize: 56, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 112, y: 200, width: 700, height: 50, text: 'Architect · Studio Principal', fontFamily: 'Inter', fontSize: 27, letterSpacing: 1, fill: '#F59E0B', align: 'left' }),+ ln({ x: 112, y: 290, width: 90, height: 0, stroke: '#374151', strokeWidth: 3 }),+ tx({ x: 112, y: 330, width: 700, height: 45, text: '[email protected]', fontFamily: 'Inter', fontSize: 24, fill: '#9CA3AF', align: 'left' }),+ tx({ x: 112, y: 380, width: 700, height: 45, text: '+1 (555) 061-2240', fontFamily: 'Inter', fontSize: 24, fill: '#9CA3AF', align: 'left' }),+ tx({ x: 112, y: 430, width: 700, height: 45, text: 'torresworks.studio', fontFamily: 'Inter', fontSize: 24, fill: '#9CA3AF', align: 'left' }),+ gr('hexagon', { x: 820, y: 210, width: 150, height: 150, fill: 'transparent', stroke: '#F59E0B', strokeWidth: 6 }),+ tx({ x: 835, y: 250, width: 120, height: 80, text: 'MT', fontFamily: 'Outfit', bold: true, fontSize: 44, fill: '#F59E0B', align: 'center' }),+ tx({ x: 110, y: 530, width: 500, height: 40, text: 'TORRES WORKS · BUILD SINCE 2016', fontFamily: 'DM Mono', fontSize: 18, letterSpacing: 3, fill: '#4B5563', align: 'left' }),+ ],+ },+ ],+ },++ // 8 ── Open mic night flyer · purple stage+ {+ slug: 'open-mic-flyer',+ name: 'Open Mic Flyer',+ category: 'print',+ width: 1080,+ height: 1560,+ accent: '#8B5CF6',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'gradient', from: '#2E1065', to: '#6D28D9', angle: 160 },+ elements: [+ sh('ellipse', { x: 290, y: 120, width: 500, height: 500, fill: '#8B5CF6', opacity: 0.4 }),+ st('🎤', { x: 400, y: 230, width: 280, height: 280, fontSize: 210 }),+ tx({ x: 90, y: 700, width: 900, height: 60, text: 'EVERY THURSDAY NIGHT', fontFamily: 'DM Mono', bold: true, fontSize: 28, letterSpacing: 6, fill: '#C4B5FD', align: 'center' }),+ tx({ x: 90, y: 770, width: 900, height: 150, text: 'OPEN MIC', fontFamily: 'Righteous', fontSize: 130, fill: '#FFFFFF', align: 'center' }),+ tx({ x: 90, y: 930, width: 900, height: 60, text: 'poetry · music · stand-up · stories', fontFamily: 'Quicksand', bold: true, fontSize: 34, letterSpacing: 2, fill: '#DDD6FE', align: 'center' }),+ ln({ x: 390, y: 1040, width: 300, height: 0, stroke: '#8B5CF6', strokeWidth: 4 }),+ tx({ x: 90, y: 1080, width: 900, height: 100, text: '5-minute slots · sign-up at 7, show at 8\nall levels, all voices, warm room', fontFamily: 'Quicksand', fontSize: 29, lineHeight: 1.5, fill: '#EDE9FE', align: 'center' }),+ sh('rect', { x: 240, y: 1240, width: 600, height: 110, fill: '#FFFFFF', cornerRadius: 55 }),+ tx({ x: 260, y: 1272, width: 560, height: 55, text: 'FIRST TIMERS GET FREE COOKIES 🍪', fontFamily: 'Outfit', bold: true, fontSize: 29, fill: '#5B21B6', align: 'center' }),+ tx({ x: 90, y: 1430, width: 900, height: 45, text: 'THE VELVET ROOM · 32 CEDAR ST · ALL AGES', fontFamily: 'DM Mono', fontSize: 22, letterSpacing: 2, fill: '#A78BFA', align: 'center' }),+ ],+ },+ ],+ },++ // 9 ── Moving sale sign · loud retail+ {+ slug: 'moving-sale',+ name: 'Moving Sale Sign',+ category: 'print',+ width: 1080,+ height: 1350,+ accent: '#FACC15',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#FACC15' },+ elements: [+ tx({ x: 90, y: 110, width: 900, height: 70, text: 'THIS SATURDAY · 8 AM – 2 PM · RAIN OR SHINE', fontFamily: 'Archivo Black', fontSize: 34, fill: '#1C1917', align: 'center' }),+ tx({ x: 90, y: 220, width: 900, height: 200, text: 'MOVING', fontFamily: 'Archivo Black', fontSize: 170, fill: '#1C1917', align: 'center' }),+ tx({ x: 90, y: 420, width: 900, height: 200, text: 'SALE', fontFamily: 'Archivo Black', fontSize: 170, fill: '#DC2626', align: 'center' }),+ tx({ x: 90, y: 660, width: 900, height: 70, text: 'EVERYTHING MUST GO', fontFamily: 'Archivo Black', fontSize: 54, fill: '#1C1917', align: 'center' }),+ sh('rect', { x: 90, y: 790, width: 900, height: 330, fill: '#1C1917', cornerRadius: 24 }),+ tx({ x: 130, y: 830, width: 820, height: 55, text: 'FURNITURE · TOOLS · KITCHEN · BOOKS · KID STUFF', fontFamily: 'Inter', bold: true, fontSize: 28, letterSpacing: 1, fill: '#FACC15', align: 'center' }),+ tx({ x: 130, y: 910, width: 820, height: 55, text: 'Prices drop every hour — come early, haggle kindly.', fontFamily: 'Inter', fontSize: 27, fill: '#E7E5E4', align: 'center' }),+ tx({ x: 130, y: 990, width: 820, height: 55, text: 'CASH & VENMO · NO HOLDS · BRING A FRIEND', fontFamily: 'Inter', bold: true, fontSize: 27, fill: '#A8A29E', align: 'center' }),+ gr('arrow', { x: 430, y: 1180, width: 220, height: 140, fill: '#DC2626' }),+ tx({ x: 90, y: 1230, width: 340, height: 55, text: '47 BIRCH RD', fontFamily: 'Archivo Black', fontSize: 40, fill: '#1C1917', align: 'left' }),+ tx({ x: 660, y: 1240, width: 330, height: 55, text: '→ Follow the signs', fontFamily: 'Caveat', bold: true, fontSize: 44, fill: '#DC2626', align: 'right' }),+ ],+ },+ ],+ },+]diff --git a/src/lib/templates/collection-v08-social.ts b/src/lib/templates/collection-v08-social.tsnew file mode 100644index 0000000..17e486a--- /dev/null+++ b/src/lib/templates/collection-v08-social.ts@@ -0,0 +1,430 @@+// ─────────────────────────────────────────────────────────────+// collection-v08/social — 14 new premium-grade social templates.+// Original designs (nothing copied), styled after what's trending+// across the big template platforms in 2026: bold maxiform type,+// quiet-luxury minimalism, deep-dark canvases with one neon accent,+// and editorial serif/sans pairings.+// ─────────────────────────────────────────────────────────────++import type { TemplateDef } from './helpers'+import { tx, sh, ln, st, gr } from './helpers'++export const COLLECTION_V08_SOCIAL: TemplateDef[] = [+ // 1 ── Podcast quote card · deep space + signal green+ {+ slug: 'podcast-quote-card',+ name: 'Podcast Quote Card',+ category: 'social',+ width: 1080,+ height: 1080,+ accent: '#00E5A0',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#0B1120' },+ elements: [+ sh('rect', { x: 0, y: 0, width: 1080, height: 14, fill: '#00E5A0' }),+ tx({ x: 90, y: 130, width: 900, height: 240, text: '“', fontFamily: 'Playfair Display', fontSize: 260, fill: '#00E5A0', align: 'left' }),+ tx({ x: 120, y: 350, width: 840, height: 200, text: 'The best interface', fontFamily: 'Space Grotesk', bold: true, fontSize: 78, fill: '#F8FAFC', align: 'left' }),+ tx({ x: 120, y: 470, width: 840, height: 200, text: 'is a story well', fontFamily: 'Space Grotesk', bold: true, fontSize: 78, fill: '#F8FAFC', align: 'left' }),+ tx({ x: 120, y: 590, width: 840, height: 200, text: 'told.”', fontFamily: 'Space Grotesk', bold: true, fontSize: 78, fill: '#00E5A0', align: 'left' }),+ ln({ x: 120, y: 770, width: 90, height: 0, stroke: '#334155', strokeWidth: 4 }),+ tx({ x: 120, y: 800, width: 600, height: 50, text: 'MARA CHEN · DESIGN LEAD', fontFamily: 'DM Mono', fontSize: 26, letterSpacing: 3, fill: '#94A3B8', align: 'left' }),+ tx({ x: 120, y: 845, width: 600, height: 45, text: 'EPISODE 42 — BUILDING FOR HUMANS', fontFamily: 'DM Mono', fontSize: 24, letterSpacing: 2, fill: '#64748B', align: 'left' }),+ st('🎙️', { x: 800, y: 800, width: 180, height: 180, fontSize: 130 }),+ ],+ },+ ],+ },++ // 2 ── Real estate new listing · sage & cream property card+ {+ slug: 'realestate-new-listing',+ name: 'New Listing Post',+ category: 'social',+ width: 1080,+ height: 1350,+ accent: '#3F5E52',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#F4F1EA' },+ elements: [+ sh('rect', { x: 0, y: 0, width: 1080, height: 300, fill: '#3F5E52' }),+ tx({ x: 90, y: 90, width: 900, height: 60, text: 'JUST LISTED', fontFamily: 'DM Mono', bold: true, fontSize: 30, letterSpacing: 8, fill: '#C9D8CE', align: 'left' }),+ tx({ x: 90, y: 140, width: 900, height: 120, text: 'Maple Grove 12', fontFamily: 'Playfair Display', fontSize: 84, fill: '#FFFFFF', align: 'left' }),+ sh('rect', { x: 700, y: 250, width: 300, height: 130, fill: '#F4F1EA', cornerRadius: 20 }),+ tx({ x: 715, y: 270, width: 270, height: 60, text: '$ 845,000', fontFamily: 'Outfit', bold: true, fontSize: 48, fill: '#3F5E52', align: 'center' }),+ tx({ x: 715, y: 330, width: 270, height: 40, text: '4 BD · 3 BA · 2,140 SQFT', fontFamily: 'Inter', bold: true, fontSize: 19, letterSpacing: 1, fill: '#7A8B82', align: 'center' }),+ st('🏡', { x: 110, y: 390, width: 260, height: 260, fontSize: 200 }),+ tx({ x: 90, y: 700, width: 900, height: 50, text: 'A SUNLIT FAMILY HOME ON A QUIET CUL-DE-SAC', fontFamily: 'Inter', bold: true, fontSize: 27, letterSpacing: 2, fill: '#3F5E52', align: 'left' }),+ ln({ x: 90, y: 770, width: 900, height: 0, stroke: '#D8D2C4', strokeWidth: 3 }),+ gr('check-circle', { x: 100, y: 810, width: 44, height: 44, fill: '#3F5E52' }),+ tx({ x: 165, y: 815, width: 780, height: 45, text: 'Renovated chef’s kitchen with quartz island', fontFamily: 'Inter', fontSize: 29, fill: '#2E3A34', align: 'left' }),+ gr('check-circle', { x: 100, y: 885, width: 44, height: 44, fill: '#3F5E52' }),+ tx({ x: 165, y: 890, width: 780, height: 45, text: 'South-facing garden + covered patio', fontFamily: 'Inter', fontSize: 29, fill: '#2E3A34', align: 'left' }),+ gr('check-circle', { x: 100, y: 960, width: 44, height: 44, fill: '#3F5E52' }),+ tx({ x: 165, y: 965, width: 780, height: 45, text: 'Top school district, 8 min to downtown', fontFamily: 'Inter', fontSize: 29, fill: '#2E3A34', align: 'left' }),+ sh('rect', { x: 90, y: 1060, width: 620, height: 110, fill: '#3F5E52', cornerRadius: 55 }),+ tx({ x: 110, y: 1092, width: 580, height: 55, text: 'BOOK A TOUR → (555) 210-4477', fontFamily: 'Outfit', bold: true, fontSize: 32, fill: '#FFFFFF', align: 'center' }),+ tx({ x: 90, y: 1210, width: 900, height: 40, text: 'HELEN PARK · PARK & CO REAL ESTATE', fontFamily: 'DM Mono', fontSize: 22, letterSpacing: 3, fill: '#9AA79F', align: 'left' }),+ ],+ },+ ],+ },++ // 3 ── Fitness bootcamp · black + volt+ {+ slug: 'no-excuses-bootcamp',+ name: 'Fitness Bootcamp',+ category: 'social',+ width: 1080,+ height: 1080,+ accent: '#C6FF3D',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#0D0D0D' },+ elements: [+ sh('rect', { x: -120, y: 780, width: 700, height: 420, fill: '#C6FF3D', rotation: -18 }),+ tx({ x: 90, y: 150, width: 900, height: 90, text: 'SUMMER SHRED · 6-WEEK BOOTCAMP', fontFamily: 'DM Mono', bold: true, fontSize: 28, letterSpacing: 4, fill: '#C6FF3D', align: 'left' }),+ tx({ x: 80, y: 240, width: 940, height: 200, text: 'NO', fontFamily: 'Bebas Neue', fontSize: 190, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 80, y: 420, width: 940, height: 200, text: 'EXCUSES', fontFamily: 'Bebas Neue', fontSize: 190, fill: '#FFFFFF', align: 'left' }),+ st('💪', { x: 700, y: 180, width: 220, height: 220, fontSize: 160 }),+ tx({ x: 90, y: 640, width: 700, height: 60, text: 'Mon · Wed · Fri — 6:00 AM @ Riverside Park', fontFamily: 'Inter', fontSize: 32, fill: '#D4D4D4', align: 'left' }),+ tx({ x: 80, y: 880, width: 800, height: 100, text: 'FIRST SESSION FREE', fontFamily: 'Bebas Neue', fontSize: 76, fill: '#0D0D0D', align: 'left' }),+ tx({ x: 82, y: 975, width: 700, height: 50, text: 'COACH D · @SHREDCAMP', fontFamily: 'DM Mono', bold: true, fontSize: 26, letterSpacing: 3, fill: '#0D0D0D', align: 'left' }),+ ],+ },+ ],+ },++ // 4 ── Restaurant daily special · terracotta warmth+ {+ slug: 'restaurant-special',+ name: 'Daily Special Post',+ category: 'social',+ width: 1080,+ height: 1080,+ accent: '#B4441C',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#F6EBDD' },+ elements: [+ sh('ellipse', { x: 690, y: -160, width: 620, height: 620, fill: '#E8C9A0', opacity: 0.55 }),+ tx({ x: 90, y: 140, width: 700, height: 60, text: 'TONIGHT AT CASA VERDE', fontFamily: 'DM Mono', bold: true, fontSize: 27, letterSpacing: 5, fill: '#B4441C', align: 'left' }),+ tx({ x: 80, y: 210, width: 800, height: 150, text: 'Taco', fontFamily: 'Fraunces', fontSize: 130, fill: '#3D2B1F', align: 'left' }),+ tx({ x: 80, y: 350, width: 800, height: 150, text: 'Tuesday', fontFamily: 'Caveat', bold: true, fontSize: 120, fill: '#B4441C', align: 'left' }),+ tx({ x: 90, y: 540, width: 620, height: 140, text: 'Street-style tacos, hand-pressed tortillas, slow-braised fillings — three for $12 all evening.', fontFamily: 'Lora', fontSize: 33, lineHeight: 1.4, fill: '#5C4633', align: 'left' }),+ ln({ x: 90, y: 720, width: 160, height: 0, stroke: '#B4441C', strokeWidth: 6 }),+ tx({ x: 90, y: 755, width: 700, height: 50, text: 'EVERY TUESDAY · 5 PM – CLOSE', fontFamily: 'Inter', bold: true, fontSize: 27, letterSpacing: 2, fill: '#3D2B1F', align: 'left' }),+ st('🌮', { x: 700, y: 600, width: 300, height: 300, fontSize: 220 }),+ sh('rect', { x: 90, y: 880, width: 460, height: 96, fill: '#B4441C', cornerRadius: 48 }),+ tx({ x: 110, y: 908, width: 420, height: 50, text: 'RESERVE: (555) 431-0092', fontFamily: 'Outfit', bold: true, fontSize: 27, fill: '#FFF6EC', align: 'center' }),+ ],+ },+ ],+ },++ // 5 ── Fashion lookbook · quiet luxury editorial+ {+ slug: 'fashion-lookbook',+ name: 'Fashion Lookbook',+ category: 'social',+ width: 1080,+ height: 1080,+ accent: '#8A7B5C',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#EFEBE3' },+ elements: [+ tx({ x: 90, y: 100, width: 900, height: 50, text: 'ATELIER NOIR — COLLECTION JOURNAL', fontFamily: 'DM Mono', fontSize: 24, letterSpacing: 6, fill: '#8A7B5C', align: 'left' }),+ ln({ x: 90, y: 175, width: 900, height: 0, stroke: '#C9C1B0', strokeWidth: 2 }),+ tx({ x: 90, y: 230, width: 900, height: 130, text: 'The Summer', fontFamily: 'Cormorant Garamond', fontSize: 100, fill: '#26221C', align: 'left' }),+ tx({ x: 90, y: 350, width: 900, height: 130, text: 'Edit — SS26', fontFamily: 'Cormorant Garamond', italic: true, fontSize: 100, fill: '#8A7B5C', align: 'left' }),+ sh('rect', { x: 90, y: 530, width: 430, height: 560, fill: '#DCD5C6' }),+ sh('rect', { x: 560, y: 530, width: 430, height: 560, fill: '#CFC6B2' }),+ sh('rect', { x: 130, y: 570, width: 350, height: 440, fill: '#B8AE97', opacity: 0.5 }),+ sh('rect', { x: 600, y: 570, width: 350, height: 440, fill: '#A79A7E', opacity: 0.45 }),+ tx({ x: 130, y: 1035, width: 350, height: 45, text: 'LINEN SUIT — No. 04', fontFamily: 'Inter', fontSize: 22, letterSpacing: 2, fill: '#5C5442', align: 'left' }),+ tx({ x: 600, y: 1035, width: 350, height: 45, text: 'SILK SLIP — No. 11', fontFamily: 'Inter', fontSize: 22, letterSpacing: 2, fill: '#5C5442', align: 'left' }),+ tx({ x: 560, y: 230, width: 430, height: 220, text: 'Twelve quiet pieces in linen, silk and raw cotton. Made in small runs, numbered by hand.', fontFamily: 'Lora', fontSize: 30, lineHeight: 1.45, fill: '#5C5442', align: 'left' }),+ ],+ },+ ],+ },++ // 6 ── Webinar announcement · indigo professional (LinkedIn size)+ {+ slug: 'webinar-announcement',+ name: 'Webinar Announcement',+ category: 'social',+ width: 1200,+ height: 627,+ accent: '#4F46E5',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'gradient', from: '#1E1B4B', to: '#312E81', angle: 135 },+ elements: [+ sh('ellipse', { x: 880, y: -140, width: 480, height: 480, fill: '#4F46E5', opacity: 0.35 }),+ sh('ellipse', { x: 1000, y: 330, width: 340, height: 340, fill: '#818CF8', opacity: 0.18 }),+ tx({ x: 70, y: 70, width: 700, height: 50, text: 'FREE LIVE WEBINAR — SEAT 7', fontFamily: 'DM Mono', bold: true, fontSize: 24, letterSpacing: 4, fill: '#A5B4FC', align: 'left' }),+ tx({ x: 70, y: 130, width: 760, height: 90, text: 'Shipping AI Features', fontFamily: 'Outfit', bold: true, fontSize: 62, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 70, y: 205, width: 760, height: 90, text: 'That Survive Production', fontFamily: 'Outfit', bold: true, fontSize: 62, fill: '#A5B4FC', align: 'left' }),+ ln({ x: 70, y: 320, width: 100, height: 0, stroke: '#A5B4FC', strokeWidth: 5 }),+ tx({ x: 70, y: 350, width: 700, height: 50, text: 'THU · JUNE 12 · 11:00 ET · 45 MIN + LIVE Q&A', fontFamily: 'Inter', bold: true, fontSize: 26, letterSpacing: 2, fill: '#E0E7FF', align: 'left' }),+ sh('ellipse', { x: 70, y: 430, width: 84, height: 84, fill: '#4F46E5' }),+ tx({ x: 82, y: 442, width: 60, height: 60, text: 'DK', fontFamily: 'Outfit', bold: true, fontSize: 30, fill: '#FFFFFF', align: 'center' }),+ tx({ x: 175, y: 437, width: 500, height: 40, text: 'Dana Kim — Principal Engineer, Loop', fontFamily: 'Inter', bold: true, fontSize: 26, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 175, y: 477, width: 500, height: 40, text: 'Host of The Shipping Podcast', fontFamily: 'Inter', fontSize: 23, fill: '#A5B4FC', align: 'left' }),+ sh('rect', { x: 820, y: 440, width: 310, height: 92, fill: '#FFFFFF', cornerRadius: 46 }),+ tx({ x: 840, y: 468, width: 270, height: 45, text: 'SAVE MY SEAT →', fontFamily: 'Outfit', bold: true, fontSize: 26, fill: '#1E1B4B', align: 'center' }),+ ],+ },+ ],+ },++ // 7 ── Personal LinkedIn banner · teal professional+ {+ slug: 'linkedin-banner',+ name: 'LinkedIn Banner',+ category: 'social',+ width: 1584,+ height: 396,+ accent: '#0D9488',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'gradient', from: '#042F2E', to: '#0F766E', angle: 105 },+ elements: [+ sh('ellipse', { x: -160, y: 120, width: 420, height: 420, fill: '#14B8A6', opacity: 0.25 }),+ sh('ellipse', { x: 1150, y: -220, width: 560, height: 560, fill: '#2DD4BF', opacity: 0.16 }),+ gr('hexagon', { x: 1180, y: 120, width: 190, height: 190, fill: '#2DD4BF', opacity: 0.5 }),+ tx({ x: 120, y: 95, width: 900, height: 60, text: 'PRODUCT DESIGN · DESIGN SYSTEMS · TEAM LEADERSHIP', fontFamily: 'DM Mono', bold: true, fontSize: 25, letterSpacing: 5, fill: '#5EEAD4', align: 'left' }),+ tx({ x: 120, y: 150, width: 980, height: 110, text: 'Building calm software for busy teams.', fontFamily: 'Fraunces', fontSize: 60, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 120, y: 280, width: 900, height: 50, text: 'Currently: Design Lead @ Northwind · Open to advisory', fontFamily: 'Inter', fontSize: 27, fill: '#CCFBF1', align: 'left' }),+ ],+ },+ ],+ },++ // 8 ── Pinterest recipe pin · tall warm kitchen card+ {+ slug: 'pinterest-recipe',+ name: 'Recipe Pin',+ category: 'social',+ width: 1000,+ height: 1500,+ accent: '#D97706',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#FFF9F0' },+ elements: [+ sh('rect', { x: 0, y: 0, width: 1000, height: 430, fill: '#F59E0B' }),+ st('🍝', { x: 350, y: 60, width: 300, height: 300, fontSize: 220 }),+ tx({ x: 80, y: 470, width: 840, height: 55, text: 'WEEKNIGHT DINNER', fontFamily: 'DM Mono', bold: true, fontSize: 26, letterSpacing: 6, fill: '#B45309', align: 'left' }),+ tx({ x: 70, y: 525, width: 880, height: 110, text: '5-Ingredient', fontFamily: 'Playfair Display', bold: true, fontSize: 84, fill: '#292014', align: 'left' }),+ tx({ x: 70, y: 635, width: 880, height: 110, text: 'Creamy Pasta', fontFamily: 'Playfair Display', italic: true, fontSize: 84, fill: '#B45309', align: 'left' }),+ ln({ x: 80, y: 790, width: 840, height: 0, stroke: '#F0E4D0', strokeWidth: 3 }),+ tx({ x: 80, y: 830, width: 400, height: 45, text: 'YOU NEED', fontFamily: 'Inter', bold: true, fontSize: 25, letterSpacing: 4, fill: '#92400E', align: 'left' }),+ tx({ x: 80, y: 895, width: 840, height: 360, text: 'Fusilli pasta · 500 g\nParmesan, freshly grated · 120 g\nHeavy cream · 250 ml\nGarlic · 3 cloves, thinly sliced\nButter · 2 tbsp + cracked pepper', fontFamily: 'Lora', fontSize: 33, lineHeight: 1.75, fill: '#443626', align: 'left' }),+ sh('rect', { x: 80, y: 1290, width: 460, height: 100, fill: '#292014', cornerRadius: 50 }),+ tx({ x: 100, y: 1320, width: 420, height: 45, text: 'FULL RECIPE — 25 MIN', fontFamily: 'Outfit', bold: true, fontSize: 27, letterSpacing: 1, fill: '#FFF9F0', align: 'center' }),+ tx({ x: 590, y: 1325, width: 330, height: 45, text: '@thebusy.kitchen', fontFamily: 'Caveat', bold: true, fontSize: 40, fill: '#B45309', align: 'left' }),+ ],+ },+ ],+ },++ // 9 ── Birthday story · confetti celebration+ {+ slug: 'birthday-story',+ name: 'Birthday Story',+ category: 'social',+ width: 1080,+ height: 1920,+ accent: '#F472B6',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'gradient', from: '#FDF2F8', to: '#FDE68A', angle: 160 },+ elements: [+ sh('rect', { x: 140, y: 200, width: 46, height: 46, fill: '#F472B6', rotation: 28 }),+ sh('rect', { x: 860, y: 320, width: 38, height: 38, fill: '#818CF8', rotation: -20 }),+ sh('rect', { x: 220, y: 480, width: 34, height: 34, fill: '#34D399', rotation: 45 }),+ sh('rect', { x: 780, y: 620, width: 42, height: 42, fill: '#F472B6', rotation: 12 }),+ sh('star', { x: 820, y: 150, width: 90, height: 90, fill: '#FBBF24' }),+ sh('star', { x: 160, y: 760, width: 70, height: 70, fill: '#FBBF24' }),+ sh('star', { x: 880, y: 980, width: 60, height: 60, fill: '#FB7185' }),+ st('🎂', { x: 390, y: 430, width: 300, height: 300, fontSize: 220 }),+ tx({ x: 90, y: 820, width: 900, height: 80, text: 'IT’S YOUR DAY', fontFamily: 'DM Mono', bold: true, fontSize: 34, letterSpacing: 8, fill: '#9D174D', align: 'center' }),+ tx({ x: 90, y: 900, width: 900, height: 160, text: 'Happy', fontFamily: 'Pacifico', fontSize: 130, fill: '#9D174D', align: 'center' }),+ tx({ x: 90, y: 1080, width: 900, height: 160, text: 'Birthday!', fontFamily: 'Pacifico', fontSize: 130, fill: '#BE185D', align: 'center' }),+ sh('rect', { x: 290, y: 1330, width: 500, height: 110, fill: '#9D174D', cornerRadius: 55 }),+ tx({ x: 310, y: 1362, width: 460, height: 55, text: 'PARTY AT 8 · ROOFTOP', fontFamily: 'Outfit', bold: true, fontSize: 34, letterSpacing: 1, fill: '#FFF1F7', align: 'center' }),+ st('🎈', { x: 120, y: 1400, width: 160, height: 160, fontSize: 120 }),+ st('🎈', { x: 810, y: 1400, width: 160, height: 160, fontSize: 120 }),+ tx({ x: 90, y: 1600, width: 900, height: 50, text: 'SWIPE UP FOR THE PLAYLIST 🎶', fontFamily: 'Inter', bold: true, fontSize: 27, letterSpacing: 2, fill: '#9D174D', align: 'center' }),+ ],+ },+ ],+ },++ // 10 ── Black Friday · maximum contrast retail+ {+ slug: 'black-friday-post',+ name: 'Black Friday Post',+ category: 'social',+ width: 1080,+ height: 1080,+ accent: '#EF4444',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#0A0A0A' },+ elements: [+ tx({ x: 90, y: 130, width: 900, height: 60, text: '48 HOURS ONLY · ONLINE & IN-STORE', fontFamily: 'Inter', bold: true, fontSize: 26, letterSpacing: 4, fill: '#737373', align: 'center' }),+ tx({ x: 90, y: 200, width: 900, height: 170, text: 'BLACK', fontFamily: 'Anton', fontSize: 150, fill: '#FFFFFF', align: 'center' }),+ tx({ x: 90, y: 360, width: 900, height: 170, text: 'FRIDAY', fontFamily: 'Anton', fontSize: 150, fill: '#EF4444', align: 'center' }),+ ln({ x: 340, y: 570, width: 400, height: 0, stroke: '#EF4444', strokeWidth: 6 }),+ tx({ x: 90, y: 600, width: 900, height: 130, text: 'UP TO 70% OFF', fontFamily: 'Bebas Neue', fontSize: 100, fill: '#FFFFFF', align: 'center' }),+ tx({ x: 90, y: 740, width: 900, height: 50, text: 'USE CODE: BFRIDAY70', fontFamily: 'DM Mono', bold: true, fontSize: 30, letterSpacing: 3, fill: '#EF4444', align: 'center' }),+ sh('rect', { x: 315, y: 830, width: 450, height: 100, fill: '#EF4444', cornerRadius: 12 }),+ tx({ x: 335, y: 862, width: 410, height: 45, text: 'SHOP THE SALE →', fontFamily: 'Outfit', bold: true, fontSize: 32, fill: '#FFFFFF', align: 'center' }),+ st('🛍️', { x: 60, y: 850, width: 180, height: 180, fontSize: 130 }),+ st('🛍️', { x: 840, y: 850, width: 180, height: 180, fontSize: 130 }),+ ],+ },+ ],+ },++ // 11 ── Playlist cover · retro night drive+ {+ slug: 'playlist-cover',+ name: 'Playlist Cover',+ category: 'social',+ width: 1080,+ height: 1080,+ accent: '#A855F7',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'gradient', from: '#4C1D95', to: '#F97316', angle: 145 },+ elements: [+ sh('ellipse', { x: 240, y: 260, width: 600, height: 600, fill: '#FACC15', opacity: 0.9 }),+ sh('ellipse', { x: 320, y: 340, width: 440, height: 440, fill: '#FB923C', opacity: 0.95 }),+ sh('ellipse', { x: 400, y: 420, width: 280, height: 280, fill: '#7C3AED' }),+ sh('rect', { x: 0, y: 700, width: 1080, height: 380, fill: '#1E1045', opacity: 0.88 }),+ tx({ x: 90, y: 120, width: 900, height: 90, text: 'MIDNIGHT MIXTAPE · VOL. 03', fontFamily: 'Space Mono', bold: true, fontSize: 30, letterSpacing: 5, fill: '#FFF7ED', align: 'center' }),+ tx({ x: 90, y: 745, width: 900, height: 130, text: 'LATE NIGHT', fontFamily: 'Monoton', fontSize: 100, fill: '#FACC15', align: 'center' }),+ tx({ x: 90, y: 870, width: 900, height: 100, text: 'DRIVE', fontFamily: 'Monoton', fontSize: 100, fill: '#FFFFFF', align: 'center' }),+ tx({ x: 90, y: 990, width: 900, height: 45, text: '24 TRACKS · 1 HR 18 MIN · CURATED BY @nightowl', fontFamily: 'Inter', fontSize: 23, letterSpacing: 2, fill: '#C4B5FD', align: 'center' }),+ ],+ },+ ],+ },++ // 12 ── Monday motivation · monochrome gym type+ {+ slug: 'monday-motivation',+ name: 'Monday Motivation',+ category: 'social',+ width: 1080,+ height: 1080,+ accent: '#F5F5F5',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#171717' },+ elements: [+ tx({ x: 80, y: 110, width: 920, height: 340, text: 'MON-', fontFamily: 'Archivo Black', fontSize: 230, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 80, y: 420, width: 920, height: 340, text: 'DAY', fontFamily: 'Archivo Black', fontSize: 230, fill: '#FACC15', align: 'left' }),+ sh('rect', { x: 80, y: 800, width: 920, height: 4, fill: '#404040' }),+ tx({ x: 80, y: 840, width: 920, height: 60, text: 'THE BAR DOESN’T LIFT ITSELF.', fontFamily: 'Inter', bold: true, fontSize: 33, letterSpacing: 3, fill: '#D4D4D4', align: 'left' }),+ st('🏋️', { x: 790, y: 740, width: 210, height: 210, fontSize: 150 }),+ tx({ x: 80, y: 960, width: 920, height: 45, text: '#TEAMNOSLEEPSQUAD · GYM OPENS 5 AM', fontFamily: 'DM Mono', fontSize: 24, letterSpacing: 2, fill: '#737373', align: 'left' }),+ ],+ },+ ],+ },++ // 13 ── Flash sale story · urgency countdown+ {+ slug: 'ends-tonight-story',+ name: 'Flash Sale Story',+ category: 'social',+ width: 1080,+ height: 1920,+ accent: '#DC2626',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'gradient', from: '#7F1D1D', to: '#DC2626', angle: 165 },+ elements: [+ tx({ x: 90, y: 260, width: 900, height: 70, text: '⚡ FLASH SALE ⚡', fontFamily: 'Bebas Neue', fontSize: 58, letterSpacing: 6, fill: '#FFE4E6', align: 'center' }),+ tx({ x: 90, y: 360, width: 900, height: 200, text: 'ENDS', fontFamily: 'Anton', fontSize: 150, fill: '#FFFFFF', align: 'center' }),+ tx({ x: 90, y: 500, width: 900, height: 200, text: 'TONIGHT', fontFamily: 'Anton', fontSize: 150, fill: '#FCA5A5', align: 'center' }),+ sh('rect', { x: 150, y: 760, width: 220, height: 240, fill: '#FFFFFF', cornerRadius: 24 }),+ sh('rect', { x: 430, y: 760, width: 220, height: 240, fill: '#FFFFFF', cornerRadius: 24 }),+ sh('rect', { x: 710, y: 760, width: 220, height: 240, fill: '#FFFFFF', cornerRadius: 24 }),+ tx({ x: 150, y: 800, width: 220, height: 130, text: '04', fontFamily: 'Outfit', bold: true, fontSize: 100, fill: '#7F1D1D', align: 'center' }),+ tx({ x: 430, y: 800, width: 220, height: 130, text: '12', fontFamily: 'Outfit', bold: true, fontSize: 100, fill: '#7F1D1D', align: 'center' }),+ tx({ x: 710, y: 800, width: 220, height: 130, text: '33', fontFamily: 'Outfit', bold: true, fontSize: 100, fill: '#7F1D1D', align: 'center' }),+ tx({ x: 150, y: 940, width: 220, height: 45, text: 'HOURS', fontFamily: 'Inter', bold: true, fontSize: 24, letterSpacing: 3, fill: '#7F1D1D', align: 'center' }),+ tx({ x: 430, y: 940, width: 220, height: 45, text: 'MINUTES', fontFamily: 'Inter', bold: true, fontSize: 24, letterSpacing: 2, fill: '#7F1D1D', align: 'center' }),+ tx({ x: 710, y: 940, width: 220, height: 45, text: 'SECONDS', fontFamily: 'Inter', bold: true, fontSize: 24, letterSpacing: 2, fill: '#7F1D1D', align: 'center' }),+ tx({ x: 90, y: 1100, width: 900, height: 60, text: 'EVERYTHING 30% OFF — NO CODE NEEDED', fontFamily: 'Inter', bold: true, fontSize: 30, letterSpacing: 1, fill: '#FFFFFF', align: 'center' }),+ sh('rect', { x: 240, y: 1210, width: 600, height: 110, fill: '#FFFFFF', cornerRadius: 55 }),+ tx({ x: 260, y: 1242, width: 560, height: 55, text: 'TAP TO SHOP BEFORE IT’S GONE', fontFamily: 'Outfit', bold: true, fontSize: 31, fill: '#7F1D1D', align: 'center' }),+ st('⏰', { x: 440, y: 1420, width: 220, height: 220, fontSize: 160 }),+ ],+ },+ ],+ },++ // 14 ── Grand opening · sage ribbon+ {+ slug: 'grand-opening',+ name: 'Grand Opening',+ category: 'social',+ width: 1080,+ height: 1080,+ accent: '#5B7C6A',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#F3F6F2' },+ elements: [+ sh('ellipse', { x: 90, y: 90, width: 900, height: 900, fill: 'transparent', stroke: '#5B7C6A', strokeWidth: 3 }),+ sh('ellipse', { x: 120, y: 120, width: 840, height: 840, fill: 'transparent', stroke: '#C8D6CC', strokeWidth: 1.5 }),+ tx({ x: 190, y: 200, width: 700, height: 55, text: 'YOU ARE INVITED', fontFamily: 'DM Mono', fontSize: 26, letterSpacing: 7, fill: '#5B7C6A', align: 'center' }),+ tx({ x: 190, y: 270, width: 700, height: 110, text: 'Grand Opening', fontFamily: 'Prata', fontSize: 88, fill: '#2F4237', align: 'center' }),+ gr('ribbon', { x: 440, y: 400, width: 200, height: 160, fill: '#5B7C6A' }),+ tx({ x: 190, y: 580, width: 700, height: 55, text: 'FERN & FABLE — BOOKS · COFFEE · COMMUNITY', fontFamily: 'Inter', bold: true, fontSize: 25, letterSpacing: 1, fill: '#5B7C6A', align: 'center' }),+ ln({ x: 390, y: 670, width: 300, height: 0, stroke: '#C8D6CC', strokeWidth: 3 }),+ tx({ x: 190, y: 700, width: 700, height: 55, text: 'SATURDAY, MAY 9 · DOORS AT 9 AM', fontFamily: 'Cormorant Garamond', bold: true, fontSize: 40, fill: '#2F4237', align: 'center' }),+ tx({ x: 190, y: 760, width: 700, height: 50, text: '214 Willow Lane · first 50 guests get a free pour', fontFamily: 'Inter', fontSize: 26, fill: '#6B7F72', align: 'center' }),+ st('🌿', { x: 470, y: 830, width: 140, height: 140, fontSize: 100 }),+ ],+ },+ ],+ },+]diff --git a/src/lib/templates/collection-v08-thumbnails.ts b/src/lib/templates/collection-v08-thumbnails.tsnew file mode 100644index 0000000..93c52db--- /dev/null+++ b/src/lib/templates/collection-v08-thumbnails.ts@@ -0,0 +1,220 @@+// ─────────────────────────────────────────────────────────────+// collection-v08/thumbnails — 7 new premium video thumbnail+// templates (1280×720). Big type, strong contrast, mobile-first+// legibility — the click-through patterns that work.+// ─────────────────────────────────────────────────────────────++import type { TemplateDef } from './helpers'+import { tx, sh, ln, st, gr } from './helpers'++export const COLLECTION_V08_THUMBNAILS: TemplateDef[] = [+ // 1 ── Gaming · red/blue split+ {+ slug: 'yt-gaming-thumb',+ name: 'Gaming Thumbnail',+ category: 'thumbnail',+ width: 1280,+ height: 720,+ accent: '#EF4444',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#0F172A' },+ elements: [+ sh('rect', { x: 640, y: 0, width: 640, height: 720, fill: '#1D4ED8' }),+ sh('rect', { x: 0, y: 0, width: 1280, height: 720, fill: 'transparent' }),+ ln({ x: 640, y: 60, width: 0, height: 600, stroke: '#FFFFFF', strokeWidth: 8 }),+ tx({ x: 60, y: 150, width: 520, height: 100, text: 'I HIT', fontFamily: 'Luckiest Guy', fontSize: 90, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 60, y: 260, width: 520, height: 100, text: 'RANK 1', fontFamily: 'Luckiest Guy', fontSize: 90, fill: '#FACC15', align: 'left' }),+ tx({ x: 60, y: 380, width: 520, height: 60, text: 'IN ONE NIGHT', fontFamily: 'Bebas Neue', fontSize: 52, letterSpacing: 2, fill: '#FCA5A5', align: 'left' }),+ tx({ x: 60, y: 480, width: 520, height: 120, text: 'no sleep · pure skill\n· maybe 4 energy drinks', fontFamily: 'Inter', bold: true, fontSize: 27, lineHeight: 1.5, fill: '#CBD5E1', align: 'left' }),+ st('😱', { x: 700, y: 120, width: 240, height: 240, fontSize: 180 }),+ tx({ x: 740, y: 420, width: 480, height: 130, text: 'FINAL\nGAMEPLAY', fontFamily: 'Luckiest Guy', fontSize: 72, fill: '#FFFFFF', align: 'center' }),+ gr('arrow', { x: 950, y: 560, width: 180, height: 110, fill: '#FACC15' }),+ ],+ },+ ],+ },++ // 2 ── Tech review · clean product+ {+ slug: 'yt-tech-review',+ name: 'Tech Review Thumbnail',+ category: 'thumbnail',+ width: 1280,+ height: 720,+ accent: '#0EA5E9',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#FFFFFF' },+ elements: [+ sh('rect', { x: 0, y: 0, width: 620, height: 720, fill: '#F8FAFC' }),+ sh('rect', { x: 120, y: 130, width: 380, height: 460, fill: '#1E293B', cornerRadius: 40 }),+ sh('rect', { x: 150, y: 170, width: 320, height: 340, fill: '#0EA5E9', cornerRadius: 24 }),+ sh('ellipse', { x: 255, y: 280, width: 110, height: 110, fill: '#334155' }),+ sh('rect', { x: 150, y: 540, width: 320, height: 26, fill: '#334155', cornerRadius: 13 }),+ tx({ x: 700, y: 120, width: 520, height: 60, text: 'AFTER 6 MONTHS', fontFamily: 'DM Mono', bold: true, fontSize: 30, letterSpacing: 3, fill: '#0EA5E9', align: 'left' }),+ tx({ x: 695, y: 190, width: 560, height: 130, text: 'The Honest', fontFamily: 'Outfit', bold: true, fontSize: 84, fill: '#0F172A', align: 'left' }),+ tx({ x: 695, y: 305, width: 560, height: 130, text: 'Review', fontFamily: 'Outfit', bold: true, fontSize: 84, fill: '#0EA5E9', align: 'left' }),+ ln({ x: 700, y: 470, width: 120, height: 0, stroke: '#0EA5E9', strokeWidth: 6 }),+ tx({ x: 700, y: 500, width: 520, height: 60, text: 'what broke · what surprised me', fontFamily: 'Inter', fontSize: 29, fill: '#475569', align: 'left' }),+ sh('rect', { x: 700, y: 580, width: 480, height: 80, fill: '#0F172A', cornerRadius: 40 }),+ tx({ x: 720, y: 602, width: 440, height: 45, text: 'SUBSCRIBE FOR PART 2 →', fontFamily: 'Outfit', bold: true, fontSize: 27, fill: '#FFFFFF', align: 'center' }),+ ],+ },+ ],+ },++ // 3 ── Daily vlog · pastel life+ {+ slug: 'yt-vlog-thumb',+ name: 'Daily Vlog Thumbnail',+ category: 'thumbnail',+ width: 1280,+ height: 720,+ accent: '#FB7185',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'gradient', from: '#FDF2F8', to: '#E0E7FF', angle: 120 },+ elements: [+ sh('ellipse', { x: 780, y: 60, width: 440, height: 440, fill: '#FFFFFF', opacity: 0.7 }),+ st('☕', { x: 850, y: 110, width: 200, height: 200, fontSize: 150 }),+ st('🌱', { x: 800, y: 300, width: 160, height: 160, fontSize: 120 }),+ st('🎧', { x: 1010, y: 300, width: 160, height: 160, fontSize: 120 }),+ sh('rect', { x: 70, y: 170, width: 660, height: 100, fill: '#FB7185', cornerRadius: 50 }),+ tx({ x: 100, y: 195, width: 600, height: 60, text: 'a day in my life', fontFamily: 'Quicksand', bold: true, fontSize: 48, fill: '#FFFFFF', align: 'center' }),+ tx({ x: 70, y: 310, width: 660, height: 140, text: 'slow morning,', fontFamily: 'Sacramento', bold: true, fontSize: 100, fill: '#4C1D95', align: 'left' }),+ tx({ x: 70, y: 430, width: 660, height: 140, text: 'big news 🤍', fontFamily: 'Sacramento', bold: true, fontSize: 100, fill: '#BE185D', align: 'left' }),+ tx({ x: 70, y: 610, width: 660, height: 45, text: 'NEW APARTMENT TOUR AT 8:12', fontFamily: 'Inter', bold: true, fontSize: 26, letterSpacing: 1, fill: '#6D28D9', align: 'left' }),+ sh('rect', { x: 0, y: 660, width: 1280, height: 60, fill: '#4C1D95' }),+ tx({ x: 40, y: 675, width: 500, height: 35, text: '@liam.makes · vlog #214', fontFamily: 'DM Mono', fontSize: 20, letterSpacing: 2, fill: '#E9D5FF', align: 'left' }),+ ],+ },+ ],+ },++ // 4 ── Tutorial · step chips+ {+ slug: 'yt-tutorial-thumb',+ name: 'Tutorial Thumbnail',+ category: 'thumbnail',+ width: 1280,+ height: 720,+ accent: '#16A34A',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#F0FDF4' },+ elements: [+ tx({ x: 70, y: 90, width: 700, height: 60, text: 'BEGINNER FRIENDLY · 15 MIN', fontFamily: 'DM Mono', bold: true, fontSize: 27, letterSpacing: 2, fill: '#16A34A', align: 'left' }),+ tx({ x: 65, y: 160, width: 760, height: 130, text: 'How to Draw', fontFamily: 'Poppins', bold: true, fontSize: 80, fill: '#052E16', align: 'left' }),+ tx({ x: 65, y: 280, width: 760, height: 130, text: 'Anything', fontFamily: 'Poppins', bold: true, fontSize: 80, fill: '#16A34A', align: 'left' }),+ sh('rect', { x: 70, y: 460, width: 200, height: 90, fill: '#052E16', cornerRadius: 45 }),+ tx({ x: 90, y: 483, width: 160, height: 50, text: 'STEP 1', fontFamily: 'Poppins', bold: true, fontSize: 30, fill: '#FFFFFF', align: 'center' }),+ sh('rect', { x: 300, y: 460, width: 200, height: 90, fill: '#16A34A', cornerRadius: 45 }),+ tx({ x: 320, y: 483, width: 160, height: 50, text: 'STEP 2', fontFamily: 'Poppins', bold: true, fontSize: 30, fill: '#FFFFFF', align: 'center' }),+ sh('rect', { x: 530, y: 460, width: 200, height: 90, fill: '#052E16', cornerRadius: 45 }),+ tx({ x: 550, y: 483, width: 160, height: 50, text: 'STEP 3', fontFamily: 'Poppins', bold: true, fontSize: 30, fill: '#FFFFFF', align: 'center' }),+ tx({ x: 70, y: 610, width: 700, height: 45, text: 'the 3-shape method artists actually use', fontFamily: 'Lora', italic: true, fontSize: 29, fill: '#166534', align: 'left' }),+ sh('rect', { x: 860, y: 100, width: 360, height: 500, fill: '#FFFFFF', cornerRadius: 28 }),+ sh('ellipse', { x: 920, y: 180, width: 240, height: 200, fill: '#DCFCE7' }),+ sh('triangle', { x: 960, y: 380, width: 160, height: 140, fill: '#BBF7D0' }),+ ln({ x: 920, y: 540, width: 240, height: 0, stroke: '#86EFAC', strokeWidth: 8 }),+ st('✏️', { x: 1080, y: 120, width: 120, height: 120, fontSize: 90 }),+ ],+ },+ ],+ },++ // 5 ── Podcast episode · dark studio+ {+ slug: 'yt-podcast-thumb',+ name: 'Podcast Episode Thumbnail',+ category: 'thumbnail',+ width: 1280,+ height: 720,+ accent: '#F59E0B',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#18181B' },+ elements: [+ sh('ellipse', { x: 120, y: 130, width: 420, height: 420, fill: '#27272A' }),+ sh('ellipse', { x: 155, y: 165, width: 350, height: 350, fill: '#3F3F46' }),+ st('🎙️', { x: 200, y: 210, width: 260, height: 260, fontSize: 190 }),+ tx({ x: 620, y: 110, width: 580, height: 60, text: 'THE DEEP WORK PODCAST · EP. 42', fontFamily: 'DM Mono', bold: true, fontSize: 24, letterSpacing: 2, fill: '#F59E0B', align: 'left' }),+ tx({ x: 615, y: 180, width: 620, height: 200, text: '“Focus is a\nskill, not a\nmood.”', fontFamily: 'Playfair Display', bold: true, fontSize: 72, lineHeight: 1.2, fill: '#FFFFFF', align: 'left' }),+ ln({ x: 620, y: 430, width: 120, height: 0, stroke: '#F59E0B', strokeWidth: 5 }),+ tx({ x: 620, y: 460, width: 580, height: 55, text: 'Cal Newport unplugged — part two', fontFamily: 'Inter', fontSize: 29, fill: '#A1A1AA', align: 'left' }),+ sh('rect', { x: 620, y: 540, width: 420, height: 90, fill: '#F59E0B', cornerRadius: 12 }),+ tx({ x: 640, y: 565, width: 380, height: 50, text: 'WATCH — 58 MIN, NO ADS', fontFamily: 'Outfit', bold: true, fontSize: 28, fill: '#18181B', align: 'center' }),+ ],+ },+ ],+ },++ // 6 ── Fitness · bold transformation+ {+ slug: 'yt-fitness-thumb',+ name: 'Fitness Thumbnail',+ category: 'thumbnail',+ width: 1280,+ height: 720,+ accent: '#F97316',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#0C0A09' },+ elements: [+ sh('rect', { x: 0, y: 0, width: 1280, height: 130, fill: '#F97316' }),+ tx({ x: 60, y: 30, width: 1160, height: 75, text: 'THE 30-DAY CHALLENGE', fontFamily: 'Anton', fontSize: 56, letterSpacing: 2, fill: '#0C0A09', align: 'center' }),+ tx({ x: 60, y: 190, width: 620, height: 140, text: 'SHRED', fontFamily: 'Anton', fontSize: 120, fill: '#FFFFFF', align: 'left' }),+ tx({ x: 60, y: 320, width: 620, height: 140, text: 'PLAN', fontFamily: 'Anton', fontSize: 120, fill: '#F97316', align: 'left' }),+ tx({ x: 70, y: 490, width: 560, height: 60, text: 'real results · no gym needed', fontFamily: 'Inter', bold: true, fontSize: 30, fill: '#D6D3D1', align: 'left' }),+ sh('rect', { x: 70, y: 570, width: 360, height: 80, fill: '#FFFFFF', cornerRadius: 40 }),+ tx({ x: 90, y: 592, width: 320, height: 45, text: 'DAY 1 vs DAY 30 →', fontFamily: 'Outfit', bold: true, fontSize: 27, fill: '#0C0A09', align: 'center' }),+ sh('rect', { x: 730, y: 190, width: 500, height: 400, fill: '#1C1917', cornerRadius: 24 }),+ st('💪', { x: 820, y: 250, width: 320, height: 320, fontSize: 240 }),+ tx({ x: 760, y: 570, width: 440, height: 0, text: '', fontFamily: 'Inter', fontSize: 10, fill: '#0C0A09', align: 'center' }),+ tx({ x: 760, y: 590, width: 440, height: 50, text: '-4.2 KG · +9 CM', fontFamily: 'Anton', fontSize: 44, fill: '#F97316', align: 'center' }),+ ],+ },+ ],+ },++ // 7 ── Cooking · warm recipe+ {+ slug: 'yt-cooking-thumb',+ name: 'Cooking Thumbnail',+ category: 'thumbnail',+ width: 1280,+ height: 720,+ accent: '#EA580C',+ badge: 'premium',+ pages: [+ {+ id: 'p1',+ background: { type: 'solid', color: '#FFF7ED' },+ elements: [+ sh('ellipse', { x: 720, y: 80, width: 560, height: 560, fill: '#FED7AA' }),+ st('🍝', { x: 800, y: 160, width: 400, height: 400, fontSize: 300 }),+ tx({ x: 70, y: 120, width: 620, height: 60, text: 'WEEKNIGHT DINNER · UNDER $10', fontFamily: 'DM Mono', bold: true, fontSize: 25, letterSpacing: 2, fill: '#EA580C', align: 'left' }),+ tx({ x: 65, y: 190, width: 660, height: 130, text: '5-Minute', fontFamily: 'Playfair Display', bold: true, fontSize: 86, fill: '#431407', align: 'left' }),+ tx({ x: 65, y: 310, width: 660, height: 130, text: 'Pasta', fontFamily: 'Playfair Display', bold: true, fontSize: 86, fill: '#EA580C', align: 'left' }),+ ln({ x: 70, y: 470, width: 120, height: 0, stroke: '#EA580C', strokeWidth: 6 }),+ tx({ x: 70, y: 500, width: 620, height: 60, text: 'better than the restaurant version', fontFamily: 'Lora', italic: true, fontSize: 31, fill: '#7C2D12', align: 'left' }),+ sh('rect', { x: 70, y: 580, width: 560, height: 90, fill: '#431407', cornerRadius: 45 }),+ tx({ x: 90, y: 605, width: 520, height: 50, text: '5 INGREDIENTS · 1 PAN 🍳', fontFamily: 'Outfit', bold: true, fontSize: 30, fill: '#FFF7ED', align: 'center' }),+ ],+ },+ ],+ },+]diff --git a/src/lib/templates/helpers.ts b/src/lib/templates/helpers.tsnew file mode 100644index 0000000..546da40--- /dev/null+++ b/src/lib/templates/helpers.ts@@ -0,0 +1,37 @@+import {+ createShapeElement,+ createTextElement,+ createLineElement,+ createStickerElement,+ type PageData,+} from '../types'+import { GRAPHICS } from '../editor-utils'++export interface TemplateDef {+ slug: string+ name: string+ category: string+ width: number+ height: number+ accent: string+ /** v0.7: premium library expansion — every template stays 100% free,+ * the badge is a quality label only (never a paywall). */+ badge?: 'premium' | 'new'+ pages: PageData[]+}++// compact element builders+export const tx = (o: Record<string, unknown>) =>+ createTextElement(o as Parameters<typeof createTextElement>[0])+export const sh = (type: 'rect' | 'ellipse' | 'triangle' | 'star' | 'path', o: Record<string, unknown>) =>+ createShapeElement(type, o as Parameters<typeof createShapeElement>[1])+export const ln = (o: Record<string, unknown>) =>+ createLineElement(o as Parameters<typeof createLineElement>[0])+export const st = (char: string, o: Record<string, unknown>) =>+ createStickerElement(char, o as Parameters<typeof createStickerElement>[1])+export const gr = (graphicId: string, o: Record<string, unknown>) =>+ createShapeElement('path', {+ pathData: GRAPHICS.find((g) => g.id === graphicId)?.path ?? GRAPHICS[0].path,+ ...(o as Parameters<typeof createShapeElement>[1]),+ })+diff --git a/src/lib/templates/index.ts b/src/lib/templates/index.tsnew file mode 100644index 0000000..4b84eb8--- /dev/null+++ b/src/lib/templates/index.ts@@ -0,0 +1,53 @@+// ─────────────────────────────────────────────────────────────+// Canvix built-in template library (seeded into DB + used client-side)+//+// v0.8: 110 templates, organised as collections so the library can+// keep growing without monster files:+// · collection-v07 — the original 60 (starters + premium)+// · collection-v08-* — 50 new premium-grade originals across+// every category, styled after what's+// trending on the big template platforms+// (original designs — nothing is copied)+//+// Every template is free forever. The "premium" badge is a quality+// label, never a paywall.+// ─────────────────────────────────────────────────────────────++import { createPage, type PageData, type TemplateRecord } from '../types'+import type { TemplateDef } from './helpers'+import { COLLECTION_V07 } from './collection-v07'+import { COLLECTION_V08_SOCIAL } from './collection-v08-social'+import { COLLECTION_V08_DECKS } from './collection-v08-decks'+import { COLLECTION_V08_PRINT } from './collection-v08-print'+import { COLLECTION_V08_DOCS } from './collection-v08-docs'+import { COLLECTION_V08_THUMBNAILS } from './collection-v08-thumbnails'+import { COLLECTION_V08_LOGOS } from './collection-v08-logos'++export type { TemplateDef } from './helpers'++export const TEMPLATES: TemplateDef[] = [+ ...COLLECTION_V07,+ ...COLLECTION_V08_SOCIAL,+ ...COLLECTION_V08_DECKS,+ ...COLLECTION_V08_PRINT,+ ...COLLECTION_V08_DOCS,+ ...COLLECTION_V08_THUMBNAILS,+ ...COLLECTION_V08_LOGOS,+]++export function templatesAsRecords(): TemplateRecord[] {+ return TEMPLATES.map((t) => ({+ id: t.slug,+ slug: t.slug,+ name: t.name,+ category: t.category,+ width: t.width,+ height: t.height,+ accent: t.accent,+ pages: t.pages,+ }))+}++export function blankPage(): PageData {+ return createPage()+}