From 909c91572bc4bf38d2a1988de00ae49d9480a705 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=B7=E9=BE=99?= Date: Fri, 29 Aug 2025 07:08:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/signup/page.tsx | 7 +++++-- components/layout/top-bar.tsx | 4 ++-- components/pages/login.tsx | 4 ++-- components/pages/style/login.css | 3 +-- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/app/signup/page.tsx b/app/signup/page.tsx index 06f0ac0..4d411be 100644 --- a/app/signup/page.tsx +++ b/app/signup/page.tsx @@ -29,7 +29,7 @@ export default function SignupPage() { if (password.length > 18) { return "Password cannot exceed 18 characters"; } - if (!/^(?=.*[a-zA-Z])(?=.*\d)[a-zA-Z\d]{8,18}$/.test(password)) { + if (!/^(?=.*[a-zA-Z])(?=.*\d)[a-zA-Z\d!@#$%^*&]{8,18}$/.test(password)) { return "Password must contain both letters and numbers"; } return ""; @@ -197,7 +197,7 @@ export default function SignupPage() {
✓ Passwords match

)} +

+ Password requirements: 8-18 characters, must contain letters and numbers, can include !@#$%^*& +

diff --git a/components/layout/top-bar.tsx b/components/layout/top-bar.tsx index 9bdb9b9..d523ece 100644 --- a/components/layout/top-bar.tsx +++ b/components/layout/top-bar.tsx @@ -218,9 +218,9 @@ export function TopBar({ variant="ghost" size="sm" onClick={() => router.push("/create")} - className="bg-white text-black rounded-full hover:bg-gray-100" + className="bg-white text-black rounded-full hover:scale-105" > - Go Start + Go Started ) : (