From f39ce7397835b7f2fe9fce654e61dce0d084b410 Mon Sep 17 00:00:00 2001 From: Paul Couture Date: Thu, 14 Dec 2023 22:47:10 -0600 Subject: [PATCH] fix: fixing footer navigation --- .../views/partials/footer/section.blade.php | 8 +--- .../views/partials/nav/head.blade.php | 14 +++++- .../views/partials/nav/main.blade.php | 47 +++++++------------ 3 files changed, 33 insertions(+), 36 deletions(-) diff --git a/site/resources/views/partials/footer/section.blade.php b/site/resources/views/partials/footer/section.blade.php index 263585e..7708e03 100644 --- a/site/resources/views/partials/footer/section.blade.php +++ b/site/resources/views/partials/footer/section.blade.php @@ -39,11 +39,7 @@ @@ -70,4 +66,4 @@ -{{-- End Footer --}} \ No newline at end of file +{{-- End Footer --}} diff --git a/site/resources/views/partials/nav/head.blade.php b/site/resources/views/partials/nav/head.blade.php index a547099..35967a9 100644 --- a/site/resources/views/partials/nav/head.blade.php +++ b/site/resources/views/partials/nav/head.blade.php @@ -14,7 +14,19 @@ diff --git a/site/resources/views/partials/nav/main.blade.php b/site/resources/views/partials/nav/main.blade.php index d84abe3..20f1b4a 100644 --- a/site/resources/views/partials/nav/main.blade.php +++ b/site/resources/views/partials/nav/main.blade.php @@ -1,29 +1,18 @@ - +
  • + routeIs('home') ? 'class="active"' : '' !!} href="/">Home +
  • +
  • + is(['artworks', 'artworks/*']) ? 'class="active"' : '' !!} href="/artworks">Submitted +
  • +
  • + is(['artists', 'artists/*']) ? 'class="active"' : '' !!} href="/artists">Artists +
  • +@if (auth()->user()) +
  • + is(['create-artwork', 'create-artwork/*']) ? 'class="active"' : '' !!} href="/create-artwork">Create +
  • +@endif +
  • + is(['leaderboards', 'leaderboards/*']) ? 'class="active"' : '' !!} href="/leaderboards">Leaderboards +
  • +