Skip to content

Commit b755df1

Browse files
authored
Merge pull request #100 from Simpleyyt/feat/github-button
feat: add github button
2 parents c204e08 + bdf5b39 commit b755df1

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

frontend/src/pages/HomePage.vue

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,24 @@
1717
</div>
1818
</div>
1919
<div class="flex items-center gap-2">
20+
<a href="https://github.com/simpleyyt/ai-manus"
21+
target="_blank"
22+
class="items-center justify-center whitespace-nowrap font-medium transition-colors hover:opacity-90 active:opacity-80 px-[12px] gap-[6px] text-sm min-w-16 outline outline-1 -outline-offset-1 hover:bg-[var(--fill-tsp-white-light)] text-[var(--text-primary)] outline-[var(--border-btn-main)] bg-transparent clickable hidden sm:flex rounded-[100px] relative h-[32px] group"
23+
title="Visit GitHub Repository">
24+
<Github class="size-[18px]" />
25+
GitHub
26+
</a>
2027
<div class="relative flex items-center" aria-expanded="false" aria-haspopup="dialog"
21-
@mouseenter="handleUserMenuEnter"
22-
@mouseleave="handleUserMenuLeave">
28+
@mouseenter="handleUserMenuEnter" @mouseleave="handleUserMenuLeave">
2329
<div class="relative flex items-center justify-center font-bold cursor-pointer flex-shrink-0">
2430
<div
2531
class="relative flex items-center justify-center font-bold flex-shrink-0 rounded-full overflow-hidden"
2632
style="width: 32px; height: 32px; font-size: 16px; color: rgba(255, 255, 255, 0.9); background-color: rgb(59, 130, 246);">
2733
{{ avatarLetter }}</div>
2834
</div>
2935
<!-- User Menu -->
30-
<div v-if="showUserMenu"
31-
@mouseenter="handleUserMenuEnter"
32-
@mouseleave="handleUserMenuLeave"
33-
class="absolute top-full right-0 mt-1 mr-[-15px] z-50">
36+
<div v-if="showUserMenu" @mouseenter="handleUserMenuEnter" @mouseleave="handleUserMenuLeave"
37+
class="absolute top-full right-0 mt-1 mr-[-15px] z-50">
3438
<UserMenu />
3539
</div>
3640
</div>
@@ -71,7 +75,7 @@ import { useI18n } from 'vue-i18n';
7175
import ChatBox from '../components/ChatBox.vue';
7276
import { createSession } from '../api/agent';
7377
import { showErrorToast } from '../utils/toast';
74-
import { Bot, PanelLeft } from 'lucide-vue-next';
78+
import { Bot, PanelLeft, Github } from 'lucide-vue-next';
7579
import ManusLogoTextIcon from '../components/icons/ManusLogoTextIcon.vue';
7680
import type { FileInfo } from '../api/file';
7781
import { useLeftPanel } from '../composables/useLeftPanel';

0 commit comments

Comments
 (0)