From 9138f0c13eb1fc57616ca4b4c5db650a2b2e38e7 Mon Sep 17 00:00:00 2001 From: Melissa Autumn Date: Thu, 15 Aug 2024 11:51:29 -0700 Subject: [PATCH] Add a "Sign up for the beta" button to the homepage --- frontend/src/locales/en.json | 1 + frontend/src/router.ts | 8 ++++++++ frontend/src/views/HomeView.vue | 12 ++++++++++++ frontend/src/views/LoginView.vue | 15 ++++++++++++--- 4 files changed, 33 insertions(+), 3 deletions(-) diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 6cf7a91fe..013db59b7 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -281,6 +281,7 @@ "settings": "Settings", "shareMyLink": "Share my link", "showSecondaryTimeZone": "Show secondary time zone", + "signUpForBeta": "Sign up for the beta", "signInWithGoogle": "Sign in with Google", "signUpWithInviteCode": "Sign up with invite code", "slotLength": "Booking Duration", diff --git a/frontend/src/router.ts b/frontend/src/router.ts index 5d00bcf11..ca2b76c12 100644 --- a/frontend/src/router.ts +++ b/frontend/src/router.ts @@ -50,6 +50,14 @@ const routes: RouteRecordRaw[] = [ isPublic: true, }, }, + { + path: '/waiting-list', + name: 'join-the-waiting-list', + component: LoginView, + meta: { + isPublic: true, + }, + }, { path: '/post-login/:token', name: 'post-login', diff --git a/frontend/src/views/HomeView.vue b/frontend/src/views/HomeView.vue index 8d595da26..d9823cb3a 100644 --- a/frontend/src/views/HomeView.vue +++ b/frontend/src/views/HomeView.vue @@ -17,6 +17,9 @@ const enter = () => { const login = () => { router.push('/login'); }; +const signUp = () => { + router.push('/waiting-list') +};