From f86f73b128875fa5fbec01065930c5fb1f7c5eb4 Mon Sep 17 00:00:00 2001 From: openhands Date: Tue, 7 Jul 2026 19:10:32 +0200 Subject: [PATCH] Add image preview to news listing cards --- src/app/news/page.tsx | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/src/app/news/page.tsx b/src/app/news/page.tsx index 556229ec..79f54558 100644 --- a/src/app/news/page.tsx +++ b/src/app/news/page.tsx @@ -45,13 +45,28 @@ export default async function NewsPage() { className="card hover" style={{ display: "flex", flexDirection: "column" }} > -

- {a.title} -

-

- {formatDate(a.createdAt)} -

-

{excerpt(a.shortStory, 200)}

+ {a.image ? ( + + ) : ( +
+ )} +
+

+ {a.title} +

+

+ {formatDate(a.createdAt)} +

+

{excerpt(a.shortStory, 200)}

+
))}