-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.vue
More file actions
29 lines (28 loc) · 697 Bytes
/
Copy patherror.vue
File metadata and controls
29 lines (28 loc) · 697 Bytes
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 lang="ts">
const handleError = () => clearError({ redirect: '/' })
const error = useError()
</script>
<template>
<NuxtLayout>
<NuxtLoadingIndicator bg="green" />
<div
flex="~ col"
justify="center"
items-center
h="80vh lg:70vh"
w="full"
text="gray-100 sm lg:lg"
p="3vh lg:6vh"
>
<div text="xl lg:4xl center" font="sans bold" mb-2>
Whoops.
</div>
<div text="sm lg:base center" mb-4>
{{ error?.message || 'Something went wrong.' }}
</div>
<button font-mono text="gray-500 lg lg:xl" underline @click="handleError">
cd ~/
</button>
</div>
</NuxtLayout>
</template>