22 <!-- eslint-disable max-len -->
33 <div >
44 <NavBar class =" px-4 sm:px-16 lg:px-32" v-bind:currentRoute =" 'Settings'" ></NavBar >
5- <div class =" w-full md:mx-16 lg:mx-32" >
5+ <div class =" w-full md:w-auto md: mx-16 lg:mx-32 relative md:flex items-start h-auto md:mb-16 lg:mb -32" >
66 <section class =" w-full md:max-w-xs md:shadow-md md:rounded-md" >
7- <div class =" relative text-wrap shadow-inner recommendation-card w-full sm:rounded-md"
7+ <div class =" w-full md:hidden h-1 bg-white-matcha" ></div >
8+ <div class =" text-wrap bg-white-matcha recommendation-card w-full sm:rounded-md"
89 v-bind:style =" {
910 'background-repeat': 'no-repeat',
1011 'background-position': 'center center',
1314<!-- <h1 class="absolute bottom-0 w-full text-center pb-8 text-4xl text-white-matcha capitalize">-->
1415<!-- {{this.$store.getters.getLoggedInUser.first_name}} {{this.$store.getters.getLoggedInUser.last_name}}</h1>-->
1516 </div >
16- <div class =" px-8 py -2 md:pt-4 md:py-0 md:px-0 w-full" >
17- <h1 class =" text-4xl text-gray-matcha text-center md:text-left md:px-8 font-bold md:font-normal my -4 md:mb-1 md:mt-0" >Settings</h1 >
18- <MenuButton v-bind:class =" {'md:px-8':true, 'md:bg-gray-200': show === 'account'}" v-bind:text =" 'Account'" ></MenuButton >
17+ <div class =" px-8 pb-2 md:pt -2 md:pt-4 md:py-0 md:px-0 w-full" >
18+ <h1 class =" text-4xl md: text-2xl md:font-bold text- gray-matcha text-center md:text-left md:px-8 font-bold md:font-normal mt -4 md:mb-1 md:mt-0" >Settings</h1 >
19+ <MenuButton v-on:click.native = " showSetting('account') " v- bind:class =" {'md:px-8':true, 'md:bg-gray-200': getShow === 'account'}" v-bind:text =" 'Account'" ></MenuButton >
1920 <hr class =" bg-gray-300 w-full md:hidden" >
20- <MenuButton v-bind:class =" {'md:px-8':true, 'md:bg-gray-200': show === 'profile'}" v-bind:text =" 'Profile'" ></MenuButton >
21+ <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 >
2122 </div >
2223 </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" >
25+ <div class =" flex justify-between items-center w-full my-4 lg:mb-0" >
26+ <h1 class =" text-3xl md:hidden text-gray-matcha" >Account</h1 >
27+ <div class =" md:hidden sort-button rounded-md text-lg w-12" v-on:click =" closeSetting()" >
28+ <h1 class =" noSelect" >←</h1 >
29+ </div >
30+ </div >
31+ <AccountInput
32+ v-bind:name =" 'First Name'"
33+ v-bind:type =" 'firstName'"
34+ v-bind:currentValuePassed =" this.$store.getters.getLoggedInUser.first_name" ></AccountInput >
35+ <AccountInput
36+ v-bind:name =" 'Last Name'"
37+ v-bind:type =" 'lastName'"
38+ v-bind:currentValuePassed =" this.$store.getters.getLoggedInUser.last_name" ></AccountInput >
39+ <AccountInput
40+ v-bind:name =" 'Email'"
41+ v-bind:type =" 'email'"
42+ v-bind:currentValuePassed =" this.$store.getters.getLoggedInUser.email" ></AccountInput >
43+ <AccountInput
44+ v-bind:name =" 'Username'"
45+ v-bind:type =" 'username'"
46+ v-bind:currentValuePassed =" this.$store.getters.getLoggedInUser.username" ></AccountInput >
47+ <AccountInput
48+ v-bind:name =" 'Password'"
49+ v-bind:type =" 'password'"
50+ v-bind:currentValuePassed =" ''" ></AccountInput >
51+ </section >
2352 </div >
2453 </div >
2554</template >
2655
2756<script >
2857import NavBar from ' @/components/shared/NavBar.vue' ;
2958import MenuButton from ' @/components/app/settings/MenuButton.vue' ;
59+ import AccountInput from ' @/components/app/settings/AccountInput.vue' ;
3060import imageMan from ' ../../assets/recommendations/avatars/man1.png' ;
3161import imageWoman from ' ../../assets/recommendations/avatars/woman1.png' ;
3262import imageOther from ' ../../assets/recommendations/avatars/other.png' ;
@@ -35,12 +65,24 @@ export default {
3565 components: {
3666 NavBar,
3767 MenuButton,
68+ AccountInput,
3869 },
3970 data : () => ({
4071 userInfo: {},
41- show: ' account ' ,
72+ show: ' ' ,
4273 }),
74+ computed: {
75+ getShow () {
76+ return this .show ;
77+ },
78+ },
4379 methods: {
80+ showSetting (setting ) {
81+ this .show = setting;
82+ },
83+ closeSetting () {
84+ this .show = ' ' ;
85+ },
4486 getImage () {
4587 if (this .$store .getters .getLoggedInUser .images .length === 0 ) {
4688 if (this .$store .getters .getLoggedInUser .gender === ' male' ) {
@@ -64,7 +106,7 @@ export default {
64106<style scoped>
65107.recommendation-card {
66108 /* width: 24rem;*/
67- height : 24 rem ;
109+ height : 20 rem ;
68110 /* box-shadow: inset 0 -8rem 1rem rgba(0, 0, 0, 0.3);*/
69111}
70112 </style >
0 commit comments