From 43ec8064596d60b434d83e915dfb6dd2ac892b86 Mon Sep 17 00:00:00 2001 From: alma Date: Tue, 15 Apr 2025 14:48:35 +0200 Subject: [PATCH] news design correction padding 13 --- components/news.tsx | 62 ++++++++++++++++++++++++--------------------- 1 file changed, 33 insertions(+), 29 deletions(-) diff --git a/components/news.tsx b/components/news.tsx index caecf66..69a73ca 100644 --- a/components/news.tsx +++ b/components/news.tsx @@ -68,13 +68,13 @@ export function News() { if (status === 'loading' || loading) { return ( - - + + News - -
- + +
+
@@ -82,49 +82,53 @@ export function News() { } return ( - - + + News - + {error ? ( -

{error}

+
{error}
) : ( -
+
{news.length === 0 ? ( -

No news available

+
No news available
) : ( news.map((item) => (
window.open(item.url, '_blank')} > -
- {formatDate(item.date)} - {item.category && ( - - {item.category} - - )} +
+
+

+ {item.title} +

+
+ {formatDate(item.date)} + {item.category && ( + + {item.category} + + )} +
+ {item.description && ( +

+ {item.description} +

+ )} +
-

- {item.title} -

- {item.description && ( -

- {item.description} -

- )}
)) )}