-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.vue
29 lines (24 loc) · 1.05 KB
/
error.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<script setup>
defineProps(['error'])
const clear = () => {
window.location = '/'
}
const refresh = () => {
window.location.reload()
}
</script>
<template>
<NuxtLayout name="bg-layout">
<div class="flex flex-col items-center justify-center h-full px-3">
<h1 class="text-white/80 text-7xl font-bold">{{error.statusCode}}!</h1>
<div class="flex flex-col items-center mt-3">
<p class="text-white/80 text-base mr-2">{{error.message}}</p>
<div class="flex">
<button @click="refresh" class="btnEffect bg-white/10 border border-white/20 rounded-md text-sm font-semibold text-white/80 px-3 py-1 mt-1.5 w-fit mr-2">Refresh</button>
<button @click="clear" class="btnEffect bg-white/10 border border-white/20 rounded-md text-sm font-semibold text-white/80 px-3 py-1 mt-1.5 w-fit">Go Home</button>
</div>
</div>
<Icon name="fluent-emoji:flying-saucer" size="10em" />
</div>
</NuxtLayout>
</template>