From f63da5484a4a74023b692cde0244a171297d154c Mon Sep 17 00:00:00 2001 From: Grady Ward Date: Tue, 15 Oct 2024 17:54:27 -0400 Subject: [PATCH] Modernizes the Login Page, adds branding --- frontend/assets/scss/_reco.scss | 4 + frontend/components/ProfileEditor.vue | 74 ------- frontend/components/category/Option.vue | 15 ++ frontend/components/{ => company}/Logo.vue | 0 .../components/{ => company}/LogoButton.vue | 2 +- frontend/components/company/NameMark.vue | 17 ++ frontend/components/standard/Page.vue | 2 +- frontend/lib/categories/index.ts | 7 + frontend/pages/index.vue | 4 +- frontend/pages/recommend.vue | 88 +++++--- .../pages/{request.vue => request/index.vue} | 0 .../request/new.vue} | 30 +-- frontend/pages/sign-in.vue | 208 ++++++++++-------- 13 files changed, 235 insertions(+), 216 deletions(-) delete mode 100644 frontend/components/ProfileEditor.vue create mode 100644 frontend/components/category/Option.vue rename frontend/components/{ => company}/Logo.vue (100%) rename frontend/components/{ => company}/LogoButton.vue (95%) create mode 100644 frontend/components/company/NameMark.vue create mode 100644 frontend/lib/categories/index.ts rename frontend/pages/{request.vue => request/index.vue} (100%) rename frontend/{components/RequestCreator.vue => pages/request/new.vue} (64%) diff --git a/frontend/assets/scss/_reco.scss b/frontend/assets/scss/_reco.scss index 0fd5143..f04282d 100644 --- a/frontend/assets/scss/_reco.scss +++ b/frontend/assets/scss/_reco.scss @@ -10,3 +10,7 @@ body, .border-standard { border-color: var(--p-surface-300); } + +body { + color: var(--p-text-color); +} diff --git a/frontend/components/ProfileEditor.vue b/frontend/components/ProfileEditor.vue deleted file mode 100644 index 2be8442..0000000 --- a/frontend/components/ProfileEditor.vue +++ /dev/null @@ -1,74 +0,0 @@ - - - diff --git a/frontend/components/category/Option.vue b/frontend/components/category/Option.vue new file mode 100644 index 0000000..a319d51 --- /dev/null +++ b/frontend/components/category/Option.vue @@ -0,0 +1,15 @@ + + + diff --git a/frontend/components/Logo.vue b/frontend/components/company/Logo.vue similarity index 100% rename from frontend/components/Logo.vue rename to frontend/components/company/Logo.vue diff --git a/frontend/components/LogoButton.vue b/frontend/components/company/LogoButton.vue similarity index 95% rename from frontend/components/LogoButton.vue rename to frontend/components/company/LogoButton.vue index 2497e8c..fa4c00e 100644 --- a/frontend/components/LogoButton.vue +++ b/frontend/components/company/LogoButton.vue @@ -15,7 +15,7 @@ const classes = computed(() => isHome.value ? '' : 'p-button-outlined') :disabled="disabled" @click="click" > - + diff --git a/frontend/components/company/NameMark.vue b/frontend/components/company/NameMark.vue new file mode 100644 index 0000000..1e617b3 --- /dev/null +++ b/frontend/components/company/NameMark.vue @@ -0,0 +1,17 @@ + \ No newline at end of file diff --git a/frontend/components/standard/Page.vue b/frontend/components/standard/Page.vue index 4db221b..b46fc76 100644 --- a/frontend/components/standard/Page.vue +++ b/frontend/components/standard/Page.vue @@ -30,7 +30,7 @@ const footerButtonClasses = 'p-button-text p-button-sm' @click="back" /> - +

{{ props.title }}

diff --git a/frontend/lib/categories/index.ts b/frontend/lib/categories/index.ts new file mode 100644 index 0000000..4e683cd --- /dev/null +++ b/frontend/lib/categories/index.ts @@ -0,0 +1,7 @@ +import { Category } from '@/graphql/generated' + +export type CategoryOption = { label: string, icon: string, value: Category } +export const categoryOptions = [ + { label: 'Book', value: Category.Book, icon: 'pi pi-book' }, + { label: 'Movie', value: Category.Movie, icon: 'pi pi-play' }, +] \ No newline at end of file diff --git a/frontend/pages/index.vue b/frontend/pages/index.vue index cbcf397..9dd825e 100644 --- a/frontend/pages/index.vue +++ b/frontend/pages/index.vue @@ -8,7 +8,7 @@ const menuButtonClasses = {