From f2957ee55891555a016b4e18359986b00126e71c Mon Sep 17 00:00:00 2001 From: "Apple\\Apple" Date: Tue, 10 Jun 2025 01:01:03 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20feat(home):=20redesign=20homepag?= =?UTF-8?q?e=20hero=20section=20with=20improved=20layout=20and=20multiling?= =?UTF-8?q?ual=20support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove system name display from homepage title - Replace with unified gateway branding: "统一的大模型接口网关" - Add subtitle highlighting key benefits: price, stability, no subscription - Implement language-specific title rendering: - English: Two-line layout ("The Unified" / "LLMs API Gateway") - Chinese: Single-line layout for better readability - Increase title font sizes for better visual hierarchy - Adjust vertical padding for improved centering - Enhance overall visual appeal and user experience This update modernizes the homepage presentation and provides better localization support for different language preferences. --- web/src/i18n/locales/en.json | 3 ++- web/src/pages/Home/index.js | 27 +++++++++++++++++---------- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/web/src/i18n/locales/en.json b/web/src/i18n/locales/en.json index 7ee93831..66a52035 100644 --- a/web/src/i18n/locales/en.json +++ b/web/src/i18n/locales/en.json @@ -1406,7 +1406,8 @@ "可在初始化后修改": "Can be modified after initialization", "初始化系统": "Initialize system", "支持众多的大模型供应商": "Supporting various LLM providers", - "新一代大模型网关与AI资产管理系统,一键接入主流大模型,轻松管理您的AI资产": "Next-generation LLM gateway and AI asset management system, one-click integration with mainstream models, easily manage your AI assets", + "统一的大模型接口网关": "The Unified LLMs API Gateway", + "更好的价格,更好的稳定性,无需订阅": "Better price, better stability, no subscription required", "开始使用": "Get Started", "关于我们": "About Us", "关于项目": "About Project", diff --git a/web/src/pages/Home/index.js b/web/src/pages/Home/index.js index bb647a34..3d2b6ce1 100644 --- a/web/src/pages/Home/index.js +++ b/web/src/pages/Home/index.js @@ -86,28 +86,35 @@ const Home = () => {
{/* Banner 部分 */}
-
+
{/* 居中内容区 */}
-

- {statusState?.status?.system_name || 'New API'} +

+ {i18n.language === 'en' ? ( + <> + The Unified
+ LLMs API Gateway + + ) : ( + t('统一的大模型接口网关') + )}

+

+ {t('更好的价格,更好的稳定性,无需订阅')} +

-

- {t('新一代大模型网关与AI资产管理系统,一键接入主流大模型,轻松管理您的AI资产')} -

{/* 操作按钮 */} -
+
- {isDemoSiteMode && statusState?.status?.version ? (