Commit Graph

4 Commits

Author SHA1 Message Date
Zeeshan Khan ffaef59049 feat: mobile menu video auto-play on scroll pause (2s)
- On mobile (<768px): posters shown while scrolling the menu.
- After user stops scrolling and lingers on a video item for ~2s: the animation (video) plays in place of the poster (replaces img opacity, plays video, hides gradient).
- On scroll/touchmove resume: immediately pause videos and show posters.
- Initial load on mobile: auto-plays the first focused video item after settle.
- Added isMobile state + resize listener, scroll/touch listeners with 2s debounce timeout.
- Helper functions: playMobileVideo(id), pauseAllMobileVideos(), findFocusedVideoItem() (visibility + center scoring).
- Data attributes data-id and data-has-video added to .menu-card for reliable targeting.
- Desktop hover logic untouched.
- Only affects items with .video in menu-data (e.g. Lahore Chana now works on mobile too).
- Cleanup on unmount/resize to desktop.
- Builds cleanly.
2026-06-02 15:24:47 +02:00
Zeeshan Khan dcd973a7a9 feat: add Lahori Chana animation video
- Generated 6s video for Lahore Chana using video gen (good presentation, smoke rising).
- Added optimized .webm + .mp4 versions.
- Extracted poster from video.
- Updated menu-data.ts to include video: 'lahore-chana.mp4' for the item (now shows hover animation on /menu page).
- All assets in public/ for menu consistency.
2026-06-02 14:51:13 +02:00
Anonymous fe78fd9fa1 chore: sync full current production website state to Gitea 2026-06-02 10:27:50 +00:00
Zeeshan Khan 56fe68eb48 Initial commit: Shahi Kitchen premium website
- Royal cream + gold theme
- Playful animated hero with chef mascot
- Advanced menu with sidebar + video hover
- Multilingual support (EN, SV, HI, UR)
- Cart system with WhatsApp ordering
- Real restaurant photos integration
- Responsive design with proper navbar
2026-06-01 15:14:19 +02:00