From 7f8add572d4c6954d4cd2e849f169689d9caf9d3 Mon Sep 17 00:00:00 2001 From: Titus Kristiansen <titusk@stud.ntnu.no> Date: Mon, 2 May 2022 15:10:48 +0200 Subject: [PATCH] Header styling --- .../CommunityComponents/NewCommunityForm.vue | 19 ++++++++++--------- src/components/FormComponents/LoginForm.vue | 2 +- .../FormComponents/RegisterForm.vue | 2 +- src/components/ItemComponents/NewItemForm.vue | 6 +++--- src/views/CommunityViews/CommunityView.vue | 2 +- 5 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/components/CommunityComponents/NewCommunityForm.vue b/src/components/CommunityComponents/NewCommunityForm.vue index ed7394f..c6b2a8e 100644 --- a/src/components/CommunityComponents/NewCommunityForm.vue +++ b/src/components/CommunityComponents/NewCommunityForm.vue @@ -2,7 +2,7 @@ <div class="md:ring-1 ring-gray-300 rounded-xl overflow-hidden mx-auto mb-auto max-w-md w-full p-4"> <!-- Component heading --> <div - class="text-2xl font-medium text-center text-gray-600 dark:text-gray-200 mt-4 mb-8" + class="text-xl md:text-2xl font-medium text-center text-gray-600 dark:text-gray-200 mt-4 mb-10" > Opprett ny gruppe </div> @@ -54,9 +54,9 @@ <!-- Title --> <div class="mt-6" :class="{ error: v$.group.name.$errors.length }"> <label - class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300" - id="titleLabel" - >Gruppenavn</label + class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-400" + id="selectCategoryLabel" + >Gruppenavn</label > <input type="text" @@ -81,8 +81,9 @@ <!-- Place --> <div class="mt-6" :class="{ error: v$.group.place.$errors.length }"> <label - class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300" - >By/Sted</label + class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-400" + id="selectCategoryLabel" + >By/Sted</label > <input type="text" @@ -106,9 +107,9 @@ <!-- Description --> <div class="mt-6" :class="{ error: v$.group.description.$errors.length }"> <label - class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-400" - id="descriptionLabel" - >Beskrivelse</label + class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-400" + id="selectCategoryLabel" + >Beskrivelse</label > <textarea id="description" diff --git a/src/components/FormComponents/LoginForm.vue b/src/components/FormComponents/LoginForm.vue index 24a99ea..9bd28d9 100644 --- a/src/components/FormComponents/LoginForm.vue +++ b/src/components/FormComponents/LoginForm.vue @@ -2,7 +2,7 @@ <div class="md:ring-1 ring-gray-300 rounded-xl overflow-hidden mx-auto mb-auto max-w-md w-full"> <div class="px-6 py-4 mt-4"> <div - class="text-2xl font-medium text-center text-gray-600 dark:text-gray-200 mt-4 mb-8" + class="text-xl md:text-2xl font-medium text-center text-gray-600 dark:text-gray-200 mt-4 mb-8" > Logg på </div> diff --git a/src/components/FormComponents/RegisterForm.vue b/src/components/FormComponents/RegisterForm.vue index b38e67e..7c3398d 100644 --- a/src/components/FormComponents/RegisterForm.vue +++ b/src/components/FormComponents/RegisterForm.vue @@ -3,7 +3,7 @@ class="w-full max-w-md mx-auto mb-auto md:ring-1 ring-gray-300 overflow-hidden rounded-xl p-4" > <div - class="text-2xl font-medium text-center text-gray-600 dark:text-gray-200 mt-4 mb-8" + class="text-xl md:text-2xl font-medium text-center text-gray-600 dark:text-gray-200 mt-4 mb-8" > Opprett ny konto </div> diff --git a/src/components/ItemComponents/NewItemForm.vue b/src/components/ItemComponents/NewItemForm.vue index 2203351..c4f21e2 100644 --- a/src/components/ItemComponents/NewItemForm.vue +++ b/src/components/ItemComponents/NewItemForm.vue @@ -1,7 +1,7 @@ <template> <div class="md:ring-1 ring-gray-300 rounded-xl overflow-hidden mx-auto mb-auto max-w-md w-full p-4"> <!-- Component heading --> - <div class="text-2xl font-medium text-center text-gray-600 dark:text-gray-200 mt-4 mb-8">Opprett ny utleie</div> + <div class="text-xl md:text-2xl font-medium text-center text-gray-600 dark:text-gray-200 mt-4 mb-10">Opprett ny utleie</div> <!-- Title --> <div class="mb-6" :class="{ error: v$.item.title.$errors.length }"> @@ -43,7 +43,7 @@ class="block w-full px-4 py-2 mt-2 text-gray-700 placeholder-gray-500 bg-white border rounded-md dark:bg-gray-800 dark:border-gray-600 dark:placeholder-gray-400 focus:border-primary-light dark:focus:border-primary-light focus:ring-opacity-40 focus:outline-none focus:ring focus:ring-primary-light" > <option class="text-gray-400" value="" disabled selected> - Select a category + Velg en kategori </option> <option v-for="category in categories" @@ -77,7 +77,7 @@ class="block w-full px-4 py-2 mt-2 text-gray-700 placeholder-gray-500 bg-white border rounded-md dark:bg-gray-800 dark:border-gray-600 dark:placeholder-gray-400 focus:border-primary-light dark:focus:border-primary-light focus:ring-opacity-40 focus:outline-none focus:ring focus:ring-primary-light" > <option class="text-gray-400" value="" disabled selected> - Select a Group + Velg en gruppe </option> <option v-for="group in groups" diff --git a/src/views/CommunityViews/CommunityView.vue b/src/views/CommunityViews/CommunityView.vue index d60a02d..2c98824 100644 --- a/src/views/CommunityViews/CommunityView.vue +++ b/src/views/CommunityViews/CommunityView.vue @@ -1,7 +1,7 @@ <template> <div v-if="loggedIn"> <div class="flex flex-row p-4 relative"> - <p class="text-xl md:text-2xl text-gray-600 font-medium w-full">Mine grupper</p> + <div class="text-xl md:text-2xl text-gray-600 font-medium w-full">Mine grupper</div> <UserAddIcon class="cursor-pointer max-h-6 max-w-6 float-right grow" @click="$router.push('/newCommunity')" -- GitLab