mirror of
https://github.com/Paris-est-Ludique/ForceOrange.git
synced 2025-09-11 06:26:29 +02:00
🎨 Working app and shared with start of pages
This commit is contained in:
committed by
ChatonDeAru (Romain)
parent
f69a53fa0a
commit
c35de52aec
37
modules/app/error.vue
Normal file
37
modules/app/error.vue
Normal file
@@ -0,0 +1,37 @@
|
||||
<script setup lang="ts">
|
||||
import type { NuxtError } from '#app'
|
||||
|
||||
const props = defineProps({
|
||||
error: Object as () => NuxtError
|
||||
})
|
||||
|
||||
const handleError = () => clearError({ redirect: '/' })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UMain>
|
||||
<div v-if="error?.statusCode === 404">
|
||||
<div i-mdi-robot-confused text-8xl text-white block />
|
||||
<div text-white>
|
||||
<h1>
|
||||
404<br />
|
||||
Page non trouvée
|
||||
</h1>
|
||||
</div>
|
||||
<div>
|
||||
<UButton m="3 t8" @click="handleError" bg-white font-bold>
|
||||
Retourner vite sur Force Orange
|
||||
</UButton>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
<h1>{{ error?.statusCode }}</h1>
|
||||
|
||||
{{ error?.message }}
|
||||
|
||||
<UButton m="3 t8" @click="handleError" bg-white font-bold>
|
||||
Retourner vite sur FO
|
||||
</UButton>
|
||||
</div>
|
||||
</UMain>
|
||||
</template>
|
Reference in New Issue
Block a user