diff --git a/web/public/example.png b/web/public/example.png deleted file mode 100644 index 257a3dd9..00000000 Binary files a/web/public/example.png and /dev/null differ diff --git a/web/src/pages/Home/index.js b/web/src/pages/Home/index.js index 36fb8213..bb647a34 100644 --- a/web/src/pages/Home/index.js +++ b/web/src/pages/Home/index.js @@ -4,8 +4,7 @@ import { API, showError, isMobile } from '../../helpers'; import { StatusContext } from '../../context/Status'; import { marked } from 'marked'; import { useTranslation } from 'react-i18next'; -import { IconGithubLogo } from '@douyinfe/semi-icons'; -import exampleImage from '/example.png'; +import { IconGithubLogo, IconPlay, IconFile } from '@douyinfe/semi-icons'; import { Link } from 'react-router-dom'; import NoticeModal from '../../components/layout/NoticeModal'; import { Moonshot, OpenAI, XAI, Zhipu, Volcengine, Cohere, Claude, Gemini, Suno, Minimax, Wenxin, Spark, Qingyan, DeepSeek, Qwen, Midjourney, Grok, AzureAI, Hunyuan, Xinference } from '@lobehub/icons'; @@ -20,6 +19,7 @@ const Home = () => { const [noticeVisible, setNoticeVisible] = useState(false); const isDemoSiteMode = statusState?.status?.demo_site_enabled || false; + const docsLink = statusState?.status?.docs_link || ''; useEffect(() => { const checkNoticeAndShow = async () => { @@ -85,132 +85,123 @@ const Home = () => { {homePageContentLoaded && homePageContent === '' ? (
{/* Banner 部分 */} -
-
- {/* 左侧内容区 */} -
-
-

+
+
+ {/* 居中内容区 */} +
+
+

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

- {statusState?.status?.version && ( - - {statusState.status.version} - - )}
-

+

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

{/* 操作按钮 */} -
+
- - {isDemoSiteMode && ( + {isDemoSiteMode && statusState?.status?.version ? ( + ) : ( + docsLink && ( + + ) )}
{/* 框架兼容性图标 */} -
-
- +
+
+ {t('支持众多的大模型供应商')}
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
- 30+ +
+ 30+
- - {/* 右侧图片区域 - 在小屏幕上隐藏或调整位置 */} -
-
-
-
-
- - application demo -
@@ -223,7 +214,7 @@ const Home = () => { /> ) : (
)} @@ -234,3 +225,4 @@ const Home = () => { }; export default Home; +