mirror of
https://github.com/NyaaStudios/nyaabooru.git
synced 2025-12-10 05:42:58 +00:00
user profile updates
This commit is contained in:
parent
c7c621b086
commit
ea140671bc
9 changed files with 78 additions and 27 deletions
|
|
@ -7,6 +7,8 @@
|
|||
<span class="wa-caption-l">© 2025 <a href="https://nyaastudios.io" target="_blank">NyaaStudios</a>; All rights reserved.</span>
|
||||
</div>
|
||||
<div class="wa-cluster wa-heading-m">
|
||||
<wa-icon-button family="brands" name="github" href="https://github.com/NyaaStudios/nyaabooru" target="_blank"></wa-icon-button>
|
||||
<a href="https://github.com/NyaaStudios/nyaabooru" class="wa-link-plain" target="_blank">
|
||||
<livewire:app.icon family="brands" name="github" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<wa-icon
|
||||
name="{{ $name }}"
|
||||
variant="light"
|
||||
family="{{ $family }}"
|
||||
variant="{{ $variant }}"
|
||||
label="{{ $label }}"
|
||||
fixed-width
|
||||
@isset($slot)
|
||||
|
|
|
|||
|
|
@ -5,4 +5,6 @@
|
|||
label="avatar for {{ $user->name }}"
|
||||
shape="{{ $shape }}"
|
||||
style="--size: {{ $size }}"
|
||||
></wa-avatar>
|
||||
>
|
||||
<livewire:app.icon name="user" slot="icon" 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>
|
||||
|
|
|
|||
|
|
@ -23,10 +23,21 @@
|
|||
<h2>User settings</h2>
|
||||
<form wire:submit>
|
||||
<wa-card>
|
||||
<div class="wa-stack">
|
||||
<span class="wa-heading-m">Profile picture</span>
|
||||
<input type="file" wire:model.live="avatar" wire:loading.attr="disabled" />
|
||||
@error('avatar')
|
||||
<div class="wa-stack wa-gap-l">
|
||||
<div class="wa-stack">
|
||||
<span class="wa-heading-m">Profile picture</span>
|
||||
<input type="file" wire:model.live="avatar" wire:loading.attr="disabled" />
|
||||
@error('avatar')
|
||||
<span class="wa-caption-m">{{ $message }}</span>
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<wa-divider></wa-divider>
|
||||
|
||||
<wa-input wire:model.live="name" label="Display name">
|
||||
<livewire:app.icon slot="start" name="user-tag" />
|
||||
</wa-input>
|
||||
@error('name')
|
||||
<span class="wa-caption-m">{{ $message }}</span>
|
||||
@enderror
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue