fix: fixing footer navigation

This commit is contained in:
Paul Couture 2023-12-14 22:47:10 -06:00
parent ebd803282c
commit f39ce73978
3 changed files with 33 additions and 36 deletions

View File

@ -39,11 +39,7 @@
<div class="footer-widget">
<h4>Navigation</h4>
<ul class="footer-list-widget">
<li><a href="blog.html">Blog</a></li>
<li><a href="activity.html">Activity</a></li>
<li><a href="popular-collections-2.html">Collections</a></li>
<li><a href="signin.html">Signin</a></li>
<li><a href="signup.html">SignUp</a></li>
@include('partials.nav.main')
</ul>
</div>
</div>

View File

@ -14,7 +14,19 @@
</div>
<div class="mainmenu-wrapper">
<nav id="sideNav" class="mainmenu-nav d-none d-xl-block">
<ul class="mainmenu">
@include('partials/nav/main')
<li class="has-dropdown has-menu-child-item">
<a {!! request()->is(['podcasts', 'podcasts/*']) ? 'class="active"' : '' !!}>Podcasts</a>
<ul class="submenu">
@foreach ($navPodcasts as $cast)
<li>
<a href="/podcasts/{{ $cast->slug }}">{{ $cast->name }}</a>
</li>
@endforeach
</ul>
</li>
</ul>
</nav>
</div>
</div>

View File

@ -1,29 +1,18 @@
<ul class="mainmenu">
<li>
<li>
<a {!! request()->routeIs('home') ? 'class="active"' : '' !!} href="/">Home</a>
</li>
<li>
</li>
<li>
<a {!! request()->is(['artworks', 'artworks/*']) ? 'class="active"' : '' !!} href="/artworks">Submitted</a>
</li>
<li>
</li>
<li>
<a {!! request()->is(['artists', 'artists/*']) ? 'class="active"' : '' !!} href="/artists">Artists</a>
</li>
@if (auth()->user())
<li>
</li>
@if (auth()->user())
<li>
<a {!! request()->is(['create-artwork', 'create-artwork/*']) ? 'class="active"' : '' !!} href="/create-artwork">Create</a>
</li>
@endif
<li>
</li>
@endif
<li>
<a {!! request()->is(['leaderboards', 'leaderboards/*']) ? 'class="active"' : '' !!} href="/leaderboards">Leaderboards</a>
</li>
<li class="has-dropdown has-menu-child-item">
<a {!! request()->is(['podcasts', 'podcasts/*']) ? 'class="active"' : '' !!}>Podcasts</a>
<ul class="submenu">
@foreach ($navPodcasts as $cast)
<li>
<a href="/podcasts/{{ $cast->slug }}">{{ $cast->name }}</a>
</li>
@endforeach
</ul>
</li>
</ul>
</li>