From 6018467db7cee591899783d0a898e1c5ffa83a2e Mon Sep 17 00:00:00 2001 From: jamesschuler Date: Fri, 26 May 2023 14:32:13 -0700 Subject: [PATCH] UI work --- frontend/index.html | 13 ++++++--- frontend/src/assets/styles/styles.scss | 6 +++++ .../{ProfileForm.vue => EditProfileForm.vue} | 24 +++++++++++++---- frontend/src/components/SearchForm.vue | 11 ++++++-- frontend/src/components/TrainerCard.vue | 12 ++++++--- frontend/src/pages/ProfilePage.vue | 4 +-- frontend/src/stores/profileStore.ts | 27 ++++++++++++++++--- frontend/src/types/api.ts | 12 +++++++-- 8 files changed, 88 insertions(+), 21 deletions(-) rename frontend/src/components/Profile/{ProfileForm.vue => EditProfileForm.vue} (86%) diff --git a/frontend/index.html b/frontend/index.html index 651c213..3d1e5fd 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -8,7 +8,10 @@ PoGo Trainer Hub - + - +
- + diff --git a/frontend/src/assets/styles/styles.scss b/frontend/src/assets/styles/styles.scss index 6bf33e0..0be758e 100644 --- a/frontend/src/assets/styles/styles.scss +++ b/frontend/src/assets/styles/styles.scss @@ -34,6 +34,12 @@ button { opacity: 0.8; cursor: pointer; } + + &:disabled { + background-color: #f5f5f5; + box-shadow: none; + cursor: not-allowed; + } } $gap: 32px !default; diff --git a/frontend/src/components/Profile/ProfileForm.vue b/frontend/src/components/Profile/EditProfileForm.vue similarity index 86% rename from frontend/src/components/Profile/ProfileForm.vue rename to frontend/src/components/Profile/EditProfileForm.vue index 2bda7b4..98d359f 100644 --- a/frontend/src/components/Profile/ProfileForm.vue +++ b/frontend/src/components/Profile/EditProfileForm.vue @@ -4,15 +4,18 @@ :validation-schema="schema" :initial-values="profile" v-slot="{ errors, isSubmitting }" + autocomplete="off" >

Edit Trainer Profile

@@ -80,6 +83,7 @@ type="button" class="m-4 rounded-lg border-2 border-black p-4 flex items-center hover:bg-gray-100" @click="addAlt" + :disabled="isSubmitting" > Add Trainer Alt @@ -108,18 +112,28 @@