From 6d7d4292ef2b1cf94252943e26ce307344822074 Mon Sep 17 00:00:00 2001 From: t0ng7u Date: Wed, 25 Jun 2025 22:57:04 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AB=20feat(ui):=20introduce=20disperse?= =?UTF-8?q?d=20blur-ball=20background=20to=20all=20auth=20views?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit refreshes the visual design of the authentication pages and aligns them with the Home banner style. Details • LoginForm.js / RegisterForm.js / PasswordResetForm.js / PasswordResetConfirm.js – Wrap top-level container with `relative overflow-hidden` to provide a positioning context. – Inject two decorative blur balls: ▸ Indigo ball on the top-right (`blur-ball-indigo`). ▸ Teal ball on the middle-left (`blur-ball-teal`). – Disabled the default X-axis transform on the indigo ball to keep the ball anchored to the corner. – Removed redundant `mt-[64px]` from the outer container and shifted it to the inner wrapper to maintain vertical rhythm without affecting the background placement. Result The auth screens now feature subtle, non-intrusive atmospheric gradients in the top-right and mid-left corners, offering a cohesive look & feel across the application without obstructing the main content. --- web/src/components/auth/LoginForm.js | 7 +++++-- web/src/components/auth/PasswordResetConfirm.js | 7 +++++-- web/src/components/auth/PasswordResetForm.js | 7 +++++-- web/src/components/auth/RegisterForm.js | 7 +++++-- web/src/pages/Home/index.js | 2 +- 5 files changed, 21 insertions(+), 9 deletions(-) diff --git a/web/src/components/auth/LoginForm.js b/web/src/components/auth/LoginForm.js index 9b67a806..988be4a2 100644 --- a/web/src/components/auth/LoginForm.js +++ b/web/src/components/auth/LoginForm.js @@ -501,8 +501,11 @@ const LoginForm = () => { }; return ( -
-
+
+ {/* 背景模糊晕染球 */} +
+
+
{showEmailLogin || !(status.github_oauth || status.oidc_enabled || status.wechat_login || status.linuxdo_oauth || status.telegram_oauth) ? renderEmailLoginForm() : renderOAuthOptions()} diff --git a/web/src/components/auth/PasswordResetConfirm.js b/web/src/components/auth/PasswordResetConfirm.js index 85edd89e..e7809298 100644 --- a/web/src/components/auth/PasswordResetConfirm.js +++ b/web/src/components/auth/PasswordResetConfirm.js @@ -78,8 +78,11 @@ const PasswordResetConfirm = () => { } return ( -
-
+
+ {/* 背景模糊晕染球 */} +
+
+
diff --git a/web/src/components/auth/PasswordResetForm.js b/web/src/components/auth/PasswordResetForm.js index 734d24fd..9a782117 100644 --- a/web/src/components/auth/PasswordResetForm.js +++ b/web/src/components/auth/PasswordResetForm.js @@ -78,8 +78,11 @@ const PasswordResetForm = () => { } return ( -
-
+
+ {/* 背景模糊晕染球 */} +
+
+
diff --git a/web/src/components/auth/RegisterForm.js b/web/src/components/auth/RegisterForm.js index d1e041ce..00cc98fc 100644 --- a/web/src/components/auth/RegisterForm.js +++ b/web/src/components/auth/RegisterForm.js @@ -542,8 +542,11 @@ const RegisterForm = () => { }; return ( -
-
+
+ {/* 背景模糊晕染球 */} +
+
+
{showEmailRegister || !(status.github_oauth || status.oidc_enabled || status.wechat_login || status.linuxdo_oauth || status.telegram_oauth) ? renderEmailRegisterForm() : renderOAuthOptions()} diff --git a/web/src/pages/Home/index.js b/web/src/pages/Home/index.js index 52d6bb9a..c91e19f7 100644 --- a/web/src/pages/Home/index.js +++ b/web/src/pages/Home/index.js @@ -104,7 +104,7 @@ const Home = () => {
{/* Banner 部分 */}
- {/* 背景模糊晕染球*/} + {/* 背景模糊晕染球 */}