@@ -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 && }