Update video pages to open videos in a modal with navigation
Refactor FolxStadlPage and GeschichteLiedPage to use a modal for video playback with added navigation controls, replacing direct navigation to individual video pages. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 45a1dcfc-f8a2-475a-a6b9-96fbb841dc27 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/60d372ff-2c10-46c7-b01b-10c3435136b0/45a1dcfc-f8a2-475a-a6b9-96fbb841dc27/5sUeqE6
This commit is contained in:
parent
0cb6846478
commit
48720d4932
@ -40,9 +40,9 @@ export default function FolxStadlPage() {
|
||||
const currentVideos = folxStadlVideos.slice(startIndex, endIndex);
|
||||
|
||||
const handleVideoClick = (video: Video) => {
|
||||
// Navigate to individual video page instead of modal
|
||||
const shortId = video.id.replace(/-/g, '').substring(0, 8);
|
||||
setLocation(`/video/${shortId}`);
|
||||
// Open modal with navigation controls for all FOLX STADL videos
|
||||
setSelectedVideo(video);
|
||||
setIsModalOpen(true);
|
||||
};
|
||||
|
||||
const handleCloseModal = () => {
|
||||
|
||||
@ -42,9 +42,9 @@ export default function GeschichteLiedPage() {
|
||||
const currentVideos = geschichteVideos.slice(startIndex, endIndex);
|
||||
|
||||
const handleVideoClick = (video: Video) => {
|
||||
// Navigate to individual video page instead of modal
|
||||
const shortId = video.id.replace(/-/g, '').substring(0, 8);
|
||||
setLocation(`/video/${shortId}`);
|
||||
// Open modal with navigation controls for all Geschichte des Liedes videos
|
||||
setSelectedVideo(video);
|
||||
setIsModalOpen(true);
|
||||
};
|
||||
|
||||
const handleCloseModal = () => {
|
||||
@ -345,6 +345,8 @@ export default function GeschichteLiedPage() {
|
||||
video={selectedVideo}
|
||||
isOpen={isModalOpen}
|
||||
onClose={handleCloseModal}
|
||||
videos={geschichteVideos}
|
||||
onVideoChange={setSelectedVideo}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user