diff --git a/packages/webui/src/components/pages/login-page.tsx b/packages/webui/src/components/pages/login-page.tsx index f0c7e402..8667e8f6 100644 --- a/packages/webui/src/components/pages/login-page.tsx +++ b/packages/webui/src/components/pages/login-page.tsx @@ -35,6 +35,7 @@ function readLoginFx(): boolean { export function LoginPage({ onLogin }: LoginPageProps) { const { appearance } = useTheme(); const customBg = appearance.background.type !== 'none'; + const reduce = appearance.reduceMotion || appearance.disableMotion; // The login page must never carry operator custom CSS. applyAppearance gates // it on a token, but an in-session logout / 401 expiry won't re-run it, so @@ -71,12 +72,12 @@ export function LoginPage({ onLogin }: LoginPageProps) { {/* Animated wavy-line background (device-local toggle) */} {fxOn && } - {/* Sky gradient backdrop — also softens the waves so the card stands out */} + {/* Soft glow backdrop — also helps the frosted card read against the waves */}
@@ -85,46 +86,48 @@ export function LoginPage({ onLogin }: LoginPageProps) {
- - -
-
- SnowLuma + {/* Frosted "vibrancy" card */} + + + {/* Centered brand focal point */} +
+
+ SnowLuma
-
- {APP_NAME} - v{APP_VERSION} +
+ {APP_NAME} + v{APP_VERSION}
-

OneBot v11 协议网关 · 安全登录

+

OneBot v11 协议网关 · 安全登录

-
+ 0 ? { x: [0, -8, 8, -6, 6, -3, 3, 0] } : {}} transition={{ duration: 0.4 }} className="relative" > - + setPassword(e.target.value)} autoFocus - className="h-11 pl-9 pr-10 text-sm" + className="h-12 rounded-xl bg-background/40 pl-10 pr-11 text-sm" /> -

+

© {new Date().getFullYear()} SnowLuma. All rights reserved.

- {/* Perf escape hatch for the animated background */} -
- -
+ {/* 灵动岛-style frosted capsule: perf escape hatch for the background */} + setHelpOpen(true)} + whileHover={reduce ? undefined : { scale: 1.04 }} + whileTap={reduce ? undefined : { scale: 0.97 }} + transition={{ type: 'spring', stiffness: 420, damping: 26 }} + className="mt-5 inline-flex items-center gap-2 rounded-full border border-border/50 bg-background/45 px-4 py-2 text-[12px] font-medium text-muted-foreground shadow-lg shadow-black/5 backdrop-blur-xl transition-colors hover:text-foreground supports-[backdrop-filter]:bg-background/35 cursor-pointer outline-none focus-visible:ring-[3px] focus-visible:ring-ring/40" + > + + 我觉得这个界面很卡怎么办? +
- + 界面有点卡顿? @@ -179,7 +183,7 @@ export function LoginPage({ onLogin }: LoginPageProps) { -
+

登录页动态背景

{fxOn ? '已开启 · 关闭后背景为静态' : '已关闭 · 背景为静态'}