Add 404 page
This commit is contained in:
parent
bbc798ba7e
commit
eb2b7e5cdd
@ -1,15 +1,21 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div
|
||||||
|
class="h-screen container mx-auto h-full flex justify-center items-center"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="text-gray-200 w-full md:w-1/2 lg:w-1/3 bg-gray-800 border-teal-500 p-8 border-t-8 bg-white mb-6 rounded-lg shadow-lg"
|
||||||
|
>
|
||||||
<h1 v-if="error.statusCode === 404">
|
<h1 v-if="error.statusCode === 404">
|
||||||
{{ pageNotFound }}
|
{{ pageNotFound }}
|
||||||
</h1>
|
</h1>
|
||||||
<h1 v-else>
|
<h1 v-else>
|
||||||
{{ otherError }}
|
{{ otherError }}
|
||||||
</h1>
|
</h1>
|
||||||
<NuxtLink to="/">
|
<NuxtLink to="/" class="text-blue-200 underline">
|
||||||
Home page
|
Home page
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user