From 2723bd66ad4628a7b998414322912b97c938f22f Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 14 Jun 2026 16:13:53 +0800 Subject: [PATCH] style: revert to cyan accent, fix dark hover button priority --- .../components/layout/components/footer.tsx | 6 ++-- .../layout/components/public-header.tsx | 12 +++---- .../home/components/sections/hero.tsx | 34 +++++++++---------- web/default/src/styles/theme.css | 12 +++---- 4 files changed, 32 insertions(+), 32 deletions(-) diff --git a/web/default/src/components/layout/components/footer.tsx b/web/default/src/components/layout/components/footer.tsx index cb311a945..108187fe4 100644 --- a/web/default/src/components/layout/components/footer.tsx +++ b/web/default/src/components/layout/components/footer.tsx @@ -58,7 +58,7 @@ function FooterLinkItem(props: { link: FooterLink }) { href={props.link.href} target='_blank' rel='noopener noreferrer' - className='text-[#8B8D97] hover:text-[#28C840] text-sm transition-colors duration-200' + className='text-[#8B8D97] hover:text-[#00D2FF] text-sm transition-colors duration-200' > {label} @@ -110,7 +110,7 @@ function LegalLinks(props: { leadingSeparator?: boolean }) { )} {item.label} @@ -131,7 +131,7 @@ function ProjectAttribution(props: { currentYear: number; inline?: boolean }) { href='https://git.viaeon.com/admin/new-api' target='_blank' rel='noopener noreferrer' - className='text-[#8B8D97] hover:text-[#28C840] font-medium transition-colors' + className='text-[#8B8D97] hover:text-[#00D2FF] font-medium transition-colors' > {t('ModelsToken')} diff --git a/web/default/src/components/layout/components/public-header.tsx b/web/default/src/components/layout/components/public-header.tsx index 7a9ff1d95..c541967ae 100644 --- a/web/default/src/components/layout/components/public-header.tsx +++ b/web/default/src/components/layout/components/public-header.tsx @@ -260,11 +260,11 @@ export function PublicHeader(props: PublicHeaderProps) {
)} - {showLanguageSwitcher && } - {showThemeSwitch && } + {showLanguageSwitcher && } + {showThemeSwitch && } {showNotifications && ( } > {t('Sign in')} @@ -298,7 +298,7 @@ export function PublicHeader(props: PublicHeaderProps) { {/* Mobile: compact actions + hamburger */}
- {showThemeSwitch && } + {showThemeSwitch && } {showAuthButtons && !loading && isAuthenticated && ( )} @@ -405,7 +405,7 @@ export function PublicHeader(props: PublicHeaderProps) { setMobileOpen(false)} - className='bg-[#28C840] text-[#0A0E14] inline-flex h-10 items-center justify-center rounded-lg text-sm font-semibold transition-opacity hover:opacity-90 active:opacity-80' + className='bg-[#00D2FF] text-[#0A0E14] inline-flex h-10 items-center justify-center rounded-lg text-sm font-semibold transition-opacity hover:opacity-90 active:opacity-80' > {isAuthenticated ? t('Go to Dashboard') : t('Sign in')} diff --git a/web/default/src/features/home/components/sections/hero.tsx b/web/default/src/features/home/components/sections/hero.tsx index 642d2a97d..684bd514f 100644 --- a/web/default/src/features/home/components/sections/hero.tsx +++ b/web/default/src/features/home/components/sections/hero.tsx @@ -28,14 +28,14 @@ interface HeroProps { isAuthenticated?: boolean } -/* Termius-dark terminal palette */ +/* Termius-dark palette: black bg, cyan accent */ const T = { bg: '#0A0E14', surface: '#0F1419', border: '#1A1F29', + accent: '#00D2FF', + accentDim: '#0099BB', green: '#28C840', - greenDim: '#1B7A2B', - cyan: '#00D2FF', yellow: '#FEBC2E', gray: '#5C6370', grayLight: '#8B8D97', @@ -67,7 +67,7 @@ export function Hero(props: HeroProps) { className='pointer-events-none absolute inset-0' style={{ background: - 'radial-gradient(ellipse 60% 35% at 50% -5%, rgba(40,200,64,0.06) 0%, transparent 70%)', + 'radial-gradient(ellipse 60% 35% at 50% -5%, rgba(0,210,255,0.06) 0%, transparent 70%)', }} /> @@ -76,7 +76,7 @@ export function Hero(props: HeroProps) {

{t('Unified LLM Gateway')}

@@ -89,7 +89,7 @@ export function Hero(props: HeroProps) { {props.isAuthenticated ? (