diff --git a/Client/src/App.jsx b/Client/src/App.jsx index 783f28330..5db3ea623 100644 --- a/Client/src/App.jsx +++ b/Client/src/App.jsx @@ -32,6 +32,7 @@ import { ThemeProvider } from "@emotion/react"; import lightTheme from "./Utils/Theme/lightTheme"; import darkTheme from "./Utils/Theme/darkTheme"; import { useSelector } from "react-redux"; +import { CssBaseline } from "@mui/material"; function App() { const AdminCheckedRegister = withAdminCheck(Register); @@ -45,6 +46,7 @@ function App() { return ( + }> { dataKey="responseTime" stroke={theme.palette.primary.main} fill="url(#colorUv)" + strokeWidth={1.5} /> diff --git a/Client/src/Layouts/HomeLayout/index.css b/Client/src/Layouts/HomeLayout/index.css index 855bf33fc..d9fe9e06b 100644 --- a/Client/src/Layouts/HomeLayout/index.css +++ b/Client/src/Layouts/HomeLayout/index.css @@ -1,7 +1,3 @@ -#root:has(.home-layout) { - background-color: var(--secondary-bg); -} - .home-layout { position: relative; min-height: 100vh; diff --git a/Client/src/Layouts/HomeLayout/index.jsx b/Client/src/Layouts/HomeLayout/index.jsx index fd92c59fa..62af75075 100644 --- a/Client/src/Layouts/HomeLayout/index.jsx +++ b/Client/src/Layouts/HomeLayout/index.jsx @@ -1,24 +1,15 @@ import Sidebar from "../../Components/Sidebar"; import { Outlet } from "react-router"; -import { Box, Stack } from "@mui/material"; -import { useTheme } from "@emotion/react"; +import { Stack } from "@mui/material"; import "./index.css"; const HomeLayout = () => { - const theme = useTheme(); - return ( - - - - - - + + + + ); }; diff --git a/Client/src/Pages/Auth/ForgotPassword.jsx b/Client/src/Pages/Auth/ForgotPassword.jsx index 338da645c..10b6d3693 100644 --- a/Client/src/Pages/Auth/ForgotPassword.jsx +++ b/Client/src/Pages/Auth/ForgotPassword.jsx @@ -6,9 +6,11 @@ import { forgotPassword } from "../../Features/Auth/authSlice"; import { useEffect, useState } from "react"; import { credentials } from "../../Validation/validation"; import { useNavigate } from "react-router-dom"; +import { IconBox } from "./styled"; import Field from "../../Components/Inputs/Field"; import Logo from "../../assets/icons/bwu-icon.svg?react"; import Key from "../../assets/icons/key.svg?react"; +import Background from "../../assets/Images/background-grid.svg?react"; import background from "../../assets/Images/background_pattern_decorative.png"; import LoadingButton from "@mui/lab/LoadingButton"; import "./index.css"; @@ -94,7 +96,7 @@ const ForgotPassword = () => { "& h1": { color: theme.palette.primary.main, fontWeight: 600, - fontSize: 24, + fontSize: 21, }, "& p": { fontSize: 14, @@ -104,8 +106,14 @@ const ForgotPassword = () => { > + sx={{ + "& svg g g:last-of-type path": { + stroke: theme.palette.border.light, + }, + }} + > + + { textAlign="center" > - + + + Forgot password? No worries, we'll send you reset instructions. diff --git a/Client/src/Pages/Auth/styled.jsx b/Client/src/Pages/Auth/styled.jsx new file mode 100644 index 000000000..c6a23d521 --- /dev/null +++ b/Client/src/Pages/Auth/styled.jsx @@ -0,0 +1,26 @@ +import { Box, styled } from "@mui/material"; + +export const IconBox = styled(Box)(({ theme }) => ({ + height: 48, + minWidth: 48, + width: 48, + position: "relative", + border: 1, + borderStyle: "solid", + borderColor: theme.palette.border.dark, + borderRadius: 12, + backgroundColor: theme.palette.background.accent, + margin: "auto", + marginBottom: 4, + "& svg": { + position: "absolute", + top: "50%", + left: "50%", + transform: "translate(-50%, -50%)", + width: 24, + height: 24, + "& path": { + stroke: theme.palette.text.tertiary, + }, + }, +})); diff --git a/Client/src/Utils/Theme/darkTheme.js b/Client/src/Utils/Theme/darkTheme.js index e54d9eaf4..d590614c3 100644 --- a/Client/src/Utils/Theme/darkTheme.js +++ b/Client/src/Utils/Theme/darkTheme.js @@ -53,8 +53,8 @@ const darkTheme = createTheme({ warning: { text: "#e88c30", main: "#FF9F00", - light: "#272115", - bg: "#624711", + light: "#624711", + bg: "#262115", border: "#e88c30", }, percentage: { @@ -74,6 +74,15 @@ const darkTheme = createTheme({ }, spacing: 2, components: { + MuiCssBaseline: { + styleOverrides: { + body: { + backgroundImage: + "radial-gradient(circle, #09090b, #0c0c0e, #0f0f11, #111113, #131315, #131315, #131315, #131315, #111113, #0f0f11, #0c0c0e, #09090b)", + lineHeight: "inherit", + }, + }, + }, MuiButton: { defaultProps: { disableRipple: true, diff --git a/Client/src/Utils/Theme/lightTheme.js b/Client/src/Utils/Theme/lightTheme.js index 60a8e0b2d..19e44f4f7 100644 --- a/Client/src/Utils/Theme/lightTheme.js +++ b/Client/src/Utils/Theme/lightTheme.js @@ -50,8 +50,8 @@ const lightTheme = createTheme({ warning: { text: "#DC6803", main: "#fdb022", - light: "#fffcf5", - bg: "#ffecbc", + light: "#ffecbc", + bg: "#fffcf5", border: "#fec84b", }, percentage: { @@ -71,6 +71,14 @@ const lightTheme = createTheme({ }, spacing: 2, components: { + MuiCssBaseline: { + styleOverrides: { + body: { + backgroundImage: + "radial-gradient(circle, #fcfcfd, #fdfcfd, #fdfdfd, #fefdfe, #fefefe, #fefefe, #fefefe, #fefefe, #fefdfe, #fdfdfd, #fdfcfd, #fcfcfd)", + }, + }, + }, MuiButton: { defaultProps: { disableRipple: true, diff --git a/Client/src/assets/icons/key.svg b/Client/src/assets/icons/key.svg index c6401e09f..5db8d5f16 100644 --- a/Client/src/assets/icons/key.svg +++ b/Client/src/assets/icons/key.svg @@ -1,18 +1,3 @@ - - - - - - - - - - - - - - - - - + +