Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI : Improved 404 page #6

Merged
merged 2 commits into from
Feb 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 39 additions & 8 deletions frontend/src/Component/NotFound.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,42 @@
import React from "react";
import React from 'react';
import { makeStyles, Card, CardMedia } from '@material-ui/core';
import img from './../assets/404img.png';

const NotFound =(()=>{
return(
<div>
<h1>Not Found</h1>
</div>
)
const useStyles = makeStyles({
root: {
width: '100%',
height: '90vh',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#b9b8b8b7',
},
card: {
padding: '1rem',
width: '30%',
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
},
text: {
fontSize: '16px',
textAlign: 'center',
},
});

export default NotFound;
const NotFound = () => {
const classes = useStyles();
return (
<div className={classes.root}>
<Card className={classes.card}>
<CardMedia component="img" image={img} alt="Paella dish" />
<h5 className={classes.text}>
Sorry, the page you are looking for is now beyond our reach.
</h5>
</Card>
</div>
);
};

export default NotFound;
Binary file added frontend/src/assets/404img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 12 additions & 12 deletions frontend/src/index.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}