Skip to content

Commit dd6cbae

Browse files
committed
account and profile sections looking good
1 parent 4872ae2 commit dd6cbae

File tree

4 files changed

+16
-15
lines changed

4 files changed

+16
-15
lines changed

frontend/src/components/app/settings/AccountInput.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<!-- eslint-disable max-len -->
3-
<div class="w-full my-4 md:max-w-sm">
3+
<div class="w-full my-4 max-w-sm">
44
<ValidationObserver v-slot="{ handleSubmit, invalid }" class="w-full">
55
<form @submit.prevent="handleSubmit(onSubmit)" class="w-full">
66
<div class="flex justify-between items-center w-full">

frontend/src/components/app/settings/ProfileImage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<!-- eslint-disable max-len-->
3-
<div class="my-4">
3+
<div class="mt-4">
44
<div class="relative overflow-hidden bg-transparent rounded-md w-full" style="padding-bottom: 70%">
55
<img v-bind:src="image.link" class="absolute object-cover w-full h-full rounded-md">
66
<div class="absolute top-0 left-0 z-20 m-5">

frontend/src/components/app/settings/SectionHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="flex justify-between items-center w-full my-4 lg:mb-0">
2+
<div class="md:hidden flex max-w-sm justify-between items-center w-full my-4 lg:mb-0">
33
<h1 class="text-3xl md:hidden text-gray-matcha capitalize">{{ name }}</h1>
44
<div class="md:hidden sort-button rounded-md text-lg w-12">
55
<h1 class="noSelect">←</h1>

frontend/src/views/app/Settings.vue

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<MenuButton v-on:click.native="showSetting('profile')" v-bind:class="{'md:px-8':true, 'md:bg-gray-200': getShow === 'profile'}" v-bind:text="'Profile'"></MenuButton>
2222
</div>
2323
</section>
24-
<section v-if="getShow === 'account'" class="flex flex-col items-start z-10 absolute bg-white-matcha px-8 pb-4 w-full top-0 left-0 h-screen md:h-auto md:ml-4 md:relative md:shadow-md md:rounded-md">
24+
<section v-if="getShow === 'account'" class="flex flex-col items-center z-10 absolute bg-white-matcha px-8 pb-4 w-full top-0 left-0 h-screen md:h-auto md:ml-4 md:relative md:shadow-md md:rounded-md">
2525
<SectionHeader v-bind:name="'account'" v-on:click.native="closeSetting()"></SectionHeader>
2626
<AccountInput
2727
v-bind:name="'First Name'"
@@ -45,9 +45,9 @@
4545
v-bind:currentValuePassed="''"></AccountInput>
4646
</section>
4747
<section v-if="getShow === 'profile'" class="overflow-scroll profile-section flex flex-col items-start z-10 absolute bg-white-matcha w-full top-0 left-0 md:ml-4 md:relative md:shadow-md md:rounded-md">
48-
<SectionHeader v-bind:name="'profile'" v-on:click.native="closeSetting()"></SectionHeader>
49-
<div class="pb-4">
50-
<div class="px-8">
48+
<SectionHeader class="mx-auto" v-bind:name="'profile'" v-on:click.native="closeSetting()"></SectionHeader>
49+
<div class="py-8 px-8 w-full">
50+
<div class="mx-auto max-w-sm">
5151
<h1 class="inline-block mr-4 text-gray-matcha">I am</h1>
5252
<DropdownDisplayChoice
5353
class="inline-block"
@@ -56,7 +56,7 @@
5656
v-bind:starting-option="this.$store.getters.getLoggedInUser.gender"
5757
v-bind:options="['male', 'female', 'other']"></DropdownDisplayChoice>
5858
</div>
59-
<div class="px-8 mt-4">
59+
<div class="mt-4 mx-auto max-w-sm">
6060
<h1 class="inline-block mr-4 text-gray-matcha">Sexuality</h1>
6161
<DropdownDisplayChoice
6262
class="inline-block"
@@ -65,7 +65,7 @@
6565
v-bind:starting-option="this.$store.getters.getLoggedInUser.orientation"
6666
v-bind:options="['heterosexual', 'homosexual', 'bisexual', 'other']"></DropdownDisplayChoice>
6767
</div>
68-
<div class="px-8 mt-4">
68+
<div class="mt-4 mx-auto max-w-sm">
6969
<h1 class="inline-block mr-3 text-gray-matcha">Interests</h1>
7070
<DropdownDisplayChoices
7171
class="inline-block"
@@ -87,22 +87,23 @@
8787
v-on:saveMultipleChoice="saveMultipleChoice"></DropdownDisplayChoices>
8888
</div>
8989
</div>
90-
<div class="px-8 border-t border-gray-300 w-full">
90+
<div class="py-4 px-8 border-t border-gray-300 w-full">
9191
<AccountInput
92+
class="mx-auto"
9293
v-bind:name="'Bio'"
9394
v-bind:type="'bio'"
9495
v-bind:currentValuePassed="this.$store.getters.getLoggedInUser.bio"></AccountInput>
9596
</div>
96-
<div class="py-4 px-8 border-t border-gray-300 w-full">
97-
<h1 class="inline-block mr-3 font-bold text-gray-matcha">Location</h1>
98-
<h1 class="onboarding-sub-container-content-button-outline border font-normal mt-2 px-2 cursor-pointer" v-on:click="updateLocation()">Update current location</h1>
97+
<div class="text-center px-8 py-8 border-t border-gray-300 w-full">
98+
<h1 class="inline-block mr-3 font-bold text-gray-matcha leading-none">Location</h1>
99+
<h1 class="mx-auto onboarding-sub-container-content-button-outline max-w-sm border font-normal mt-2 px-2 cursor-pointer" v-on:click="updateLocation()">Update current location</h1>
99100
</div>
100-
<div class="py-4 w-full px-8 border-t border-gray-300">
101+
<div class="text-center py-8 w-full px-8 border-t border-gray-300">
101102
<h1 class="font-bold text-gray-matcha">Images<span class="text-md font-normal ml-2 opacity-50 text-gray-matcha">{{this.$store.getters.getLoggedInUser.images.length}} / 5</span></h1>
102103
<div class="auth-sub-container-error mt-8" v-if="image.error">
103104
<h1 class="auth-sub-container-error-message">{{image.error}}</h1>
104105
</div>
105-
<button v-if="this.$store.getters.getLoggedInUser.images.length < 6" class="cursor-pointer relative onboarding-sub-container-content-button-outline border w-full max-w-xs mt-2">
106+
<button v-if="this.$store.getters.getLoggedInUser.images.length < 6" class="cursor-pointer relative onboarding-sub-container-content-button-outline border w-full max-w-sm my-4">
106107
<input class="cursor-pointer opacity-0 absolute top-0 left-0 w-full h-full rounded-md" type="file" v-on:change="selectFile()" ref="file">
107108
<img src="../../assets/onboarding/cloudPurple.png" class="w-8 mx-auto">
108109
</button>

0 commit comments

Comments
 (0)