From f97c0ab00c8ac78857f4afaa7ff4ab3eb945baf8 Mon Sep 17 00:00:00 2001 From: logan Date: Wed, 27 May 2026 18:06:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BE=A7=E8=BE=B9=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E6=81=A2=E5=A4=8D=E5=8E=9F=E5=A7=8B=E7=AE=80=E6=B4=81=E7=89=88?= =?UTF-8?q?=20+=20=E6=98=9F=E9=99=85=E6=BC=AB=E6=B8=B8=E6=B5=81=E6=98=9F?= =?UTF-8?q?=E6=96=B9=E5=90=91=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - SidePanel: 恢复 commit 46054c8 原始版(左38%暗色品牌区+右62%登录表单) - 去掉深海鲸歌动画效果,回归简洁专业风格 - AppearanceSettings: 缩略图预览同步更新 - CosmosView: 流星方向从左上→右下改为右上→左下(符合真实流星观感) --- frontend/src/components/login/CosmosView.tsx | 30 +- frontend/src/components/login/SidePanel.tsx | 319 +++++-------------- frontend/src/pages/AppearanceSettings.tsx | 41 ++- frontend/src/pages/LoginPage.tsx | 2 +- 4 files changed, 122 insertions(+), 270 deletions(-) diff --git a/frontend/src/components/login/CosmosView.tsx b/frontend/src/components/login/CosmosView.tsx index 09329f6..850c16e 100644 --- a/frontend/src/components/login/CosmosView.tsx +++ b/frontend/src/components/login/CosmosView.tsx @@ -9,8 +9,8 @@ const KEYFRAMES = ` } @keyframes meteor-fly { - 0% { transform: translateX(0) translateY(0) rotate(-45deg); opacity: 1; } - 100% { transform: translateX(600px) translateY(600px) rotate(-45deg); opacity: 0; } + 0% { transform: translateX(0) translateY(0) rotate(-135deg); opacity: 1; } + 100% { transform: translateX(-600px) translateY(600px) rotate(-135deg); opacity: 0; } } @keyframes planet-rotate { @@ -37,9 +37,9 @@ const KEYFRAMES = ` } @keyframes shooting-star { - 0% { transform: translateX(0) translateY(0) rotate(-35deg) scaleX(1); opacity: 1; } + 0% { transform: translateX(0) translateY(0) rotate(-125deg) scaleX(1); opacity: 1; } 70% { opacity: 0.6; } - 100% { transform: translateX(500px) translateY(500px) rotate(-35deg) scaleX(0.5); opacity: 0; } + 100% { transform: translateX(-500px) translateY(500px) rotate(-125deg) scaleX(0.5); opacity: 0; } } `; @@ -196,17 +196,17 @@ export default function CosmosView(): JSX.Element { /> ))} - {/* ── 流星 ── */} + {/* ── 流星:从右上向左下飞,头部亮尾部暗 ── */}
- {/* ========== Left 40% — Deep Sea Scene ========== */} +
+ {/* Left Panel — 38% Brand Area */}
- {/* --- Deep-sea light shafts --- */} + {/* Subtle decorative gradient orb */}
-
-
- {/* --- 5 Wave layers --- */} - {waveLayers.map((wave, i) => ( + {/* Top brand section */} +
+ {/* Logo mark */}
- ))} + > + + + + + +
- {/* --- 15 Bioluminescent particles --- */} - {biolumParticles.map((p, i) => ( -
- ))} - - {/* --- Brand content (left-aligned, bottom section) --- */} -
- {/* Main title */} -
- SQL审核平台 -
- {/* Subtitle */} -
- 让数据安全如深海般沉静 -
- {/* Feature pills */} -
- {featurePills.map((pill) => ( - - {pill} - - ))} + {/* Stacked large text — left aligned */} +
+
+ SQL审核 +
+
+ 平台 +
+

+ 企业级数据库审核与合规管理解决方案,为团队提供安全可靠的数据管理体验。 +

- {/* --- Keyframes (ocean- prefix) --- */} - + {/* Bottom feature pills */} +
+ {features.map((tag) => ( + + {tag} + + ))} +
- {/* ========== Right 60% — Login Form ========== */} + {/* Right Panel — 62% Login Form */}
- {/* Form title */} -

+

欢迎回来

-

- 登录你的工作空间 +

+ 登录以继续

- {/* Error message */} {error && ( -
+
{error}
)} - {/* Username field */}
-
- {/* Password field */} -
-