diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index c5a437f..f533d6b 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -43,7 +43,7 @@ function HeroCard({ article }: { article: Article }) { return (
-
+
{article.title} {isVideo && (
@@ -78,7 +78,7 @@ function GalleryHeroCard({ images }: { images: GalleryImage[] }) { return (
-
+
{images[idx].fileName}
@@ -223,21 +223,31 @@ function FeaturedCarousel({ articles, popular, galleryImages }: { articles: Arti const isWidePage = page === 1; let hero: Article | null = null; + let side: Article[] = []; if (!isGalleryPage && articles.length > 0) { hero = articles[page % articles.length]; + side = [ + articles[(page + 1) % articles.length], + articles[(page + 2) % articles.length], + ]; } return (
setPaused(true)} onMouseLeave={() => setPaused(false)}>
-
+
{isGalleryPage && galleryImages ? ( ) : hero ? ( ) : null}
+
+ {side.map((a) => ( + + ))} +
{popular && popular.length > 0 && }