diff --git a/resources/js/components/NavDesktop.vue b/resources/js/components/NavDesktop.vue index 04303ac..dd515c9 100644 --- a/resources/js/components/NavDesktop.vue +++ b/resources/js/components/NavDesktop.vue @@ -1,5 +1,6 @@ @@ -24,10 +38,13 @@ const { - - + {{ item.label }} - + :class="[ + 'block w-full h-full px-4 py-2 text-D', + { 'underline underline-offset-4': route.path === sub.route } + ]"> {{ sub.label }} @@ -51,8 +72,13 @@ const { - + {{ item.label }} diff --git a/resources/js/components/NavMobile.vue b/resources/js/components/NavMobile.vue index e2eccc5..49b93ad 100644 --- a/resources/js/components/NavMobile.vue +++ b/resources/js/components/NavMobile.vue @@ -1,7 +1,7 @@ - - - - - - + class="fixed top-4 left-4 text-D bg-C hover:bg-B transition-colors duration-200 p-0.5 rounded-sm z-[9999]"> + + + + @@ -43,7 +55,10 @@ const { + :class="[ + 'w-full flex justify-between items-center text-left text-lg text-D hover:bg-B rounded-md px-3 py-2 transition-colors duration-200', + { 'bg-C': isMenuActive(item) } + ]"> {{ item.label }} @@ -62,16 +77,22 @@ const { + :class="[ + 'block px-3 py-2 text-D hover:bg-B rounded-md transition-colors duration-200', + { 'bg-C': route.path === sub.route } + ]"> {{ sub.label }} - + + :class="[ + 'block px-3 py-2 text-lg text-D hover:bg-B rounded-md transition-colors duration-200', + { 'bg-C': isMenuActive(item) } + ]"> {{ item.label }}