feat:Added monitoring charts

This commit is contained in:
2025-03-26 22:50:05 +05:30
parent b961ef8fd3
commit 407d6df417
4 changed files with 212 additions and 218 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import React from "react";
const Container = ({ children }) => {
return (
<>
<div className="w-full h-auto">{children}</div>
<div className="w-full max-h-screen">{children}</div>
</>
);
};
-4
View File
@@ -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 (
+2 -7
View File
@@ -28,8 +28,6 @@ const LoginPage = () => {
const user = await responce.json();
dispatch(userSliceActions.addUser(user.data));
emailElement.current.value = "";
@@ -40,11 +38,9 @@ const LoginPage = () => {
}
};
return (
<section className="bg-[url(/images/loginBG.png)] bg-cover font-sans flex flex-col justify-center md:p-5 ">
<div className="container mx-auto ">
<div className="flex justify-between pt-24">
<section className="bg-[url(/images/loginBG.png)] bg-cover font-sans flex flex-col justify-center md:p-5 w-full min-h-screen max-h-screen">
<div className="flex justify-between items-center h-full">
<div className=" rounded-lg shadow-md ">
<div className="flex flex-col items-center justify-center h-full ">
<h1 className="text-6xl font-bold text-white mb-4 md:text-6xl lg:text-9xl ml-8">
@@ -132,7 +128,6 @@ const LoginPage = () => {
</form>
</div>
</div>
</div>
</section>
);
};
+17 -14
View File
@@ -33,8 +33,6 @@ const SignupPage = () => {
});
const data = await responce.json();
firstNameElement.current.value = "";
lastNameElement.current.value = "";
emailElement.current.value = "";
@@ -46,10 +44,9 @@ const SignupPage = () => {
};
return (
<section className="bg-[url(https://i.pinimg.com/736x/6c/d2/cc/6cd2cc05a7e464a78bdf1124b4ad30f1.jpg)] bg-cover font-sans flex flex-col justify-center md:p-5 ">
<div className="container mx-auto p-4 pt-24 sm:mt-32 md:mt-0">
<div className="grid grid-cols-1 md:grid-cols-2 gap-8">
<div className="bg-gradient-to-br from-purple-300 to-pink-200 rounded-lg shadow-md min-h-40 object-center md:hidden">
<section className="bg-[url(https://i.pinimg.com/736x/6c/d2/cc/6cd2cc05a7e464a78bdf1124b4ad30f1.jpg)] bg-cover font-sans flex flex-col justify-center min-h-screen max-h-screen">
<div className="flex justify-between items-center w-full h-full p-5">
{/* <div className="bg-gradient-to-br from-purple-300 to-pink-200 rounded-lg shadow-md min-h-40 object-center md:hidden">
<div className="flex flex-col items-center justify-center h-full relative">
<img
src="/images/background1.jpg"
@@ -60,8 +57,8 @@ const SignupPage = () => {
Welcome to Crop Compass
</h1>
</div>
</div>
<div className="backdrop-blur-md bg-gradient-to-tr from-slate-300/10 to-slate-200/30 rounded-lg shadow-md lg:p-36">
</div> */}
<div className="backdrop-blur-md bg-gradient-to-tr from-slate-300/10 to-slate-200/30 rounded-lg shadow-md lg:p-36 h-[95vh]">
<h1 className="text-2xl font-bold text-gray-50 mb-4">
Register Your account
</h1>
@@ -69,11 +66,7 @@ const SignupPage = () => {
<p className="text-gray-100 mb-6">
Please register your new account.
</p>
<form
action="#"
className="space-y-6"
onSubmit={handleRegisteration}
>
<form action="#" className="space-y-6" onSubmit={handleRegisteration}>
<div className="flex flex-col gap-5 sm:flex-row">
<div className="w-full">
<label
@@ -180,6 +173,17 @@ const SignupPage = () => {
</p>
</form>
</div>
<div className="rounded-lg shadow-md text-center w-auto">
<div className="flex flex-col items-center justify-center h-full ">
<h1 className="text-6xl font-bold text-white mb-4 md:text-6xl lg:text-9xl ml-8">
Start your Journey
<br />
with <br />
Crop Compass
</h1>
</div>
</div>
{/* <div className=" backdrop-blur-sm rounded-lg shadow-md md:block">
<div className="flex flex-col items-center justify-center h-full relative text-center">
<img
@@ -193,7 +197,6 @@ const SignupPage = () => {
</div>
</div> */}
</div>
</div>
</section>
);
};