From ce69598175b1a1781e4d404c3b2498a01ab2267d Mon Sep 17 00:00:00 2001 From: root Date: Fri, 2 Jan 2026 21:30:06 +0100 Subject: [PATCH] [FEAT] Menu fixes --- src/components/layout/navbar/NavbarLinks.vue | 39 +++++++++++++--- .../layout/navbar/NavbarMobileMenu.vue | 44 ++++++++++++------- 2 files changed, 61 insertions(+), 22 deletions(-) diff --git a/src/components/layout/navbar/NavbarLinks.vue b/src/components/layout/navbar/NavbarLinks.vue index 62f2d40..a3b1fed 100644 --- a/src/components/layout/navbar/NavbarLinks.vue +++ b/src/components/layout/navbar/NavbarLinks.vue @@ -1,13 +1,38 @@ diff --git a/src/components/layout/navbar/NavbarMobileMenu.vue b/src/components/layout/navbar/NavbarMobileMenu.vue index 1971bf3..8afb875 100644 --- a/src/components/layout/navbar/NavbarMobileMenu.vue +++ b/src/components/layout/navbar/NavbarMobileMenu.vue @@ -7,7 +7,7 @@ leave-from-class="transform opacity-100 translate-y-0" leave-to-class="transform opacity-0 -translate-y-2" > -
+
@@ -34,20 +34,19 @@ Login / Register
- - Home - - - Blog - - - About - - - FAQ - - - Contact + + {{ link.name }} @@ -132,6 +131,21 @@ const route = useRoute(); const isEditorActive = computed(() => route.name === 'editor'); + const links = [ + { name: 'Home', path: '/', icon: 'fas fa-home' }, + { name: 'Blog', path: '/blog', icon: 'fas fa-newspaper' }, + { name: 'About', path: '/about', icon: 'fas fa-info-circle' }, + { name: 'FAQ', path: '/faq', icon: 'fas fa-question-circle' }, + { name: 'Contact', path: '/contact', icon: 'fas fa-envelope' }, + ]; + + const isActive = (path: string) => { + if (path === '/') { + return route.path === '/'; + } + return route.path.startsWith(path); + }; + defineProps<{ isOpen: boolean; isSaving?: boolean;