How lunar-gala/2025-elysium works
1. Overall shape
- This is a Next.js App Router application with a mostly frontend, experience-driven architecture.
- The source of truth for the app is under src/app, with route segments for about, archive, lines, merch, tickets, and talent, plus the root landing page.
2. Route and page boundary
- Each top-level route is implemented as a page module in src/app/*/page.tsx.
- src/app/layout.tsx and src/app/globals.css provide the shared shell and global styling.
- The app is structured so route files compose shared components rather than owning all logic themselves.
3. Main user-facing subsystems
- The site appears to be a visual, interactive brand/portfolio experience rather than a conventional data app.
- Shared UI includes src/components/navigation for the navbar/logo, src/components/home for landing-page content, and src/components/MainContent.tsx plus src/components/ThreeCanvas.jsx for the high-impact visual layer.
4. GPU / animation-heavy rendering layer
- A large part of the repo is dedicated to canvas, Three.js, and shader-driven visuals.
- This is organized into multiple act-specific component sets: ActOneParticles, ActTwoParticles, ActThreeParticles, ActFourParticles, plus corresponding src/components/glslAct* directories.
- The act folders suggest separate visual scenes or chapters that are swapped in different parts of the experience.
5. Shader pipeline
- The rendering stack uses custom GLSL in shader/*.glsl files, including fragment, vertex, particle, and simulation shaders.
- Similar shader sets are duplicated under the glslActOne/Two/Three/Three-two/Four directories, indicating multiple self-contained visual systems rather than one shared shader graph.
- src/templates/Shader and src/templates/hooks/usePostprocess.jsx provide reusable shader/postprocessing abstractions.
6. 3D asset loading and browser runtime support
- The repo includes a substantial WebGL support layer: gltfloader.js, draco.js, DRACO WASM binaries, getPixels.js, promisify.js, and touch-detection helpers.
- This indicates the app loads optimized 3D or mesh assets in the browser and relies on DRACO-compressed geometry decoding.
- These libs are duplicated across several act folders, suggesting each visual module is intended to be independently runnable.
7. Talent section as structured content
- src/app/talent is a more data-driven section than the visual routes.
- It uses teams/*.json files for content, plus components/grid.jsx, components/sidebar.jsx, and utils/intersecting.js for presentation and scroll/visibility behavior.
- This is the clearest example of a content model flowing from JSON data into UI components.
8. Shared utilities and lower-level helpers
- src/helpers contains reusable building blocks like helpers/components/Three.jsx and helpers/global.js.
- src/components/lib and the matching lib folders inside act modules contain common browser/runtime helpers for async handling, asset loading, and detection logic.
- These helpers form the boundary between the React/Next layer and the lower-level graphics/runtime code.
9. Assets and presentation
- public/ holds static runtime assets such as preloader.mp4 and headshots/.
- Custom fonts are stored in src/app/fonts, which reinforces that typography is part of the authored design system rather than relying on defaults.
- Styling is split between global CSS and per-route/component styles.
10. Legacy or embedded browser code
- There are also JS entrypoints under src/app/js and src/app/app.js, which suggests some older or lower-level browser logic coexists with the React app.
- This likely supports visual runtime behavior that is not purely React-driven.
11. Prototype and example space
- The examples/ tree is a separate sandbox area containing p5.js sketches, shader experiments, music-backed demos, and a Three.js/Vite example.
- These examples are not part of the main Next.js route graph, but they show the project’s visual-development lineage and likely inform the production components.
12. Operational boundary
- The project is fundamentally a client-heavy Next.js frontend with static asset delivery and browser-executed graphics code.
- The important architectural split is between:
- route/page composition in Next.js, and
- client-side rendering engines for canvas/WebGL/Three.js scenes.
Main entry points: components Act scenes · app Section pages · page.tsx Landing · talent Talent section
Components 16
Next app
App Router routes, shell, and page composition.
- Landing · Root Next.js landing page that composes the main experience.
src/app/page.tsx - App shell · Shared Next.js layout and global styles for the application.
src/app/layout.tsx - Section pages · Top-level route pages for about, archive, lines, merch, tickets, and talent.
src/app
Visual engine
Canvas, Three.js, shader, and act-based rendering modules.
- Navigation · Logo and navbar used across the site.
src/components/navigation - Home UI · Landing-page content and supporting home components.
src/components/home - Main content · Primary client-side composition for the high-impact visual experience.
src/components/MainContent.tsx - Three canvas · Canvas and scene/view wrappers for the interactive 3D layer.
src/components/ThreeCanvas.jsx - Act scenes · Act-specific particle and sketch systems for separate visual chapters.
src/components - Shared shaders · Reusable shader sources for the shared graphics stack.
src/components/shader
Content sections
Data-driven or section-specific UI and content models.
- Talent section · Data-driven talent page with team JSON, grid, sidebar, and visibility logic.
src/app/talent
Support layers
Shared helpers, runtime glue, static assets, and examples.
- Global styles · Application-wide styling baseline.
src/app/globals.css - Legacy app js · Older browser-side entrypoint and supporting JS runtime code.
src/app/js - Helpers · Shared lower-level helpers bridging React with graphics/runtime code.
src/helpers - Templates · Reusable shader and scroll/postprocess templates.
src/templates - Static assets · Runtime assets such as the preloader video and headshots.
public - Examples · Separate experimental sketches and demos that inform the main visual style.
examples
Connections 16
- App shell → Landing: wraps · The shared layout frames the landing page.
- App shell → Section pages: serves · Layout applies across all route segments.
- Section pages → Navigation: composes · Route pages reuse shared navigation.
- Landing → Home UI: renders · The landing page pulls in home-specific UI.
- Landing → Main content: embeds · Landing experience centers on the main interactive content.
- Main content → Three canvas: drives · Main content coordinates the canvas-based 3D layer.
- Three canvas → Act scenes: switches scenes · Canvas experience is backed by act-specific visual systems.
- Act scenes → Shared shaders: uses · Act scenes consume shader programs and particle simulation code.
- Act scenes → Helpers: loads assets · Act scenes rely on shared runtime helpers for GLTF/DRACO and browser utilities.
- Shared shaders → Templates: extends · Shared shader code is complemented by reusable shader templates.
- Talent section → Helpers: uses · Talent UI uses intersection and presentation helpers.
- Talent section → Static assets: uses assets · Section content is supported by static media assets.
- Section pages → Talent section: includes · Talent is one of the main route sections.
- Legacy app js → Act scenes: supports · Legacy browser code appears to back the graphics runtime.
- Examples → Act scenes: informs · Example sketches mirror the visual and shader-driven approach used in production.
- Global styles → Section pages: styles · Global CSS underpins the route pages and shared shell.