Skip to content

Commit

Permalink
Adds icons to navigation dropdown (#953)
Browse files Browse the repository at this point in the history
* add icons to dropdown

* spacing

* wip

---------

Co-authored-by: Dries Vints <dries@vints.be>
  • Loading branch information
ProjektGopher and driesvints authored Jul 28, 2023
1 parent 6f9a357 commit 6c88510
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions resources/views/layouts/_nav.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,35 +198,40 @@
</div>

<div x-show="settings" x-cloak class="mt-4 lg:mt-0">
<ul class="flex flex-col items-center lg:absolute lg:items-stretch lg:ml-0 lg:mt-2 lg:w-36 lg:rounded-md lg:shadow-lg lg:z-50 lg:bg-white">
<ul class="flex flex-col items-center lg:absolute lg:items-stretch lg:ml-0 lg:mt-2 lg:w-40 lg:rounded-md lg:shadow-lg lg:z-50 lg:bg-white">
<li class="mb-4 lg:hover:bg-gray-100 lg:mb-0">
<a href="{{ route('profile') }}" class="inline-block w-full lg:px-4 lg:py-3">
<a href="{{ route('profile') }}" class="flex items-center w-full lg:px-3 lg:py-2">
<x-heroicon-o-user class="w-4 h-4 mr-2" />
Your Profile
</a>
</li>

<li class="mb-4 lg:hover:bg-gray-100 lg:mb-0">
<a href="{{ route('user.articles') }}" class="inline-block w-full lg:px-4 lg:py-3">
<a href="{{ route('user.articles') }}" class="flex items-center w-full lg:px-3 lg:py-2">
<x-heroicon-o-document-text class="w-4 h-4 mr-2" />
Your Articles
</a>
</li>

<li class="mb-4 lg:hover:bg-gray-100 lg:mb-0">
<a href="{{ route('settings.profile') }}" class="inline-block w-full lg:px-4 lg:py-3">
<a href="{{ route('settings.profile') }}" class="flex items-center w-full lg:px-3 lg:py-2">
<x-heroicon-o-cog-6-tooth class="w-4 h-4 mr-2" />
Settings
</a>
</li>

@can(App\Policies\UserPolicy::ADMIN, App\Models\User::class)
<li class="mb-4 lg:hover:bg-gray-100 lg:mb-0 lg:border-t lg:border-b">
<a href="{{ route('admin') }}" class="inline-block w-full lg:px-4 lg:py-3">
<a href="{{ route('admin') }}" class="flex items-center w-full lg:px-3 lg:py-2">
<x-heroicon-o-shield-check class="w-4 h-4 mr-2" />
Admin
</a>
</li>
@endcan

<li class="mb-4 lg:hover:bg-gray-100 lg:mb-0">
<x-buk-logout class="inline-block w-full text-left lg:px-4 lg:py-3">
<x-buk-logout class="flex items-center w-full text-left lg:px-3 lg:py-2">
<x-heroicon-o-arrow-left-on-rectangle class="w-4 h-4 mr-2" />
Sign out
</x-buk-logout>
</li>
Expand Down

0 comments on commit 6c88510

Please sign in to comment.