From df0b79a87d56f62f0e476fd003273445f5352f0f Mon Sep 17 00:00:00 2001
From: DrSmoothl <1787882683@qq.com>
Date: Sun, 14 Jun 2026 00:47:56 +0800
Subject: [PATCH] feat(webui): restyle login page with Apple-style vibrancy
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- Frosted "vibrancy" card (bg-card/65 + backdrop-blur-2xl) floating over the
wavy background, with a centered brand focal point (logo tile, name,
version, subtitle).
- Larger rounded fields/button (h-12, rounded-xl) for a calmer iOS feel.
- The "我觉得这个界面很卡怎么办?" help line becomes a 灵动岛-style frosted
capsule (rounded-full, blur, float, spring on hover/tap).
- New entrance/hover motion gated on reduceMotion/disableMotion.
---
.../webui/src/components/pages/login-page.tsx | 74 ++++++++++---------
1 file changed, 39 insertions(+), 35 deletions(-)
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 &&
+ {/* Frosted "vibrancy" card */}
+
OneBot v11 协议网关 · 安全登录
+OneBot v11 协议网关 · 安全登录
+
© {new Date().getFullYear()} SnowLuma. All rights reserved.
- {/* Perf escape hatch for the animated background */} -