From 3d14ed2c2bdab3485c6f36f3d77a6262ca208a25 Mon Sep 17 00:00:00 2001 From: kimjaehyeon0101 <47347352-kimjaehyeon0101@users.noreply.replit.com> Date: Tue, 14 Oct 2025 07:44:42 +0000 Subject: [PATCH] Add article thumbnail images to list view and article detail pages Updated ArticleCard component to display thumbnail images on the right for list view. Modified Article page to display the article's image as a hero banner at the top. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 9a264234-c5d7-4dcc-adf3-a954b149b30d Replit-Commit-Checkpoint-Type: intermediate_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3df548ff-50ae-432f-9be4-25d34eccc983/9a264234-c5d7-4dcc-adf3-a954b149b30d/6ZMblp5 --- client/src/components/ArticleCard.tsx | 15 ++++++++------- client/src/pages/Article.tsx | 10 ++++++++++ 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/client/src/components/ArticleCard.tsx b/client/src/components/ArticleCard.tsx index 193d72a..20bf0dc 100644 --- a/client/src/components/ArticleCard.tsx +++ b/client/src/components/ArticleCard.tsx @@ -40,13 +40,6 @@ export default function ArticleCard({ article, outlet, viewMode = "grid" }: Arti > - {article.imageUrl && ( - - )} {article.isPinned && ( @@ -74,6 +67,14 @@ export default function ArticleCard({ article, outlet, viewMode = "grid" }: Arti + {article.imageUrl && ( + + )} diff --git a/client/src/pages/Article.tsx b/client/src/pages/Article.tsx index ef1bb34..adb0e94 100644 --- a/client/src/pages/Article.tsx +++ b/client/src/pages/Article.tsx @@ -174,6 +174,16 @@ export default function Article() { {/* Article Content */} + {article.imageUrl && ( + + + + )} {article.title} {article.excerpt && (