diff --git a/src/main.js b/src/main.js index 71f8466..f44b3dd 100644 --- a/src/main.js +++ b/src/main.js @@ -8,7 +8,7 @@ import App from './App.vue' import Home from './views/Home.vue' import Help from './views/Help' import Instances from './views/Instances' -import FAQ from './views/FAQ' +import NotFound from './views/NotFound' import AllContentSelections from './views/All-Content-Selections' import './scss/main.scss' @@ -75,6 +75,7 @@ p.catch(err => { const HallOfFame = () => import('./views/Hall-Of-Fame') const News = () => import('./views/News') + const FAQ = () => import('./views/FAQ') const routes = [ { @@ -104,6 +105,14 @@ p.catch(err => { { path: '/content-selections', component: AllContentSelections + }, + { + path: '/404', + component: NotFound + }, + { + path: '*', + redirect: '/404' } ] diff --git a/src/views/NotFound.vue b/src/views/NotFound.vue new file mode 100644 index 0000000..199552b --- /dev/null +++ b/src/views/NotFound.vue @@ -0,0 +1,52 @@ + + + + + + + Page not found + + + + + Go back to the homepage + + + + + + + +
+ + Go back to the homepage + +