From 07409abb3b77031798b4f4c5e16538c963dbec27 Mon Sep 17 00:00:00 2001 From: MatrixSeven Date: Mon, 8 Sep 2025 10:45:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:UI=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chuan-next/src/app/HomePage.tsx | 18 +++++--- chuan-next/src/app/globals.css | 1 - chuan-next/src/components/Footer.tsx | 64 ++++++++++++++++++++++++++++ chuan-next/src/components/Hero.tsx | 17 +------- 4 files changed, 78 insertions(+), 22 deletions(-) create mode 100644 chuan-next/src/components/Footer.tsx diff --git a/chuan-next/src/app/HomePage.tsx b/chuan-next/src/app/HomePage.tsx index c97e275..6eeed52 100644 --- a/chuan-next/src/app/HomePage.tsx +++ b/chuan-next/src/app/HomePage.tsx @@ -4,6 +4,7 @@ import React from 'react'; import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; import { Upload, MessageSquare, Monitor, Users, Settings } from 'lucide-react'; import Hero from '@/components/Hero'; +import Footer from '@/components/Footer'; import { WebRTCFileTransfer } from '@/components/WebRTCFileTransfer'; import { WebRTCTextImageTransfer } from '@/components/WebRTCTextImageTransfer'; import DesktopShare from '@/components/DesktopShare'; @@ -45,12 +46,13 @@ export default function HomePage() { }; return ( -
-
- {/* Hero Section */} -
- -
+
+
+
+ {/* Hero Section */} +
+ +
{/* WebRTC 支持检测加载状态 */} {!isChecked && ( @@ -171,8 +173,12 @@ export default function HomePage() {
)} +
+ {/* 页脚 */} +
+ {/* WebRTC 不支持提示模态框 */} {webrtcSupport && ( +
+ {/* 分割线 */} +
+ + {/* 链接区域 */} + + + {/* 版权信息 */} +
+

+ 基于 WebRTC 的端到端文件传输服务 +

+
+
+
+ ); +} diff --git a/chuan-next/src/components/Hero.tsx b/chuan-next/src/components/Hero.tsx index e866d05..58c2511 100644 --- a/chuan-next/src/components/Hero.tsx +++ b/chuan-next/src/components/Hero.tsx @@ -11,8 +11,6 @@ export default function Hero() { 文件快传

- 安全、快速、简单的传输服务 -
基于WebRTC的端到端服务 - 无需注册,即传即用

@@ -25,7 +23,7 @@ export default function Hero() { className="inline-flex items-center gap-1 px-3 py-1.5 text-xs sm:text-sm text-slate-600 hover:text-slate-800 bg-slate-100 hover:bg-slate-200 rounded-full transition-colors duration-200 border border-slate-200 hover:border-slate-300" > - 开源项目 + 开源地址
-
- - https://github.com/MatrixSeven/file-transfer-go - -
- {/* 分割线 */} -
+
); }