Files
homebox/frontend/error.vue
Nikolai Oakfield 3a4fae5eb8 Fix untranslated strings (#756)
* add missing translations and translate page titles

* fix: actually use the declared localized variables

* lint and prettier fixes

* add missing translations for toasts and confirms

* use components for shift/enter keys, add pluralization for photos, and fix primary photo conditional

* remove prop defaults since we're computing these anyways
2025-05-29 12:56:30 +00:00

24 lines
676 B
Vue

<script setup lang="ts">
import type { NuxtError } from "#app";
import { buttonVariants } from "@/components/ui/button";
const props = defineProps({
error: {
type: Object as () => NuxtError,
required: true,
},
});
console.log(props.error);
</script>
<template>
<main class="grid min-h-screen w-full place-items-center">
<h1 class="flex flex-col gap-5 text-center font-extrabold">
<span class="text-7xl">{{ error.statusCode }}.</span>
<span class="text-5xl"> {{ error.message }} </span>
<NuxtLink to="/" :class="buttonVariants({ size: 'lg' })"> {{ $t("global.return_home") }} </NuxtLink>
</h1>
</main>
</template>