From e2522d22970af9d978f9676384ae24c0c7683725 Mon Sep 17 00:00:00 2001 From: Daniel Cojocea Date: Mon, 12 Aug 2024 16:05:30 -0400 Subject: [PATCH 1/2] Added bluewave icon, initial design and removed redundant css code --- Client/src/Pages/Auth/SetNewPassword.jsx | 71 +++++++++++++++++++----- Client/src/Pages/Auth/index.css | 46 +-------------- 2 files changed, 58 insertions(+), 59 deletions(-) diff --git a/Client/src/Pages/Auth/SetNewPassword.jsx b/Client/src/Pages/Auth/SetNewPassword.jsx index ce95fb7a5..fd2c68fc3 100644 --- a/Client/src/Pages/Auth/SetNewPassword.jsx +++ b/Client/src/Pages/Auth/SetNewPassword.jsx @@ -1,20 +1,20 @@ -import "./index.css"; -import background from "../../assets/Images/background_pattern_decorative.png"; -import LockIcon from "../../assets/icons/lock-button-icon.svg?react"; -import Check from "../../Components/Check/Check"; -import ButtonSpinner from "../../Components/ButtonSpinner"; -import ArrowBackRoundedIcon from "@mui/icons-material/ArrowBackRounded"; +import { useDispatch, useSelector } from "react-redux"; +import { setNewPassword } from "../../Features/Auth/authSlice"; +import { createToast } from "../../Utils/toastUtils"; +import { Box, Stack, Typography } from "@mui/material"; +import { useTheme } from "@emotion/react"; import { useParams } from "react-router-dom"; import { useState } from "react"; import { credentials } from "../../Validation/validation"; import { useNavigate } from "react-router-dom"; +import Check from "../../Components/Check/Check"; +import ButtonSpinner from "../../Components/ButtonSpinner"; import Field from "../../Components/Inputs/Field"; -import { useDispatch, useSelector } from "react-redux"; -import { setNewPassword } from "../../Features/Auth/authSlice"; -import { createToast } from "../../Utils/toastUtils"; -import { Stack, Typography } from "@mui/material"; -import { useTheme } from "@emotion/react"; +import LockIcon from "../../assets/icons/lock-button-icon.svg?react"; import Button from "../../Components/Button"; +import background from "../../assets/Images/background_pattern_decorative.png"; +import Logo from "../../assets/icons/bwu-icon.svg?react"; +import "./index.css"; const SetNewPassword = () => { const navigate = useNavigate(); @@ -105,13 +105,54 @@ const SetNewPassword = () => { }; return ( -
+ background pattern -
+ + + BlueWave Uptime + + .MuiStack-root": { + border: 1, + borderRadius: theme.shape.borderRadius, + borderColor: theme.palette.otherColors.graishWhite, + backgroundColor: theme.palette.otherColors.white, + padding: { + xs: theme.gap.large, + sm: theme.gap.xl, + }, + }, + }} + > + + Go back to — + navigate("/login")} + sx={{ userSelect: "none" }} + > + Log In + + + {/* @@ -197,8 +238,8 @@ const SetNewPassword = () => { onClick={() => navigate("/login")} /> -
-
+ */} + ); }; diff --git a/Client/src/Pages/Auth/index.css b/Client/src/Pages/Auth/index.css index feb48bfb7..f7f2c211e 100644 --- a/Client/src/Pages/Auth/index.css +++ b/Client/src/Pages/Auth/index.css @@ -1,46 +1,3 @@ -/* ////// */ -/* SHARED */ -/* ////// */ -.set-new-password-page { - display: flex; - justify-content: center; - height: var(--env-var-height-1); -} -.set-new-password-page h1.MuiTypography-root { - font-size: var(--env-var-font-size-large); - color: var(--env-var-color-1); - font-weight: 600; -} -.set-new-password-page p.MuiTypography-root, -.set-new-password-page button { - font-size: var(--env-var-font-size-medium); -} -.set-new-password-page button:not(.MuiIconButton-root) { - height: 34px; - border-radius: var(--env-var-radius-2); - line-height: 0; -} - -.set-new-password-form, -.password-confirmed-form { - margin-top: 65px; - width: var(--env-var-width-2); -} -.set-new-password-page p.MuiTypography-root { - color: var(--env-var-color-2); -} - -.set-new-password-page button:not(.MuiIconButton-root) svg { - margin-right: 5px; -} - -.set-new-password-page - .MuiFormControl-root:has(#register-password-input) - + span.MuiTypography-root { - display: none; - visibility: hidden; -} - /* AUTH */ .auth { height: 100vh; @@ -120,6 +77,7 @@ .forgot-password-page h1, .check-email-page h1, -.password-confirmed-page h1 { +.password-confirmed-page h1, +.set-new-password-page h1 { font-size: var(--env-var-font-size-large-plus); } From 16c19930c4a19c2a1a6315a0b33fbf5e9590bb13 Mon Sep 17 00:00:00 2001 From: Daniel Cojocea Date: Mon, 12 Aug 2024 16:26:42 -0400 Subject: [PATCH 2/2] Final auth design --- Client/src/Pages/Auth/SetNewPassword.jsx | 174 +++++++++++------------ 1 file changed, 85 insertions(+), 89 deletions(-) diff --git a/Client/src/Pages/Auth/SetNewPassword.jsx b/Client/src/Pages/Auth/SetNewPassword.jsx index fd2c68fc3..0124f035e 100644 --- a/Client/src/Pages/Auth/SetNewPassword.jsx +++ b/Client/src/Pages/Auth/SetNewPassword.jsx @@ -11,7 +11,6 @@ import Check from "../../Components/Check/Check"; import ButtonSpinner from "../../Components/ButtonSpinner"; import Field from "../../Components/Inputs/Field"; import LockIcon from "../../assets/icons/lock-button-icon.svg?react"; -import Button from "../../Components/Button"; import background from "../../assets/Images/background_pattern_decorative.png"; import Logo from "../../assets/icons/bwu-icon.svg?react"; import "./index.css"; @@ -140,7 +139,91 @@ const SetNewPassword = () => { }, }, }} - > + > + + + + Set new password + + Your new password must be different to previously used passwords. + + + +
+ + +
+ + + + + + + +
+ +
+ Go back to — { Log In - {/*
- - - - Set new password - - - Your new password must be different to previously used passwords. - - - - - - - - - - - -