From 61612ab2f20d863df486cb8b495fc93c6af67cd8 Mon Sep 17 00:00:00 2001 From: Nicolas Thouchkaieff Date: Sun, 14 Oct 2018 09:49:44 +0200 Subject: [PATCH] Create 404.jsx --- frontend/src/pages/404.jsx | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 frontend/src/pages/404.jsx diff --git a/frontend/src/pages/404.jsx b/frontend/src/pages/404.jsx new file mode 100644 index 0000000..ebd9ea4 --- /dev/null +++ b/frontend/src/pages/404.jsx @@ -0,0 +1,40 @@ +import React, { Component } from 'react'; +import { withStyles } from '@material-ui/core/styles'; + +const styles = theme => ({ + container: { + textAlign: 'center', + marginTop: '2rem', + }, + pageErrorCode: { + fontWeight: 'bolder', + fontSize: '8rem', + textAlign: 'center', + lineHeight: 'normal', + } + pageErrorMessage { + fontSize: '1.5rem'; + textAlign: 'center'; + } +}); + +class Error extends Component { + componentDidMount() { + } + + render() { + const { classes } = this.props; + + const code = 404; + const message = "Page not found"; + + return ( +
+
{code}
+
{message}
+
+ ); + } +} + +export default withStyles(styles, { withTheme: true })(Error);