diff --git a/client/src/pages/FolxStadlPage.tsx b/client/src/pages/FolxStadlPage.tsx index ea85e65..49d9b34 100644 --- a/client/src/pages/FolxStadlPage.tsx +++ b/client/src/pages/FolxStadlPage.tsx @@ -71,7 +71,7 @@ export default function FolxStadlPage() { {/* Video List with Descriptions */}
- {folxStadlVideos.map((video, index) => ( + {currentVideos.map((video, index) => (
{/* Video Card */} @@ -106,6 +106,61 @@ export default function FolxStadlPage() { )}
+ {/* Bottom Pagination */} + {totalPages > 1 && ( +
+ + +
+ {Array.from({ length: Math.min(totalPages, 5) }, (_, i) => { + let pageNum; + if (totalPages <= 5) { + pageNum = i + 1; + } else if (currentPage <= 3) { + pageNum = i + 1; + } else if (currentPage >= totalPages - 2) { + pageNum = totalPages - 4 + i; + } else { + pageNum = currentPage - 2 + i; + } + + return ( + + ); + })} +
+ + +
+ )} +
{/* Video Modal */}