-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.vue
More file actions
42 lines (39 loc) · 805 Bytes
/
error.vue
File metadata and controls
42 lines (39 loc) · 805 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
30
31
32
33
34
35
36
37
38
39
40
41
42
<script setup lang="ts">
import type { NuxtError } from "#app";
const props = defineProps({
error: Object as () => NuxtError,
});
useHead({
title: props.error?.statusCode.toString(),
});
</script>
<template>
<NuxtLayout>
<div class="error">
<div class="error__body">
<span>Упс.. Что-то пошло не так</span>
<h2>{{ error?.statusCode }}</h2>
<NuxtLink :external="true" to="/">На главную</NuxtLink>
</div>
</div>
</NuxtLayout>
</template>
<style scoped lang="scss">
.error {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
&__body {
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
span {
}
h2 {
font-size: 3rem;
}
}
}
</style>