From 9d08c5b58f20a4987d9558fc297ee6de3b9a93bd Mon Sep 17 00:00:00 2001 From: EvanLin3141 Date: Wed, 12 Feb 2025 01:27:34 +0000 Subject: [PATCH] FINISH: Register Page Could do more design --- frontend/src/components/Auth/AuthModal.tsx | 2 +- frontend/src/components/Auth/LoginForm.tsx | 14 +- frontend/src/components/Auth/RegisterForm.tsx | 131 +++++++++++------- 3 files changed, 86 insertions(+), 61 deletions(-) diff --git a/frontend/src/components/Auth/AuthModal.tsx b/frontend/src/components/Auth/AuthModal.tsx index 5d74b74..e1826d3 100644 --- a/frontend/src/components/Auth/AuthModal.tsx +++ b/frontend/src/components/Auth/AuthModal.tsx @@ -83,7 +83,7 @@ const AuthModal: React.FC = ({ onClose }) => {
{/*Border Container*/} diff --git a/frontend/src/components/Auth/LoginForm.tsx b/frontend/src/components/Auth/LoginForm.tsx index d78b1da..cdd27a6 100644 --- a/frontend/src/components/Auth/LoginForm.tsx +++ b/frontend/src/components/Auth/LoginForm.tsx @@ -104,33 +104,33 @@ const LoginForm: React.FC = ({ onSubmit, onForgotPassword }) => {

Login

+ md:max-w-[20em] lg:max-w-[27.5em] min-w-[10em] h-[27.5em] border border-white/10">
{errors.general && ( -

{errors.general}

+

{errors.general}

)} {errors.username && ( -

{errors.username}

+

{errors.username}

)} {errors.password && ( -

{errors.password}

+

{errors.password}

)} -
+
= ({ onSubmit }) => { }; return ( - - {errors.general && ( -

{errors.general}

- )} + <> +
+
+

Register

+
- {errors.username && ( -

{errors.username}

- )} - + +
+ {errors.general && ( +

{errors.general}

+ )} - {errors.email && ( -

{errors.email}

- )} - + {errors.username && ( +

{errors.username}

+ )} + +
- {errors.password && ( -

{errors.password}

- )} - +
+ {errors.email && ( +

{errors.email}

+ )} + +
- {errors.confirmPassword && ( -

{errors.confirmPassword}

- )} - +
+ {errors.password && ( +

{errors.password}

+ )} + +
+
- - + {errors.confirmPassword && ( +

{errors.confirmPassword}

+ )} + +
+ + + +
+
+ +
+
+ +
+ + ); };