|
1 | 1 | <template> |
2 | | - <!-- Top Navbar: Feishu style minimal header --> |
3 | | - <header class="fixed top-0 left-0 right-0 z-50" :style="navStyle"> |
| 2 | + <!-- Top Navbar: Feishu style minimal header (hidden on login page) --> |
| 3 | + <header v-if="!isLoginPage" class="fixed top-0 left-0 right-0 z-50" :style="navStyle"> |
4 | 4 | <div class="flex items-center justify-between h-14 px-6 md:px-[10%]"> |
5 | 5 | <div class="flex items-center gap-8"> |
6 | | - <div class="font-semibold text-[20px]" style="color:#1F2329">TinyFlow</div> |
| 6 | + <div class="flex items-center gap-2"> |
| 7 | + <img src="/logo.png" alt="TinyFlow" class="h-7 w-auto" /> |
| 8 | + <div class="font-semibold text-[20px]" style="color:#1F2329">TinyFlow</div> |
| 9 | + </div> |
7 | 10 | <nav class="hidden md:flex items-center gap-6"> |
8 | 11 | <a href="#" @click.prevent="$router.push('/')" class="text-[14px] hover:text-[#3370FF] transition" style="color:#646A73">{{ $t('common.home') }}</a> |
9 | 12 | <a href="#" @click.prevent="goToDashboard" class="text-[14px] hover:text-[#3370FF] transition" style="color:#646A73">{{ $t('nav.dashboard') }}</a> |
|
43 | 46 | </header> |
44 | 47 |
|
45 | 48 | <!-- Rest of page --> |
46 | | - <router-view v-if="isStatsOrDashboardOrAbout" class="pt-14" /> |
47 | | - <main class="min-h-screen pt-14" v-show="!isStatsOrDashboardOrAbout" style="background-color:var(--tf-bg-page)"> |
| 49 | + <router-view v-if="isRouterViewPage" :class="{ 'pt-14': !isLoginPage }" /> |
| 50 | + <main class="min-h-screen pt-14" v-show="!isRouterViewPage" style="background-color:var(--tf-bg-page)"> |
48 | 51 | <section class="hero pt-24 pb-16"> |
49 | 52 | <div class="hero-inner max-w-5xl mx-auto px-6 flex flex-col items-center text-center gap-8"> |
50 | 53 | <!-- 标题区 --> |
@@ -286,12 +289,16 @@ export default { |
286 | 289 | }, |
287 | 290 | githubBtnStyle() { |
288 | 291 | return { |
289 | | - background: 'linear-gradient(135deg, #3370FF 0%, #2B5FE6 45%, #38BDF8 100%)' |
| 292 | + background: 'linear-gradient(135deg, #1D9BF0 0%, #2B6BFF 50%, #37B4FF 100%)' |
290 | 293 | } |
291 | 294 | }, |
292 | | - isStatsOrDashboardOrAbout() { |
| 295 | + isLoginPage() { |
| 296 | + const p = this.$route?.path || '' |
| 297 | + return p === '/login' |
| 298 | + }, |
| 299 | + isRouterViewPage() { |
293 | 300 | const p = this.$route?.path || '' |
294 | | - return p.startsWith('/stats/') || p === '/dashboard' || p === '/login' || p === '/about' |
| 301 | + return p.startsWith('/stats/') || p === '/dashboard' || p === '/login' || p === '/about' || p === '/' |
295 | 302 | }, |
296 | 303 | statsMap() { |
297 | 304 | const map = {} |
|
0 commit comments