How harsh0519/bday works
1. This repository is a Next.js App Router project built as a polished, single-page interactive experience rather than a traditional multi-route app. The main entry points are app/page.tsx for content composition and app/layout.tsx for global shell and metadata.
2. The UI is organized around a set of full-page or scroll-based sections under app/components/sections. The section names—Intro, Timeline, Gallery, LoveLetter, Wish, and Stars—suggest a narrative/romantic storytelling flow where the page is meant to be consumed vertically in a sequence.
3. Shared page chrome and reusable controls live in app/components/ui. These include AudioPlayer, CustomCursor, PageProgress, SectionWrapper, and DebugPanel, which indicates the experience is heavily interactive and likely relies on client-side state, scroll position, and pointer behavior.
4. SectionWrapper is probably the main composition boundary between content sections and the rest of the page chrome. That makes the architecture centered on a repeated section pattern, with each content block receiving shared layout/styling behavior while remaining independently authored.
5. The app/lib folder contains effect-oriented helpers rather than business logic: gsap.ts for animation setup, three-scene.ts for 3D/canvas scene logic, and confetti.ts for celebratory effects. This implies the app blends DOM animations, WebGL/Three.js-style rendering, and discrete visual effects inside the same page.
6. The data flow appears mostly one-way and local: page.tsx assembles the sections and UI, sections render content, and interactive components read browser state such as audio, cursor movement, and scroll progress. There is no sign of backend APIs, persistence, or external data fetching, so the experience is likely static/client-driven.
7. app/globals.css and app/config.ts suggest centralized styling and content/configuration values. That points to a design where theme, spacing, copy, or feature toggles are managed outside the individual sections to keep the page coherent.
8. The project uses TypeScript throughout and is wired with standard Next.js tooling: next.config.*, tsconfig.json, eslint.config.mjs, and postcss.config.mjs. This is a frontend-only build pipeline with generated production output handled by Next.js and static assets served from public.
9. The public directory likely holds the media assets that make the page feel experiential—images, audio, and possibly decorative icons or scene assets. Given the presence of an audio player and gallery section, asset management is a material part of the architecture.
10. For an architecture diagram, the key boundary is between the page composition layer and the effect/interaction layer. The composition layer assembles themed sections; the interaction layer provides cross-cutting behaviors like cursor, progress, audio, animation, and 3D visuals. The result is a self-contained, client-heavy Next.js presentation app with no visible server-side domain logic.
Main entry points: page.tsx Home page · SectionWrapper.tsx Section wrapper · layout.tsx Layout · IntroSection.tsx Intro
Components 19
App shell
Next.js App Router entrypoints and global styling/configuration.
- Layout · Global document shell and metadata.
app/layout.tsx - Home page · Assembles the single-page experience from sections and shared UI.
app/page.tsx - Global CSS · Application-wide styles and theming.
app/globals.css - Config · Centralized content and presentation settings.
app/config.ts
Experience flow
Scroll-driven narrative sections that make up the main page.
- Intro · Opening narrative section.
app/components/sections/IntroSection.tsx - Timeline · Sequential story or memory timeline.
app/components/sections/TimelineSection.tsx - Gallery · Visual gallery and media showcase.
app/components/sections/GallerySection.tsx - Love letter · Personal message or reflective content block.
app/components/sections/LoveLetterSection.tsx - Wish · Closing wish or interactive prompt.
app/components/sections/WishSection.tsx - Stars · Decorative finale or ambient visual section.
app/components/sections/StarsSection.tsx
Interaction layer
Shared UI chrome and effect helpers that drive the interactive presentation.
- Section wrapper · Shared boundary for section spacing and presentation.
app/components/ui/SectionWrapper.tsx - Audio player · In-page audio playback and controls.
app/components/ui/AudioPlayer.tsx - Custom cursor · Pointer-following cursor treatment.
app/components/ui/CustomCursor.tsx - Page progress · Visual indicator of scroll position through the experience.
app/components/ui/PageProgress.tsx - Debug panel · Optional runtime inspection and debugging surface.
app/components/ui/DebugPanel.tsx - GSAP setup · Animation orchestration utilities.
app/lib/gsap.ts - 3D scene · Three.js-style scene logic for immersive visuals.
app/lib/three-scene.ts - Confetti · Celebratory particle or burst effect utilities.
app/lib/confetti.ts
Other components
- Public assets · Images, audio, and decorative assets used by the experience.
public
Connections 24
- Layout → Home page: wraps · Global shell contains the page experience.
- Home page → Intro: renders · Page composes the opening section.
- Home page → Timeline: renders · Page composes the timeline section.
- Home page → Gallery: renders · Page composes the gallery section.
- Home page → Love letter: renders · Page composes the love letter section.
- Home page → Wish: renders · Page composes the wish section.
- Home page → Stars: renders · Page composes the finale section.
- Home page → Section wrapper: uses · Shared wrapper normalizes section layout.
- Home page → Audio player: uses · Global audio control is mounted at the page level.
- Home page → Custom cursor: uses · Custom cursor is part of the interactive chrome.
- Home page → Page progress: uses · Scroll progress is shared across the experience.
- Home page → Debug panel: uses · Debug controls are available in the page shell.
- Home page → Config: reads · Central config provides shared content or options.
- Home page → GSAP setup: animates · Page-level interactions rely on animation utilities.
- Home page → 3D scene: visualizes · Immersive visuals may use a 3D scene.
- Home page → Confetti: triggers · Celebratory effects can be fired from the experience.
- Intro → Section wrapper: inherits · Sections share a common presentation boundary.
- Timeline → Section wrapper: inherits · Sections share a common presentation boundary.
- Gallery → Section wrapper: inherits · Sections share a common presentation boundary.
- Love letter → Section wrapper: inherits · Sections share a common presentation boundary.
- Wish → Section wrapper: inherits · Sections share a common presentation boundary.
- Stars → Section wrapper: inherits · Sections share a common presentation boundary.
- Layout → Global CSS: loads · Global styles are applied from the root shell.
- Layout → Public assets: serves · Static media is delivered through the app runtime.