This commit is contained in:
Kar
2022-09-21 22:06:36 +05:30
commit 7a790d9211
31 changed files with 11874 additions and 0 deletions

10
layouts/default.vue Normal file
View File

@@ -0,0 +1,10 @@
<template>
<v-app >
<Header />
<v-main>
<Nuxt keep-alive :keep-alive-props="{ max: 60 }" />
<!-- <Nuxt /> -->
</v-main>
<Footer />
</v-app>
</template>

45
layouts/error.vue Normal file
View File

@@ -0,0 +1,45 @@
<template>
<v-app dark>
<h1 v-if="error.statusCode === 404">
{{ pageNotFound }}
</h1>
<h1 v-else>
{{ otherError }}
</h1>
<NuxtLink to="/">
Home page
</NuxtLink>
</v-app>
</template>
<script>
export default {
name: 'EmptyLayout',
layout: 'empty',
props: {
error: {
type: Object,
default: null
}
},
data () {
return {
pageNotFound: '404 Not Found',
otherError: 'An error occurred'
}
},
head () {
const title =
this.error.statusCode === 404 ? this.pageNotFound : this.otherError
return {
title
}
}
}
</script>
<style scoped>
h1 {
font-size: 20px;
}
</style>