design: blur the profile picture and use as background for nav

This commit is contained in:
Xylight committed 2024-08-17 17:40:57 -07:00
1 parent e8f5d743d8
commit ceb7ea4ddf
1 file changed
+15 -7
+15 -7
View File
@@ -35,6 +35,7 @@
import { LINKED_INSTANCE_URL } from '$lib/instance' import { LINKED_INSTANCE_URL } from '$lib/instance'
import { t } from '$lib/translations' import { t } from '$lib/translations'
import CommandsWrapper from './commands/CommandsWrapper.svelte' import CommandsWrapper from './commands/CommandsWrapper.svelte'
import { optimizeImageURL } from '$lib/components/lemmy/post/helpers'
let searching = false let searching = false
let promptOpen: boolean = false let promptOpen: boolean = false
@@ -181,12 +182,19 @@
</span> </span>
{/if} {/if}
</Menu> </Menu>
<Profile <div
placement="top" class="absolute right-0 -z-10 h-full
itemsClass="h-8 md:h-8 z-10" overflow-hidden w-full rounded-full"
targetClass="z-10 h-10" >
containerClass="!max-h-[28rem] z-10" <img
buttonClass="" src={optimizeImageURL(
/> $profile?.user?.local_user_view.person.avatar ?? '',
32
)}
class="blur-2xl -z-10 ml-auto object-cover w-48 opacity-50"
alt=""
/>
</div>
<Profile placement="top" />
</div> </div>
</nav> </nav>