28 lines
614 B
Vue
28 lines
614 B
Vue
<script setup lang="ts">
|
|||
|
|
import type { NuxtError } from '#app'
|
||
|
|
|
||
|
|
const props = defineProps<{ error: NuxtError }>()
|
||
|
|
|
||
|
|
const isNotFound = computed(() => props.error.statusCode === 404)
|
||
|
|
|
||
|
|
useSeoMeta({ robots: 'noindex' })
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<template>
|
||
|
|
<NuxtLayout>
|
||
|
|
<h1>{{ isNotFound ? 'Pagina non trovata' : 'Qualcosa è andato storto' }}</h1>
|
||
|
|
|
||
|
|
<p class="muted">
|
||
|
|
{{
|
||
|
|
isNotFound
|
||
|
|
? 'Il contenuto che cerchi non esiste o è stato spostato.'
|
||
|
|
: 'Riprova tra qualche istante.'
|
||
|
|
}}
|
||
|
|
</p>
|
||
|
|
|
||
|
|
<p>
|
||
|
|
<NuxtLink to="/">Torna alla home</NuxtLink>
|
||
|
|
</p>
|
||
|
|
</NuxtLayout>
|
||
|
|
</template>
|