From 4b33f17b4b1daf299f2fc08a4e36899175aa73ce Mon Sep 17 00:00:00 2001 From: Dylan De Faoite Date: Tue, 3 Mar 2026 17:07:31 +0000 Subject: [PATCH] fix: inconsistent styling in login page --- frontend/src/pages/Login.tsx | 73 ++++++++++++++++++++++++++++-------- 1 file changed, 58 insertions(+), 15 deletions(-) diff --git a/frontend/src/pages/Login.tsx b/frontend/src/pages/Login.tsx index 2c67511..4916eee 100644 --- a/frontend/src/pages/Login.tsx +++ b/frontend/src/pages/Login.tsx @@ -5,6 +5,11 @@ import StatsStyling from "../styles/stats_styling"; const styles = StatsStyling; const API_BASE_URL = "http://localhost:5000"; +const controlStyle = { + width: "100%", + maxWidth: "100%", + boxSizing: "border-box" as const, +}; const LoginPage = () => { const navigate = useNavigate(); @@ -71,18 +76,17 @@ const LoginPage = () => { }; return ( -
-
+
-
-

+
+

{isRegisterMode ? "Create your account" : "Welcome back"}

@@ -92,11 +96,14 @@ const LoginPage = () => {

-
+ setUsername(event.target.value)} required @@ -106,7 +113,7 @@ const LoginPage = () => { setEmail(event.target.value)} required @@ -116,13 +123,17 @@ const LoginPage = () => { setPassword(event.target.value)} required /> -

-
); };