Neighbourhood.omg.lol/Components/Layout/AvatarMenu.razor

34 lines
1.2 KiB
Text
Raw Normal View History

@inject CustomAuthenticationStateProvider AuthStateProvider;
2024-06-14 00:45:31 +00:00
@inject State State;
<AuthorizeView>
<Authorized>
<NavLink>
<button class="transparent circle small large">
<img class="responsive avatar" src="https://profiles.cache.lol/@State.SelectedAddressName/picture" alt="@State.SelectedAddressName">
<menu class="no-wrap">
<AvatarMenuLinks></AvatarMenuLinks>
2024-06-14 00:45:31 +00:00
</menu>
</button>
<small class="s m address"><i class="fa-solid fa-fw fa-at tiny"></i>@State.SelectedAddressName</small>
</NavLink>
<div class="l">
Hey, @State.Name. <br />
<a class="address" href="/person/@State.SelectedAddressName"><i class="fa-solid fa-fw fa-at tiny"></i>@State.SelectedAddressName</a>
</div>
</Authorized>
<NotAuthorized>
<NavLink>
<button class="transparent square small large">
2024-06-14 00:45:31 +00:00
<img class="responsive" src="/img/prami-neighbourhood.svg">
<menu class="no-wrap">
<AvatarMenuLinks></AvatarMenuLinks>
2024-06-14 00:45:31 +00:00
</menu>
</button>
<small class="s m address">Omg.lol</small>
</NavLink>
<div class="l">
Hey there. <br />
<a href="/login">Login?</a>
</div>
</NotAuthorized>
</AuthorizeView>