From b99fba1c5ac278ac4bf94fd8087870b8b52030f8 Mon Sep 17 00:00:00 2001 From: eric Date: Sun, 8 Mar 2026 04:42:28 -0500 Subject: [PATCH] 's' --- app/components/Community.tsx | 40 ++++++++++---------- app/components/Features.tsx | 16 ++++---- app/components/Footer.tsx | 16 ++++---- app/components/Header.tsx | 32 ++++++++-------- app/components/Hero.tsx | 22 +++++------ app/components/Roadmap.tsx | 24 ++++++------ app/components/ThemeToggle.tsx | 47 +++++++++++++++++++++++ app/components/Tools.tsx | 20 +++++----- app/context/ThemeContext.tsx | 68 ++++++++++++++++++++++++++++++++++ app/globals.css | 29 +++++++++++++++ app/layout.tsx | 27 +++++++++++++- 11 files changed, 255 insertions(+), 86 deletions(-) create mode 100644 app/components/ThemeToggle.tsx create mode 100644 app/context/ThemeContext.tsx diff --git a/app/components/Community.tsx b/app/components/Community.tsx index 6cc9186..a76f9b5 100644 --- a/app/components/Community.tsx +++ b/app/components/Community.tsx @@ -15,44 +15,44 @@ const linkIcons: Record<(typeof linkKeys)[number], string> = { export default function Community() { const { t } = useTranslation("community"); return ( -
+
{/* 数字游民社区 - 优化布局 */}
-
+
👥 {t("nomadCommunity")}
-

+

{t("joinTitle")}

-

+

{t("joinDesc")}

- + {t("applyForm")} - + {t("approveJoin")}
-
+
📝
-
+
{t("applyNow")}
-
+
{t("applyHint")}
@@ -62,13 +62,13 @@ export default function Community() {
-
+
{t("openSource")}
-

+

{t("contributeTitle")} {t("contributeHighlight")}

-

+

{t("contributeSubtitle")}
{t("contributeSubtitle2")} @@ -79,14 +79,14 @@ export default function Community() { {linkKeys.map((key) => (

- + {linkIcons[key]}
-

{t(`links.${key}.title`)}

-

{t(`links.${key}.desc`)}

+

{t(`links.${key}.title`)}

+

{t(`links.${key}.desc`)}

{t(`links.${key}.label`)} @@ -96,15 +96,15 @@ export default function Community() {
-
+
{t("betterTitle")}
-

+

{t("betterDesc")}
{t("betterDesc2")}

-
diff --git a/app/components/Features.tsx b/app/components/Features.tsx index 2f57ba4..4ea6b42 100644 --- a/app/components/Features.tsx +++ b/app/components/Features.tsx @@ -11,13 +11,13 @@ export default function Features() { key, })); return ( -
+
-

+

{t("title")} {t("titleHighlight")}{t("titleSuffix")}

-

+

{t("subtitle")}
{t("subtitle2")} @@ -28,21 +28,21 @@ export default function Features() { {features.map((f) => (

-
+
{f.icon}
-

+

{t(`items.${f.key}.title`)}

-

{t(`items.${f.key}.desc`)}

+

{t(`items.${f.key}.desc`)}

))}
-
+
🔥 {t("stat")} {t("statCount")} {t("statSuffix")}
diff --git a/app/components/Footer.tsx b/app/components/Footer.tsx index ea8bda9..f7e417b 100644 --- a/app/components/Footer.tsx +++ b/app/components/Footer.tsx @@ -43,15 +43,15 @@ const footerSections = [ export default function Footer() { const { t } = useTranslation("footer"); return ( -