router.push("/")}
diff --git a/components/pages/home-page2.tsx b/components/pages/home-page2.tsx
index 209db41..0eb4bba 100644
--- a/components/pages/home-page2.tsx
+++ b/components/pages/home-page2.tsx
@@ -217,6 +217,11 @@ export function HomePage2() {
const NavBar = () => {
if (homeTabs.length === 0) return null;
+ useEffect(() => {
+ const handler = () => setMenuOpen((v) => !v);
+ window.addEventListener('home-menu-toggle' as any, handler as any);
+ return () => window.removeEventListener('home-menu-toggle' as any, handler as any);
+ }, []);
return (
@@ -234,14 +239,8 @@ export function HomePage2() {
))}
- {/* 移动端开关 */}
-
setMenuOpen((v) => !v)}
- >
- ☰
-
+ {/* 移动端开关移至 TopBar,保留占位对齐 */}
+
{/* 移动端下拉(仅三个项) */}
{menuOpen && (
@@ -1396,9 +1395,9 @@ function HomeModule5() {
{/* 主要价格卡片 */}
Date: Tue, 23 Sep 2025 20:04:08 +0800
Subject: [PATCH 5/5] =?UTF-8?q?=E7=99=BB=E5=BD=95=20Sign=20in=20with=20Goo?=
=?UTF-8?q?gle=20=E6=B3=A8=E5=86=8C=20Sign=20up=20with=20Google?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/signup/page.tsx | 4 +++-
components/pages/login.tsx | 2 ++
components/ui/google-login-button.tsx | 12 ++++++++----
3 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/app/signup/page.tsx b/app/signup/page.tsx
index 5b21eb2..33a17e1 100644
--- a/app/signup/page.tsx
+++ b/app/signup/page.tsx
@@ -525,6 +525,8 @@ export default function SignupPage() {
variant="outline"
size="md"
className="w-full"
+ label="Sign up with Google"
+ loadingLabel="Signing up..."
/>
>
)}
@@ -578,7 +580,7 @@ export default function SignupPage() {
Please verify your email to activate your account
- We have sent an activation email to {email || "your email"}; if you don't receive it, please check your spam folder or try again later
+ We have sent an activation email to {email || "your email"}; if you don't receive it, please check your spam folder or try again later
diff --git a/components/pages/login.tsx b/components/pages/login.tsx
index 8defed2..1103b0a 100644
--- a/components/pages/login.tsx
+++ b/components/pages/login.tsx
@@ -297,6 +297,8 @@ export default function Login() {
variant="outline"
size="md"
className="w-full"
+ label="Sign in with Google"
+ loadingLabel="Signing in..."
/>
>
)}
diff --git a/components/ui/google-login-button.tsx b/components/ui/google-login-button.tsx
index df83dbc..1f4e085 100644
--- a/components/ui/google-login-button.tsx
+++ b/components/ui/google-login-button.tsx
@@ -11,6 +11,10 @@ interface GoogleLoginButtonProps {
className?: string;
size?: "sm" | "md" | "lg";
variant?: "default" | "outline";
+ /** Button label when not loading */
+ label?: string;
+ /** Button label when loading */
+ loadingLabel?: string;
}
// Google logo SVG component matching the exact reference
@@ -83,6 +87,8 @@ export const GoogleLoginButton = React.forwardRef<
className,
size = "md",
variant = "default",
+ label = "Google Login",
+ loadingLabel = "Signing in...",
...props
},
ref
@@ -147,7 +153,7 @@ export const GoogleLoginButton = React.forwardRef<
// Custom className
className
)}
- aria-label={loading ? "Signing in with Google" : "Google Login"}
+ aria-label={loading ? loadingLabel : label}
aria-disabled={isDisabled}
role="button"
tabIndex={isDisabled ? -1 : 0}
@@ -158,9 +164,7 @@ export const GoogleLoginButton = React.forwardRef<
) : (
)}
-
- {loading ? "Signing in..." : "Google Login"}
-
+ {loading ? loadingLabel : label}
);
}