From 84d7de2da64f8f2fd1e2d64959817c64c8fb7c04 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Sat, 28 Feb 2026 20:28:39 +0000 Subject: [PATCH] Adjust article card layouts for improved visual appeal and information display Update aspect ratios of hero and gallery cards to 4:3, modify side card image to aspect-video, and enhance side card content with author, date, and excerpt. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 413891e8-d784-4bea-b9f5-91a5a68316b4 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 44f2dc39-e213-4018-a119-033950b0453d Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/f209e72a-0939-48fa-84fc-57854de71967/413891e8-d784-4bea-b9f5-91a5a68316b4/nTLKCC5 Replit-Helium-Checkpoint-Created: true --- client/src/pages/home.tsx | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index 0f57d43..e4f0714 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -43,7 +43,7 @@ function HeroCard({ article }: { article: Article }) { return (
-
+
{article.title} {isVideo && (
@@ -78,7 +78,7 @@ function GalleryHeroCard({ images }: { images: GalleryImage[] }) { return (
-
+
{images[idx].fileName}
@@ -137,18 +137,23 @@ function SideCard({ article }: { article: Article }) {
- {article.title} + {article.title}
{isVideo && (
-
- +
+
)}
-
-

{article.title}

+
+
+ {article.author} + {timeAgo(new Date(article.publishedAt))} +
+

{article.title}

+

{article.excerpt}

@@ -235,7 +240,7 @@ function FeaturedCarousel({ articles, popular, galleryImages }: { articles: Arti return (
setPaused(true)} onMouseLeave={() => setPaused(false)}>
-
+
{isGalleryPage && galleryImages ? ( ) : hero ? ( @@ -243,7 +248,7 @@ function FeaturedCarousel({ articles, popular, galleryImages }: { articles: Arti ) : null}
{!wide && ( -
+
{side.map((a) => ( ))}