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