diff --git a/client/src/pages/VideoPage.tsx b/client/src/pages/VideoPage.tsx index fcad506..d9cbd39 100644 --- a/client/src/pages/VideoPage.tsx +++ b/client/src/pages/VideoPage.tsx @@ -788,15 +788,39 @@ export default function VideoPage() {

Empfohlene Videos

- {recommendedVideos.slice(0, 10).map((video) => ( -
{ - const shortId = video.id.replace(/-/g, '').substring(0, 8); - setLocation(`/video/${shortId}`); - }} - className="flex gap-3 p-2 bg-bunny-gray/30 hover:bg-bunny-gray/50 rounded-lg cursor-pointer transition-colors" - > + {recommendedVideos.slice(0, 15).map((video, index) => ( +
+ {/* Insert ad after 5th video */} + {index === 5 && ( +
+ +
+ )} + + {/* Insert ad after 10th video */} + {index === 10 && ( +
+ +
+ )} + +
{ + const shortId = video.id.replace(/-/g, '').substring(0, 8); + setLocation(`/video/${shortId}`); + }} + className="flex gap-3 p-2 bg-bunny-gray/30 hover:bg-bunny-gray/50 rounded-lg cursor-pointer transition-colors" + >