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

20
app/Livewire/App/Pfp.php Normal file
View file

@ -0,0 +1,20 @@
<?php
namespace App\Livewire\App;
use App\Models\User;
use Livewire\Component;
class Pfp extends Component
{
public User $user;
public string $size = '3rem';
public string $shape = 'circle';
public function render()
{
return view('livewire.app.pfp', [
'pfp' => $this->user->getAvatarBase64()
]);
}
}