Add navigation dots to video player for mobile viewing
Adds mobile-specific navigation dots to the video player on the VideoPage component, allowing users to cycle through videos using touch gestures. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 2cd2c0bc-434c-4bc9-ad3f-b99d3897a0d1 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/2cd2c0bc-434c-4bc9-ad3f-b99d3897a0d1/OdlP8Wj
This commit is contained in:
parent
2a3d3afbb8
commit
10dd4ad073
@ -564,6 +564,29 @@ export default function VideoPage() {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{/* Mobile navigation dots - only visible on mobile */}
|
||||||
|
{allVideos.length > 1 && (
|
||||||
|
<div className="md:hidden flex justify-center mt-4 mb-2 gap-1 py-1">
|
||||||
|
{/* Left dot */}
|
||||||
|
<button
|
||||||
|
onClick={() => navigateToVideo('prev')}
|
||||||
|
className="w-2 h-2 rounded-full transition-colors duration-300 ease-in-out bg-white/25 hover:bg-white/40"
|
||||||
|
aria-label="Previous video"
|
||||||
|
/>
|
||||||
|
{/* Center dot - always active */}
|
||||||
|
<button
|
||||||
|
className="w-2 h-2 rounded-full bg-gradient-to-r from-purple-500 to-blue-500"
|
||||||
|
aria-label="Current video"
|
||||||
|
/>
|
||||||
|
{/* Right dot */}
|
||||||
|
<button
|
||||||
|
onClick={() => navigateToVideo('next')}
|
||||||
|
className="w-2 h-2 rounded-full transition-colors duration-300 ease-in-out bg-white/25 hover:bg-white/40"
|
||||||
|
aria-label="Next video"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
{/* Video info */}
|
{/* Video info */}
|
||||||
<div className="bg-bunny-gray/50 rounded-lg p-4">
|
<div className="bg-bunny-gray/50 rounded-lg p-4">
|
||||||
<div className="flex justify-between items-start mb-4">
|
<div className="flex justify-between items-start mb-4">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user