From 40c5576f4d882bc0c7346274215c390615d4bc2d Mon Sep 17 00:00:00 2001 From: alma Date: Mon, 14 Apr 2025 21:07:49 +0200 Subject: [PATCH] news widget design 8 --- components/news.tsx | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/components/news.tsx b/components/news.tsx index 006fa43..a468684 100644 --- a/components/news.tsx +++ b/components/news.tsx @@ -54,7 +54,7 @@ export function News() { if (status === 'loading' || loading) { return ( - + News @@ -68,7 +68,7 @@ export function News() { } return ( - + News - + {error ? (

{error}

) : ( @@ -95,31 +95,25 @@ export function News() { className="p-4 hover:bg-gray-50 transition-colors cursor-pointer" onClick={() => window.open(item.url, '_blank')} > -
+
+
+ {item.displayDate} + {item.category && ( + + {item.category} + + )} +

{item.title}

{item.description && ( -

+

{item.description}

)} -
- {item.displayDate} - {item.source && ( - <> - - {item.source} - - )} -
- {item.category && ( - - {item.category} - - )}
))