404 page migration (#277)

This commit is contained in:
formsdev 2024-01-05 15:19:30 +05:30 committed by GitHub
parent 95b8853ed7
commit 04170ca9fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 24 deletions

25
client/error.vue Normal file
View File

@ -0,0 +1,25 @@
<template>
<NuxtLayout>
<div class="flex mt-6">
<div class="w-full md:w-2/3 md:mx-auto md:max-w-md">
<img alt="Nice plant as we have nothing else to show!" src="/img/icons/plant.png" class="w-56 mb-5">
<h1 class="mb-4 font-semibold text-3xl text-gray-900">
Page Not Found
</h1>
<div class="links">
<NuxtLink :to="{ name: 'index' }" class="hover:underline text-gray-700">
Go Home
</NuxtLink>
</div>
</div>
</div>
</NuxtLayout>
</template>
<script setup>
useOpnSeoMeta({
title: '404 - Page not found'
})
</script>

View File

@ -1,24 +0,0 @@
<template>
<div class="flex mt-6">
<div class="w-full md:w-2/3 md:mx-auto md:max-w-md">
<img alt="Nice plant as we have nothing else to show!" src="/img/icons/plant.png" class="w-56 mb-5">
<h1 class="mb-4 font-semibold text-3xl text-gray-900">
Page Not Found
</h1>
<div class="links">
<NuxtLink :to="{ name: 'index' }" class="hover:underline text-gray-700">
Go Home
</NuxtLink>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'NotFound'
}
</script>