This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
All events live in src/components/events/events-data.ts, one ClubEvent per event (see events-types.ts). Each event gets a page at /events/<slug> automatically.
Add an entry to EVENTS_DATA:
{
slug: "brain-games-fall-2026", // unique, lowercase, dashes only
title: "Brain Games",
start: "2026-11-14T11:00:00-08:00", // -07:00 during daylight time (Mar–Nov), -08:00 otherwise
end: "2026-11-14T16:30:00-08:00", // optional
location: "Student Center Moss Cove AB",
quarter: "Fall 2026", // drives the filter chips on /events
description: "…",
poster: { src: "/assets/events/event_brain-games-2026.jpg", alt: "Brain Games poster" },
},Events move from "Upcoming" to "Past events" on their own once they're over.
Photos are a small set (up to 12) committed to the repo, so pages never depend on Google at runtime.
Easiest: pull them from the album. Add the event's public share link as albumUrl in events-data.ts, then run:
pnpm photos:fetchThis takes 12 photos spread across the album for every event that has an albumUrl but no photos yet, resizes them into public/assets/events/<slug>/, and writes the photos list into events-data.ts. To redo one event, or take a different number: pnpm photos:fetch brain-games-fall-2026 --count 9. Swap out any photo you don't like by replacing its file (keep the name).
This reads the album's public page, not an official API, so it can break if Google changes that page. If it does, use the manual route:
Manual:
-
Pick 4–12 good photos from the event's Google Photos album and download them into any folder.
-
Run the optimizer with that folder and the event's slug:
pnpm photos:optimize ~/Downloads/brain-games brain-games-fall-2026This writes resized copies (max 1600px, plus 480px thumbnails) to
public/assets/events/<slug>/and prints aphotos: [...]snippet. -
Paste the snippet into the event in
events-data.ts, improve thealttext if you can, and add the album's share link:albumUrl: "https://photos.app.goo.gl/…",
The first 3 photos show in the quick-view on /events; all of them show in the gallery on the event's page.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.