diff --git a/attached_assets/image_1772317442504.png b/attached_assets/image_1772317442504.png new file mode 100644 index 0000000..fd16f42 Binary files /dev/null and b/attached_assets/image_1772317442504.png differ diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index 220a866..a85f957 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 }: { articles: Article[]; popular?: Article[]; galleryImages?: GalleryImage[]; focalPoints?: Record }) { +function FeaturedCarousel({ articles, popular, galleryImages, focalPoints, sideArticle }: { articles: Article[]; popular?: Article[]; galleryImages?: GalleryImage[]; focalPoints?: Record; sideArticle?: Article }) { const pageSize = 3; const totalPages = Math.max(1, Math.ceil(Math.min(articles.length, 9) / pageSize)); const [page, setPage] = useState(0); @@ -393,8 +393,9 @@ function FeaturedCarousel({ articles, popular, galleryImages, focalPoints }: { a -
+
{popular && popular.length > 0 && } + {sideArticle && }
{totalPages > 1 && ( @@ -521,7 +522,7 @@ export default function Home() {
- + {gridRows.map((row, ri) => (
@@ -535,11 +536,9 @@ export default function Home() {
))} - {widePickedArticles.length > 0 && ( + {widePickedArticles.length > 1 && (
- {widePickedArticles.map((a) => ( - - ))} +
)}