How susovan777/wed works
This repository implements configurable wedding invitation pages. A visitor opens a slug-specific invitation, which loads its invitation data and renders an opening gate followed by ordered sections for the couple, events, countdown, story, and gallery. Invitation content and types provide the internal configuration layer; the invitation sections compose visual components and date/countdown helpers. The graph follows documented imports and sampled calls; unsampled modules are represented only where the source index establishes their relationships.
Main entry points: InvitationSections.tsx Section dispatcher · page.tsx Slug page · InvitationShell.tsx Invitation shell · Hero.tsx Wedding hero
Components 24
Page and content
- Slug page
src/app/[slug]/page.tsx - Invitation catalog
src/content/invitations/index.ts - Sample invitation
src/content/invitations/sample-wedding.ts - Invitation types
src/types/invitation.ts
Invitation experience
- Invitation shell
src/components/invitation/InvitationShell.tsx - Opening gate
src/components/opening/OpeningGate.tsx - Open state
src/components/invitation/OpenContext.tsx - Petal effects
src/components/invitation/PetalFall.tsx
Invitation sections
- Section dispatcher
src/components/invitation/InvitationSections.tsx - Wedding hero
src/components/invitation/sections/Hero.tsx - Bride and groom
src/components/invitation/sections/BrideGroom.tsx - Celebration events
src/components/invitation/sections/Celebrations.tsx - Wedding countdown
src/components/invitation/sections/Countdown.tsx - Couple story
src/components/invitation/sections/Story.tsx - Photo gallery
src/components/invitation/sections/Gallery.tsx
Visual components and helpers
- Motion effects
src/components/motion/Reveal.tsx - Blur text
src/components/motion/BlurText.tsx - Person details modal
src/components/ui/PersonModal.tsx - Gallery collage and lightbox
src/components/ui/GalleryCollage.tsx - Countdown cards
src/components/ui/CountdownCards.tsx - Countdown timer
src/hooks/useCountdown.ts - Date formatting
src/lib/date.ts - Event date formatting
src/lib/eventDate.ts
Other components
- Visitor
Connections 26
- Visitor → Slug page: opens slug
- Slug page → Invitation catalog: loads invitation
src/app/[slug]/page.tsx - Slug page → Invitation shell: renders shell
src/app/[slug]/page.tsx - Slug page → Section dispatcher: renders sections
src/app/[slug]/page.tsx - Invitation catalog → Sample invitation: registers sample
src/content/invitations/index.ts - Invitation shell → Opening gate: renders gate
src/components/invitation/InvitationShell.tsx - Invitation shell → Open state: provides open state
src/components/invitation/InvitationShell.tsx - Invitation shell → Petal effects: renders effects
src/components/invitation/InvitationShell.tsx - Section dispatcher → Wedding hero: renders section
src/components/invitation/InvitationSections.tsx - Section dispatcher → Bride and groom: renders section
src/components/invitation/InvitationSections.tsx - Section dispatcher → Celebration events: renders section
src/components/invitation/InvitationSections.tsx - Section dispatcher → Wedding countdown: renders section
src/components/invitation/InvitationSections.tsx - Section dispatcher → Couple story: renders section
src/components/invitation/InvitationSections.tsx - Section dispatcher → Photo gallery: renders section
src/components/invitation/InvitationSections.tsx - Wedding hero → Date formatting: formats wedding date
src/components/invitation/sections/Hero.tsx - Wedding hero → Blur text: renders text
src/components/invitation/sections/Hero.tsx - Bride and groom → Person details modal: opens details
- Celebration events → Event date formatting: formats event dates
src/components/invitation/sections/Celebrations.tsx - Wedding countdown → Countdown cards: renders countdown
src/components/invitation/sections/Countdown.tsx - Countdown cards → Countdown timer: reads time left
src/components/ui/CountdownCards.tsx - Couple story → Motion effects: reveals content
src/components/invitation/sections/Story.tsx - Couple story → Date formatting: uses date helpers
- Photo gallery → Gallery collage and lightbox: renders collage
src/components/invitation/sections/Gallery.tsx - Gallery collage and lightbox → Motion effects: reveals images
src/components/ui/GalleryCollage.tsx - Blur text → Open state: reads open state
src/components/motion/BlurText.tsx - Motion effects → Open state: reads open state
src/components/motion/Reveal.tsx