Skip to content

Commit

Permalink
Move public navigation to component instead of Livewire
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstauffer committed Jul 26, 2024
1 parent a5c3ce4 commit 6c018b7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 69 deletions.
15 changes: 15 additions & 0 deletions resources/views/components/navigation.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<nav class="mt-5 flex flex-1 gap-3 justify-center">
<a
href="/#about"
class="rounded-lg px-6 py-1 text-black ring-1 ring-transparent transition hover:text-black/70 focus:outline-none focus-visible:ring-[#FF2D20] bg-black/4 hover:bg-black/8"
>
About
</a>

<a
href="{{ route('suggestions.create') }}"
class="rounded-lg px-6 py-1 text-white ring-1 ring-transparent transition focus:outline-none focus-visible:ring-[#FF2D20] bg-black hover:bg-black/75"
>
Suggest
</a>
</nav>
2 changes: 1 addition & 1 deletion resources/views/layouts/public.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class="absolute right-0 w-64 rounded border bg-white p-3 text-sm shadow"
</div>
</div>

<livewire:public.navigation />
<x-navigation />
</header>

<!-- Page Content -->
Expand Down
68 changes: 0 additions & 68 deletions resources/views/livewire/public/navigation.blade.php

This file was deleted.

0 comments on commit 6c018b7

Please sign in to comment.