diff --git a/attached_assets/image_1772315894901.png b/attached_assets/image_1772315894901.png new file mode 100644 index 0000000..5c60bed Binary files /dev/null and b/attached_assets/image_1772315894901.png differ diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index c244db6..b86f630 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -378,10 +378,9 @@ export default function Home() { ); } - const carouselEnd = Math.min(9, articles.length); - const row2 = articles.slice(carouselEnd, carouselEnd + 2); - const row3 = articles.slice(carouselEnd + 2, carouselEnd + 4); - const remaining = articles.slice(carouselEnd + 4); + const row2 = articles.slice(0, 2); + const row3 = articles.slice(2, 4); + const remaining = articles.slice(4); const rows: Article[][] = []; for (let i = 0; i < remaining.length; i += 4) { rows.push(remaining.slice(i, i + 4));