From 33dfd4a3218ae1bdce00b8caf7ba635653a797ea Mon Sep 17 00:00:00 2001 From: Will Freeman Date: Wed, 4 Dec 2024 15:48:06 -0700 Subject: [PATCH] QR Code Page (#15) * First pass on QR Code page * Overhaul QRLandingView.vue to allow for location data support * oops -- fix comment * QRLandingView: Change location scheme We don't want to embed the map on this page for the moment, so we're going to redirect the user instead. * Fix styling * update qr page * get user location on click so that we don't creep people out * show the whole US by default --------- Co-authored-by: Bludoo <12192277+Bludoo@users.noreply.github.com> --- webapp/src/router/index.ts | 5 + webapp/src/views/HomeView.vue | 4 +- webapp/src/views/QRLandingView.vue | 175 +++++++++++++++++++++++++++++ 3 files changed, 183 insertions(+), 1 deletion(-) create mode 100644 webapp/src/views/QRLandingView.vue diff --git a/webapp/src/router/index.ts b/webapp/src/router/index.ts index 0d0163c..2a94127 100644 --- a/webapp/src/router/index.ts +++ b/webapp/src/router/index.ts @@ -56,6 +56,11 @@ const router = createRouter({ name: 'legal', component: () => import('../views/LegalView.vue') }, + { + path: '/qr', + name: 'qr-landing', + component: () => import('../views/QRLandingView.vue') + }, { path: '/:pathMatch(.*)*', name: 'not-found', diff --git a/webapp/src/views/HomeView.vue b/webapp/src/views/HomeView.vue index a936f5a..51c59bb 100644 --- a/webapp/src/views/HomeView.vue +++ b/webapp/src/views/HomeView.vue @@ -256,7 +256,9 @@ onMounted(() => { }; } } else { - center.value = { lat: 37.875190, lng: -122.279819 }; + // show US map by default + zoom.value = 4; + center.value = { lat: 39.8283, lng: -98.5795 }; } }); diff --git a/webapp/src/views/QRLandingView.vue b/webapp/src/views/QRLandingView.vue new file mode 100644 index 0000000..aff7c6b --- /dev/null +++ b/webapp/src/views/QRLandingView.vue @@ -0,0 +1,175 @@ + + + + + +