Added wallpaper to the Authentication Page

This commit was merged in pull request #4.
This commit is contained in:
2023-10-19 04:44:38 -07:00
parent c92644222e
commit 5d4cbc7a1c
6 changed files with 36 additions and 26 deletions
+4 -23
View File
@@ -7,7 +7,7 @@ import TextField from "@mui/material/TextField";
import Button from "@mui/material/Button"; import Button from "@mui/material/Button";
import FormControlLabel from "@mui/material/FormControlLabel"; import FormControlLabel from "@mui/material/FormControlLabel";
import Checkbox from "@mui/material/Checkbox"; import Checkbox from "@mui/material/Checkbox";
import styles from "@/components/Authentication/Authentication.module.css"; import styles from "./signinform.module.css";
import WrenchBoardLogo from "@/public/images/logos/wrenchboard-logo.png"; import WrenchBoardLogo from "@/public/images/logos/wrenchboard-logo.png";
const SignInForm = () => { const SignInForm = () => {
@@ -22,7 +22,7 @@ const SignInForm = () => {
return ( return (
<> <>
<div className="authenticationBox"> <div className={styles.authenticationBox}>
<Box <Box
component="main" component="main"
sx={{ sx={{
@@ -41,12 +41,12 @@ const SignInForm = () => {
mb="60px" mb="60px"
> >
<img <img
src="/images/logos/wrenchboard-logo.png" src="/images/logos/android-chrome-512x512.png"
alt="logo" alt="logo"
className={styles.favicon} className={styles.favicon}
/> />
</Box> </Box>
<Typography as="h1" fontSize="28px" fontWeight="700" mb="5px"> <Typography as="h1" fontSize="28px" fontWeight="700" mb="5px" color="#fff">
Sign In{" "} Sign In{" "}
</Typography> </Typography>
@@ -116,25 +116,6 @@ const SignInForm = () => {
</Grid> </Grid>
</Box> </Box>
<Grid container alignItems="center" spacing={2}>
<Grid item xs={6} sm={6}>
<FormControlLabel
control={
<Checkbox value="allowExtraEmails" color="primary" />
}
label="Remember me."
/>
</Grid>
<Grid item xs={6} sm={6} textAlign="end">
<Link
href="/auth/forgot-password"
className="primaryColor text-decoration-none"
>
Forgot your password?
</Link>
</Grid>
</Grid>
<Button <Button
type="submit" type="submit"
@@ -0,0 +1,20 @@
.favicon {
position: relative;
top: 5px;
max-width: 250px;
max-height: 250px;
width: 100%;
height: 100%;
}
.authenticationBox {
width: 100%;
min-height: 100vh;
/* Image */
background-image: url("../../public//images/auth/cms_home.jpg");
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
background-attachment: fixed;
}
+11 -2
View File
@@ -44,7 +44,9 @@ const Layout = ({ children }) => {
<meta name="viewport" content="initial-scale=1.0, width=device-width" /> <meta name="viewport" content="initial-scale=1.0, width=device-width" />
</Head> </Head>
<div className={`main-wrapper-content ${active ? "active" : ""}`}> <div className={`main-wrapper-content ${active ? "active" : ""}`} style={{
paddingLeft: isAuthenticationPage && "0",
}}>
{!isAuthenticationPage && ( {!isAuthenticationPage && (
<> <>
<TopNavbar toggleActive={toggleActive} /> <TopNavbar toggleActive={toggleActive} />
@@ -52,7 +54,14 @@ const Layout = ({ children }) => {
</> </>
)} )}
<div className="main-content">{children}</div> <div
className="main-content"
style={{
paddingRight: isAuthenticationPage && "0",
}}
>
{children}
</div>
{!isAuthenticationPage && <Footer />} {!isAuthenticationPage && <Footer />}
</div> </div>
+1 -1
View File
@@ -14,7 +14,7 @@ const AuthRoute = ({ children }) => {
const isAuthenticated = true; // In a real application, this would be determined based on the user's authentication status. const isAuthenticated = true; // In a real application, this would be determined based on the user's authentication status.
if (!isAuthenticated) { if (!isAuthenticated) {
router.push("/auth/"); router.push("/auth/sign-in");
} }
}, [router]); }, [router]);
Binary file not shown.

After

Width:  |  Height:  |  Size: 443 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB