diff --git a/code/frontend/src/LoginAndSignUpPage.tsx b/code/frontend/src/LoginAndSignUpPage.tsx index 98ae2de..7bfab91 100644 --- a/code/frontend/src/LoginAndSignUpPage.tsx +++ b/code/frontend/src/LoginAndSignUpPage.tsx @@ -1,38 +1,80 @@ import "./loginAndSignUpPage.css"; -import { useState } from 'react'; +import { useState } from "react"; - -function LoginAndSignUpPage(){ - const toggleLogin=(event:React.MouseEvent)=>{event.preventDefault(); setSignup(!signup)}; - const [signup, setSignup]= useState(false); - return( -
-
-
-
-
-
-
- {signup? "Sign Up": "Login"} -
-
- icon username - -
- {signup?
- icon email - -
: ""} - -
- icon password - -
- -
{signup? "Already have an account?": "Don't have an account yet?"} Click here {signup? "login.": "to sign up."}
-
-
+function LoginAndSignUpPage() { + const toggleLogin = (event: React.MouseEvent) => { + event.preventDefault(); + setSignup(!signup); + }; + const [signup, setSignup] = useState(false); + return ( +
+
+
+
- ); +
+
+ {signup ? "Sign Up" : "Login"} +
+ +
+
+ icon username + +
+ {signup ? ( +
+ icon email + +
+ ) : ( + "" + )} + +
+ icon password + +
+
+ + +
+ {signup ? "Already have an account?" : "Don't have an account yet?"}{" "} + Click here{" "} + {signup ? "to login." : "to sign up."} +
+
+
+
+ ); } -export default LoginAndSignUpPage \ No newline at end of file +export default LoginAndSignUpPage; diff --git a/code/frontend/src/loginAndSignUpPage.css b/code/frontend/src/loginAndSignUpPage.css index ca9498a..c78ecc0 100644 --- a/code/frontend/src/loginAndSignUpPage.css +++ b/code/frontend/src/loginAndSignUpPage.css @@ -11,7 +11,7 @@ .login-text{ display: flex; - padding: 8px 40px 40px 40px; + padding: 40px; flex-direction: column; justify-content: center; align-items: center; @@ -99,7 +99,7 @@ display: flex; padding: 8px 40px 40px 40px; flex-direction: column; - justify-content: center; + justify-content: space-between; align-items: center; gap: 24px; } @@ -162,8 +162,16 @@ padding:3%; display: flex; flex-direction: column; - justify-content: center; + justify-content: space-between; align-items: center; gap: 24px; - } + } + + .input-fields { + display: flex; + width: 100%; + flex-direction: column; + justify-content: center; + gap: 16px; + } } \ No newline at end of file