mirror of
https://github.com/NyaaStudios/nyaabooru.git
synced 2025-12-10 05:42:58 +00:00
add name change support & adjust profile list view
This commit is contained in:
parent
c7c621b086
commit
33d4ff5fb4
6 changed files with 74 additions and 26 deletions
|
|
@ -5,4 +5,6 @@
|
|||
label="avatar for {{ $user->name }}"
|
||||
shape="{{ $shape }}"
|
||||
style="--size: {{ $size }}"
|
||||
></wa-avatar>
|
||||
>
|
||||
<livewire:app.icon name="question" slot="icon" style="font-size: 2.5rem;" />
|
||||
</wa-avatar>
|
||||
|
|
|
|||
|
|
@ -1,13 +1,11 @@
|
|||
<article class="wa-stack nyaabooru-pfp">
|
||||
<a class="wa-frame wa-border-radius-l" style="inline-size: 15rem;" href="{{ url("/profiles/$user->id") }}" wire:navigate.hover>
|
||||
@if (\Illuminate\Support\Facades\Storage::has("avatars/$user->id"))
|
||||
<img src="{{ $user->getAvatarBase64() }}"/>
|
||||
@else
|
||||
<livewire:app.icon name="user" />
|
||||
@endif
|
||||
<wa-card>
|
||||
<a class="wa-stack nyaabooru-pfp wa-link-plain" href="{{ url("/profiles/$user->id") }}" wire:navigate.hover>
|
||||
<div class="wa-frame wa-border-radius-l" style="inline-size: 10rem;">
|
||||
<livewire:app.pfp :$user size="10rem" />
|
||||
</div>
|
||||
<div class="wa-stack wa-gap-3xs">
|
||||
<span class="wa-heading-s">{{ $user->name }}</span>
|
||||
<span class="wa-caption-m">Joined <wa-format-date value="{{ $user->created_at }}"></wa-format-date></span>
|
||||
</div>
|
||||
</a>
|
||||
<div class="wa-stack wa-gap-3xs">
|
||||
<span class="wa-heading-s">{{ $user->name }}</span>
|
||||
<span class="wa-caption-m">Joined <wa-format-date value="{{ $user->created_at }}"></wa-format-date></span>
|
||||
</div>
|
||||
</article>
|
||||
</wa-card>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue