diff --git a/public/gt-blank-init-bg.mp4 b/public/gt-blank-init-bg.mp4 new file mode 100644 index 0000000..bea5b8f Binary files /dev/null and b/public/gt-blank-init-bg.mp4 differ diff --git a/public/gt-blank-way0.jpg b/public/gt-blank-way0.jpg new file mode 100644 index 0000000..b47ef25 Binary files /dev/null and b/public/gt-blank-way0.jpg differ diff --git a/public/gt-blank-way1.jpg b/public/gt-blank-way1.jpg new file mode 100644 index 0000000..64ea195 Binary files /dev/null and b/public/gt-blank-way1.jpg differ diff --git a/src/router/index.js b/src/router/index.js index 4af672b..e553bd7 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,6 +1,5 @@ import Vue from 'vue' import VueRouter from 'vue-router' -import Home from '../views/Home.vue' Vue.use(VueRouter) @@ -8,15 +7,49 @@ const routes = [ { path: '/', name: 'Home', - component: Home + component: () => import('../views/Home.vue') + }, + // { + // path: '/event/gtblank-init', + // name: 'GtblankInit', + // meta: { title: 'gtblank - init (content warning: flashy lights)' }, + // component: () => import('../views/events/gtblank-init/GtblankInit.vue') + // }, + { + path: '/event/gtblank-init/directions', + name: 'GtblankInit', + meta: { title: 'gtblank - init >> directions' }, + component: () => import('../views/events/gtblank-init/GtBlankDirections.vue') + }, + // { + // path: '/event/okt28', + // name: 'Okt28', + // component: () => import('../views/events/okt-28/Okt28.vue') + // }, + { + path: '/event/ignaz', + name: 'Ignaz', + component: () => import('../views/events/ignaz/Ignaz.vue') }, { path: '/cancel/:token', name: 'Cancel', - // 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/Cancel.vue') + component: () => import('../views/Cancel.vue') + }, + { + path: '/reservation/:token', + name: 'Reservation', + component: () => import('../views/Reservation.vue') + }, + { + path: '/invalidate', + name: 'Reservation', + component: () => import('../views/Invalidate.vue') + }, + { + path: '/reservations/:secret', + name: 'Reservations', + component: () => import('../views/Reservations.vue') } ] @@ -26,4 +59,14 @@ const router = new VueRouter({ routes }) +const DEFAULT_TITLE = 'event reservation'; +router.afterEach((to) => { + // Use next tick to handle router history correctly + // see: https://github.com/vuejs/vue-router/issues/914#issuecomment-384477609 + Vue.nextTick(() => { + document.title = to.meta.title || DEFAULT_TITLE; + }); +}); + + export default router diff --git a/src/views/Cancel.vue b/src/views/Cancel.vue index 673d37c..04a4904 100644 --- a/src/views/Cancel.vue +++ b/src/views/Cancel.vue @@ -1,5 +1,5 @@