-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patherror.vue
More file actions
60 lines (48 loc) · 1.13 KB
/
error.vue
File metadata and controls
60 lines (48 loc) · 1.13 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<template>
<div class="app">
<!-- <Header /> -->
<main class="content">
<div class="container-xxl error-wrapper">
<h1 class="text-center">Error {{ (error as any).statusCode }}</h1>
</div>
</main>
<Footer />
</div>
</template>
<script setup lang="ts">
import type { NuxtError } from '#app';
import Footer from '@/components/Footer.vue';
const props = defineProps({
error: Object as () => NuxtError
})
const handleError = () => clearError({ redirect: '/' })
useSeoMeta({
title: `Error ${(props.error as any).statusCode} | NetIgnite`,
description: 'An error occurred while processing your request.',
});
</script>
<style scoped>
.app {
font-family: "Rubik", sans-serif;
background-color: #0b0c1b;
color: white;
font-size: 16px;
margin: 0;
padding: 0;
min-height: 100vh;
word-wrap: break-word;
display: flex;
flex-direction: column;
}
.content {
margin-top: 6rem;
flex-grow: 1;
display: flex;
flex-direction: column;
height: 100%;
}
.error-wrapper {
margin: auto;
max-width: 500px;
}
</style>