feat(navbar): update balance display and use signal for state

This commit is contained in:
Jan-Marlon Leibl 2025-03-05 12:07:20 +01:00
parent 564601f7bc
commit 454e99f812
Signed by: jleibl
GPG key ID: 300B2F906DC6F1D5
2 changed files with 13 additions and 12 deletions

View file

@ -10,10 +10,11 @@
</div>
</div>
<div class="hidden md:flex items-center space-x-4">
<div class="text-white font-bold bg-deep-blue-contrast rounded-full px-4 py-2 text-sm hover:bg-deep-blue-contrast/80 hover:cursor-pointer hover:scale-105 transition-all active:scale-95 select-none duration-300">
{{ balance | currency : 'EUR' : 'symbol' : '1.2-2' }}
<div
class="text-white font-bold bg-deep-blue-contrast rounded-full px-4 py-2 text-sm hover:bg-deep-blue-contrast/80 hover:cursor-pointer hover:scale-105 transition-all active:scale-95 select-none duration-300"
>
<span>Balance: {{ balance() | currency: 'EUR' : 'symbol' : '1.2-2' }}</span>
</div>
@if (!isLoggedIn) {
<button (click)="login()" class="button-base px-4 py-1.5">Anmelden</button>