A modern, contest-grade interactive Diwali digital greeting web application. Create, customize, and share personalized Diwali greetings with glowing digital diyas, festive music, firecrackers, and shareable links with zero database setup.
-
š Interactive 3D Surprise Gift Box Unboxing:
- When opening a shared greeting link, recipients are greeted by an interactive, glowing 3D festive gift box with a satin ribbon bow and anticipation wobble (Duolingo quest reward style).
- Tapping or clicking the box bursts confetti and fireworks, smoothly unlocks background audio across iOS and Android, and reveals the personalized greeting card.
- Creators can choose from 4 distinct festive gift box designs (Ruby Square, Emerald Hamper, Saffron Round, and Prem Heart).
-
šØ 3-Step Interactive Greeting Builder:
- Names: Enter the recipient's name and optional sender signature.
- Heartfelt Wishes: Write your own custom message or choose from curated quick Diwali presets.
- Festive Customization: Choose between 4 distinct Diya styles (Classic Clay, Ornate Festival, Modern Minimalist, Lotus Petal), 4 surprise gift box styles, adjust diya counts (1 to 7), and select from 4 atmospheric background themes (Ethereal Glow, Festive Red, Celestial Blue, Garden Green).
-
š Zero-Database URL Sharing:
- Entire greetings are compressed into URL query strings (
?g=...) using LZ-String + URL-safe Base64 encoding. - Instant sharing via Instagram (copies link & opens Instagram), WhatsApp, X, and the Native Mobile Share Sheet (
navigator.share). - No database, no logins, and zero tracking ā permanent and lightweight.
- Entire greetings are compressed into URL query strings (
-
š Interactive & Ambient Firecrackers:
- Touch & Click Explosions: Tap or click anywhere on the screen (Android, iOS, or PC) to spawn multi-colored sparklers with dynamic physics.
- Ambient Rockets & Finale Fireworks: Atmospheric fireworks burst gracefully in the background.
- Interactive Love Note: Floating blended transparent badge "Show some love by tapping the screen" with a one-time golden shimmer that reacts to taps.
-
šµ Festive Diwali Music Player:
- Compact gold vinyl & diya SVG music pill in the lower right.
- PC Hover Animation: Automatically expands on hover to display currently playing song, equalizer, and play/pause controls; clicking opens the full diwali music drawer.
- Slide-out side drawer with playback controls: Play, Pause, Seamless Loop, Previous, Next, Volume Slider, and interactive track scrubber.
- 5 Curated Festive Tracks:
- Divine Bansuri (1:31)
- Soulful Sitar (2:20)
- Temple Dawn (2:08)
- Festive Joy (2:39)
- Deepavali Aarti (4:44)
- Mobile Compliant: Direct
touchenduser-activation compliance for seamless unmuted playback on Android and iOS. - Web Audio Raga Synthesizer Fallback: Built-in procedural Tanpura and Bansuri synthesizer that generates authentic Indian classical raga ambient music offline if audio files are unavailable.
-
šø High-Resolution PNG Card Download:
- Client-side pure HTML5 Canvas export generating 1080Ć1350 (4:5 portrait) greeting cards ready for Instagram stories, WhatsApp statuses, and print.
- Guaranteed typographic spacing, centered diya lighting, and decorative borders.
-
š± Mobile-First Responsive Design:
- Built to fit within 1 screen frame at 100% zoom with zero awkward vertical scrollbars on initial load.
- Deep OLED dark background (
#0A0A0F) with golden amber glow and shimmering glassmorphism.
- Framework: React 19
- Bundler & Dev Server: Vite 8
- Icons: Lucide React
- Compression: LZ-String
- Styling: Modern Vanilla CSS (CSS Grid, Flexbox, Custom Properties, Glassmorphism)
- Graphics & Audio: HTML5 2D Canvas API + Web Audio API
- Hosting: Firebase Hosting (Google Edge CDN)
Diwali/
āāā public/
ā āāā audio/ # Preloaded MP3 audio tracks (1.mp3 - 5.mp3)
ā āāā favicon.svg # Golden diya SVG favicon
āāā src/
ā āāā components/
ā ā āāā BokehBackground.jsx # Ambient glowing festival particles
ā ā āāā DiyaSVG.jsx # Vector diya models with flame animations
ā ā āāā FirecrackerEffects.jsx # Touch-activated & ambient fireworks engine
ā ā āāā GiftBoxReveal.jsx # 3D interactive surprise gift box with ribbon & unboxing
ā ā āāā GreetingView.jsx # Cinematic shared greeting view
ā ā āāā MusicPlayer.jsx # Floating pill & slide-out side music drawer
ā ā āāā PreviewModal.jsx # Zoomable, fixed-size card preview dialog
ā ā āāā RangoliSVG.jsx # Sacred geometric festive floor patterns
ā ā āāā ShareModal.jsx # Share modal with WhatsApp, links & PNG export
ā āāā utils/
ā ā āāā audioEngine.js # Audio controller & procedural raga synth
ā ā āāā canvasCard.js # Pure Canvas 1080x1350 PNG export engine
ā ā āāā codec.js # URL greeting compression / decompression
ā āāā App.jsx # Main controller (Creator & Greeting router)
ā āāā index.css # Ethereal Glow theme & responsive design system
ā āāā main.jsx # Application entry point
āāā firebase.json # Firebase SPA rewrite & header configuration
āāā vite.config.js # Vite config with HTTP range audio streaming
āāā package.json
-
Clone the repository:
git clone https://github.com/AbizarDholkawala/Happy-Diwali.git cd Happy-Diwali -
Install dependencies:
npm install
-
Start the local development server:
npm run dev
Open your browser at
http://localhost:5173(or the port indicated in your terminal). -
Build for production:
npm run build
-
Install Firebase CLI:
npm install -g firebase-tools
-
Login to Firebase:
firebase login
-
Deploy:
npm run build firebase deploy --only hosting
This project is open-source and available under the MIT License.
Wishing you and your family a joyous, prosperous, and bright Deepavali! šŖāØ