add profile pictures & (attempt) fix uploads

This commit is contained in:
yuriko 🦊 2025-05-24 22:43:03 -04:00
parent 2aa0689720
commit bb15fc96b4
8 changed files with 92 additions and 9 deletions

View file

@ -5,7 +5,7 @@
</wa-avatar>
<div class="wa-stack wa-gap-2xs">
<h3 class="wa-caption-m">{{ $title }}</h3>
<wa-format-number class="wa-heading-l" :$value></wa-format-number>
<wa-format-number class="wa-heading-l" value="{{ $value }}"></wa-format-number>
</div>
</div>
</wa-card>

View file

@ -35,7 +35,12 @@
@endguest
@auth
<wa-button href="{{ url('/profiles/' . Auth::id()) }}" appearance="plain" wire:navigate.hover>{{ Auth::user()->name }}</wa-button>
<div class="wa-cluster wa-gap-3xs wa-align-items-center">
<livewire:app.pfp :user="Auth::user()" size="2rem" />
<wa-button href="{{ url('/profiles/' . Auth::id()) }}" appearance="plain" wire:navigate.hover>
{{ Auth::user()->name }}
</wa-button>
</div>
<wa-icon-button href="{{ route('logout') }}" appearance="plain" name="arrow-left-from-bracket"></wa-icon-button>
@endauth
</div>

View file

@ -0,0 +1,2 @@
<wa-avatar image="{{ $pfp }}" label="{{ $user->name }}'s Profile Picture" shape="{{ $shape }}" loading="lazy" style="--size: {{ $size }}">
</wa-avatar>