diff --git a/apps/launcher/src/renderer/src/i18n/locales/en.json b/apps/launcher/src/renderer/src/i18n/locales/en.json index 134ba30..b6928f1 100644 --- a/apps/launcher/src/renderer/src/i18n/locales/en.json +++ b/apps/launcher/src/renderer/src/i18n/locales/en.json @@ -644,6 +644,11 @@ }, "statement": "Project information", "statementBody": "WTOffline is a noncommercial hobby project independent of Gaijin. Running it requires your own War Thunder base game files.", + "homepage": { + "title": "Project homepage", + "hint": "Project overview, release catalog, and community links.", + "open": "Open homepage" + }, "community": { "discord": "Discord", "discordHint": "Development discussion, general chat, troubleshooting, and bug reports.", diff --git a/apps/launcher/src/renderer/src/i18n/locales/zh-CN.json b/apps/launcher/src/renderer/src/i18n/locales/zh-CN.json index 2f52d1c..45cd74d 100644 --- a/apps/launcher/src/renderer/src/i18n/locales/zh-CN.json +++ b/apps/launcher/src/renderer/src/i18n/locales/zh-CN.json @@ -644,6 +644,11 @@ }, "statement": "项目信息", "statementBody": "WTOffline 是一个独立于 Gaijin 的非商业兴趣项目。运行需要自备战争雷霆游戏本体文件。", + "homepage": { + "title": "项目主页", + "hint": "查看项目介绍、全部版本与社区入口。", + "open": "打开主页" + }, "community": { "discord": "Discord", "discordHint": "开发讨论、日常交流、使用求助与问题反馈。", diff --git a/apps/launcher/src/renderer/src/pages/about/AboutPage.tsx b/apps/launcher/src/renderer/src/pages/about/AboutPage.tsx index bff26e2..eacc6fb 100644 --- a/apps/launcher/src/renderer/src/pages/about/AboutPage.tsx +++ b/apps/launcher/src/renderer/src/pages/about/AboutPage.tsx @@ -7,6 +7,7 @@ import type { AppUpdateState } from '../../shell/useAppUpdate.ts'; import { AppUpdateSection } from './AppUpdateSection.tsx'; import type { PatchPackState } from '../../shell/usePatchPack.ts'; +const HOMEPAGE_URL = 'https://wto-project.net'; const DISCORD_INVITE_URL = 'https://discord.gg/P566xWNpEs'; interface AboutPageProps { @@ -37,6 +38,7 @@ export function AboutPage({ launcherVersion, supportedVersions, patchPack, appUp
+
@@ -49,6 +51,23 @@ export function AboutPage({ launcherVersion, supportedVersions, patchPack, appUp ); } +function HomepageSection() { + const { t } = useTranslation(); + return ( +
+
+

{t('about.homepage.title')}

+ +
+

{t('about.homepage.hint')}

+
+ ); +} + function CommunitySection() { const { t } = useTranslation(); return (