From 3379ba53b407808119feb73906b85f3eff840d68 Mon Sep 17 00:00:00 2001 From: Jon Grim Date: Fri, 1 Dec 2023 16:34:00 +0100 Subject: [PATCH] Membership loading (#219) * update sign in forms * add some mobile treatment and clean up * remove dashboard announcement --- src/App.vue | 45 +-- src/components/Modals/SignUpModal.vue | 36 ++- src/components/Navigation/MobileNavHeader.vue | 2 +- src/components/SignUpForm.vue | 72 ++--- src/components/UserMenu.vue | 29 +- src/pages/Community/CommunityBase.vue | 4 + src/pages/Community/CommunityHome.vue | 6 +- src/pages/Community/CommunityMembership.vue | 40 ++- src/pages/Home/IllustratedLinkCard.vue | 9 +- src/pages/Home/NextWeekGames.vue | 39 +++ src/pages/IndexPage.vue | 262 ++++++++++-------- src/pages/PrivacyPolicy.vue | 8 +- src/pages/SignIn.vue | 38 +-- src/pages/UserDashboard.vue | 26 -- src/storeActions.ts | 5 + 15 files changed, 347 insertions(+), 274 deletions(-) create mode 100644 src/pages/Home/NextWeekGames.vue diff --git a/src/App.vue b/src/App.vue index 84f05ed..6d89590 100644 --- a/src/App.vue +++ b/src/App.vue @@ -7,43 +7,15 @@ @close="showNewProfileModal = false" /> -
- -
- -
-

- Your personal view of your next week of gaming is now available! -

-

- Check it out now, or any time on the home page. -

-
-
-
diff --git a/src/pages/IndexPage.vue b/src/pages/IndexPage.vue index 358fe2a..e85856f 100644 --- a/src/pages/IndexPage.vue +++ b/src/pages/IndexPage.vue @@ -9,125 +9,117 @@ new email.

-
- - -
- -
-
-
-
-

- Welcome {{ store.user.username || store.user.email }} -

-

- Here's your next week of gaming +

+
+ + +
+
+
+
+

+ Loading your personal dashboard. One moment please.

+
+

+ Welcome {{ store.user.username || store.user.email }} +

+

+ Here's your next week of gaming +

+
+
-
-
- -
- -

- You can click on a user's image or avatar and see more info about - times you've played together -

-
-
- -
-
-
-
- - Ready for another game? - -

- Sessions with openings in the next seven days -

+ +

+ You can click on a user's image or avatar and see more info about + times you've played together +

+
+
+ +
+
+
+
- +

+ Join roleplaying communities and games now with your free acount +

+ + Sign up now + +
+
- -
+ + + + diff --git a/src/pages/PrivacyPolicy.vue b/src/pages/PrivacyPolicy.vue index 10e204e..8062383 100644 --- a/src/pages/PrivacyPolicy.vue +++ b/src/pages/PrivacyPolicy.vue @@ -1,7 +1,7 @@ diff --git a/src/pages/SignIn.vue b/src/pages/SignIn.vue index 706c08a..157a8ff 100644 --- a/src/pages/SignIn.vue +++ b/src/pages/SignIn.vue @@ -4,27 +4,33 @@

Awesome! Watch your email for a confirmation message very soon!

- +
+ +
Sign in - Need an account? Sign up - -
+ +
+ +
+

OR

+
Email
@@ -44,14 +50,10 @@ Forgot password? -

OR

-
- -
@@ -64,13 +66,13 @@ import PrimaryButton from "@/components/Buttons/PrimaryButton.vue"; import { ref } from "vue"; import { supabase } from "@/supabase"; import BaseTemplate from "@/layouts/BaseTemplate.vue"; -import LinkButton from "@/components/Buttons/LinkButton.vue"; import useToast from "@/components/Toast/useToast"; import { log } from "@/util/logger"; import { useRouter, useRoute } from "vue-router"; import { store } from "@/store"; import GoogleButton from "@/components/Buttons/GoogleButton.vue"; import SignUpForm from "../components/SignUpForm.vue"; +import BaseButton from "@/components/Buttons/BaseButton.vue"; const route = useRoute(); const router = useRouter(); diff --git a/src/pages/UserDashboard.vue b/src/pages/UserDashboard.vue index 0984e21..8490869 100644 --- a/src/pages/UserDashboard.vue +++ b/src/pages/UserDashboard.vue @@ -136,35 +136,10 @@
-
-
- - Ready for another game? - -

- Sessions with openings in the next seven days -

-
-
- -
-
-
-