Files
jeremy bayseandClaude Sonnet 5 6a776b0042 Hide top nav on mobile, add "Plus" sheet to bottom tab bar
The top nav (logo + hamburger) was still sm:hidden-only on its inner
sections but the <nav> element itself had no breakpoint class, so it
kept rendering as an empty-looking bar above the new bottom tab bar.
Hide the whole element below sm and drop the now-dead hamburger/Alpine
toggle and its responsive menu, since nothing renders it anymore.

Account/settings links (Profile, Foyer, Catégories, Récurrences,
Log Out) that used to live in that hamburger now live in a "Plus"
slide-up sheet on the bottom tab bar. Logging out needed a real route
since the sheet isn't a Livewire component and can't call the
Volt navigation component's method directly.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-02 11:23:24 +02:00

63 lines
1.8 KiB
PHP

<?php
use App\Livewire\Actions\Logout;
use App\Livewire\Categories\Index as CategoriesIndex;
use App\Livewire\Dashboard\Index as DashboardIndex;
use App\Livewire\Household\AcceptInvite;
use App\Livewire\Household\Create as HouseholdCreate;
use App\Livewire\Household\Settings as HouseholdSettings;
use App\Livewire\Plan\Index as PlanIndex;
use App\Livewire\Recurring\Index as RecurringIndex;
use App\Livewire\Sankey\Index as SankeyIndex;
use App\Livewire\Suivi\Index as SuiviIndex;
use Illuminate\Support\Facades\Route;
Route::view('/', 'welcome');
Route::get('dashboard', DashboardIndex::class)
->middleware(['auth', 'verified', 'household'])
->name('dashboard');
Route::view('profile', 'profile')
->middleware(['auth'])
->name('profile');
Route::get('households/create', HouseholdCreate::class)
->middleware(['auth'])
->name('households.create');
Route::get('household/settings', HouseholdSettings::class)
->middleware(['auth', 'verified', 'household'])
->name('household.settings');
Route::get('categories', CategoriesIndex::class)
->middleware(['auth', 'verified', 'household'])
->name('categories');
Route::get('plan', PlanIndex::class)
->middleware(['auth', 'verified', 'household'])
->name('plan');
Route::get('suivi', SuiviIndex::class)
->middleware(['auth', 'verified', 'household'])
->name('suivi');
Route::get('flux', SankeyIndex::class)
->middleware(['auth', 'verified', 'household'])
->name('sankey');
Route::get('recurrences', RecurringIndex::class)
->middleware(['auth', 'verified', 'household'])
->name('recurring');
Route::get('invites/{token}', AcceptInvite::class)
->name('invites.accept');
Route::post('logout', function (Logout $logout) {
$logout();
return redirect('/');
})->middleware(['auth'])->name('logout');
require __DIR__.'/auth.php';