From ac54a6fbd7610d4256792611006fba64393cc630 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Sat, 28 Feb 2026 22:22:51 +0000 Subject: [PATCH] Return to previous layout for wide cards Remove wide cards from the FeaturedCarousel component and place them below the main grid. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 517dfa7b-26ac-463d-a6e1-a58c6df97188 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 8d662854-6a02-450f-9147-28ba7caf32ca 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 | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index 301a390..9becdd9 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, wideArticles }: { articles: Article[]; popular?: Article[]; galleryImages?: GalleryImage[]; focalPoints?: Record; wideArticles?: 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,10 +393,8 @@ function FeaturedCarousel({ articles, popular, galleryImages, focalPoints, wideA -
+
{popular && popular.length > 0 && } - {wideArticles && wideArticles.length > 0 && } - {wideArticles && wideArticles.length > 1 && }
{totalPages > 1 && ( @@ -510,7 +508,7 @@ export default function Home() {
- 1 ? [shuffled[shuffled.length - 1], shuffled[shuffled.length - 2]] : []} /> + {gridRows.map((row, ri) => (
@@ -524,6 +522,13 @@ export default function Home() {
))} + {shuffled.length > 1 && ( +
+ + +
+ )} +