From 407d6df4174254ac35d4c47de48964f24cd247c1 Mon Sep 17 00:00:00 2001 From: Karan Date: Wed, 26 Mar 2025 22:50:05 +0530 Subject: [PATCH] feat:Added monitoring charts --- Frontend/src/components/Container.jsx | 2 +- Frontend/src/components/Navbar2.jsx | 4 - Frontend/src/pages/Login/LoginPage.jsx | 175 ++++++++--------- Frontend/src/pages/Login/SignupPage.jsx | 249 ++++++++++++------------ 4 files changed, 212 insertions(+), 218 deletions(-) diff --git a/Frontend/src/components/Container.jsx b/Frontend/src/components/Container.jsx index a2df22e..9aae272 100644 --- a/Frontend/src/components/Container.jsx +++ b/Frontend/src/components/Container.jsx @@ -3,7 +3,7 @@ import React from "react"; const Container = ({ children }) => { return ( <> -
{children}
+
{children}
); }; diff --git a/Frontend/src/components/Navbar2.jsx b/Frontend/src/components/Navbar2.jsx index 40c4621..74fb48c 100644 --- a/Frontend/src/components/Navbar2.jsx +++ b/Frontend/src/components/Navbar2.jsx @@ -5,8 +5,6 @@ import { Link } from "react-router-dom"; const Navbar2 = () => { const user = useSelector((store) => store.user); - - const [isLoggedIn, setLoggedIn] = useState(false); useEffect(() => { @@ -23,8 +21,6 @@ const Navbar2 = () => { const user = await responce.json(); - - dispatch(userSliceActions.addUser(user.data)); }; return ( diff --git a/Frontend/src/pages/Login/LoginPage.jsx b/Frontend/src/pages/Login/LoginPage.jsx index 9cf3644..c13457a 100644 --- a/Frontend/src/pages/Login/LoginPage.jsx +++ b/Frontend/src/pages/Login/LoginPage.jsx @@ -28,8 +28,6 @@ const LoginPage = () => { const user = await responce.json(); - - dispatch(userSliceActions.addUser(user.data)); emailElement.current.value = ""; @@ -40,97 +38,94 @@ const LoginPage = () => { } }; - return ( -
-
-
-
-
-

- Welcome Back! -

+
+
+
+
+

+ Welcome Back! +

+
+
+
+

Login

+

+ Welcome back! Please login to your account. +

+
+
+ +
-
-
-

Login

-

- Welcome back! Please login to your account. +

+ + +
+
+
+ + +
+ + Forgot Password? + +
+
+ +
+

+ New User?{" "} + + Signup +

- -
- - -
-
- - -
-
-
- - -
- - Forgot Password? - -
-
- -
-

- New User?{" "} - - Signup - -

- -
+
diff --git a/Frontend/src/pages/Login/SignupPage.jsx b/Frontend/src/pages/Login/SignupPage.jsx index 5f5d760..f2cd7d1 100644 --- a/Frontend/src/pages/Login/SignupPage.jsx +++ b/Frontend/src/pages/Login/SignupPage.jsx @@ -33,8 +33,6 @@ const SignupPage = () => { }); const data = await responce.json(); - - firstNameElement.current.value = ""; lastNameElement.current.value = ""; emailElement.current.value = ""; @@ -46,141 +44,147 @@ const SignupPage = () => { }; return ( -
-
-
-
-
- -

- Welcome to Crop Compass -

-
-
-
-

- Register Your account +
+
+ {/*
+
+ +

+ Welcome to Crop Compass

-

Welcome to Crop Compass.

-

- Please register your new account. -

-
-
-
- - -
-
- - -
-
- -
+
+
*/} +
+

+ Register Your account +

+

Welcome to Crop Compass.

+

+ Please register your new account. +

+ +
+
-
-
- -
-
-
- - -
- -
-
- + Last Name + +
-

- Already have an Account ?{" "} - + +

+ + +
+
+ + +
+
+
+ + +
+ +
+
+ +
+

+ Already have an Account ?{" "} + + Login + +

+ +
+ +
+
+

+ Start your Journey +
+ with
+ Crop Compass +

- {/*
+
+ {/*
{

*/} -
);