-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.vue
67 lines (57 loc) · 1.52 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<template>
<NuxtLayout>
<div class="b-page-error">
<div class="container">
<h1>{{ props.pageTitle }}.</h1>
<h2>404</h2>
<AtomsImage
:classnames="'is-image-error'"
:src="'/images/star-wars-no.gif'"
:alt="'Nope.'"
/>
<p>
This page seems not working or not correct. Please try
again.
</p>
<AtomsLinkButton
to="/"
text="Back to the home page"
classnames="is-button-error"
/>
</div>
</div>
</NuxtLayout>
</template>
<script setup lang="ts">
const runtimeConfig = useRuntimeConfig()
const props = defineProps({
pageTitle: {
type: String,
default: 'Page not found',
},
})
useHead({
title: `${props.pageTitle} | ${runtimeConfig.public.metaHeadDefaultTitleShort}`,
meta: [
{
name: 'description',
content: `${props.pageTitle} | ${runtimeConfig.public.metaHeadDefaultTitleShort}`,
},
],
})
</script>
<style lang="scss">
.b-page-error {
padding-top: $space_06;
padding-bottom: $space_06;
text-align: center;
.is-image-error {
margin: $space_04 $space_00;
padding: $space_03;
border: 1px solid $color_page_error_image_border;
}
.is-button-error {
margin: $space_03 auto;
}
}
</style>