-
Notifications
You must be signed in to change notification settings - Fork 7
/
error.vue
32 lines (27 loc) · 977 Bytes
/
error.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<script setup lang="ts">
const error = useError();
useSeoMeta({
title: "404 | p4nth3rworld",
description: "404 Page not found",
});
useHead({
bodyAttrs: {
class: "m-auto p-4 max-w-screen-md bg-zinc-900 text-zinc-100",
},
});
</script>
<template>
<div class="h-screen" v-if="error.statusCode === 404">
<section class="flex h-full flex-col justify-center items-center gap-12">
<h1 class="text-4xl font-bold text-center">404 - 😭 Oh no, you seem to be lost!</h1>
<p class="text-base mb-2 text-center">
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
</p>
<a
href="/"
class="bg-violet-700 hover:bg-violet-500 focus:bg-emerald-700 active:bg-emerald-700 focus:outline-none focus:ring focus:ring-emerald-300 text-slate-50 font-bold uppercase py-2 px-4 rounded-lg text-xl transition"
>Take me home</a
>
</section>
</div>
</template>