-
Notifications
You must be signed in to change notification settings - Fork 0
/
error.vue
58 lines (51 loc) · 1.11 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
<script setup lang="ts">
defineProps({
error: Object,
})
await useLocaleFromRoute()
const { t } = useI18n()
const localePath = useLocalePath()
const titleMessage = t('error_page_not_found')
const errorMessage = t('error_page_not_found_headline')
const goHome = t('error_go_home')
useHead({
title: `${titleMessage} - Miguel Manzano`
})
</script>
<template>
<div class="layout__container">
<div class="layout__background">
<MainHeader />
<div class="layout__content">
<h1 class="error__message"><strong>{{ errorMessage }}</strong></h1>
<NuxtLink :to="localePath('/')" class="error__link">
{{ goHome }}
</NuxtLink>
</div>
</div>
</div>
</template>
<style scoped>
.layout__container {
width: 100%;
}
.layout__background {
min-height: 100vh;
font-size: 1.25rem;
background-color: var(--layout-bg-color);
}
.layout__content {
margin: 0 auto;
max-width: 1024px;
padding: 1rem;
}
.error__message {
padding: 0px 2.5rem;
margin: 0px 2.5rem;
}
.error__link {
padding: 0px 2.5rem;
margin: 0px 2.5rem;
text-decoration: underline;
}
</style>