How thoshiranchanilka/lucky-spin works
This is a browser-based prize-wheel experience: a visitor starts a spin, the wheel selects and animates to a prize, then presents the result in a modal. The prize list, spin behavior, result presentation, and audio/confetti effects are supported by the sampled files. The page and its wiring were not sampled, so the entry-page-to-wheel and prize-data-to-page connections reflect the apparent runtime structure; other page/layout details are omitted.
Main entry points: SpinWheel.jsx Spin wheel · index.astro Home page · WinModal.jsx Result modal · prizes.js Prize list
Components 7
Spin experience
- Home page
src/pages/index.astro - Spin wheel
src/components/SpinWheel.jsx
Prize outcomes
- Prize list
src/data/prizes.js - Result modal
src/components/WinModal.jsx
Effects
- Spin audio
public - Confetti library
Other components
- Visitor
Connections 7
- Visitor → Home page: opens
- Home page → Spin wheel: renders
- Home page → Prize list: supplies prizes
- Spin wheel → Prize list: reads
- Spin wheel → Result modal: shows result
- Spin wheel → Spin audio: plays sounds
- Result modal → Confetti library: fires