diff --git a/src/Routes.js b/src/Routes.js index 10a5342..5f5b474 100644 --- a/src/Routes.js +++ b/src/Routes.js @@ -4,6 +4,7 @@ import Login from './components/Login' import Register from './components/Register' import Dashboard from './components/Dashboard' import Forms from './components/Forms' +import ErrorPage from './components/ErrorPage' import Submission from './components/Submission' import Questions from './components/Questions' import { login, register, dashboard, forms, upload, submission, urlBaseFrontend } from './urls' @@ -23,7 +24,7 @@ export default class Routes extends Component { - } /> + ) diff --git a/src/components/ErrorPage.js b/src/components/ErrorPage.js new file mode 100644 index 0000000..a5a4c8f --- /dev/null +++ b/src/components/ErrorPage.js @@ -0,0 +1,40 @@ +import React, { Component } from 'react' +import './../styles/ErrorPage.css' +import './../styles/App.css' +import { Header } from 'semantic-ui-react'; + +class ErrorPage extends Component { + render() { + return ( +
+
+
+
+

Sorry, the page you were looking for doesn't exist. If you think something is wrong, try again.

+
+
+ ) + } +} + +export default ErrorPage diff --git a/src/styles/ErrorPage.css b/src/styles/ErrorPage.css new file mode 100644 index 0000000..ed15c31 --- /dev/null +++ b/src/styles/ErrorPage.css @@ -0,0 +1,26 @@ +* { + margin: 0; + padding: 0; +} + +.errorPage { + position: absolute; + top: 15%; + left: 17%; + right: 17%; + color: whitesmoke; + bottom: 20%; + display: flex; + align-items: center; + justify-content: center; +} + +.errorPage_content { + max-width: 600px; + text-align: center; +} + +.errorPage_content p { + font-size: 1.4em; + color: gray; +}