Please save the Arabian Nights background image as:
/Users/aryaarora/Downloads/arabian-nights-quiz/public/assets/arabian-night.jpg
The image should be the beautiful purple/pink Arabian night scene with the mosque and palm trees.
Once the image is saved, the animated parallax background will work automatically!
✅ Parallax Background Component (components/AnimatedBackground.js)
- Tracks your cursor movement
- Moves the background in opposite direction (parallax effect)
- Smooth 200ms transitions
- Performance optimized with
willChange
✅ Animated Twinkling Stars
- 50 randomly positioned stars
- Each star twinkles at different intervals
- Creates a magical atmosphere
✅ Gradient Overlay
- Dark overlay for better text readability
- Doesn't interfere with interactions
✅ Integrated into App
- Added to
_app.jsso it appears on all pages - Fixed positioning with z-index management
- Header and content appear above the background
- Mouse moves → JavaScript tracks cursor position
- Calculates offset from center of screen
- Background moves ±15px in opposite direction
- Creates depth/3D effect as you move your cursor
- Smooth transitions make it feel natural
You can:
- Right-click the image in the attachments
- Save it to:
/Users/aryaarora/Downloads/arabian-nights-quiz/public/assets/arabian-night.jpg
Or use terminal:
# If you have the image file somewhere, move it:
cp /path/to/image.jpg /Users/aryaarora/Downloads/arabian-nights-quiz/public/assets/arabian-night.jpgThen refresh your browser and the background will appear with the parallax effect!