-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.vue
22 lines (21 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
<script setup lang="ts">
const error = useError();
const title = '404 Not Found';
</script>
<template>
<NuxtLayout>
<div class="flex flex-col items-center justify-center min-h-screen bg-black text-text">
<Head>
<!-- ini merupakan cara menambahkan head pada Nuxt -->
<Html lang="en" />
<Title>{{ title }}</Title>
<Meta name="description" :content="title" />
</Head>
<span class="mb-8 text-center md:mb-0 md:gap-x-5 md:flex md:justify-center md:items-center">
<h1 class="mb-4 text-6xl font-bold">404</h1>
<h2 class="text-2xl md:mb-0">File Not Found</h2>
</span>
<NuxtLink to="/" class="px-4 py-2 text-white transition duration-300 ease-in-out bg-teal-500 rounded-md hover:shadow-md hover:shadow-teal-500">Go back to homepage</NuxtLink>
</div>
</NuxtLayout>
</template>