ICPC.global Photo Gallery
Static, no-backend React + TypeScript single-page photo gallery backed by the Flickr REST API, powering news.icpc.global/gallery and regional ICPC galleries.
- No-backend Flickr integration: fetches albums and metadata directly from the public Flickr REST API with progressive page-1-first loading and persistent
localStoragecaching (@tanstack/react-query). - Multi-region builds: one codebase builds 9 regional gallery instances (
data,dataNAC,dataNERC,dataLAC,dataAE,dataAW,dataAP,dataEU,dataACPC). - Metadata & face tagging: parses Flickr tags for photographer, album/year, event, team, and face coordinates (
Firstname Lastname(rect64)), highlighting tagged faces on hover and allowing users to suggest tag/face edits via Gmail, email, or raw tag copy. - Responsive fullscreen viewer & slideshow:
- Desktop: collapsible right-hand Info rail, hover navigation arrows, and full keyboard navigation.
- Mobile: continuous horizontal swipe carousel between photos, pull-up bottom Info sheet attached flush beneath the photo, pull-down on the Info pane to close it, and pull-down on the photo (when Info is closed) to dismiss back to the gallery.
- Filtering & global search: filter within any year by event, team, or person, or search by keyword across all years.
- Build-time SEO: generates
sitemap.txtandrobots.txtfor every regional bundle.
All official photos from ICPC World Finals and regional contests are archived here. If you would like to contribute photos, email lidia@icpc.global.
- Year: Pick a year from the left navigation rail on desktop or the top header menu on mobile. Selecting a year opens
Photo Tourby default when no other filter is active. - Event: Filter photos within the selected year by event (e.g.,
Photo Tour,Opening Ceremony,Team Photos,World Finals,Closing Ceremony). - Team: Pick or type a team name to view all photos tagged with that team in the selected year.
- People: Pick or type an individual's name to view their photos in the selected year, or click any person's chip in the photo Info panel to run a global search across all years.
- Global Search: Enter any keyword in the Search bar (e.g.,
Bill,Opening,trophy) to search across all years.
| Key | Action |
|---|---|
← / → |
Previous / next photo |
Space |
Play / pause slideshow |
I |
Toggle Info panel |
D |
Download original photo |
F |
Open photo on Flickr |
E |
Toggle tag & face edit mode |
Esc |
Close photo viewer |
(Letter shortcuts use physical key positions so they work regardless of keyboard layout.)
All gallery metadata is stored as public Flickr tags:
- Album (year):
album$2001 - Event:
event$Team Photos - Team:
team$Aalto University - Photographer:
photographer$Bob Smith - Person (with optional face box):
Bill Poucher(1761524d3f579a4d)
The 16 hexadecimal characters inside parentheses encode a 64-bit integer split into four 16-bit unsigned values (left, top, right, bottom). Dividing each 16-bit value by 65535 yields normalized coordinates in [0, 1], allowing face overlays to scale accurately at any image size.
- Enclose multi-word or punctuated tags in quotes when entering them manually on Flickr (e.g.
"team$Aalto University"), otherwise Flickr splits them on spaces. - Flickr strips spaces and punctuation when matching tags during search; the gallery normalizes tags to match Flickr's behavior.
- Preserve UTF-8 encoding on names so diacritics display consistently.
- Runtime, package manager & test runner: Bun
- Frontend: React 19, TypeScript 7 (strict), Material UI (MUI v9) + Emotion, React Router 8
- Data fetching & caching:
@tanstack/react-query+localStoragepersister - Bundler: Vite 8 (Rolldown)
- Linting & formatting: Biome 2.6
Requires Bun installed locally.
bun install # Install dependencies
bun run dev # Local dev server on http://localhost:3000 (uses data/)
bun run check # Biome lint, format, and import check
bun run check:fix # Auto-fix Biome issues
bun run typecheck # Strict TypeScript check (tsc --noEmit)
bun test # Run unit tests
PUBLIC_URL=gallery VITE_DATA_FOLDER=data bun run build -- --base=/galleryTo build a specific regional gallery locally (including a .zip archive):
PUBLIC_URL=galleryNAC VITE_DATA_FOLDER=dataNAC ./build.shOn Windows, build.bat builds the selected PUBLIC_URL / VITE_DATA_FOLDER bundle, and build-interactive.sh offers an interactive regional selector.
Each regional gallery lives in its own root data*/ folder (data, dataNAC, dataNERC, dataLAC, dataAE, dataAW, dataAP, dataEU, dataACPC):
data/consts.jsdefines Flickr credentials/photosets, tag prefixes, suggestion email, and the list of years/places.- Each year has three newline-delimited list files:
<year>.event,<year>.team, and<year>.people.
Offline helper tools for face recognition and tag review live in flickr-face-recog/ and flickr-tag-reviewer/.
All workflows live in .github/workflows/:
- CI (
ci.yml): Runs on every push and pull request tomain— executesbun run check,bun run typecheck,bun test, and verifies the production build. - GitHub Pages (
pages.yml): Automatically builds all 9 regional galleries on push tomain(or manual dispatch), repacks them, and deploys to GitHub Pages. - FTP Production Deploy (
publish.yml): Manually triggered (workflow_dispatch) to build all 9 regional galleries and deploy them via FTPS toftp.u.icpc.global. - Release Bundle (
release.yml): Manually triggered (workflow_dispatch) to build and merge all 9 regional galleries into a single downloadableallartifact.
- Handle universities renaming across years cleanly
- Standardize legacy event tag names on Flickr for consistency
- Further automate face-recognition and tag-embedding workflows