Skip to content

Commit 5381605

Browse files
committed
Add error page
1 parent e8082b0 commit 5381605

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

frontend/error.vue

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<script setup lang="ts">
2+
import type { NuxtError } from "#app";
3+
4+
defineProps<{
5+
/** The error passed into the page by Nuxt. */
6+
error: NuxtError;
7+
}>();
8+
</script>
9+
10+
<template>
11+
<SmallPanelLayout>
12+
<h1>Error {{ error.statusCode }}</h1>
13+
14+
<p>{{ error.message }}</p>
15+
16+
<template #bottom-text>
17+
<p>
18+
<A href="/">Go Home</A>
19+
</p>
20+
</template>
21+
</SmallPanelLayout>
22+
</template>
23+
24+
<style scoped lang="scss">
25+
:deep(main) {
26+
text-align: center;
27+
}
28+
</style>

0 commit comments

Comments
 (0)