feat: Add consistent mobile hamburger menu across all pages

- Updated profile.vue to use MobileMenu on mobile, desktop buttons on desktop
- Updated admin.vue to use MobileMenu on mobile, desktop buttons on desktop
- Updated users.vue to use MobileMenu on mobile, desktop buttons on desktop
- All pages with header navigation now have consistent mobile UX
- Mobile menu provides clean, organized navigation with all options
- Desktop retains traditional button layout for familiarity

This ensures consistent navigation experience across the entire application,
with the hamburger menu appearing on all pages with headers when viewed
on mobile devices.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-06 09:29:34 -05:00
parent 57c2b0f8c7
commit 1cb0a4e9a2
3 changed files with 54 additions and 6 deletions

View File

@@ -6,7 +6,21 @@
<NuxtLink to="/">
<img src="/logos/logo.png" alt="New Life Christian Church" class="h-16 w-auto cursor-pointer hover:opacity-80" />
</NuxtLink>
<div class="flex items-center gap-4">
<!-- Mobile Menu -->
<div class="md:hidden">
<ClientOnly>
<MobileMenu
:is-authenticated="true"
:is-admin="true"
:show-home="true"
:current-path="route.fullPath"
/>
</ClientOnly>
</div>
<!-- Desktop Navigation -->
<div class="hidden md:flex items-center gap-4">
<NuxtLink
to="/"
class="px-4 py-2 text-sm font-medium text-blue-700 bg-blue-50 rounded-md hover:bg-blue-100"
@@ -417,6 +431,8 @@ definePageMeta({
middleware: 'auth'
})
const route = useRoute()
// Fetch all sermons for management (including archived)
const { data: allSermons, refresh: refreshSermons } = await useFetch('/api/sermons?includeArchived=true')

View File

@@ -7,7 +7,21 @@
<NuxtLink to="/">
<img src="/logos/logo.png" alt="New Life Christian Church" class="h-16 w-auto cursor-pointer hover:opacity-80" />
</NuxtLink>
<div class="flex items-center gap-2">
<!-- Mobile Menu -->
<div class="md:hidden">
<ClientOnly>
<MobileMenu
:is-authenticated="true"
:is-admin="false"
:show-home="true"
:current-path="route.fullPath"
/>
</ClientOnly>
</div>
<!-- Desktop Navigation -->
<div class="hidden md:flex items-center gap-2">
<NuxtLink
to="/"
class="px-3 py-2 text-sm font-medium text-blue-700 bg-blue-50 rounded-md hover:bg-blue-100 whitespace-nowrap"
@@ -254,6 +268,8 @@ definePageMeta({
middleware: 'auth'
})
const route = useRoute()
const profile = ref({
username: '',
firstName: '',

View File

@@ -7,7 +7,21 @@
<NuxtLink to="/">
<img src="/logos/logo.png" alt="New Life Christian Church" class="h-16 w-auto cursor-pointer hover:opacity-80" />
</NuxtLink>
<div class="flex items-center gap-4">
<!-- Mobile Menu -->
<div class="md:hidden">
<ClientOnly>
<MobileMenu
:is-authenticated="true"
:is-admin="true"
:show-home="true"
:current-path="route.fullPath"
/>
</ClientOnly>
</div>
<!-- Desktop Navigation -->
<div class="hidden md:flex items-center gap-4">
<NuxtLink
to="/"
class="px-4 py-2 text-sm font-medium text-blue-700 bg-blue-50 rounded-md hover:bg-blue-100"
@@ -219,6 +233,8 @@ definePageMeta({
middleware: 'auth'
})
const route = useRoute()
interface User {
id: number
username: string