feat: add 404 page

This commit is contained in:
eggy 2022-08-10 18:47:39 -04:00
parent b59e77f432
commit 04ab476d9b
3 changed files with 19 additions and 1 deletions

View File

@ -1 +1,12 @@
<template>error!</template>
<script setup lang="ts">
import Default from "./default.vue";
</script>
<template>
<Default>
<main class="flex flex-col grow">
<h1>404 - Not Found</h1>
<p>The page you are looking for cannot be found.</p>
</main>
</Default>
</template>

View File

@ -19,6 +19,9 @@ export default defineNuxtConfig({
sitemap: {
hostname: process.env.BASE_URL || "https://eggworld.tk",
},
generate: {
fallback: "404.html",
},
tailwindcss: {},
colorMode: {
classSuffix: "",

View File

@ -49,6 +49,10 @@ const captionText =
</template>
<template #not-found>
<h1>404 - Not Found</h1>
<p>
Thanks for dropping by! But the page you're looking for can't be
found.
</p>
</template>
</ContentRenderer>
</div>