Page Studio
Bio Pages and themed Pages share one design pipeline. The goal is expressive creator pages without turning the public renderer into an arbitrary CSS sandbox.
Model
Theme recipe (server-owned)
+ Template (server-owned composition)
+ Page design overrides (validated, versioned JSON)
+ Page assets (next phase)
-> Resolved token map
-> Go SSR public page + React editor preview
theme remains the stable base recipe. template_id selects a constrained
composition. design stores semantic overrides only: colours, font roles,
button presets, background settings, and motion level. The server resolves the
overrides into known CSS variables; clients never submit raw CSS, HTML, or
JavaScript.
The first schema lives in pages:
template_iddesign_versiondesign(jsonb)
The resolver and validation rules are in internal/pages/design.go.
Phases
Phase 0 — contract and persistence — started
- Add a versioned design document.
- Keep existing theme-only pages valid.
- Carry design data through
PageServiceand the public resolver. - Keep public HTML server-rendered.
- Add validation and token-resolution tests.
Phase 1 — creator controls — started
- Theme recipe picker.
- Template selector.
- Semantic colour controls.
- Curated font roles.
- Button style and radius presets.
- Solid, gradient, and image backgrounds.
- Motion levels with reduced-motion support.
- Live preview and explicit design save/reset actions.
Phase 2 — templates and brand inheritance — started
- Template classes now carry structural block groups, featured-card treatment, and a social-icon row.
- Added one account-level Brand Kit with page inheritance.
- Added block collections, featured flags, thumbnails, and server-owned social icon ids.
- Continue with richer template-specific regions and partial override controls.
Phase 3 — assets and Canva — started
- Added owner-scoped
page_assetsbacked by the existing S3-compatible store. - Added authenticated
POST /api/pages/assetsupload, MIME/dimension validation, focal-point and alt-text metadata, and an editor asset picker. - Responsive derivative generation and Canva browse/import remain follow-up work. Canva must feed the same asset model; do not import arbitrary Canva HTML or CSS.
Phase 4 — composition and richer media — shipped
- Added composition templates: Spotlight (priority hero), Bento (card grid), Editorial (type rows), Minimal (text links), and Media (embed-led).
- Added per-link descriptions, compact thumbnails, card styles, priority links, and start/end scheduling.
- Added cover images, avatar shape/ring, type-scale presets, curated font pairings, wallpaper presets, and texture overlays.
- Added generated 1200×630 social cards and avatar favicons.
- Added click-to-load players for YouTube, Spotify, SoundCloud, and Vimeo; no third-party iframe exists until the visitor presses play.
- Added opt-in search indexing with a creator sitemap and
ProfilePageJSON-LD.
Phase 5 — assets and distribution — next
- Responsive image derivatives (
srcset/AVIF/WebP) and focal-point rendering. - Linktree/CSV importer.
- Native mobile apps; the PWA share target is the current bridge.
- Canva browse/import into the same asset model.
- Custom WOFF2 uploads with licensing and CSP review.
- Multi-kit/team ownership after the single-kit model is validated.
Non-goals
- Arbitrary custom CSS or HTML.
- Unreviewed user-authored Go/React templates.
- Canva documents embedded directly into public pages.
- A second design-token source in TypeScript. The Go resolver remains the authority; the preview consumes its resolved token names.