Added bluewave icon and initial design
This commit is contained in:
1 parent
848ee60ca0
commit
3b723b9f6b
2 files changed
+66
-42
No files matched your search
@@ -1,15 +1,15 @@
|
|||||||
import "./index.css";
|
import { Box, Stack, Typography } from "@mui/material";
|
||||||
import background from "../../assets/Images/background_pattern_decorative.png";
|
import { useEffect, useState } from "react";
|
||||||
import React, { useEffect, useState } from "react";
|
|
||||||
import EmailIcon from "../../assets/icons/email.svg?react";
|
|
||||||
import Button from "../../Components/Button";
|
|
||||||
import ArrowBackRoundedIcon from "@mui/icons-material/ArrowBackRounded";
|
|
||||||
import { Stack, Typography } from "@mui/material";
|
|
||||||
import { useTheme } from "@emotion/react";
|
import { useTheme } from "@emotion/react";
|
||||||
import { useDispatch } from "react-redux";
|
import { useDispatch } from "react-redux";
|
||||||
import { useNavigate } from "react-router";
|
import { useNavigate } from "react-router";
|
||||||
import { createToast } from "../../Utils/toastUtils";
|
import { createToast } from "../../Utils/toastUtils";
|
||||||
import { forgotPassword } from "../../Features/Auth/authSlice";
|
import { forgotPassword } from "../../Features/Auth/authSlice";
|
||||||
|
import Button from "../../Components/Button";
|
||||||
|
import background from "../../assets/Images/background_pattern_decorative.png";
|
||||||
|
import EmailIcon from "../../assets/icons/email.svg?react";
|
||||||
|
import Logo from "../../assets/icons/bwu-icon.svg?react";
|
||||||
|
import "./index.css";
|
||||||
|
|
||||||
const CheckEmail = () => {
|
const CheckEmail = () => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
@@ -80,13 +80,56 @@ const CheckEmail = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="check-email-page">
|
<Stack className="check-email-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="check-email-form">
|
<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>
|
||||||
|
<Box textAlign="center" p={theme.gap.large}>
|
||||||
|
<Typography display="inline-block">Go back to —</Typography>
|
||||||
|
<Typography
|
||||||
|
component="span"
|
||||||
|
ml={theme.gap.xs}
|
||||||
|
onClick={() => {
|
||||||
|
navigate("/login");
|
||||||
|
}}
|
||||||
|
sx={{ userSelect: "none" }}
|
||||||
|
>
|
||||||
|
Log In
|
||||||
|
</Typography>
|
||||||
|
</Box>
|
||||||
|
{/* <form className="check-email-form">
|
||||||
<Stack direction="column" alignItems="center" gap={theme.gap.small}>
|
<Stack direction="column" alignItems="center" gap={theme.gap.small}>
|
||||||
<EmailIcon alt="EmailIcon" style={{ fill: "white" }} />
|
<EmailIcon alt="EmailIcon" style={{ fill: "white" }} />
|
||||||
<Typography component="h1" sx={{ mt: theme.gap.ml }}>
|
<Typography component="h1" sx={{ mt: theme.gap.ml }}>
|
||||||
@@ -127,8 +170,8 @@ const CheckEmail = () => {
|
|||||||
onClick={() => navigate("/login")}
|
onClick={() => navigate("/login")}
|
||||||
/>
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
</form>
|
</form> */}
|
||||||
</div>
|
</Stack>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -2,17 +2,13 @@
|
|||||||
/* SHARED */
|
/* SHARED */
|
||||||
/* ////// */
|
/* ////// */
|
||||||
.set-new-password-page,
|
.set-new-password-page,
|
||||||
.password-confirmed-page,
|
.password-confirmed-page {
|
||||||
.forgot-password-page,
|
|
||||||
.check-email-page {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
height: var(--env-var-height-1);
|
height: var(--env-var-height-1);
|
||||||
}
|
}
|
||||||
.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 {
|
|
||||||
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);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
@@ -20,41 +16,28 @@
|
|||||||
.set-new-password-page p.MuiTypography-root,
|
.set-new-password-page p.MuiTypography-root,
|
||||||
.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 button,
|
|
||||||
.check-email-page span.MuiTypography-root {
|
|
||||||
font-size: var(--env-var-font-size-medium);
|
font-size: var(--env-var-font-size-medium);
|
||||||
}
|
}
|
||||||
.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) {
|
|
||||||
height: 34px;
|
height: 34px;
|
||||||
border-radius: var(--env-var-radius-2);
|
border-radius: var(--env-var-radius-2);
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.set-new-password-form,
|
.set-new-password-form,
|
||||||
.password-confirmed-form,
|
.password-confirmed-form {
|
||||||
.forgot-password-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 {
|
|
||||||
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 {
|
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -68,13 +51,6 @@
|
|||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* /////////// */
|
|
||||||
/* Check Email */
|
|
||||||
/* /////////// */
|
|
||||||
.check-email-page span.MuiTypography-root {
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* AUTH */
|
/* AUTH */
|
||||||
.auth {
|
.auth {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
@@ -144,3 +120,8 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.forgot-password-page h1,
|
||||||
|
.check-email-page h1 {
|
||||||
|
font-size: var(--env-var-font-size-large-plus);
|
||||||
|
}
|
||||||
Reference in new issue
Block a user