mirror of
https://github.com/NyaaStudios/nyaabooru.git
synced 2025-12-10 05:42:58 +00:00
add models, setup livewire, setup mongodb
This commit is contained in:
parent
c0590a3412
commit
be4c848eee
27 changed files with 2508 additions and 0 deletions
42
resources/views/livewire/app/navbar.blade.php
Normal file
42
resources/views/livewire/app/navbar.blade.php
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<div class="wa-split">
|
||||
<div class="wa-cluster wa-align-items-center">
|
||||
<wa-icon-button
|
||||
href="{{ route('home') }}"
|
||||
name="paw-simple"
|
||||
appearance="plain"
|
||||
style="font-size: 1.5rem;"
|
||||
wire:navigate.hover>
|
||||
</wa-icon-button>
|
||||
|
||||
@auth
|
||||
<wa-button appearance="plain" href="{{ route('posts.home') }}" wire:navigate.hover>
|
||||
<wa-icon slot="prefix" name="images"></wa-icon>
|
||||
Posts
|
||||
</wa-button>
|
||||
|
||||
<wa-button appearance="plain" href="{{ route('upload') }}" wire:navigate.hover>
|
||||
<wa-icon slot="prefix" name="arrow-up-from-bracket"></wa-icon>
|
||||
Upload
|
||||
</wa-button>
|
||||
|
||||
<wa-button appearance="plain">
|
||||
<wa-icon slot="prefix" name="tags"></wa-icon>
|
||||
Tags
|
||||
</wa-button>
|
||||
@endauth
|
||||
</div>
|
||||
|
||||
<div class="wa-cluster">
|
||||
@guest
|
||||
<wa-button href="{{ route('login') }}" appearance="plain">
|
||||
<wa-icon slot="prefix" name="arrow-right-to-bracket"></wa-icon>
|
||||
Sign in
|
||||
</wa-button>
|
||||
@endguest
|
||||
|
||||
@auth
|
||||
<wa-button appearance="plain">{{ Auth::user()->name }}</wa-button>
|
||||
<wa-icon-button href="{{ route('logout') }}" appearance="plain" name="arrow-left-from-bracket"></wa-icon-button>
|
||||
@endauth
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue