better image uploading & user roles
Some checks failed
Docker / build (push) Has been cancelled

This commit is contained in:
yuriko 🦊 2025-08-09 23:01:27 -04:00
parent 21e59d775a
commit f60ae41bf6
26 changed files with 741 additions and 70 deletions

View file

@ -25,11 +25,17 @@
<wa-card>
<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
<span class="wa-heading-s">Profile picture</span>
<label for="avatar" class="wa-cluster wa-placeholder">
<livewire:app.icon name="image-user" class="wa-caption-l" style="font-size: var(--wa-font-size-3xl)" />
<div class="wa-stack wa-gap-3xs">
<span class="wa-heading-m">Click to upload a new profile picture.</span>
@error('avatar')
<span class="wa-caption-m">{{ $message }}</span>
@enderror
</div>
<input id="avatar" type="file" wire:model.live="avatar" wire:loading.attr="disabled" style="opacity: 0;" />
</label>
</div>
<wa-divider></wa-divider>