Skip to content

Site: designed event pages, past-day reprints and a 404 page - #322

Merged
Flapjacck merged 12 commits into
feat/event-details-sitefrom
feat/event-details-design
Nov 30, 2026
Merged

Flapjacck merged 12 commits into
feat/event-details-sitefrom
feat/event-details-design

Conversation

@b4sleal

@b4sleal b4sleal commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

The event page gets its real design, execs pick which photos show on it, and the admin now saves an event's cover where the site reads it. On the home page, clicking a past or later day on the calendar reprints that event's ticket, and unknown addresses get a designed 404 instead of Astro's default.

Part of #200

Type of change

  • 🎨 Frontend (public site UI, pages, styles, content)
  • ⚙️ Backend / admin (admin dashboard, Supabase tables, RLS policies, data fetching, config)
  • 📝 Docs / chore (README, CI, dependencies, cleanup)

What changed

  • Event page design (components/event-page/):
    • The poster, Add to calendar (.ics) and Share stay in view on the left. Long columns scroll with the page until their bottom shows, with no second scrollbar.
    • The At a glance card.
    • Speaker cards with the company's wide logo.
    • Getting there, with a dark Google Maps preview.
    • Join online, with Zoom/Meet buttons.
    • Topics with Lucide icons drawn on the server.
    • Resources.
    • Photos from the night: a preview of three, then "See all N photos" opens /events/<slug>/photos. Click a photo to see it bigger.
    • Phone photos scroll sideways without widening the page.
  • Shared pieces: ui/ImageViewer.astro (posters and photos opened big) replaces posters/PosterViewer.astro, and ui/Icon.astro + lib/icons.ts draw Lucide icons on the server.
  • Admin: Show on the event's page. A toggle on one photo or a selection (photos.on_event_page). Only photos with it on appear on the event's page.
  • Admin: the cover is the poster. The admin saved covers in event_photos while the site reads events.poster_path, so new covers never showed on the site. It now reads and writes poster_path. Existing covers already matched, so no data moved.
  • Header links go to /#events and friends, so they work from an event page too.
  • Coming up: past-day reprints.
    • Past days, and later days beyond the three tickets, are buttons. Clicking one prints that event's ticket on top of the pile in one short feed; the three tickets slide down and fade, and the sign reads "NOW REPRINTING".
    • There's at most one extra ticket: picking another day swaps it.
    • The same day again, or "Back to what's next", feeds it back into the slot.
    • Reduced motion swaps instantly.
  • 404 page (pages/404.astro): the lost and found box.
    • Copy plus links to the home page's sections (the header's list) and Back home.
    • On open the box rocks, a ticket, a poster and a "404" scrap are thrown out, then Krill pops up and stays still (CSS only, about 2.3 s). Reduced motion shows the final state.
  • Tokens: the event page's colours and viewer widths, and the cardboard box.
  • Dependency: lucide.

🎨 Frontend only: screenshots

Before After
Desktop
Mobile
  • Checked on desktop and mobile widths
  • Matches the Marketing design / branding (if a design was given)
  • Images are compressed and have alt text

⚙️ Backend / admin only: data changes

  • No Supabase changes
  • Supabase schema changed (tables/columns listed below, with a migration or SQL included)
  • RLS policies added or changed (only signed-in execs can write; public can only read)
  • New environment variables (added to .env.example and noted below)

supabase/v2/15_photos_on_event_page.sql adds photos.on_event_page boolean not null default false. Already applied to LCS-Site. The existing photo policies cover it: anyone can read, admins write.


How to test

  1. pnpm i && pnpm dev in apps/site and apps/admin
  2. Admin → Photos: turn on "Show on the event's page" for a few of an event's photos. Its page (/events/<slug>) shows them, and "See all" opens the full set.
  3. Admin → edit an event and change its cover. The new poster shows on the site's ticket and event page.
  4. Open an event page at desktop and phone widths: the left column stays in view, the map loads, speaker cards keep their logos, and photos open bigger on click.
  5. Home → click a past day on the calendar, then another, then "Back to what's next".
  6. Open a made-up address like /nope: the lost and found plays once, and its links go to the home page's sections.

Checklist

  • pnpm lint and pnpm build pass locally
  • PR is small and focused on one issue
  • I understand every line of this code (AI-assisted is fine, AI-authored without review is not)
  • No secrets, keys, or .env files committed (anon key only on the client, never the service role key)
  • Docs/README updated if setup, routes, or env vars changed

@b4sleal b4sleal self-assigned this Nov 30, 2026
@vercel

vercel Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
admin_page Ready Ready Preview Nov 30, 2026 3:10pm UTC
better-website Ready Ready Preview Nov 30, 2026 3:10pm UTC

@Flapjacck Flapjacck left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Flapjacck
Flapjacck merged commit b2eec0b into main Nov 30, 2026
5 checks passed
@Flapjacck
Flapjacck deleted the feat/event-details-design branch November 30, 2026 17:22

This branch was successfully deployed

1 active deployment
Preview – better-website — 74060a8f Deployed Nov 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants