-
Notifications
You must be signed in to change notification settings - Fork 0
/
error.vue
96 lines (88 loc) · 1.66 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<script lang="ts" setup>
useHead({
title: "error-page",
});
definePageMeta({
layout: "default",
});
defineProps({
error: Object,
});
</script>
<template>
<div class="error">
<PageTitle title="NOT FOUND" />
<h1 class="error-number">
{{ error?.statusCode }}
</h1>
<p class="main">お探しのページは見つかりませんでした。</p>
<a class="home" @click="clearError({ redirect: '/' })">
<img src="/images/button-side-img.svg" class="button-side" />
<h2 class="go-home">ホームに戻る</h2>
<img src="/images/button-side-img.svg" class="button-side" />
</a>
</div>
</template>
<style lang="scss" scoped>
@use "assets/scss/_breakpoint.scss" as *;
.error {
background-color: var(--main-background-color);
height: 100vh;
}
.error-number {
font-size: 160px;
font-weight: bolder;
color: #575f6a;
justify-content: center;
text-align: center;
margin: 20px auto;
@include md {
font-size: 100px;
}
@include sm {
font-size: 48px;
}
}
.main {
font-size: 48px;
color: #575f6a;
margin: 20px auto;
text-align: center;
@include md {
font-size: 24px;
}
@include sm {
font-size: 12px;
}
}
.home {
width: fit-content;
display: flex;
justify-content: center;
text-align: center;
margin: 20px auto;
background: url(/images/wave-underline.svg) bottom repeat-x;
}
.go-home {
font-size: 56px;
color: #575f6a;
justify-content: center;
text-align: center;
cursor: pointer;
@include md {
font-size: 32px;
}
@include sm {
font-size: 16px;
}
}
.button-side {
width: 56px;
@include md {
width: 32px;
}
@include sm {
width: 16px;
}
}
</style>