aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/default.vue20
-rw-r--r--layouts/error.vue18
2 files changed, 38 insertions, 0 deletions
diff --git a/layouts/default.vue b/layouts/default.vue
new file mode 100644
index 0000000..caa0b03
--- /dev/null
+++ b/layouts/default.vue
@@ -0,0 +1,20 @@
+<template>
+ <div>
+ <Navbar/>
+ <nuxt/>
+ <Footer/>
+ </div>
+</template>
+
+<script>
+ import Navbar from "../components/Navbar";
+ import Footer from "../components/Footer";
+ export default {
+ name: "default",
+ components: {Navbar, Footer}
+ }
+</script>
+
+<style scoped>
+
+</style> \ No newline at end of file
diff --git a/layouts/error.vue b/layouts/error.vue
new file mode 100644
index 0000000..29f73d3
--- /dev/null
+++ b/layouts/error.vue
@@ -0,0 +1,18 @@
+<template>
+ <div class="container">
+ <h1 v-if="error.statusCode === 404">Page not found</h1>
+ <h1 v-else>An error occurred</h1>
+ <nuxt-link to="/">Home page</nuxt-link>
+ </div>
+</template>
+
+<script>
+ export default {
+ name: "error",
+ props: ['error']
+ }
+</script>
+
+<style scoped>
+
+</style> \ No newline at end of file