-
Notifications
You must be signed in to change notification settings - Fork 0
/
error.vue
32 lines (31 loc) · 911 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 = defineProps(['error'])
const { statusCode, message } = error.error
useHead({
title: `${statusCode}`,
})
</script>
<template>
<NuxtLayout>
<section class="dark:bg-slate-900 bg-white">
<div
class="flex flex-col border-1 items-center justify-center px-6 mx-auto min-h-[calc(100vh-131px)]"
>
<div
class="w-full bg-white rounded-lg shadow border dark:border-none md:mt-0 sm:max-w-md xl:p-0 dark:bg-gray-800 dark:border-gray-700"
>
<div class="p-6 space-y-4 md:space-y-6 sm:p-8 text-center">
<h1 class="text-xl font-bold leading-tight tracking-tight text-red-500 md:text-2xl">
{{ statusCode }}
</h1>
<p
class="text-md font-bold leading-tight tracking-tight text-gray-900 md:text-2xl dark:text-white"
>
{{ message }}
</p>
</div>
</div>
</div>
</section>
</NuxtLayout>
</template>