[skip ci] Display YouTube profile in web app
This commit is contained in:
1 parent
32f0477f36
commit
af12ac43be
2 files changed
+24
-12
No files matched your search
@@ -19,9 +19,13 @@
|
||||
class="rounded-full w-8 ring ring-offset-base-100 ring-offset-2"
|
||||
style="background-color: {currentProfile.color}"
|
||||
>
|
||||
<span class="text-xl font-medium text-gray-200"
|
||||
>{currentProfile.username.substring(0, 1).toUpperCase()}</span
|
||||
>
|
||||
{#if currentProfile.type === "youtube" && currentProfile.thumbnail}
|
||||
<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>
|
||||
{:else}
|
||||
|
||||
@@ -98,9 +98,13 @@
|
||||
: ''} "
|
||||
style="background-color: {profile.color}"
|
||||
>
|
||||
<span class="text-xl font-medium text-gray-200"
|
||||
>{profile.username.substring(0, 1).toUpperCase()}</span
|
||||
>
|
||||
{#if profile.type === "youtube" && profile.thumbnail}
|
||||
<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>
|
||||
@@ -109,12 +113,16 @@
|
||||
{profile.username}
|
||||
</div>
|
||||
<div class="text-xs font-light">
|
||||
<a
|
||||
class="link"
|
||||
href={profile.serverUrl}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer">{profile.serverUrl}</a
|
||||
>
|
||||
{#if profile.type === "youtube"}
|
||||
<div>YouTube</div>
|
||||
{:else}
|
||||
<a
|
||||
class="link"
|
||||
href={profile.serverUrl}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer">{profile.serverUrl}</a
|
||||
>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user