add models, setup livewire, setup mongodb

This commit is contained in:
yuriko 🦊 2025-05-21 15:14:50 -04:00
parent c0590a3412
commit be4c848eee
Signed by: jaiden
SSH key fingerprint: SHA256:f8tvveBoXBrKZIQDWLLcpQrKbATUCGg98x2N4YzkDM8
27 changed files with 2508 additions and 0 deletions

View file

@ -0,0 +1,26 @@
<?php
namespace App\Livewire\Posts;
use App\Models\Post;
use Livewire\Component;
class Thumbnail extends Component
{
public Post $post;
public function placeholder()
{
return <<<'HTML'
<div style="display: flex; align-items: center; justify-content: center; width: 256px; height: 256px;">
<wa-spinner style="font-size: 4rem;"></wa-spinner>
</div>
HTML;
}
public function render()
{
return view('livewire.posts.thumbnail');
}
}