-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.vue
71 lines (62 loc) · 1.71 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
<script setup lang="ts">
import type { NuxtError } from "#app";
const { hide } = useLoading();
defineProps<{ error: NuxtError }>();
onMounted(() => {
hide();
});
</script>
<template>
<NuxtLayout>
<main class="max-w-1920px mx-auto px-24px md:px-48px">
<section class="flex justify-center max-w-900px mx-auto pb-60px">
<div class="text-center relative">
<div
class="icon i-iconoir:warning-triangle absolute top-1/2 left-1/2 text-400px md:text-600px -translate-1/2"
/>
<div class="relative z-1">
<h2
class="text-150px md:text-280px leading-150px md:leading-280px font-black pt-5"
>
{{ error.statusCode }}
</h2>
<p
class="text-28px md:text-42px font-bold text-black dark:text-white mb-1"
>
Page Not Found
</p>
<p class="text-xs">
Oops! The page you are looking for does not exist.<br />It might
have been moved or deleted.
</p>
<div class="flex justify-center">
<NuxtLink
to="/"
class="block mt-8 px-2 py-1 text-16px font-black bg-black dark:bg-white text-white dark:text-black hover:opacity-60 duration-350"
>
Back To Home
</NuxtLink>
</div>
</div>
</div>
</section>
</main>
</NuxtLayout>
</template>
<style scoped lang="scss">
main {
width: 100vw;
height: calc(100dvh - 68px);
padding-top: 12dvh;
}
.icon {
opacity: 0.05;
}
h2 {
-webkit-text-stroke: 1px black;
color: transparent;
}
.dark-mode h2 {
-webkit-text-stroke: 1px white;
}
</style>