diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b278cb..8a1afa1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ Each package and app has its own section and its own tags (`contracts@1.0.0`, `accounts@1.0.0`, …). +## website@1.12.0 - 2026-12-01 + +Layouts for the pages that list something (Joshua, 2026-12-01). No migration, no contracts change. + +- **Website 1.12.0:** the Ministries, Leadership, Events, Messages and Contact pages each have + three layouts (`PAGE_VARIANTS`), kept in the design beside the homepage sections', with a + suggestion per template; a site saved before keeps how its pages looked until it picks one. +- Checked: the Website backend tests (156, five new), the frontend's typecheck and lint, and the + new `page-layouts` e2e suite (60: every layout in every template, axe at phone and desktop). + ## website@1.11.0 - 2026-12-01 Layouts and backgrounds for the other pages' blocks, and a video for the top of the page diff --git a/apps/website/CHANGELOG.md b/apps/website/CHANGELOG.md index 4949204..9932b3e 100644 --- a/apps/website/CHANGELOG.md +++ b/apps/website/CHANGELOG.md @@ -1,5 +1,26 @@ # Changelog — Church Website +## [1.12.0] — 2026-12-01 + +No migration (the layouts live in `SiteDesign.variants`). No new environment settings. + +### Added + +- **Listing page layouts** (`PAGE_VARIANTS` in `src/site/variants.ts`), three per page: + `ministriesPage` `alternating` · `cards` · `list`; `leadershipPage` `grid` · `featured` · `list`; + `eventsPage` `list` · `cards` · `months`; `messagesPage` `grid` · `featured` · `list`; + `contactPage` `columns` · `map` · `cards`. They sit beside the homepage sections' in the design + (`PUT /design { variants: { eventsPage: "months" } }`), so each template recommends some, starts + a new site on the first (its suggestion), and a template switch moves an untouched one to the + new template's suggestion. A design saved before them has none: `cleanDesign` gives it + `LEGACY_PAGE_LAYOUTS` (how the pages looked until now), so nothing changes until a church picks + one; a snapshot without them is drawn the same way. `contactPage` `map` without a place on the + map draws as `columns`. +- **Admin:** a listing page's editor (Pages) has its Layout, the template's suggestion marked; and + Template and style has an **Other pages** tab with all five. +- `e2e/page-layouts.spec.ts`: every page layout in every template answers and passes axe at phone + and desktop width (`PAGE_SHOTS=` saves screenshots). + ## [1.11.0] — 2026-12-01 **Migration** `20261201000000_block_background` (adds the nullable `Section.background`; nothing diff --git a/apps/website/WHATS-NEW.md b/apps/website/WHATS-NEW.md index f6f87a2..3f96a11 100644 --- a/apps/website/WHATS-NEW.md +++ b/apps/website/WHATS-NEW.md @@ -3,6 +3,16 @@ What each version changes for the church, in plain language (read by the Hub like Cross Events' WHATS-NEW.md; a section shows once its version is tagged). +## 1.12.0 + +- **Choose how your Ministries, Leadership, Events, Messages and Contact pages look.** Each has + three layouts: ministries as alternating photo and text, cards, or a list with small photos; + your team as a grid of faces, with the lead pastor first, or a list; events as a list, cards + with photos, or grouped by month; messages as a grid of videos, the latest first then a list, + or a list; contact details in two columns, with a map, or as cards. Your template suggests one + for each page. Choose it at the top of the page in **Pages**, or all five together under + **Template and style → Other pages**. Your pages look the same as before until you choose. + ## 1.11.0 - **Layouts and backgrounds for the blocks on your other pages.** Open a block in **Pages** to diff --git a/apps/website/backend/package.json b/apps/website/backend/package.json index cf9fd1e..2977f4e 100644 --- a/apps/website/backend/package.json +++ b/apps/website/backend/package.json @@ -1,6 +1,6 @@ { "name": "@crosscode/website-backend", - "version": "1.11.0", + "version": "1.12.0", "description": "Church Website: the public site's content API, the admin API, publishing and uploads", "private": true, "type": "module", diff --git a/apps/website/backend/src/admin/content.ts b/apps/website/backend/src/admin/content.ts index 8f63441..3a864a7 100644 --- a/apps/website/backend/src/admin/content.ts +++ b/apps/website/backend/src/admin/content.ts @@ -13,7 +13,7 @@ import { Prisma } from '../generated/prisma/client.js'; import { ApiError } from '../http.js'; import { BLOCK_SCHEMAS, isBlockType, rowFraming, SECTION_SCHEMAS } from '../site/sections.js'; import { cleanDesign } from '../site/snapshot.js'; -import { BLOCK_VARIANTS, BUTTONS, IMAGE_TREATMENTS, isVariant, SECTION_BACKGROUNDS, SECTION_COLOURS, SECTION_TYPES, sectionTypeSchema, SPACINGS, switchTemplate, TEMPLATE_HEADERS, type SectionType } from '../site/variants.js'; +import { BLOCK_VARIANTS, BUTTONS, IMAGE_TREATMENTS, isLayoutKey, isVariant, SECTION_BACKGROUNDS, SECTION_COLOURS, SECTION_TYPES, sectionTypeSchema, SPACINGS, switchTemplate, TEMPLATE_HEADERS, type SectionType } from '../site/variants.js'; type Who = { id: string; role: string }; @@ -76,7 +76,7 @@ export async function saveDesign(ctx: Ctx, body: unknown, by: Who) { let moved: { what: string; from: string; to: string }[] = []; if (patch.template && patch.template !== design.template) ({ design, changes: moved } = switchTemplate(design, patch.template)); for (const [section, variant] of Object.entries(patch.variants ?? {})) { - if (!SECTION_TYPES.includes(section as SectionType) || !isVariant(section as SectionType, variant)) throw new ApiError(400, 'VALIDATION', `"${variant}" isn't a layout for ${section}.`); + if (!isLayoutKey(section) || !isVariant(section, variant)) throw new ApiError(400, 'VALIDATION', `"${variant}" isn't a layout for ${section}.`); (design.variants as Record)[section] = variant; } if (patch.home) { diff --git a/apps/website/backend/src/demo/demoChurch.ts b/apps/website/backend/src/demo/demoChurch.ts index 3b8908e..8ce2656 100644 --- a/apps/website/backend/src/demo/demoChurch.ts +++ b/apps/website/backend/src/demo/demoChurch.ts @@ -26,7 +26,7 @@ import { demoChurch, demoParts, demoPeople } from '@crosscode/demo'; import { markRemoved, notifyLinks, syncLink, type SyncResult } from '../feed/feed.js'; import type { SectionData } from '../site/sections.js'; import { publish } from '../site/snapshot.js'; -import { TEMPLATE_HEADERS, TEMPLATE_VARIANTS, SECTION_TYPES, defaultDesign, type SiteDesign } from '../site/variants.js'; +import { TEMPLATE_HEADERS, TEMPLATE_VARIANTS, LAYOUT_KEYS, defaultDesign, type SiteDesign } from '../site/variants.js'; import { MAX_WIDTH, WIDTHS, processImage, type Sizes } from '../admin/media.js'; import { DEMO_SEEDS, type DemoPhotos, type DemoSeed, type ProfileSeed } from './seeds.js'; @@ -250,7 +250,7 @@ const CLASSIC: Omit & { pastorName: string; ctaText: strin export function seedDesign(template: WebsiteTemplate, alternate: boolean): SiteDesign { const design = defaultDesign(template); if (!alternate) return design; - const variants = Object.fromEntries(SECTION_TYPES.map((s) => { + const variants = Object.fromEntries(LAYOUT_KEYS.map((s) => { const options = TEMPLATE_VARIANTS[template][s] as readonly string[]; return [s, options[1] ?? options[0]!]; })) as SiteDesign['variants']; diff --git a/apps/website/backend/src/site/snapshot.ts b/apps/website/backend/src/site/snapshot.ts index fe5b765..45f9cf5 100644 --- a/apps/website/backend/src/site/snapshot.ts +++ b/apps/website/backend/src/site/snapshot.ts @@ -11,7 +11,7 @@ import { WEBSITE_TEMPLATES, type WebsiteTemplate } from '@crosscode/contracts'; import type { Ctx } from '../context.js'; import { audit } from '../lib/audit.js'; import { parseSectionData } from './sections.js'; -import { blockVariant, defaultDesign, isSectionBackground, isVariant, SECTION_BACKGROUNDS, SECTION_TYPES, switchTemplate, type SectionBackground, type SectionType, type SiteDesign } from './variants.js'; +import { blockVariant, defaultDesign, isSectionBackground, isVariant, LAYOUT_KEYS, LEGACY_PAGE_LAYOUTS, PAGE_LAYOUT_KEYS, SECTION_BACKGROUNDS, SECTION_TYPES, switchTemplate, type LayoutKey, type SectionBackground, type SectionType, type SiteDesign } from './variants.js'; export const SNAPSHOT_VERSION = 1; @@ -84,9 +84,11 @@ export function cleanDesign(saved: { template: string; variants: unknown; home: const template: WebsiteTemplate = saved && (WEBSITE_TEMPLATES as readonly string[]).includes(saved.template) ? (saved.template as WebsiteTemplate) : 'heritage'; const base = defaultDesign(template); if (!saved) return base; - const variants = { ...base.variants } as Record; + const variants = { ...base.variants } as Record; const v = (saved.variants ?? {}) as Record; - for (const s of SECTION_TYPES) if (typeof v[s] === 'string' && isVariant(s, v[s] as string)) variants[s] = v[s] as string; + // A design from before the listing pages had layouts keeps how they looked (LEGACY_PAGE_LAYOUTS). + if (!PAGE_LAYOUT_KEYS.some((k) => k in v)) Object.assign(variants, LEGACY_PAGE_LAYOUTS); + for (const s of LAYOUT_KEYS) if (typeof v[s] === 'string' && isVariant(s, v[s] as string)) variants[s] = v[s] as string; const home = Array.isArray(saved.home) ? (saved.home as { section?: unknown; hidden?: unknown; background?: unknown }[]).filter((e) => SECTION_TYPES.includes(e?.section as SectionType)).map((e) => ({ section: e.section as SectionType, diff --git a/apps/website/backend/src/site/variants.ts b/apps/website/backend/src/site/variants.ts index 96c183c..01b6e4e 100644 --- a/apps/website/backend/src/site/variants.ts +++ b/apps/website/backend/src/site/variants.ts @@ -25,17 +25,50 @@ export const SECTION_VARIANTS = { } as const; export type SectionType = keyof typeof SECTION_VARIANTS; -export type Variant = (typeof SECTION_VARIANTS)[S][number]; export const SECTION_TYPES = Object.keys(SECTION_VARIANTS) as [SectionType, ...SectionType[]]; export const sectionTypeSchema = z.enum(SECTION_TYPES); -/** Whether `variant` is one of `section`'s ids. */ -export function isVariant(section: S, variant: string): variant is Variant { - return (SECTION_VARIANTS[section] as readonly string[]).includes(variant); +/** + * The layouts of what a fixed page lists (WEBSITE-1.0-PLAN §6: ministries, leaders, events, + * messages, contact details), keyed `Page` so they sit beside the homepage sections' in + * the design (`variants.ministriesPage = "cards"`). Like those, every template draws every one, a + * template recommends some and starts with the first, and **an id never changes or goes away**. + */ +export const PAGE_VARIANTS = { + ministriesPage: ['alternating', 'cards', 'list'], + leadershipPage: ['grid', 'featured', 'list'], + eventsPage: ['list', 'cards', 'months'], + messagesPage: ['grid', 'featured', 'list'], + contactPage: ['columns', 'map', 'cards'], +} as const; + +export type PageLayoutKey = keyof typeof PAGE_VARIANTS; +export const PAGE_LAYOUT_KEYS = Object.keys(PAGE_VARIANTS) as [PageLayoutKey, ...PageLayoutKey[]]; + +/** + * What each listing page looked like before it had layouts (Website 1.11 and earlier). A design + * saved then has no page layouts; it keeps this look rather than taking the template's suggestion + * on its next publish, so nothing changes until the church picks one. + */ +export const LEGACY_PAGE_LAYOUTS: { [K in PageLayoutKey]: (typeof PAGE_VARIANTS)[K][number] } = { + ministriesPage: 'alternating', leadershipPage: 'grid', eventsPage: 'list', messagesPage: 'grid', contactPage: 'columns', +}; + +/** Everything with a layout in the design: the homepage sections and the listing pages. */ +const LAYOUTS = { ...SECTION_VARIANTS, ...PAGE_VARIANTS }; +export type LayoutKey = keyof typeof LAYOUTS; +export const LAYOUT_KEYS = [...SECTION_TYPES, ...PAGE_LAYOUT_KEYS] as [LayoutKey, ...LayoutKey[]]; +export type Variant = (typeof LAYOUTS)[S][number]; + +export const isLayoutKey = (k: string): k is LayoutKey => (LAYOUT_KEYS as readonly string[]).includes(k); + +/** Whether `variant` is one of `section`'s (or a listing page's) ids. */ +export function isVariant(section: S, variant: string): variant is Variant { + return (LAYOUTS[section] as readonly string[]).includes(variant); } -/** Per section: the default first, then the other recommended variants. */ -type Recommendations = { [S in SectionType]: readonly [Variant, ...Variant[]] }; +/** Per section and listing page: the default first, then the other recommended variants. */ +type Recommendations = { [S in LayoutKey]: readonly [Variant, ...Variant[]] }; export const TEMPLATE_VARIANTS: Record = { heritage: { @@ -47,6 +80,11 @@ export const TEMPLATE_VARIANTS: Record = { events: ['list', 'calendar'], latestMessage: ['card', 'video'], invitation: ['centred', 'banner'], + ministriesPage: ['list', 'alternating'], + leadershipPage: ['featured', 'grid'], + eventsPage: ['list', 'months'], + messagesPage: ['featured', 'grid'], + contactPage: ['columns', 'map'], }, bold: { hero: ['video', 'photo', 'split'], @@ -57,6 +95,11 @@ export const TEMPLATE_VARIANTS: Record = { events: ['cards', 'calendar'], latestMessage: ['video', 'card'], invitation: ['image', 'banner'], + ministriesPage: ['alternating', 'cards'], + leadershipPage: ['grid', 'featured'], + eventsPage: ['cards', 'list'], + messagesPage: ['featured', 'grid'], + contactPage: ['map', 'cards'], }, community: { hero: ['collage', 'photo', 'split'], @@ -67,6 +110,11 @@ export const TEMPLATE_VARIANTS: Record = { events: ['cards', 'calendar'], latestMessage: ['card', 'video'], invitation: ['banner', 'image'], + ministriesPage: ['cards', 'alternating'], + leadershipPage: ['grid', 'featured'], + eventsPage: ['cards', 'months'], + messagesPage: ['grid', 'featured'], + contactPage: ['cards', 'map'], }, clean: { hero: ['text', 'split', 'photo'], @@ -77,14 +125,19 @@ export const TEMPLATE_VARIANTS: Record = { events: ['list', 'calendar'], latestMessage: ['compact', 'card'], invitation: ['centred', 'banner'], + ministriesPage: ['list', 'cards'], + leadershipPage: ['list', 'grid'], + eventsPage: ['list', 'months'], + messagesPage: ['list', 'grid'], + contactPage: ['columns', 'cards'], }, }; -export function defaultVariant(template: WebsiteTemplate, section: S): Variant { +export function defaultVariant(template: WebsiteTemplate, section: S): Variant { return (TEMPLATE_VARIANTS[template][section] as readonly Variant[])[0]!; } -export function isRecommended(template: WebsiteTemplate, section: SectionType, variant: string): boolean { +export function isRecommended(template: WebsiteTemplate, section: LayoutKey, variant: string): boolean { return (TEMPLATE_VARIANTS[template][section] as readonly string[]).includes(variant); } @@ -179,14 +232,15 @@ const STYLE_KEYS = ['sectionColour', 'spacing', 'buttons', 'images', 'header'] a /** The site's design: what a template switch changes. Content is never part of it. */ export type SiteDesign = { template: WebsiteTemplate; - variants: { [S in SectionType]: Variant }; + /** The homepage sections' layouts and the listing pages' (PAGE_VARIANTS). */ + variants: { [S in LayoutKey]: Variant }; home: HomeEntry[]; style: SiteStyle; }; /** A fresh site on `template`: every default. */ export function defaultDesign(template: WebsiteTemplate): SiteDesign { - const variants = Object.fromEntries(SECTION_TYPES.map((s) => [s, defaultVariant(template, s)])) as SiteDesign['variants']; + const variants = Object.fromEntries(LAYOUT_KEYS.map((s) => [s, defaultVariant(template, s)])) as SiteDesign['variants']; const { suggestedCorners: _c, ...style } = TEMPLATE_STYLE[template]; return { template, variants, home: TEMPLATE_HOME_ORDER[template].map((e) => ({ ...e })), style }; } @@ -207,8 +261,8 @@ export function switchTemplate(current: SiteDesign, to: WebsiteTemplate): { desi const target = defaultDesign(to); const changes: DesignChange[] = [{ what: 'template', from, to }]; - const variants = { ...current.variants } as Record; - for (const s of SECTION_TYPES) { + const variants = { ...current.variants } as Record; + for (const s of LAYOUT_KEYS) { const next = target.variants[s]; if (current.variants[s] === defaultVariant(from, s) && next !== current.variants[s]) { changes.push({ what: `${s}.variant`, from: current.variants[s], to: next }); diff --git a/apps/website/backend/tests/admin.test.ts b/apps/website/backend/tests/admin.test.ts index a453952..b832f7c 100644 --- a/apps/website/backend/tests/admin.test.ts +++ b/apps/website/backend/tests/admin.test.ts @@ -121,6 +121,10 @@ describe('editing, publishing, discarding, restoring (§4)', () => { assert.equal(r.body.design.variants.hero, 'video', 'moved to Bold\'s default'); assert.ok(r.body.moved.some((m: { what: string }) => m.what === 'hero.variant')); assert.equal((await as.put('/design', { variants: { hero: 'spinning' } })).status, 400); + const pages = await as.put('/design', { variants: { messagesPage: 'list' } }); + assert.equal(pages.status, 200, 'a listing page has a layout too'); + assert.equal(pages.body.design.variants.messagesPage, 'list'); + assert.equal((await as.put('/design', { variants: { messagesPage: 'months' } })).status, 400, "an events layout isn't a messages one"); assert.equal((await as.put('/design', { style: { header: 'centred' } })).status, 400, 'a Heritage header on Bold'); }); diff --git a/apps/website/backend/tests/variants.test.ts b/apps/website/backend/tests/variants.test.ts index 66779b0..cfd057d 100644 --- a/apps/website/backend/tests/variants.test.ts +++ b/apps/website/backend/tests/variants.test.ts @@ -2,7 +2,7 @@ import { describe, it } from 'node:test'; import assert from 'node:assert/strict'; import { WEBSITE_TEMPLATES } from '@crosscode/contracts'; import { - SECTION_TYPES, SECTION_VARIANTS, TEMPLATE_HEADERS, TEMPLATE_HOME_ORDER, TEMPLATE_STYLE, TEMPLATE_VARIANTS, + LEGACY_PAGE_LAYOUTS, PAGE_LAYOUT_KEYS, PAGE_VARIANTS, SECTION_TYPES, SECTION_VARIANTS, TEMPLATE_HEADERS, TEMPLATE_HOME_ORDER, TEMPLATE_STYLE, TEMPLATE_VARIANTS, defaultDesign, defaultVariant, headerIsTransparent, isRecommended, isVariant, switchTemplate, } from '../src/site/variants.js'; import { cleanDesign } from '../src/site/snapshot.js'; @@ -103,6 +103,44 @@ describe('switching template', () => { }); }); +describe('listing page layouts', () => { + it('has at least three layouts for each listing page, and every template suggests real ones', () => { + assert.deepEqual(PAGE_LAYOUT_KEYS, ['ministriesPage', 'leadershipPage', 'eventsPage', 'messagesPage', 'contactPage']); + for (const k of PAGE_LAYOUT_KEYS) assert.ok(PAGE_VARIANTS[k].length >= 3, k); + for (const t of WEBSITE_TEMPLATES) { + for (const k of PAGE_LAYOUT_KEYS) { + const rec = TEMPLATE_VARIANTS[t][k] as readonly string[]; + assert.ok(rec.length >= 2, `${t}.${k}`); + assert.equal(new Set(rec).size, rec.length, `${t}.${k} repeats`); + for (const v of rec) assert.ok(isVariant(k, v), `${t}.${k}: ${v}`); + } + } + }); + + it("starts a new site on the template's suggestion", () => { + assert.equal(defaultDesign('community').variants.ministriesPage, 'cards'); + assert.equal(defaultDesign('bold').variants.contactPage, 'map'); + assert.equal(defaultDesign('clean').variants.messagesPage, 'list'); + }); + + it('keeps the look a design had before page layouts, until the church picks one', () => { + const before = cleanDesign({ template: 'community', variants: { hero: 'photo' }, home: [], style: {} }); + assert.deepEqual(PAGE_LAYOUT_KEYS.map((k) => before.variants[k]), PAGE_LAYOUT_KEYS.map((k) => LEGACY_PAGE_LAYOUTS[k])); + const picked = cleanDesign({ template: 'community', variants: { eventsPage: 'months' }, home: [], style: {} }); + assert.equal(picked.variants.eventsPage, 'months'); + assert.equal(picked.variants.ministriesPage, 'cards', 'the rest take the suggestion'); + assert.equal(cleanDesign({ template: 'clean', variants: { eventsPage: 'nope' }, home: [], style: {} }).variants.eventsPage, 'list'); + }); + + it('moves with a template switch when untouched, and stays when chosen', () => { + const start = defaultDesign('heritage'); + start.variants.eventsPage = 'cards'; + const { design } = switchTemplate(start, 'community'); + assert.equal(design.variants.eventsPage, 'cards'); + assert.equal(design.variants.ministriesPage, 'cards', "moved from Heritage's list to Community's cards"); + }); +}); + describe("a section's own background", () => { it('stays with its section through a template switch, whether the order moves or not', () => { const start = defaultDesign('heritage'); diff --git a/apps/website/e2e/page-layouts.spec.ts b/apps/website/e2e/page-layouts.spec.ts new file mode 100644 index 0000000..858a3cd --- /dev/null +++ b/apps/website/e2e/page-layouts.spec.ts @@ -0,0 +1,52 @@ +/** + * Every listing page layout in every template (backend variants.ts PAGE_VARIANTS): the demo + * church's Ministries, Leadership, Events, Messages and Contact pages, one layout at a time. Each + * page answers, shows what it lists, keeps the anchors the homepage links to, and axe finds no + * violations (WCAG 2.2 AA) at phone and desktop width. + * + * PAGE_SHOTS= also saves a full-page screenshot of each, to look through by eye. + */ +import AxeBuilder from "@axe-core/playwright"; +import { expect, test } from "@playwright/test"; +import { PAGE_LAYOUT_KEYS, PAGE_VARIANTS, TEMPLATE_VARIANTS } from "../backend/src/site/variants.js"; + +const BACKEND = "http://127.0.0.1:5310"; +const TEMPLATES = Object.keys(TEMPLATE_VARIANTS) as (keyof typeof TEMPLATE_VARIANTS)[]; +const WIDTHS = [["phone", { width: 390, height: 844 }], ["desktop", { width: 1366, height: 900 }]] as const; +const SHOTS = process.env.PAGE_SHOTS; + +/** The demo's page for each layout key, and something it must show. */ +const PAGES: Record<(typeof PAGE_LAYOUT_KEYS)[number], { path: string; shows: string }> = { + ministriesPage: { path: "/ministries", shows: "main [id] h2" }, + leadershipPage: { path: "/leadership", shows: "main article h2" }, + eventsPage: { path: "/events", shows: 'main a[href]:not([href^="#"])' }, + messagesPage: { path: "/messages", shows: "main [id] h2" }, + contactPage: { path: "/contact", shows: 'main a[href^="mailto:"]' }, +}; + +for (const template of TEMPLATES) { + test.describe(`${template} page layouts`, () => { + test.beforeAll(async ({ request }) => { + expect((await request.post(`${BACKEND}/test/demo?template=${template}`)).ok()).toBeTruthy(); + }); + + for (const key of PAGE_LAYOUT_KEYS) { + for (const layout of PAGE_VARIANTS[key]) { + test(`${key}: ${layout}`, async ({ page }) => { + const res = await page.request.post(`${BACKEND}/test/design`, { data: { variants: { [key]: layout } } }); + expect(res.ok()).toBeTruthy(); + const { path, shows } = PAGES[key]; + for (const [name, size] of WIDTHS) { + await page.setViewportSize(size); + expect((await page.goto(path))?.status()).toBe(200); + await expect(page.locator("html")).toHaveAttribute("data-template", template); + await expect(page.locator(shows).first()).toBeVisible(); + const axe = await new AxeBuilder({ page }).withTags(["wcag2a", "wcag2aa", "wcag21aa", "wcag22aa"]).analyze(); + expect(axe.violations.map((v) => `${v.id} (${v.nodes.length}) ${v.nodes[0]?.target}`), name).toEqual([]); + if (SHOTS) await page.screenshot({ path: `${SHOTS}/${template}-${key}-${layout}-${name}.png`, fullPage: true }); + } + }); + } + } + }); +} diff --git a/apps/website/frontend/package.json b/apps/website/frontend/package.json index d36b638..1b93b38 100644 --- a/apps/website/frontend/package.json +++ b/apps/website/frontend/package.json @@ -1,6 +1,6 @@ { "name": "@crosscode/website-frontend", - "version": "1.11.0", + "version": "1.12.0", "private": true, "description": "Church Website: the church's public site in its template, and the admin", "scripts": { diff --git a/apps/website/frontend/src/admin/layouts.ts b/apps/website/frontend/src/admin/layouts.ts index b7860aa..bcc1825 100644 --- a/apps/website/frontend/src/admin/layouts.ts +++ b/apps/website/frontend/src/admin/layouts.ts @@ -31,6 +31,29 @@ export function layoutsFor(design: Design, options: DesignOptions | undefined, s return { ordered: [...recommended, ...(ALL_VARIANTS[section] ?? []).filter((v) => !recommended.includes(v))], recommended }; } +/** + * The layouts of what the fixed pages list (backend variants.ts PAGE_VARIANTS), keyed by page kind: + * the design's key for each, its name, and each layout's name in the order the backend lists them. + * Saved on the design like the homepage's (`variants.ministriesPage`), with the template's + * suggestions first. + */ +export const PAGE_LAYOUTS: Record }> = { + ministries: { key: "ministriesPage", name: "Ministries", layouts: { alternating: "Alternating photo and text", cards: "Cards", list: "List with small photos" } }, + leadership: { key: "leadershipPage", name: "Leadership", layouts: { grid: "Grid of faces", featured: "Lead pastor first", list: "List with photos" } }, + events: { key: "eventsPage", name: "Events", layouts: { list: "List with dates", cards: "Cards with photos", months: "By month" } }, + messages: { key: "messagesPage", name: "Messages", layouts: { grid: "Grid of videos", featured: "Latest first, then a list", list: "List" } }, + contact: { key: "contactPage", name: "Contact", layouts: { columns: "Two columns", map: "With map", cards: "Cards" } }, +}; + +/** A listing page's layouts, the ones that suit the template first, and which those are. */ +export function pageLayoutsFor(design: Design, options: DesignOptions | undefined, kind: string): { key: string; ordered: string[]; recommended: string[]; names: Record } | null { + const p = PAGE_LAYOUTS[kind]; + if (!p) return null; + const recommended = options?.variants[design.template]?.[p.key] ?? []; + const all = Object.keys(p.layouts); + return { key: p.key, ordered: [...recommended.filter((v) => all.includes(v)), ...all.filter((v) => !recommended.includes(v))], recommended, names: p.layouts }; +} + /** The other pages' blocks' layouts, the default first (backend variants.ts BLOCK_VARIANTS). */ export const BLOCK_LAYOUTS: Record = { text: [{ id: "standard", name: "Standard" }, { id: "centred", name: "Centred" }], diff --git a/apps/website/frontend/src/app/admin/pages/[id]/page.tsx b/apps/website/frontend/src/app/admin/pages/[id]/page.tsx index 585a2ca..8809d19 100644 --- a/apps/website/frontend/src/app/admin/pages/[id]/page.tsx +++ b/apps/website/frontend/src/app/admin/pages/[id]/page.tsx @@ -4,21 +4,22 @@ * One page (§6), with its live preview on the right. Content: the home page has one of each * homepage section, each with its layout, background, place and whether it shows (also under * Template and style), and only the photos its layout shows; every other page is built from blocks, - * which can be added, moved, hidden and removed. Page details: its + * which can be added, moved, hidden and removed, and a page that lists something (ministries, + * events...) chooses how it lists them. Page details: its * title, address, menu and search engine details. */ import Link from "next/link"; import { useParams, useRouter } from "next/navigation"; import { useMemo, useState } from "react"; import { - ArrowDown, ArrowUp, CalendarDays, ChevronDown, ChevronRight, Clock, EyeOff, Eye, FileText, Heart, Image as ImageIcon, LayoutList, Megaphone, Mic, + ArrowDown, ArrowUp, CalendarDays, ChevronDown, ChevronRight, Clock, EyeOff, Eye, FileText, Heart, Image as ImageIcon, LayoutList, LayoutTemplate, Megaphone, Mic, Plus, Quote, Search, Settings2, Sparkles, Trash2, Type, Users, HandHeart, type LucideIcon, } from "lucide-react"; import { api } from "@/admin/api"; import { BLOCK_FIELDS, DataForm, SECTION_FIELDS } from "@/admin/fields"; import { frameFor, type Framing } from "@/admin/framing"; import { WithPreview } from "@/admin/LivePreview"; -import { BACKGROUNDS, BLOCK_LAYOUTS, blockLayout, layoutsFor, moved, TEMPLATE_NAMES, VARIANT_NAMES, withBackground, withShown, type Design, type DesignOptions, type HomeEntry } from "@/admin/layouts"; +import { BACKGROUNDS, BLOCK_LAYOUTS, blockLayout, layoutsFor, moved, pageLayoutsFor, TEMPLATE_NAMES, VARIANT_NAMES, withBackground, withShown, type Design, type DesignOptions, type HomeEntry } from "@/admin/layouts"; import { ImagePicker } from "@/admin/media"; import { Btn, cx, Field, inputClass, Loading, Notice, Panel, Tabs, Title, useAction, useAdmin } from "@/admin/ui"; @@ -33,6 +34,7 @@ const LISTS: Record = { messages: "This page lists your messages; blocks you add show after them.", contact: "This page shows your church's contact details and service times from your church profile.", }; +const LIST_WHAT: Record = { ministries: "your ministries", leadership: "your team", events: "your events", messages: "your messages", contact: "your contact details and service times" }; const ICONS: Record = { hero: Sparkles, serviceTimes: Clock, welcome: Heart, ministries: HandHeart, team: Users, events: CalendarDays, latestMessage: Mic, invitation: Megaphone, text: Type, "image-text": ImageIcon, quote: Quote, cta: Megaphone, @@ -226,6 +228,19 @@ export default function EditPage() { ) : (
+ {(() => { + // What this page lists has its own layout, on the design (as under Template and style), saved straight away. + const p = saved && pageLayoutsFor(saved, design.data?.options, page.kind); + if (!p) return null; + return ( + + + {layouts.message?.tone === "error" &&
{layouts.message.text}
} +
+ ); + })()} {LISTS[page.kind] && {LISTS[page.kind]}} {page.sections.length === 0 &&

Nothing on this page yet: add a block below.

} {page.sections.map((s, i) => { diff --git a/apps/website/frontend/src/app/admin/template/page.tsx b/apps/website/frontend/src/app/admin/template/page.tsx index 20481c2..5320169 100644 --- a/apps/website/frontend/src/app/admin/template/page.tsx +++ b/apps/website/frontend/src/app/admin/template/page.tsx @@ -1,16 +1,16 @@ "use client"; /** - * Template and style (WEBSITE-1.0-PLAN §3): the template, each homepage section's layout - * (recommended first), the homepage order, and the style settings. Fonts and corners are the + * Template and style (WEBSITE-1.0-PLAN §3): the template, each homepage section's layout and each + * listing page's (recommended first), the homepage order, and the style settings. Fonts and corners are the * church's brand style, shared with its other sites, so they're set in its church profile. */ import Link from "next/link"; import { useState } from "react"; -import { ArrowDown, ArrowUp, Check, Eye, LayoutTemplate, ListOrdered, Palette, SlidersHorizontal } from "lucide-react"; +import { ArrowDown, ArrowUp, Check, Eye, Files, LayoutTemplate, ListOrdered, Palette, SlidersHorizontal } from "lucide-react"; import { api } from "@/admin/api"; import { WithPreview } from "@/admin/LivePreview"; -import { BACKGROUNDS, layoutsFor, moved, SECTION_NAMES as SECTIONS, VARIANT_NAMES, withBackground, withShown, type Design, type DesignOptions as Options } from "@/admin/layouts"; +import { BACKGROUNDS, layoutsFor, moved, PAGE_LAYOUTS, pageLayoutsFor, SECTION_NAMES as SECTIONS, VARIANT_NAMES, withBackground, withShown, type Design, type DesignOptions as Options } from "@/admin/layouts"; import { Btn, cx, Field, inputClass, Loading, Notice, Panel, Tabs, Title, useAction, useAdmin } from "@/admin/ui"; const TEMPLATES = [ @@ -34,7 +34,7 @@ const STYLE = [ export default function TemplatePage() { const { data, error, setData } = useAdmin<{ design: Design; options: Options }>("/design"); const { busy, message, run } = useAction(); - const [tab, setTab] = useState<"template" | "home" | "style">("template"); + const [tab, setTab] = useState<"template" | "home" | "pages" | "style">("template"); if (!data) return ; const { design, options } = data; const save = (patch: Partial & { template?: string }, done = "Saved. Preview to see it, then publish.") => run(async () => { @@ -53,6 +53,7 @@ export default function TemplatePage() { @@ -116,6 +117,28 @@ export default function TemplatePage() { )} + {tab === "pages" && ( + How the pages that list something show it. Every layout works in every template; the first ones listed suit {TEMPLATES.find((t) => t.id === design.template)?.name} best, and the first of those is its suggestion. Each page's own blocks show after what it lists.}> +
    + {Object.entries(PAGE_LAYOUTS).map(([kind, { name }]) => { + const p = pageLayoutsFor(design, options, kind)!; + return ( +
  • + {name} + + {design.variants[p.key] !== p.recommended[0] && p.recommended[0] && ( + save({ variants: { [p.key]: p.recommended[0]! } })}>Use the suggestion + )} +
  • + ); + })} +
+
+ )} + {tab === "style" && (
diff --git a/apps/website/frontend/src/site/PageView.tsx b/apps/website/frontend/src/site/PageView.tsx index 914b934..790d015 100644 --- a/apps/website/frontend/src/site/PageView.tsx +++ b/apps/website/frontend/src/site/PageView.tsx @@ -3,11 +3,12 @@ * leaders, events, messages, contact details), then its blocks. */ import { preload } from "react-dom"; +import { LazyMap } from "./LazyMap"; import { MessagePlayer } from "./MessagePlayer"; import { t } from "./load"; import { cx, DateBadge, dayName, fmtDate, Img, Paragraphs } from "./parts"; import { EventLine, Sections } from "./sections"; -import type { Page, Published } from "./types"; +import type { Page, Published, Template } from "./types"; function PageTitle({ page, site }: { page: Page; site: Published }) { const template = site.snapshot.design.template; @@ -21,98 +22,332 @@ function PageTitle({ page, site }: { page: Page; site: Published }) { ); } -function Listing({ page, site }: { page: Page; site: Published }) { - const zone = site.church?.timezone ?? "Africa/Johannesburg"; - const template = site.snapshot.design.template; - switch (page.kind) { - case "ministries": - return ( -
-
- {site.snapshot.ministries.map((m, i) => ( -
- -

{m.name}

{m.summary &&

{m.summary}

}
-
- ))} -
-
- ); - case "leadership": - return ( -
-
- {site.snapshot.leaders.map((l) => ( -
- -

{l.name}

- {l.role &&

{l.role}

} - -
- ))} -
-
- ); - case "events": - return ( -
-
- {site.events.length === 0 &&

Nothing on the calendar just now. Check back soon.

} -
    - {site.events.map((e) => ( -
  • - -

    {e.title}

    {e.summary &&

    {e.summary}

    }
    -
  • - ))} -
-
-
- ); - case "messages": { - // The first thumbnail is the largest thing on screen (Lighthouse's LCP): ask for it from the - // , rather than once the HTML has been read. Thumbnails come from the site itself. - const thumb = site.messages[0]?.thumbnail; - if (thumb) preload(thumb, { as: "image", fetchPriority: "high" }); - return ( -
-
- {site.messages.map((m, i) => ( -
- - {m.series &&

{m.series}

} -

{m.title}

-

{[m.speaker, m.passage, fmtDate(m.date, zone, { day: "numeric", month: "long", year: "numeric" })].filter(Boolean).join(" · ")}

-
- ))} -
-
- ); - } - case "contact": { - const c = site.church; - if (!c) return null; - const a = c.contact.address; - return ( -
-
-
- {a &&

Address

{[a.line1, a.line2, a.suburb, a.city, a.postalCode].filter(Boolean).join(", ")}
} - {c.contact.phone && } - {c.contact.whatsapp && } - {c.contact.email && } -
-
-

Service times

-
    {c.serviceTimes.map((s, i) =>
  • {dayName(s.day)} {s.time}{s.label && ` · ${s.label}`}
  • )}
-
-
-
- ); - } - default: - return null; +/** + * The layout a listing page is drawn in (backend variants.ts PAGE_VARIANTS): the design's, or the + * look it had before it had layouts (LEGACY_PAGE_LAYOUTS) for a version published back then. + */ +const LEGACY: Record = { ministries: "alternating", leadership: "grid", events: "list", messages: "grid", contact: "columns" }; +const layoutOf = (site: Published, kind: string) => site.snapshot.design.variants[`${kind}Page`] ?? LEGACY[kind]; + +const roundPhoto = (template: Template) => template === "heritage" || template === "community"; + +// ─── Ministries: Alternating · Cards · List ────────────────────────────────────── +// Each ministry keeps its own anchor (#slug): the homepage's "Find out more" links to it. + +function MinistriesPage({ site, template, layout }: Props) { + const list = site.snapshot.ministries; + if (layout === "cards") { + return ( +
+
    + {list.map((m) => ( +
  • + +
    +

    {m.name}

    + {m.summary &&

    {m.summary}

    } + +
    +
  • + ))} +
+
+ ); } + if (layout === "list") { + return ( +
+
+ {list.map((m) => ( +
+ +

{m.name}

{m.summary &&

{m.summary}

}
+
+ ))} +
+
+ ); + } + return ( +
+
+ {list.map((m, i) => ( +
+ +

{m.name}

{m.summary &&

{m.summary}

}
+
+ ))} +
+
+ ); +} + +// ─── Leadership: Grid · Featured · List ────────────────────────────────────────── + +type Leader = Published["snapshot"]["leaders"][number]; + +function LeaderCard({ l, template }: { l: Leader; template: Template }) { + return ( +
+ +

{l.name}

+ {l.role &&

{l.role}

} + +
+ ); +} + +function LeadershipPage({ site, template, layout }: Props) { + const people = site.snapshot.leaders; + if (layout === "list") { + return ( +
+
+ {people.map((l) => ( +
+ +

{l.name}

{l.role &&

{l.role}

}
+
+ ))} +
+
+ ); + } + if (layout === "featured" && people.length > 0) { + const [lead, ...rest] = people as [Leader, ...Leader[]]; + return ( +
+
+
+ +
+

{lead.name}

+ {lead.role &&

{lead.role}

} + +
+
+ {rest.length > 0 &&
{rest.map((l) => )}
} +
+
+ ); + } + return ( +
+
+ {people.map((l) => )} +
+
+ ); +} + +// ─── Events: List · Cards · By month ───────────────────────────────────────────── + +function EventsPage({ site, zone, layout }: Props) { + const list = site.events; + if (list.length === 0) return

Nothing on the calendar just now. Check back soon.

; + if (layout === "cards") { + return ( +
+
    + {list.map((e) => ( +
  • +
    + + +
    +
    +

    {e.title}

    +
    + {e.summary &&

    {e.summary}

    } +
    +
  • + ))} +
+
+ ); + } + if (layout === "months") { + const months: { name: string; events: typeof list }[] = []; + for (const e of list) { + const name = fmtDate(e.startsAt, zone, { month: "long", year: "numeric" }); + if (months.at(-1)?.name === name) months.at(-1)!.events.push(e); + else months.push({ name, events: [e] }); + } + return ( +
+
+ {months.map((m) => ( +
+

{m.name}

+
    + {m.events.map((e) => ( +
  • + +

    {e.title}

    {e.summary &&

    {e.summary}

    }
    +
  • + ))} +
+
+ ))} +
+
+ ); + } + return ( +
+
+
    + {list.map((e) => ( +
  • + +

    {e.title}

    {e.summary &&

    {e.summary}

    }
    +
  • + ))} +
+
+
+ ); +} + +// ─── Messages: Grid · Latest first · List ──────────────────────────────────────── +// Each message keeps its own anchor (#slug). + +type Message = Published["messages"][number]; +const messageMeta = (m: Message, zone: string) => [m.speaker, m.passage, fmtDate(m.date, zone, { day: "numeric", month: "long", year: "numeric" })].filter(Boolean).join(" · "); + +/** A message as a row: its thumbnail, words and a link to watch or listen where it's published. */ +function MessageRow({ m, zone, first }: { m: Message; zone: string; first: boolean }) { + return ( +
  • +
    + {m.thumbnail + ? + : +
    + {m.series &&

    {m.series}

    } +

    {m.title}

    +

    {messageMeta(m, zone)}

    +
    + {m.source === "spotify" ? "Listen" : "Watch"}: {m.title} +
  • + ); +} + +function MessagesPage({ site, zone, layout }: Props) { + const list = site.messages; + // The first thumbnail is the largest thing on screen (Lighthouse's LCP): ask for it from the + // , rather than once the HTML has been read. Thumbnails come from the site itself. + const thumb = list[0]?.thumbnail; + if (thumb) preload(thumb, { as: "image", fetchPriority: "high" }); + if (layout === "list") { + return
      {list.map((m, i) => )}
    ; + } + if (layout === "featured" && list.length > 0) { + const [latest, ...rest] = list as [Message, ...Message[]]; + return ( +
    +
    +
    +

    Latest message

    + + {latest.series &&

    {latest.series}

    } +

    {latest.title}

    +

    {messageMeta(latest, zone)}

    +
    + {rest.length > 0 &&
      {rest.map((m) => )}
    } +
    +
    + ); + } + return ( +
    +
    + {list.map((m, i) => ( +
    + + {m.series &&

    {m.series}

    } +

    {m.title}

    +

    {messageMeta(m, zone)}

    +
    + ))} +
    +
    + ); +} + +// ─── Contact: Two columns · With map · Cards ───────────────────────────────────── + +function ContactPage({ site, layout }: Props) { + const c = site.church; + if (!c) return null; + const a = c.contact.address; + const address = a ? [a.line1, a.line2, a.suburb, a.city, a.postalCode].filter(Boolean).join(", ") : null; + const directions = a && (a.geo + ? `https://www.openstreetmap.org/?mlat=${a.geo.lat}&mlon=${a.geo.lng}#map=17/${a.geo.lat}/${a.geo.lng}` + : `https://www.openstreetmap.org/search?query=${encodeURIComponent([a.line1, a.suburb, a.city].filter(Boolean).join(", "))}`); + const ways = [ + address && { key: "address", title: "Address", body: <>
    {address}
    {layout !== "columns" && directions && Get directions} }, + c.contact.phone && { key: "phone", title: "Phone", body: {c.contact.phone} }, + c.contact.whatsapp && { key: "whatsapp", title: "WhatsApp", body: {c.contact.whatsapp} }, + c.contact.email && { key: "email", title: "Email", body: {c.contact.email} }, + ].filter((w): w is { key: string; title: string; body: React.ReactElement } => !!w); + const times = ( +
    +

    Service times

    +
      {c.serviceTimes.map((s, i) =>
    • {dayName(s.day)} {s.time}{s.label && ` · ${s.label}`}
    • )}
    +
    + ); + + if (layout === "cards") { + return ( +
    +
      + {ways.map((w) =>
    • {w.title}

      {w.body}
    • )} + {c.serviceTimes.length > 0 &&
    • {times}
    • } +
    +
    + ); + } + const geo = a?.geo; + if (layout === "map" && geo) { + return ( +
    +
    +
    + {ways.map((w) =>

    {w.title}

    {w.body}
    )} + {times} +
    + +
    +
    + ); + } + // Two columns (and With map when the church's address has no place on the map yet). + return ( +
    +
    +
    {ways.map((w) =>

    {w.title}

    {w.body}
    )}
    + {times} +
    +
    + ); +} + +type Props = { site: Published; template: Template; zone: string; layout: string }; + +const LISTINGS: Record React.ReactNode> = { + ministries: MinistriesPage, leadership: LeadershipPage, events: EventsPage, messages: MessagesPage, contact: ContactPage, +}; + +function Listing({ page, site }: { page: Page; site: Published }) { + const L = LISTINGS[page.kind]; + if (!L) return null; + return ; } export function PageView({ page, site }: { page: Page; site: Published }) { diff --git a/docs/VERSIONS.md b/docs/VERSIONS.md index 5863d52..4c2b3fc 100644 --- a/docs/VERSIONS.md +++ b/docs/VERSIONS.md @@ -11,7 +11,7 @@ separately below; the two often differ. | What | Repo | Latest | Tag | Released | |------|------|--------|-----|----------| | Cross Events | `crosscode-platform` (`apps/events`) | **3.9.0** | `events@3.9.0` | 2026-12-01 | -| Church Website | `crosscode-platform` (`apps/website`) | **1.11.0** | `website@1.11.0` | 2026-12-01 | +| Church Website | `crosscode-platform` (`apps/website`) | **1.12.0** | `website@1.12.0` | 2026-12-01 | | Accounts | `crosscode-platform` (`apps/accounts`) | **1.10.0** | `accounts@1.10.0` | 2026-12-01 | | Server agent | `crosscode-platform` (`apps/agent`) | **1.7.0** | `agent@1.7.0` | 2026-11-30 | | Contracts | `crosscode-platform` (`packages/contracts`) | **1.24.0** | `contracts@1.24.0` | 2026-11-30 | @@ -31,7 +31,7 @@ on each run, so merging to `main` and pushing releases it. Its changes are liste | `@crosscode/demo` | `packages/demo` | 1.1.0 (the demo scenarios' churches, people and logos; ships with Accounts 1.9.0, Events 3.8.0 and Website 1.8.0) | | `@crosscode/seo` | `packages/seo` | 1.0.0 (released with Events 2.4.0) | | `@crosscode/ui` | `packages/ui` | 0.4.0 (fonts, `ChurchFooter`, `ColourField`; 0.2.0 with Accounts 1.7.0, 0.3.0 with Events 3.7.0, 0.4.0 with Accounts 1.10.0 and Website 1.9.0) | -| Website | `apps/website` | 1.11.0 (1.0.0–1.1.0 released 2026-11-26, 1.2.0–1.7.0 on 2026-11-27, 1.7.1 on 2026-11-28, 1.8.0 on 2026-11-30, 1.9.0 to 1.11.0 on 2026-12-01; tagged as `website@…`; see "Deployed / rolled out" for where it runs) | +| Website | `apps/website` | 1.12.0 (1.0.0–1.1.0 released 2026-11-26, 1.2.0–1.7.0 on 2026-11-27, 1.7.1 on 2026-11-28, 1.8.0 on 2026-11-30, 1.9.0 to 1.12.0 on 2026-12-01; tagged as `website@…`; see "Deployed / rolled out" for where it runs) | | App | `apps/app` | 0.0.0 on main (a placeholder); 0.1.0 on the branch `feat/app-scaffold`, being built from 2026-12-01 (phase 6; not released, merged and tagged `app@1.0.0` when the plan is built) | These shared packages ship inside the apps that use them, from the same checkout, so they don't @@ -39,6 +39,13 @@ need their own tags until something outside this repo depends on them. ## What each latest release was for +- **Website 1.12.0 (2026-12-01):** the Ministries, Leadership, Events, Messages and Contact pages + each get three layouts, set on the page in Pages or together under Template and style → Other + pages, with the template's suggestion marked; a site saved before keeps its pages' look until + it picks one. No migration, no contracts change, works with any Accounts. Checked: the Website + backend tests (156), the frontend's typecheck and lint, the new page-layouts e2e suite (60). + **Deployed** 2026-12-01. + - **Website 1.11.0 (2026-12-01):** the other pages' blocks get layouts (text, image and text, quote, call to action) and their own backgrounds in the church's colours, and the hero's Video layout gets a video: MP4 uploads up to 20 MB, where it was filmed taken out. **Migration** @@ -481,6 +488,6 @@ you deploy one. | Agent on the central server | 1.7.0 | 2026-12-01 | Demo scenarios (`seed-scenario`) | | Cross Events (churches) | 3.9.0 | 2026-12-01 | The church's details from Accounts everywhere, SVG logos in PDFs | | Accounts (churches) | 1.10.0 | 2026-12-01 | The shared colour field in Church profile | -| Church Website (cross-demo2, the demo church) | 1.11.0 | 2026-12-01 | Block layouts and backgrounds, a video for the top of the page; home page laid out from its editor (1.10.0); section backgrounds (1.9.0) | -| cross-demo2 (demo church) | Accounts 1.10.0, Cross Events 3.9.0, Church Website 1.11.0 | 2026-12-01 | The first Church Website install (`demo2.crosscode.co.za`) | +| Church Website (cross-demo2, the demo church) | 1.12.0 | 2026-12-01 | Three layouts for each listing page; block layouts and backgrounds, a video for the top of the page (1.11.0); home page laid out from its editor (1.10.0); section backgrounds (1.9.0) | +| cross-demo2 (demo church) | Accounts 1.10.0, Cross Events 3.9.0, Church Website 1.12.0 | 2026-12-01 | The first Church Website install (`demo2.crosscode.co.za`) | | crosscode.co.za | 1.9.1 | 2026-11-28 | Web address examples say yourchurch | diff --git a/package-lock.json b/package-lock.json index e7c64c5..c3ead78 100644 --- a/package-lock.json +++ b/package-lock.json @@ -422,7 +422,7 @@ }, "apps/website/backend": { "name": "@crosscode/website-backend", - "version": "1.11.0", + "version": "1.12.0", "hasInstallScript": true, "dependencies": { "@crosscode/auth-client": "*", @@ -452,7 +452,7 @@ }, "apps/website/frontend": { "name": "@crosscode/website-frontend", - "version": "1.11.0", + "version": "1.12.0", "dependencies": { "@crosscode/contracts": "*", "@crosscode/seo": "*",