From 7338a884f69fcfab0259b0d4c5ac11c938ebb036 Mon Sep 17 00:00:00 2001 From: Haitao Pan Date: Mon, 2 Feb 2026 04:20:55 +0800 Subject: [PATCH] feat: refine about page with structured acknowledgments for upstream projects --- next-env.d.ts | 2 +- src/app/about/page.tsx | 81 ++++++++++++++++++++++++++++------------ src/i18n/translations.ts | 10 +++-- 3 files changed, 66 insertions(+), 27 deletions(-) diff --git a/next-env.d.ts b/next-env.d.ts index 9edff1c..c4b7818 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,6 +1,6 @@ /// /// -import "./.next/types/routes.d.ts"; +import "./.next/dev/types/routes.d.ts"; // NOTE: This file should not be edited // see https://nextjs.org/docs/app/api-reference/config/typescript for more information. diff --git a/src/app/about/page.tsx b/src/app/about/page.tsx index 5be924e..44acc0c 100644 --- a/src/app/about/page.tsx +++ b/src/app/about/page.tsx @@ -65,33 +65,68 @@ export default function AboutPage() { {/* Acknowledgments */}
+

+ {t.acknowledgmentsTitle} +

{t.acknowledgments}

-
-

- {t.toolsTitle} -

- -

{t.toolsNote}

+
+ {t.sections.map((section, sIndex) => ( +
+

+ {section.title} +

+ + {section.content && ( +

+ {section.content} +

+ )} + + {section.items && ( +
+ {section.items.map((item, iIndex) => ( +
+
+ + {item.label} + + +

+ {item.description} +

+
+
+ ))} +
+ )} + + {section.links && ( + + )} +
+ ))}
diff --git a/src/i18n/translations.ts b/src/i18n/translations.ts index 9dbd5c3..c55559f 100644 --- a/src/i18n/translations.ts +++ b/src/i18n/translations.ts @@ -483,10 +483,14 @@ type AboutTranslation = { title: string subtitle: string disclaimer: string + acknowledgmentsTitle: string acknowledgments: string - toolsTitle: string - toolsNote: string - tools: { label: string; url: string }[] + sections: { + title: string + content?: string + items?: { label: string; description: string; url: string }[] + links?: { label: string; url: string }[] + }[] opensource: string }