Display all blog articles below the carousel section
Update the home page component to display all articles in a grid layout, rather than only a subset. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 517dfa7b-26ac-463d-a6e1-a58c6df97188 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 9a38d40e-e66a-495e-b7d1-09d2609085a1 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/f209e72a-0939-48fa-84fc-57854de71967/517dfa7b-26ac-463d-a6e1-a58c6df97188/0ZGabQy Replit-Helium-Checkpoint-Created: true
This commit is contained in:
parent
2f3e864bf4
commit
6aa729090f
BIN
attached_assets/image_1772315894901.png
Normal file
BIN
attached_assets/image_1772315894901.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 660 KiB |
@ -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));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user