feat: arbitrary profile picture

This commit is contained in:
liyasthomas
2022-03-04 05:56:52 +05:30
parent b7988b54c5
commit a8e7fd3434
38 changed files with 132 additions and 88 deletions

View File

@@ -28,16 +28,20 @@
></div>
<div class="flex flex-col justify-between px-4 space-y-8 md:flex-row">
<div class="flex items-end">
<img
<ProfilePicture
v-if="currentUser.photoURL"
:src="currentUser.photoURL"
class="w-16 h-16 rounded-lg ring-primary ring-4"
:alt="`${currentUser.displayName}`"
:url="currentUser.photoURL"
:alt="currentUser.displayName"
class="ring-primary ring-4"
size="16"
rounded="lg"
/>
<SmartIcon
<ProfilePicture
v-else
name="user"
class="svg-icons !w-16 !h-16 bg-primaryLight rounded-lg ring-primary ring-4"
:initial="currentUser.displayName"
rounded="lg"
size="16"
class="ring-primary ring-4"
/>
<div class="ml-4">
<label class="heading">