From 9a39add88ba917a602cbbc8e5305a792a2ea0b1b Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Sat, 9 May 2026 10:54:11 +0200 Subject: [PATCH] Redesign News page: update layout, styling, and typography for improved readability and UI consistency. --- web/pages/news.tsx | 47 +++++++++++++++++++++++++++++++++++----------- 1 file changed, 36 insertions(+), 11 deletions(-) diff --git a/web/pages/news.tsx b/web/pages/news.tsx index dbefe5d8..4b20b7d8 100644 --- a/web/pages/news.tsx +++ b/web/pages/news.tsx @@ -7,7 +7,6 @@ import {EnglishOnlyWarning} from 'web/components/news/english-only-warning' import {PageBase} from 'web/components/page-base' import {SEO} from 'web/components/SEO' import {CompassLoadingIndicator} from 'web/components/widgets/loading-indicator' -import {Title} from 'web/components/widgets/title' import {useT} from 'web/lib/locale' import {getPageData} from 'web/lib/util/page-data' import {isNativeMobile} from 'web/lib/util/webview' @@ -74,7 +73,7 @@ export default function WhatsNew(props: {releases?: Release[]}) { }, [nativeMobile]) return ( - + - {t('news.title', "What's New")} +
+

+ {t('news.title', "What's New")} +

+

+ {t( + 'news.description', + 'Stay up to date with the latest features, improvements, and changes to Compass.', + )} +

+ {releases.length > 0 && ( +
+ + {t('news.latest_version', 'Latest: {version}', {version: releases[0].tag_name})} +
+ )} +
{loading && } {!loading && !releases.length ? ( -

{t('news.failed', 'Failed to fetch releases.')}

+

+ {t('news.failed', 'Failed to fetch releases.')} +

) : ( - + {releases.map((release: Release) => ( -
-
-

{release.name || release.tag_name}

- +
+
+

+ {release.name || release.tag_name} +

+ {new Date(release.published_at).toISOString().split('T')[0]}
-
+
{formatPullLinks( release.body || t('news.no_release_notes', '_No release notes provided._'), )}
- + {t('news.view_on_github', 'View on GitHub')}