Skip to main content

14 · Guest website & guest pages

The five guest pages (one per mode)

All are rendered on the server with names, date and venues from Setup at request time (placeholders when blank).

Mode Preview host Page
teaser v1. “Coming soon”: couple names and an animated laurel wreath, light/dark themes, Google Fonts
countdown v2. Countdown to the wedding date (ticker in the browser, seeded by the server)
rsvp v3. The guest website: one-page, mobile-first, with the access code and RSVP flows
weddingday v4. “Today’s the day”: the date, ceremony and reception venues, a thank-you message
thankyou v5. “Thank you”, with the date

The v3 guest website

Sticky section nav (“Sections”, menu), full-height hero (“The wedding of”, “Scroll to the details”), countdown, At a glance (Date, Ceremony, Reception, “Kindly reply”), Schedule timeline, Getting there & staying, What to expect (Dress code, Children, Plus-ones, Food & drink, Accessibility, Arrival, Parking, Public transport & taxis, Outdoors & weather, Where to stay), On the menu, Q & A, gifts (“If you’d like to”), contact (“Questions before the day?”), “Back to the top”. Styling is scoped to .gs and shared via GuestChrome.tsx.

The access-code gate

Without a code the public site shows only the couple’s names, the wedding date and the RSVP window (“RSVP details coming soon — save the date.” when closed). Every detail (venue, travel, schedule, menu, FAQs, gifts, contact, events) unlocks with the household’s code (POST /api/guest/site/unlock): “Codes are printed on your invitation.” / “That code didn’t work — please double-check your invitation.” The code is remembered in the browser (<short-name>-wedding-guest-code, …-guest-site-unlocked). The unlocked content never contains household or guest data. The couple’s draft preview skips the gate.

Every section hides itself until filled in

FAQs must be marked visible and answered to appear.

The Guest Website editor (plan portal)

“Write the guest-facing site here. Nothing reaches guests until you publish.”

Section Fields
Welcome & appearance (“The top of the guest site.”) Heading (optional; “Defaults to your names from Setup if blank.”), Welcome message (“A sentence or two under the hero”), Cover photo: Upload photo / Replace photo, or “…or paste an image link” (https:// or /media/ only), Photo description (alt text). No photo = an elegant text-only hero.
Schedule of the day “Choose which events appear on the guest site, with the times guests should know.” Per event from Other Events: visible tick, Starts, Ends (optional), Guest-facing note (optional). “Internal notes, budgets and guest counts never appear on the guest site.”
Getting there & staying “Ceremony and reception are at the same location” (same_venue, folds them into one Venue and hides the reception fields); ceremony address, map link (“A Google Maps link guests can tap.”), What3Words (e.g. ///filled.count.soap); reception address (if different), map link, What3Words; Parking; Public transport / taxis; Accommodation suggestions (“Nearby hotels or a booking note.”)
What to expect (“The practical questions guests always ask.”) Dress code, Children, Plus-ones, Food & drink, Accessibility at the venue (“Step-free access, hearing loop, quiet space…”), Arrival guidance, Outdoors / weather notes
On the menu (optional) Menu title, Menu (“One line per course reads beautifully.”)
FAQs Question/answer pairs, visibility, Move up / Move down, + Add question, Add starter questions: “What time should we arrive?”, “What should I wear?”, “Can I bring my children?”, “Is there parking at the venue?”, “Do you have a gift list?”, “Can I change my RSVP later?”
Gifts & contact Gift note, Registry link (optional), Guest contact email (optional; “consider a dedicated wedding address”)
RSVP meal options “The choices guests see in the RSVP form. Saved choices guests already made are never lost.” Remove them all and the defaults (dinner, salad, vegetarian, vegan) come back.
Search engines search_index; off by default, so the site sends noindex, nofollow

Readiness checklist

Welcome message written · Ceremony address + map link · Dress code written · At least one event visible with a time · At least two answered FAQs · Cover photo added (optional). Also shows the anonymous approximate view counter (guest_site_views; no per-visitor tracking).

Draft → preview → publish

  • Save draft (“Draft saved. Preview it on the private v3 site before publishing.”) → stored in settings.guest_site_draft.
  • Drafts are only ever served to the couple’s session (the v3. preview host, or ?draft=1 with the plan cookie).
  • Publish to live site copies the draft to guest_site_published and stamps guest_site_published_at (“Published — the live guest site now shows this content.”). Before the first publish: “Nothing published yet — the live site shows a minimal page until you publish.” Publishing is UI-only, never over MCP.
  • Routes: GET/PUT /api/guest-site, POST /api/guest-site/publish, POST /api/guest-site/photo; public GET /api/guest/site.

Photos (R2)

Upload JPEG / PNG / WEBP / GIF up to 5 MB (“That image is over 5MB — try a smaller one.”), checked by file signature, stored in the R2 media bucket, served same-origin from /media/* on every host with immutable caching. The previous hero photo is removed on re-upload.

“Add to Home Screen” (PWA)

manifest.webmanifest (name, theme, standalone), three generated PNG icons (npm run gen-icons), and a hand-written sw.js: never caches /api/* or /media/*, cache-first for hashed /assets/*, offline fallback to a cached shell. sw.js and the manifest are served no-cache so updates spread. Registered only in production builds. iPhone/iPad push notifications need this installed (notebook 24).