Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: sidebar #5

Merged
merged 1 commit into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resources/views/layouts/unlogged-navigation.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<x-unlogged-nav-link :href="route('home.index')" :active="request()->routeIs('home.index')">
{{ __('Accueil') }}
</x-unlogged-nav-link>
<x-unlogged-nav-link :href="route('name.index')" :active="request()->is('name*')">
<x-unlogged-nav-link :href="route('name.index')" :active="request()->routeIs('name*')">
{{ __('Tous les prénoms') }}
</x-unlogged-nav-link>
</div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/names/female/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<div>
<div class="mx-auto max-w-7xl sm:px-6 lg:px-8 py-2">
<div class="grid name-index-grid">
<div class="grid name-index-grid gap-4">

<!-- left -->
<div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/names/female/letter.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<div>
<div class="mx-auto max-w-7xl sm:px-6 lg:px-8 py-2">
<div class="grid name-index-grid">
<div class="grid name-index-grid gap-4">

<!-- left -->
<div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/names/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<div>
<div class="mx-auto max-w-7xl sm:px-6 lg:px-8 py-2">
<div class="grid name-index-grid">
<div class="grid name-index-grid gap-4">

<!-- left -->
<div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/names/letter.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<div>
<div class="mx-auto max-w-7xl sm:px-6 lg:px-8 py-2">
<div class="grid name-index-grid">
<div class="grid name-index-grid gap-4">

<!-- left -->
<div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/names/male/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<div>
<div class="mx-auto max-w-7xl sm:px-6 lg:px-8 py-2">
<div class="grid name-index-grid">
<div class="grid name-index-grid gap-4">

<!-- left -->
<div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/names/male/letter.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<div>
<div class="mx-auto max-w-7xl sm:px-6 lg:px-8 py-2">
<div class="grid name-index-grid">
<div class="grid name-index-grid gap-4">

<!-- left -->
<div>
Expand Down
10 changes: 5 additions & 5 deletions resources/views/names/partials/sidebar.blade.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<ul>
<li>
<ul class="space-y-1">
<li class="p-2 border {{ request()->routeIs('name.index') ? 'bg-yellow-100 border-yellow-200' : 'border-transparent' }} hover:bg-yellow-100 hover:border-yellow-200 rounded-md">
<a href="{{ route('name.index') }}">Tous les prénoms</a>
</li>
<li>
<li class="p-2 border {{ request()->routeIs('name.garcon.index') ? 'bg-yellow-100 border-yellow-200' : 'border-transparent' }} hover:bg-yellow-100 hover:border-yellow-200 rounded-md">
<a href="{{ route('name.garcon.index') }}">Prénoms masculins</a>
</li>
<li>
<li class="p-2 border {{ request()->routeIs('name.fille.index') ? 'bg-yellow-100 border-yellow-200' : 'border-transparent' }} hover:bg-yellow-100 hover:border-yellow-200 rounded-md">
<a href="{{ route('name.fille.index') }}">Prénoms féminins</a>
</li>
<li>
<li class="p-2 border {{ request()->routeIs('name.') ? 'bg-yellow-100 border-yellow-200' : 'border-transparent' }} hover:bg-yellow-100 hover:border-yellow-200 rounded-md">
<a href="{{ route('name.garcon.index') }}">Prénoms mixtes</a>
</li>
</ul>
Loading