summaryrefslogtreecommitdiff
path: root/iridescence/src/router/index.js
diff options
context:
space:
mode:
authorAdam Carpenter <atc@53hor.net>2020-04-23 08:07:35 -0400
committerAdam Carpenter <atc@53hor.net>2020-04-23 08:07:35 -0400
commit6e787a89e0c40f42d51681c960a18818650646b7 (patch)
tree5edad46e2dec72ebe5d00a4a7d53263b1d4d076e /iridescence/src/router/index.js
parentbe3b6030b4175f6c06d20dae8470b4a44a1befea (diff)
downloadtheglassyladies-6e787a89e0c40f42d51681c960a18818650646b7.tar.xz
theglassyladies-6e787a89e0c40f42d51681c960a18818650646b7.zip
switched back to js, added navbar with burger toggle
Diffstat (limited to 'iridescence/src/router/index.js')
-rw-r--r--iridescence/src/router/index.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/iridescence/src/router/index.js b/iridescence/src/router/index.js
new file mode 100644
index 0000000..3d5155d
--- /dev/null
+++ b/iridescence/src/router/index.js
@@ -0,0 +1,30 @@
+import Vue from "vue";
+import VueRouter from "vue-router";
+import Home from "../views/Home.vue";
+
+Vue.use(VueRouter);
+
+const routes = [
+ {
+ path: "/",
+ name: "Home",
+ component: Home
+ },
+ {
+ path: "/about",
+ name: "About",
+ // route level code-splitting
+ // this generates a separate chunk (about.[hash].js) for this route
+ // which is lazy-loaded when the route is visited.
+ component: () =>
+ import(/* webpackChunkName: "about" */ "../views/About.vue")
+ }
+];
+
+const router = new VueRouter({
+ mode: "history",
+ base: process.env.BASE_URL,
+ routes
+});
+
+export default router;