Skip to content

Commit

Permalink
404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
dazecoop committed Oct 19, 2021
1 parent 4b0a6bf commit 9a9e041
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/router.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Vue from 'vue'
import Router from 'vue-router'
import Index from './views/index.vue'
import Error404 from './views/errors/404.vue'

Vue.use(Router)

Expand All @@ -12,6 +13,10 @@ const router = new Router({
name: 'index',
component: Index
},
{
path: '*',
component: Error404,
},
]
})
export default router
33 changes: 33 additions & 0 deletions src/views/errors/404.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<template>
<div>
<div class="container px-4 pt-20 text-center">
<h1 class="text-7xl md:text-9xl font-bold text-gray-200">
404
</h1>
<h2 class="text-xl">
Sorry, page not found!
</h2>
<p>
The page you are looking for might have been
removed, had its name changed, or is temporarily unavailable.
</p>
<a
href="/"
class="underline hover:text-blue-500"
>Back to homepage</a>
</div>
</div>
</template>

<script>
export default {
name: '404',
components: {
},
metaInfo() {
return {
title: this.$siteName,
};
},
}
</script>

0 comments on commit 9a9e041

Please sign in to comment.