add 404 page

This commit is contained in:
Will Freeman
2024-12-04 14:29:32 -07:00
parent 87ff4d0a64
commit 99ced06779
3 changed files with 26 additions and 0 deletions

BIN
webapp/public/404.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

View File

@@ -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
View 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>