From f09dd797545e514bd62233304e433e046e6d1266 Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Tue, 9 Oct 2018 13:29:53 +0100 Subject: [PATCH] Added proper homepage. --- frontend/src/App.vue | 9 ++++++++- frontend/src/router.js | 6 ++++++ frontend/src/views/Home.vue | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 frontend/src/views/Home.vue diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 7454046..f53eca6 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -19,12 +19,13 @@
- + + diff --git a/frontend/src/router.js b/frontend/src/router.js index 99c7587..9375a5a 100644 --- a/frontend/src/router.js +++ b/frontend/src/router.js @@ -1,5 +1,6 @@ import Vue from "vue"; import Router from "vue-router"; +import Home from "./views/Home.vue"; import StartNew from "./views/StartNew.vue"; import Observation from "./views/Observation.vue"; import Stats from "./views/Stats.vue"; @@ -12,6 +13,11 @@ Vue.use(Router); export default new Router({ routes: [ + { + path: "/", + name: "home", + component: Home + }, { path: "/new", name: "startnew", diff --git a/frontend/src/views/Home.vue b/frontend/src/views/Home.vue new file mode 100644 index 0000000..b600cba --- /dev/null +++ b/frontend/src/views/Home.vue @@ -0,0 +1,34 @@ + + + + + \ No newline at end of file