Skip to content

Commit 13cbb0f

Browse files
committed
profile card show data and rounded image
1 parent 51833f5 commit 13cbb0f

File tree

1 file changed

+25
-10
lines changed

1 file changed

+25
-10
lines changed

frontend/src/views/app/Settings.vue

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,24 @@
33
<div>
44
<NavBar class="px-4 sm:px-16 lg:px-32" v-bind:currentRoute="'Settings'"></NavBar>
55
<div class="w-full md:w-auto md:mx-16 lg:mx-32 relative md:flex items-start h-auto md:mb-16">
6-
<section class="w-full md:max-w-xss md:shadow-md md:rounded-md">
6+
<section class="w-auto md:max-w-xss md:shadow-md md:rounded-md">
77
<div class="w-full md:hidden h-1 bg-white-matcha"></div>
8-
<div class="text-wrap bg-white-matcha recommendation-card w-full md:rounded-t-md"
9-
v-bind:style="{
10-
'background-repeat': 'no-repeat',
11-
'background-position': 'center center',
12-
'background-size' :'cover',
13-
'background-image': 'url(' + getImage() + ')'}">
14-
<!-- <h1 class="absolute bottom-0 w-full text-center pb-8 text-4xl text-white-matcha capitalize">-->
15-
<!-- {{this.$store.getters.getLoggedInUser.first_name}} {{this.$store.getters.getLoggedInUser.last_name}}</h1>-->
8+
<div class="md:border-b profile-card text-wrap p-16 md:py-8 flex flex-col w-full md:rounded-t-md">
9+
<img class="mx-auto rounded-full w-48 md:w-32" v-bind:src="getImage()">
10+
<h1 class="w-full text-center text-3xl md:text-base mt-4 text-white-matcha md:text-gray-matcha capitalize">
11+
{{this.$store.getters.getLoggedInUser.first_name}} {{this.$store.getters.getLoggedInUser.last_name}}</h1>
12+
<div class="text-white-matcha md:text-gray-matcha w-full flex justify-center text-center mt-4 max-w-xs mx-auto">
13+
<div class="mr-4">
14+
<h1 class="font-bold">{{this.$store.getters.getLoggedInUser.likes.received.length}}</h1>
15+
<h1 class="text-xs">Views</h1>
16+
</div>
17+
<div class="ml-4">
18+
<h1 class="font-bold">{{this.$store.getters.getLoggedInUser.likes.received.length}}</h1>
19+
<h1 class="text-xs">Likes</h1>
20+
</div>
21+
</div>
1622
</div>
1723
<div class="px-8 py-2 md:py-4 md:px-0 w-full">
18-
<h1 class="md:leading-none text-4xl md:text-2xl md:font-bold text-gray-matcha text-center md:text-left md:px-8 font-bold md:font-normal mb-2">Settings</h1>
1924
<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>
2025
<hr class="bg-gray-300 w-full md:hidden">
2126
<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>
@@ -279,4 +284,14 @@ export default {
279284
height: 10rem;
280285
}
281286
}
287+
288+
.profile-card {
289+
background-image: linear-gradient(315deg, #6e72fc 0%, #6e72fc 74%);
290+
}
291+
292+
@screen md {
293+
.profile-card {
294+
background-image: linear-gradient(315deg, #FFFFFE 0%, #FFFFFE 74%);
295+
}
296+
}
282297
</style>

0 commit comments

Comments
 (0)