Files
crosscode-platform/apps/website
joshuaandClaude Opus 5.5 f5f778f0d7 website 1.11.0: layouts and backgrounds for the blocks; a video for the top of the page
- Blocks get layouts (BLOCK_VARIANTS: text standard/centred; image and text photo left,
  right or above; quote centred/with a line; call to action centred/banner), stored on
  Section.variant and checked against the type; an unknown one draws as the default, as
  every block looked before. The demo's image-text block id is now image-left.
- Each block has its own background (Section.background, migration
  20261201000000_block_background), in the published source only when set, put back by
  Discard and Restore, drawn as the homepage's (data-bg).
- MP4 uploads up to 20 MB for the hero's Video layout: QuickTime refused, metadata boxes
  (udta, meta, uuid) blanked into free boxes of the same size so where it was filmed is
  gone and the frame offsets hold; size read from tkhd. GET /media lists mime.
- Admin: a block's Layout and Background when open; the hero's Video field (only videos;
  photo fields only photos); the media library shows and takes videos. An upload over the
  limit says so instead of "That request isn't valid."
- Tests: backend (152, three new); e2e for block layouts and a video upload.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 09:57:02 +02:00
..

Church Website

The church's public website and its admin (ROADMAP-v3 §6, phase 5; plan and decisions in docs/WEBSITE-1.0-PLAN.md). Served at www.<church's address> (or <church>.crosscode.co.za), with the admin at /admin, signed in through the church's Accounts. The church picks one of four templates (Heritage, Bold, Community, Clean) and makes it its own with section variants and style settings. Changes are drafts until an editor previews the whole site and presses Publish; until the first publish visitors see Coming soon.

State: being built (2026-11-25): signing in through Accounts, the four templates and the public site, the admin (editing, preview, publish, discard, restore, shared previews, media), and the demo church, people and roles, messages (with the YouTube feed), simple events and the event feed with Cross Events. Still to come: the Hub's "Get more storage", Lighthouse and the VM test. Not released; website@1.0.0 is tagged when the plan is built.

Signing in (backend/src/auth/): the Website registers with the Hub (its install id is its client id at Accounts), links itself to the church's Accounts once the Hub lists it, and signs admins in through @crosscode/auth-client. Roles are the Website's own; the first Owner is whoever signs in with the Hub's admin email (HUB_ADMIN_EMAIL), verified in Accounts. Locally, set LINKS_ALLOW_PRIVATE=true to link to an Accounts on http://localhost.

  • backend/: Express + Prisma (ES modules), as Accounts. npm run dev, npm test (Node's test runner through tsx), npm run build. The content model is in prisma/schema.prisma; the section variants per template (plan §3, decision 16) in src/site/variants.ts.
  • frontend/: Next.js 16. The public site (server-rendered from the latest published version) and the admin.

Local development: Postgres in backend/.env (DATABASE_URL, WEBSITE_URL=http://localhost:3300), npx prisma migrate deploy, then npm run dev in both folders (the frontend runs on 3300 and sends /api to the backend on 5300).