-
Notifications
You must be signed in to change notification settings - Fork 0
/
error.vue
34 lines (31 loc) · 862 Bytes
/
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
<template>
<NuxtLayout>
<div class="c-main">
<TextHero subtitle="Error" :title="error.statusCode.toString()" />
<section class="error-section">
<div class="container error-section__container">
<h2 class="error-section__title">These are not the <s>droids</s> pages you're looking for...</h2>
<p class="error-section__message">{{ error.message }}</p>
<NuxtLink to="/" class="error-section__cta button">Go back home</NuxtLink>
</div>
</section>
</div>
</NuxtLayout>
</template>
<style lang="scss">
.error-section {
margin: clamp(3.375rem, 2.893rem + 2.055vw, 5rem) 0;
max-width: 68rem;
&__message {
margin-bottom: 2rem;
}
}
</style>
<script setup lang="ts">
defineProps<{
error: {
statusCode: number;
message: string;
};
}>();
</script>