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
20
app/Livewire/App/Pfp.php
Normal file
20
app/Livewire/App/Pfp.php
Normal 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()
|
||||
]);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue