dedicated homepage, updated qr page, added counter, clickable logo

This commit is contained in:
Will Freeman
2024-12-05 15:01:21 -07:00
parent 33dfd4a321
commit 1729a61dc5
9 changed files with 301 additions and 46 deletions
+17 -2
View File
@@ -1,5 +1,6 @@
import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import Landing from '../views/Landing.vue'
import Map from '../views/Map.vue'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
@@ -16,7 +17,12 @@ const router = createRouter({
{
path: '/',
name: 'home',
component: HomeView
component: Landing
},
{
path: '/map',
name: 'map',
component: Map
},
{
path: '/about',
@@ -69,4 +75,13 @@ const router = createRouter({
]
})
// backward compatibility with old url scheme
router.beforeEach((to, from, next) => {
if (to.path === '/' && to.hash) {
next({ path: '/map', hash: to.hash })
} else {
next()
}
})
export default router