-
Notifications
You must be signed in to change notification settings - Fork 0
/
error.vue
46 lines (40 loc) · 1.01 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
<script setup>
const pageMeta = {
title: "Page Not Found · Dawit",
description: "This page doesn't exist."
};
const serverMeta = {
ogImage: "/og-image.png",
twitterImage: "/og-image.png",
ogType: "website",
ogLocale: "en_US",
twitterCard: "summary",
twitterCreator: "@oneminch"
};
useSeoMeta({
title: () => pageMeta.title,
description: () => pageMeta.description,
ogTitle: () => pageMeta.title,
twitterTitle: () => pageMeta.title,
ogDescription: () => pageMeta.description,
twitterDescription: () => pageMeta.description,
...serverMeta
});
</script>
<template>
<!-- Sidebar -->
<app-side-bar />
<!-- Main Content -->
<main id="main-content" class="main-error">
<app-not-found />
</main>
<!-- Mobile Navigation -->
<app-nav
class="flex ring-1 ring-inset ring-green-500 md:hidden after:shadow-2xl"
/>
</template>
<style scoped>
#main-content.main-error {
@apply h-full flex flex-col items-center justify-center;
}
</style>