From 2d8d28f47fe3a29fb5c42ecc397df0444bcf506e Mon Sep 17 00:00:00 2001 From: synan798 Date: Thu, 5 Dec 2024 13:55:57 +0100 Subject: [PATCH 01/31] added functional profile view --- components/home/Users/UserBox.vue | 2 +- components/profile/Friendlist.vue | 4 +- components/profile/ProfileInformation.vue | 45 ++++++++++++++++++++--- 3 files changed, 42 insertions(+), 9 deletions(-) diff --git a/components/home/Users/UserBox.vue b/components/home/Users/UserBox.vue index c42b901..5a6ff43 100644 --- a/components/home/Users/UserBox.vue +++ b/components/home/Users/UserBox.vue @@ -2,7 +2,7 @@ const props = defineProps({ profilePicture: { type: String, - default: 'https://i.scdn.co/image/ab6775700000ee855d4c281804e8773208248312' + default: 'https://t4.ftcdn.net/jpg/05/49/98/39/360_F_549983970_bRCkYfk0P6PP5fKbMhZMIb07mCJ6esXL.jpg' }, name: { type: String, diff --git a/components/profile/Friendlist.vue b/components/profile/Friendlist.vue index dac4093..baa2742 100644 --- a/components/profile/Friendlist.vue +++ b/components/profile/Friendlist.vue @@ -32,10 +32,8 @@ async function getFriendships() {

Friends

- - diff --git a/components/profile/ProfileInformation.vue b/components/profile/ProfileInformation.vue index e07e6bd..5237013 100644 --- a/components/profile/ProfileInformation.vue +++ b/components/profile/ProfileInformation.vue @@ -1,17 +1,52 @@ From 0c1ca8238d448db983f5bab301a38df057b63738 Mon Sep 17 00:00:00 2001 From: synan798 Date: Fri, 6 Dec 2024 21:49:25 +0100 Subject: [PATCH 19/31] removed unnecessary comment --- components/UsersView.vue | 2 +- components/profile/Friendlist.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/UsersView.vue b/components/UsersView.vue index 85f5e59..a7336d1 100644 --- a/components/UsersView.vue +++ b/components/UsersView.vue @@ -47,7 +47,7 @@ const users = [ :user-turn="viewType === UserViewType.USERTURN" :class="[ ( viewType === UserViewType.FRIENDS || viewType === UserViewType.OPPONENTTURN ) ? - users.length > 3 ? 'w-[calc(33.33%-.99rem)] flex-shrink-0' : + users.length > 3 ? 'w-[calc(33.33%-.98rem)] flex-shrink-0' : users.length === 3 ? 'w-1/3' : users.length === 2 ? 'w-1/2' : 'w-full' : '' diff --git a/components/profile/Friendlist.vue b/components/profile/Friendlist.vue index 2e0d2ad..44ea6e1 100644 --- a/components/profile/Friendlist.vue +++ b/components/profile/Friendlist.vue @@ -1,5 +1,6 @@ diff --git a/components/home/Users/UserBox.vue b/components/home/Users/UserBox.vue index e6e8a63..2c8438d 100644 --- a/components/home/Users/UserBox.vue +++ b/components/home/Users/UserBox.vue @@ -33,13 +33,11 @@ props.userTurn ? 'mr-3' : 'mb-0' ]" :src="props.profilePicture.toString()" - :alt="name" + :alt="props.name" /> -

- {{ props.name }} -

+