mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-02-12 23:12:48 +00:00
add 404 page
This commit is contained in:
BIN
webapp/public/404.webp
Normal file
BIN
webapp/public/404.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 56 KiB |
@@ -55,6 +55,11 @@ const router = createRouter({
|
||||
path: '/legal',
|
||||
name: 'legal',
|
||||
component: () => import('../views/LegalView.vue')
|
||||
},
|
||||
{
|
||||
path: '/:pathMatch(.*)*',
|
||||
name: 'not-found',
|
||||
component: () => import('../views/404.vue')
|
||||
}
|
||||
]
|
||||
})
|
||||
|
||||
21
webapp/src/views/404.vue
Normal file
21
webapp/src/views/404.vue
Normal file
@@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<v-container>
|
||||
<div class="text-center">
|
||||
<h1>Page Not Found</h1>
|
||||
|
||||
<div class="mt-8 mb-16">
|
||||
<v-img height="300" src="/404.webp" />
|
||||
<p class="caption">just like the license plate this guy is searching for</p>
|
||||
</div>
|
||||
|
||||
<v-btn color="primary" to="/"><v-icon start>mdi-home</v-icon>Home</v-btn>
|
||||
</div>
|
||||
</v-container>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.caption {
|
||||
font-size: 1.2rem;
|
||||
color: #666;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user