-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patherror.vue
48 lines (43 loc) · 1.16 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<script lang="ts" setup>
import type { NuxtError } from '#app'
const { error = { message: 'No error encountered' } } = defineProps({
error: Object as () => NuxtError,
})
onMounted(() => {
document.body.style.backgroundColor = '#180909'
})
</script>
<template>
<div
class="h-[100vh] w-[75%] max-w-[850px] overflow-hidden m-auto justify-center items-start flex flex-col"
>
<div class="inline-flex flex-row items-end w-full justify-between gap-4 flex-wrap ">
<div>
<h1 class="md:text-6xl text-4xl font-bold text-red-500">
{{
/* @ts-expect-error Generic Error */
error.statusCode
}}
</h1>
<h2 class="md:text-4xl text-2xl font-bold text-red-500">
{{ error.message }}
</h2>
</div>
<img
src="/shadfin_app_concept.svg"
class="size-24"
alt="Shadfin Logo"
>
</div>
<p class="mt-6 text-lg text-orange-400 font-semibold">
{{
/* @ts-expect-error Generic Error */
error.data
}}
</p>
<p
class="text-lg mt-4 text-orange-400 font-light font-mono"
v-html="error.stack"
/>
</div>
</template>