File tree 1 file changed +35
-0
lines changed
1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ <template >
2
+ <div class =" min-h-screen flex flex-grow items-center justify-center" >
3
+ <div class =" bg-fg/5 dark:bg-fg/10 text-fg-dimmed p-8 rounded-2xl border border-fg/10 dark:border-fg/15 w-full max-w-xl" >
4
+ <h1 class =" mb-4 text-2xl font-light text-center" >
5
+ {{ $t('error.title') }} {{ error.statusCode }}
6
+ </h1 >
7
+ <div class =" text-sm" >
8
+ <template v-if =" error .statusCode === 404 " >
9
+ <p class =" text-center" >
10
+ {{ $t('error.page404') }}
11
+ </p >
12
+ <p class =" text-center mt-4" >
13
+ <NuxtLink to =" /" class =" text-brand-600 hover:text-brand-800 transition-all" >
14
+ {{ $t('error.home') }}
15
+ </NuxtLink >
16
+ </p >
17
+ </template >
18
+ <template v-else >
19
+ <p class =" text-center" >
20
+ {{ $t('error.description') }}
21
+ </p >
22
+
23
+ <p class =" text-center mt-2" >
24
+ <a href =" https://mafl.hywax.space/" class =" text-brand-600 hover:text-brand-800 transition-all" >{{ $t('error.action') }} →</a >
25
+ </p >
26
+ <pre v-if =" error?.message" class =" mt-6 bg-fg/5 dark:bg-fg/10 text-fg-dimmed px-3 py-2 rounded-2xl border border-fg/10 dark:border-fg/15 max-h-52 overflow-auto" ><code >{{ error.message }}</code ></pre >
27
+ </template >
28
+ </div >
29
+ </div >
30
+ </div >
31
+ </template >
32
+
33
+ <script setup lang="ts">
34
+ defineProps <{ error: { message: string , statusCode: number } }>()
35
+ </script >
You can’t perform that action at this time.
0 commit comments