mirror of
https://github.com/NyaaStudios/nyaabooru.git
synced 2025-12-10 05:42:58 +00:00
add profile pictures & (attempt) fix uploads
This commit is contained in:
parent
2aa0689720
commit
bb15fc96b4
8 changed files with 92 additions and 9 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
2
resources/views/livewire/app/pfp.blade.php
Normal file
2
resources/views/livewire/app/pfp.blade.php
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<wa-avatar image="{{ $pfp }}" label="{{ $user->name }}'s Profile Picture" shape="{{ $shape }}" loading="lazy" style="--size: {{ $size }}">
|
||||
</wa-avatar>
|
||||
Loading…
Add table
Add a link
Reference in a new issue