diff --git a/attached_assets/image_1772313799360.png b/attached_assets/image_1772313799360.png new file mode 100644 index 0000000..cb1302b Binary files /dev/null and b/attached_assets/image_1772313799360.png differ diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index 675e260..02ff3cd 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -357,10 +357,13 @@ export default function Home() { ); } - const row2Left = articles.slice(0, 2); - const row3Middle = articles.slice(2, 4); - const row4Articles = articles.slice(4, 7); - const row5Articles = articles.slice(7, 10); + 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)); + } return (