A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
refactor: profile page
aminnausin67f51c322f1a
diff --git a/resources/js/components/profile/ProfileHeader.vue b/resources/js/components/profile/ProfileHeader.vueindex 69734ee2..5f31c584 100644--- a/resources/js/components/profile/ProfileHeader.vue+++ b/resources/js/components/profile/ProfileHeader.vue@@ -27,7 +27,7 @@ onMounted(async () => {<sectionid="banner"style="background-image: url('https://s4.anilist.co/file/anilistcdn/user/banner/b6792701-mBLPRvzr3xPL.jpg')"- class="flex h-52 items-end overflow-clip rounded-md bg-cover text-white shadow-md lg:h-64"+ class="flex h-52 items-end overflow-clip bg-cover text-white lg:h-64"><section id="profile-header" class="flex w-full flex-wrap items-end gap-4 bg-linear-to-b from-transparent to-neutral-950/40 p-3 text-center"><img@@ -41,7 +41,7 @@ onMounted(async () => {/><section class="text-centre flex flex-1 flex-wrap items-end justify-center sm:pb-2 xl:pb-4"><h2 class="w-full text-2xl capitalize sm:flex-1 sm:text-left">{{ userProfile?.name }}</h2>- <h3 class="text-sm">Member since: {{ toTimeSpan(userProfile?.created_at || '', '') }}</h3>+ <p class="text-sm">Member since: {{ toTimeSpan(userProfile?.created_at || '', '') }}</p></section></section></section>diff --git a/resources/js/views/ProfileView.vue b/resources/js/views/ProfileView.vueindex 10511bfc..bd807659 100755--- a/resources/js/views/ProfileView.vue+++ b/resources/js/views/ProfileView.vue@@ -22,15 +22,15 @@ onMounted(() => {<LayoutBase><template #content><section id="content-profile" class="flex flex-col gap-3">- <ProfileHeader />- <div id="user-info" class="dark:bg-primary-dark-800/70 bg-primary-800 text-foreground-1 z-3 flex w-full flex-col justify-between gap-4 rounded-xl p-3 shadow-lg">- <div class="flex flex-wrap gap-2">- <p class="flex-1">Who?</p>- <div class="flex flex-wrap gap-2 text-sm *:py-0 *:*:text-center">- <ButtonText text="Add Friend" @click="toast.error('Friend not added...', { description: 'You do not know why...' })" class="h-6 flex-10" />+ <ProfileHeader class="ring-r-default/5 rounded-xl shadow-md ring-1" />+ <div id="user-info" class="bg-surface-2 text-foreground-1 ring-r-default/5 z-3 flex w-full flex-col justify-between gap-4 rounded-xl p-3 text-sm shadow-md ring-1">+ <div class="flex flex-wrap items-center gap-2">+ <h3 class="flex-1 text-base">Who?</h3>+ <div class="flex flex-wrap gap-2">+ <ButtonText text="Add Friend" @click="toast.error('Friend not added...', { description: 'You do not know why...' })" class="flex-10" /><ButtonTexttext="Block"- class="h-6 flex-1"+ class="flex-1"@click="() => {blockedFriends += 1;