From 7b9abf181a14924f15c8ee0482e6531092ccbeba Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Sat, 28 Feb 2026 22:25:51 +0000 Subject: [PATCH] Update carousel layout to display random articles more effectively Remove the side article prop from FeaturedCarousel, adjust the layout of the right column, and update the display logic for WideCards in the home page to show random articles that are not in the carousel. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 517dfa7b-26ac-463d-a6e1-a58c6df97188 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 3f16617b-8f92-430f-b0bd-c0c44b00986a 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 --- client/src/pages/home.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index a85f957..220a866 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -360,7 +360,7 @@ function FeaturedHeroCard({ article, focalPoints }: { article: Article; focalPoi ); } -function FeaturedCarousel({ articles, popular, galleryImages, focalPoints, sideArticle }: { articles: Article[]; popular?: Article[]; galleryImages?: GalleryImage[]; focalPoints?: Record; sideArticle?: Article }) { +function FeaturedCarousel({ articles, popular, galleryImages, focalPoints }: { articles: Article[]; popular?: Article[]; galleryImages?: GalleryImage[]; focalPoints?: Record }) { const pageSize = 3; const totalPages = Math.max(1, Math.ceil(Math.min(articles.length, 9) / pageSize)); const [page, setPage] = useState(0); @@ -393,9 +393,8 @@ function FeaturedCarousel({ articles, popular, galleryImages, focalPoints, sideA -
+
{popular && popular.length > 0 && } - {sideArticle && }
{totalPages > 1 && ( @@ -522,7 +521,7 @@ export default function Home() {
- + {gridRows.map((row, ri) => (
@@ -536,9 +535,11 @@ export default function Home() {
))} - {widePickedArticles.length > 1 && ( + {widePickedArticles.length > 0 && (
- + {widePickedArticles.map((a) => ( + + ))}
)}