From f6a64106267432b8f17134d1483f03da1f0085c7 Mon Sep 17 00:00:00 2001 From: fawney19 Date: Tue, 6 Jan 2026 18:27:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20GitHub=20=E4=BB=93?= =?UTF-8?q?=E5=BA=93=E9=93=BE=E6=8E=A5=E5=88=B0=E9=A1=B5=E9=9D=A2=E5=A4=B4?= =?UTF-8?q?=E9=83=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 GithubIcon 组件复用 GitHub 图标 - MainLayout 和 Home 页面头部添加 GitHub 链接按钮 - 重构 Home 页面 header 布局结构 --- frontend/src/components/icons/GithubIcon.vue | 13 +++ frontend/src/layouts/MainLayout.vue | 11 ++ frontend/src/views/public/Home.vue | 117 +++++++++---------- 3 files changed, 77 insertions(+), 64 deletions(-) create mode 100644 frontend/src/components/icons/GithubIcon.vue diff --git a/frontend/src/components/icons/GithubIcon.vue b/frontend/src/components/icons/GithubIcon.vue new file mode 100644 index 0000000..77356bd --- /dev/null +++ b/frontend/src/components/icons/GithubIcon.vue @@ -0,0 +1,13 @@ + diff --git a/frontend/src/layouts/MainLayout.vue b/frontend/src/layouts/MainLayout.vue index 5d82508..439804a 100644 --- a/frontend/src/layouts/MainLayout.vue +++ b/frontend/src/layouts/MainLayout.vue @@ -280,6 +280,16 @@ class="h-4 w-4" /> + + + + @@ -322,6 +332,7 @@ import { X, Mail, } from 'lucide-vue-next' +import GithubIcon from '@/components/icons/GithubIcon.vue' const router = useRouter() const route = useRoute() diff --git a/frontend/src/views/public/Home.vue b/frontend/src/views/public/Home.vue index 9548831..e52e618 100644 --- a/frontend/src/views/public/Home.vue +++ b/frontend/src/views/public/Home.vue @@ -20,10 +20,11 @@ -
-
-
- +
+
+ +
+ - + - -
- + + + 控制台 + + +
- - 控制台 - - -
+ class="h-4 w-4" + /> + + + + +
@@ -336,31 +349,6 @@ - - - @@ -378,6 +366,7 @@ import { SunMoon, Terminal } from 'lucide-vue-next' +import GithubIcon from '@/components/icons/GithubIcon.vue' import { useAuthStore } from '@/stores/auth' import { useDarkMode } from '@/composables/useDarkMode' import { useClipboard } from '@/composables/useClipboard'