diff --git a/package-lock.json b/package-lock.json index 0bb098c..6e35ddc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15041,6 +15041,7 @@ }, "node_modules/typescript": { "version": "5.7.3", + "dev": true, "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", diff --git a/src/App.css b/src/App.css index 74b5e05..a9f59a8 100644 --- a/src/App.css +++ b/src/App.css @@ -1,3 +1,12 @@ +html, body { + margin: 0; + padding: 0; + width: 100%; + height: 100%; + overflow: hidden; /* Prevents scrolling */ +} + + .App { text-align: center; } diff --git a/src/App.tsx b/src/App.tsx index 73bc4f6..591615e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,6 +1,7 @@ import { BrowserRouter as Router } from "react-router-dom"; import AppRouter from "./router"; + function App() { return ( diff --git a/src/components/Loading/index.tsx b/src/components/Loading/index.tsx index 8349a30..1da459a 100644 --- a/src/components/Loading/index.tsx +++ b/src/components/Loading/index.tsx @@ -1,14 +1,24 @@ import React from 'react'; -import { useSelector } from 'react-redux'; - -// import styled from './Loading.style'; +import { CircularProgress, Box, Typography } from '@mui/material'; function LoadingComponent() { - // const { isdarktheme } = useSelector((state) => ({ - // isdarktheme: state?.authReducer?.isDarkTheme, - // })); - - return (

Loading

); + return ( + + + + Loading... + + + ); } -export default LoadingComponent; \ No newline at end of file +export default LoadingComponent; diff --git a/src/pages/Auth/Login/index.tsx b/src/pages/Auth/Login/index.tsx index cf478df..827e6e3 100644 --- a/src/pages/Auth/Login/index.tsx +++ b/src/pages/Auth/Login/index.tsx @@ -11,6 +11,7 @@ import { Grid, IconButton, Link, + InputAdornment } from "@mui/material"; import { useForm, Controller, SubmitHandler } from "react-hook-form"; import { useDispatch } from "react-redux"; @@ -29,7 +30,9 @@ interface ILoginForm { export default function Login(props: { disableCustomTheme?: boolean }) { const [open, setOpen] = React.useState(false); + const [isClicked, setIsClicked] = React.useState(false); const [showPassword, setShowPassword] = React.useState(false); + const { control, handleSubmit, @@ -69,7 +72,7 @@ export default function Login(props: { disableCustomTheme?: boolean }) { md={7} sx={{ background: `url('/mainPageLogo.png') center/cover no-repeat`, - height: { xs: "0%", sm: "0%", md: "100%" }, + // height: { xs: "0%", sm: "50%", md: "100%" }, backgroundSize: "cover", display: { xs: "none", md: "block" }, // Hide the image on xs and sm screens }} @@ -77,19 +80,21 @@ export default function Login(props: { disableCustomTheme?: boolean }) { {/* Form Section */} + item + xs={12} + md={5} + sx={{ + backgroundColor: "black", + display: "flex", + justifyContent: "center", + alignItems: "center", + flexDirection: "column", + padding: { xs: "2rem", md: "3rem", lg: "3rem" }, + + height: "auto", // ✅ Allows the height to adjust dynamically + }} +> + - + + - - Login - - - Log in with your email and password - + Login + + Log in with your email and password + - - - Email - - ( - - )} - /> - - - - Password - - ( - - - - setShowPassword( - (prev) => !prev - ) - } - > - {showPassword ? ( - - ) : ( - - )} - - - )} - /> - +{/* -------------------------------- Email Field ----------------- */} + + + Email + + ( + + )} + /> + + + +{/* -------------------------------- Password Field ----------------- */} + + + Password + + ( + setShowPassword((prev) => !prev)} + edge="end" + sx={{ + color: "white", + padding: 0, + margin: 0, + backgroundColor: "transparent", + border: "none", + boxShadow: "none", + "&:hover": { backgroundColor: "transparent" }, + "&:focus": { outline: "none", border: "none" }, + }} + > + {showPassword ? : } + + ), + }} + sx={{ + "& .MuiOutlinedInput-root": { + backgroundColor: "#1E1F1F", + borderRadius: "4px", + "& fieldset": { borderColor: "#4b5255" }, + "&:hover fieldset": { borderColor: "#4b5255" }, + "&.Mui-focused fieldset": { borderColor: "#4b5255" }, + }, + "& input": { + color: "white", + fontSize: { xs: "0.9rem", sm: "1rem" }, + fontFamily: "Gilroy, sans-serif", + }, + "& .MuiInputBase-input::placeholder": { + color: "white", + opacity: 1, + fontFamily: "Gilroy, sans-serif", + }, + }} + /> + )} + /> + + - - } - label="Remember me" - /> - - Forgot password? - + + + } + label="Remember me" +/> + + + Forgot password? + +