Add error page

Add loading skeleton
This commit is contained in:
2025-10-11 22:30:25 +02:00
parent b3f0099b97
commit be463ae56a
2 changed files with 19 additions and 1 deletions

16
website/app/error.vue Normal file
View File

@@ -0,0 +1,16 @@
<template>
<div>
<h1>{{ error?.statusCode }}</h1>
<p>{{ error?.message }}</p>
<NuxtLink to="/">Go back home</NuxtLink>
<NuxtLink to="https://github.com/C9Glax/tranga-website/issues/new"><Icon name="i-lucide-github" />Report this issue</NuxtLink>
</div>
</template>
<script setup lang="ts">
import type { NuxtError } from '#app'
defineProps({
error: Object as () => NuxtError,
})
</script>