[skip ci] Display YouTube profile in web app

This commit is contained in:
Brahim Hadriche committed 2025-05-11 19:47:38 -04:00
1 parent 32f0477f36
commit af12ac43be
2 files changed
+24 -12

No files matched your search

+7 -3
View File
@@ -19,9 +19,13 @@
class="rounded-full w-8 ring ring-offset-base-100 ring-offset-2" class="rounded-full w-8 ring ring-offset-base-100 ring-offset-2"
style="background-color: {currentProfile.color}" style="background-color: {currentProfile.color}"
> >
<span class="text-xl font-medium text-gray-200" {#if currentProfile.type === "youtube" && currentProfile.thumbnail}
>{currentProfile.username.substring(0, 1).toUpperCase()}</span <img src={currentProfile.thumbnail} alt="Avatar" />
> {:else}
<span class="text-xl font-medium text-gray-200"
>{currentProfile.username.substring(0, 1).toUpperCase()}</span
>
{/if}
</div> </div>
</div> </div>
{:else} {:else}
+17 -9
View File
@@ -98,9 +98,13 @@
: ''} " : ''} "
style="background-color: {profile.color}" style="background-color: {profile.color}"
> >
<span class="text-xl font-medium text-gray-200" {#if profile.type === "youtube" && profile.thumbnail}
>{profile.username.substring(0, 1).toUpperCase()}</span <img src={profile.thumbnail} alt="Avatar" />
> {:else}
<span class="text-xl font-medium text-gray-200"
>{profile.username.substring(0, 1).toUpperCase()}</span
>
{/if}
</div> </div>
</div> </div>
</div> </div>
@@ -109,12 +113,16 @@
{profile.username} {profile.username}
</div> </div>
<div class="text-xs font-light"> <div class="text-xs font-light">
<a {#if profile.type === "youtube"}
class="link" <div>YouTube</div>
href={profile.serverUrl} {:else}
target="_blank" <a
rel="noopener noreferrer">{profile.serverUrl}</a class="link"
> href={profile.serverUrl}
target="_blank"
rel="noopener noreferrer">{profile.serverUrl}</a
>
{/if}
</div> </div>
</div> </div>
</div> </div>