-
Notifications
You must be signed in to change notification settings - Fork 8
/
error.vue
44 lines (38 loc) · 1.07 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<script setup lang="ts">
const { t } = useI18n();
const { $appInsights } = useNuxtApp();
const props = defineProps({
error: Object,
});
$appInsights.event("error page shown", props.error);
function handleError() {
clearError();
}
</script>
<template>
<NuxtLayout>
<div class="relative grow font-sans">
<div class="max-w-200 container mx-auto mt-24 px-4 py-10">
<h1 class="type-display-3">{{ error?.message }}</h1>
<p class="pt-2">
That should not have happened. If this keeps happening feel free to
<a class="underline" href="mailto:[email protected]" target="_blank"
>contact support</a
>.
</p>
<br />
<div class="flex gap-2">
<ButtonStyled intent="primary" @click="handleError">{{
t("global.try-again")
}}</ButtonStyled>
<NuxtLink
class="type-title-1 rounded-3xl bg-background-2 px-4 py-2"
to="/"
>
Go to homepage
</NuxtLink>
</div>
</div>
</div>
</NuxtLayout>
</template>