Added bluewave icon and initial design
This commit is contained in:
1 parent
848ee60ca0
commit
938226015d
2 files changed
+44
-21
No files matched your search
@@ -1,18 +1,19 @@
|
|||||||
import "./index.css";
|
import { Stack, Typography } from "@mui/material";
|
||||||
import background from "../../assets/Images/background_pattern_decorative.png";
|
import { useTheme } from "@emotion/react";
|
||||||
import Logomark from "../../assets/icons/key.svg?react";
|
import { createToast } from "../../Utils/toastUtils";
|
||||||
import ArrowBackRoundedIcon from "@mui/icons-material/ArrowBackRounded";
|
import { useDispatch, useSelector } from "react-redux";
|
||||||
|
import { forgotPassword } from "../../Features/Auth/authSlice";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { credentials } from "../../Validation/validation";
|
import { credentials } from "../../Validation/validation";
|
||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
import Field from "../../Components/Inputs/Field";
|
import Field from "../../Components/Inputs/Field";
|
||||||
import { createToast } from "../../Utils/toastUtils";
|
|
||||||
import { useDispatch, useSelector } from "react-redux";
|
|
||||||
import { forgotPassword } from "../../Features/Auth/authSlice";
|
|
||||||
import ButtonSpinner from "../../Components/ButtonSpinner";
|
import ButtonSpinner from "../../Components/ButtonSpinner";
|
||||||
import { Stack, Typography } from "@mui/material";
|
|
||||||
import { useTheme } from "@emotion/react";
|
|
||||||
import Button from "../../Components/Button";
|
import Button from "../../Components/Button";
|
||||||
|
import Logo from "../../assets/icons/bwu-icon.svg?react";
|
||||||
|
import Key from "../../assets/icons/key.svg?react";
|
||||||
|
import ArrowBackRoundedIcon from "@mui/icons-material/ArrowBackRounded";
|
||||||
|
import background from "../../assets/Images/background_pattern_decorative.png";
|
||||||
|
import "./index.css";
|
||||||
|
|
||||||
const ForgotPassword = () => {
|
const ForgotPassword = () => {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
@@ -92,13 +93,43 @@ const ForgotPassword = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="forgot-password-page">
|
<Stack className="forgot-password-page auth" overflow="hidden">
|
||||||
<img
|
<img
|
||||||
className="background-pattern-svg"
|
className="background-pattern-svg"
|
||||||
src={background}
|
src={background}
|
||||||
alt="background pattern"
|
alt="background pattern"
|
||||||
/>
|
/>
|
||||||
<form className="forgot-password-form" onSubmit={handleSubmit}>
|
<Stack
|
||||||
|
direction="row"
|
||||||
|
alignItems="center"
|
||||||
|
px={theme.gap.large}
|
||||||
|
gap={theme.gap.small}
|
||||||
|
>
|
||||||
|
<Logo style={{ borderRadius: theme.shape.borderRadius }} />
|
||||||
|
<Typography sx={{ userSelect: "none" }}>BlueWave Uptime</Typography>
|
||||||
|
</Stack>
|
||||||
|
<Stack
|
||||||
|
width="100%"
|
||||||
|
maxWidth={600}
|
||||||
|
flex={1}
|
||||||
|
justifyContent="center"
|
||||||
|
p={theme.gap.xl}
|
||||||
|
pb={theme.gap.triplexl}
|
||||||
|
mx="auto"
|
||||||
|
sx={{
|
||||||
|
"& > .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,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
></Stack>
|
||||||
|
{/* <form className="forgot-password-form" onSubmit={handleSubmit}>
|
||||||
<Stack direction="column" alignItems="center" gap={theme.gap.small}>
|
<Stack direction="column" alignItems="center" gap={theme.gap.small}>
|
||||||
<Logomark alt="Logomark" style={{ fill: "white" }} />
|
<Logomark alt="Logomark" style={{ fill: "white" }} />
|
||||||
<Typography component="h1" sx={{ mt: theme.gap.ml }}>
|
<Typography component="h1" sx={{ mt: theme.gap.ml }}>
|
||||||
@@ -135,8 +166,8 @@ const ForgotPassword = () => {
|
|||||||
onClick={() => navigate("/login")}
|
onClick={() => navigate("/login")}
|
||||||
/>
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
</form>
|
</form> */}
|
||||||
</div>
|
</Stack>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
/* ////// */
|
/* ////// */
|
||||||
.set-new-password-page,
|
.set-new-password-page,
|
||||||
.password-confirmed-page,
|
.password-confirmed-page,
|
||||||
.forgot-password-page,
|
|
||||||
.check-email-page {
|
.check-email-page {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@@ -11,7 +10,6 @@
|
|||||||
}
|
}
|
||||||
.set-new-password-page h1.MuiTypography-root,
|
.set-new-password-page h1.MuiTypography-root,
|
||||||
.password-confirmed-page h1.MuiTypography-root,
|
.password-confirmed-page h1.MuiTypography-root,
|
||||||
.forgot-password-page h1.MuiTypography-root,
|
|
||||||
.check-email-page h1.MuiTypography-root {
|
.check-email-page h1.MuiTypography-root {
|
||||||
font-size: var(--env-var-font-size-large);
|
font-size: var(--env-var-font-size-large);
|
||||||
color: var(--env-var-color-1);
|
color: var(--env-var-color-1);
|
||||||
@@ -21,8 +19,6 @@
|
|||||||
.set-new-password-page button,
|
.set-new-password-page button,
|
||||||
.password-confirmed-page p.MuiTypography-root,
|
.password-confirmed-page p.MuiTypography-root,
|
||||||
.password-confirmed-page button,
|
.password-confirmed-page button,
|
||||||
.forgot-password-page p.MuiTypography-root,
|
|
||||||
.forgot-password-page button,
|
|
||||||
.check-email-page p.MuiTypography-root,
|
.check-email-page p.MuiTypography-root,
|
||||||
.check-email-page button,
|
.check-email-page button,
|
||||||
.check-email-page span.MuiTypography-root {
|
.check-email-page span.MuiTypography-root {
|
||||||
@@ -30,7 +26,6 @@
|
|||||||
}
|
}
|
||||||
.set-new-password-page button:not(.MuiIconButton-root),
|
.set-new-password-page button:not(.MuiIconButton-root),
|
||||||
.password-confirmed-page button:not(.MuiIconButton-root),
|
.password-confirmed-page button:not(.MuiIconButton-root),
|
||||||
.forgot-password-page button:not(.MuiIconButton-root),
|
|
||||||
.check-email-page button:not(.MuiIconButton-root) {
|
.check-email-page button:not(.MuiIconButton-root) {
|
||||||
height: 34px;
|
height: 34px;
|
||||||
border-radius: var(--env-var-radius-2);
|
border-radius: var(--env-var-radius-2);
|
||||||
@@ -39,21 +34,18 @@
|
|||||||
|
|
||||||
.set-new-password-form,
|
.set-new-password-form,
|
||||||
.password-confirmed-form,
|
.password-confirmed-form,
|
||||||
.forgot-password-form,
|
|
||||||
.check-email-form {
|
.check-email-form {
|
||||||
margin-top: 65px;
|
margin-top: 65px;
|
||||||
width: var(--env-var-width-2);
|
width: var(--env-var-width-2);
|
||||||
}
|
}
|
||||||
.set-new-password-page p.MuiTypography-root,
|
.set-new-password-page p.MuiTypography-root,
|
||||||
.password-confirmed-page p.MuiTypography-root,
|
.password-confirmed-page p.MuiTypography-root,
|
||||||
.forgot-password-page p.MuiTypography-root,
|
|
||||||
.check-email-page p.MuiTypography-root {
|
.check-email-page p.MuiTypography-root {
|
||||||
color: var(--env-var-color-2);
|
color: var(--env-var-color-2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.set-new-password-page button:not(.MuiIconButton-root) svg,
|
.set-new-password-page button:not(.MuiIconButton-root) svg,
|
||||||
.password-confirmed-page button:not(.MuiIconButton-root) svg,
|
.password-confirmed-page button:not(.MuiIconButton-root) svg,
|
||||||
.forgot-password-page button svg,
|
|
||||||
.check-email-page button svg {
|
.check-email-page button svg {
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user