From 6b1e20d5447f6deff60bc8d617c4e18842811b66 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Tue, 31 Jan 2023 09:13:18 +0100 Subject: [PATCH] Added login page. --- .../src/components/AccountMenuItem.vue | 14 +++- .../src/components/StandardCenteredPage.vue | 14 ++-- gymboard-app/src/pages/IndexPage.vue | 44 ++++++----- gymboard-app/src/pages/LoginPage.vue | 78 +++++++++++++++++++ gymboard-app/src/pages/TestingPage.vue | 26 ++++--- gymboard-app/src/pages/gym/GymPage.vue | 44 ++++++----- gymboard-app/src/router/routes.ts | 2 + 7 files changed, 159 insertions(+), 63 deletions(-) create mode 100644 gymboard-app/src/pages/LoginPage.vue diff --git a/gymboard-app/src/components/AccountMenuItem.vue b/gymboard-app/src/components/AccountMenuItem.vue index 48321bd..b5dcd13 100644 --- a/gymboard-app/src/components/AccountMenuItem.vue +++ b/gymboard-app/src/components/AccountMenuItem.vue @@ -21,7 +21,7 @@ v-if="!authStore.loggedIn" no-caps icon="person" - to="/login" + @click="goToLoginPage" /> @@ -29,8 +29,20 @@ diff --git a/gymboard-app/src/components/StandardCenteredPage.vue b/gymboard-app/src/components/StandardCenteredPage.vue index 7878a7c..229f1ef 100644 --- a/gymboard-app/src/components/StandardCenteredPage.vue +++ b/gymboard-app/src/components/StandardCenteredPage.vue @@ -6,13 +6,11 @@ width for smaller screens. Use this as the root component for any pages you create. --> diff --git a/gymboard-app/src/pages/IndexPage.vue b/gymboard-app/src/pages/IndexPage.vue index c6f6f1a..62ab279 100644 --- a/gymboard-app/src/pages/IndexPage.vue +++ b/gymboard-app/src/pages/IndexPage.vue @@ -1,25 +1,27 @@ + + diff --git a/gymboard-app/src/pages/TestingPage.vue b/gymboard-app/src/pages/TestingPage.vue index e82604e..f21b396 100644 --- a/gymboard-app/src/pages/TestingPage.vue +++ b/gymboard-app/src/pages/TestingPage.vue @@ -1,16 +1,18 @@