How harshverma3105006-ux/-bestfriends works
This is a friendship-surprise website with two runtime forms: a React/Vite experience and a zero-build standalone version. The principal journey moves from the mystery intro through warning, interactive friendship cards, quiz, and final gift/message; the React app owns screen routing and restart behavior. Separate capabilities include the starfield, optional music and sound effects, customization data, and a deployment/share guide. The standalone script is listed as read but not excerpted, so its internal behavior and connections are not mapped.
Main entry points: App.tsx Screen Router · ScreenWarning.tsx Funny Warning · ScreenFriendshipCards.tsx Friendship Cards · ScreenQuiz.tsx Friendship Quiz
Components 14
Surprise Journey
- React Entry
src/main.tsx - Screen Router
src/App.tsx - Mystery Intro
src/components/ScreenMysteryIntro.tsx - Funny Warning
src/components/ScreenWarning.tsx - Friendship Cards
src/components/ScreenFriendshipCards.tsx - Friendship Quiz
src/components/ScreenQuiz.tsx - Gift Reveal
src/components/ScreenSecretReveal.tsx
Experience Support
- Starfield
src/components/BackgroundStars.tsx - Audio Controls
src/components/AudioPlayer.tsx - Audio Engine
src/utils/audio.ts - Surprise Content
src/config.ts - Deploy Guide
src/components/DeployModal.tsx
Alternate Delivery
- Standalone Site
standalone/script.js
Other components
- Friend
Connections 25
- Friend → React Entry: opens
README.md - React Entry → Screen Router: renders
src/main.tsx - Screen Router → Mystery Intro: routes to
src/App.tsx - Screen Router → Funny Warning: routes to
src/App.tsx - Screen Router → Friendship Cards: routes to
src/App.tsx - Screen Router → Friendship Quiz: routes to
src/App.tsx - Screen Router → Gift Reveal: routes to
src/App.tsx - Screen Router → Starfield: renders
src/App.tsx - Screen Router → Audio Controls: renders
src/App.tsx - Screen Router → Deploy Guide: renders
src/App.tsx - Mystery Intro → Funny Warning: advances to
src/App.tsx - Funny Warning → Friendship Cards: advances to
src/App.tsx - Friendship Cards → Friendship Quiz: advances to
src/App.tsx - Friendship Quiz → Gift Reveal: advances to
src/App.tsx - Mystery Intro → Surprise Content: reads content
src/components/ScreenMysteryIntro.tsx - Funny Warning → Surprise Content: reads content
src/components/ScreenWarning.tsx - Friendship Cards → Surprise Content: reads content
src/components/ScreenFriendshipCards.tsx - Friendship Quiz → Surprise Content: reads content
src/components/ScreenQuiz.tsx - Audio Controls → Surprise Content: reads settings
src/components/AudioPlayer.tsx - Audio Controls → Audio Engine: controls
src/components/AudioPlayer.tsx - Mystery Intro → Audio Engine: plays effects
src/components/ScreenMysteryIntro.tsx - Funny Warning → Audio Engine: plays effects
src/components/ScreenWarning.tsx - Friendship Cards → Audio Engine: plays effects
src/components/ScreenFriendshipCards.tsx - Friendship Quiz → Audio Engine: plays effects
src/components/ScreenQuiz.tsx - Friend → Standalone Site: opens instead
README.md