diff --git a/app/layouts/default.vue b/app/layouts/default.vue index ae20768..36f8649 100644 --- a/app/layouts/default.vue +++ b/app/layouts/default.vue @@ -3,6 +3,29 @@ const route = useRoute() const mobileOpen = ref(false) const menuButton = ref(null) +const engineActive = computed(() => route.path === '/') +const sensorsActive = computed(() => route.path.startsWith('/sensors')) + +const navLinkClass = + 'inline-flex h-16 items-center border-b-2 font-label-md transition-colors' +const mobileLinkClass = 'inline-flex h-12 items-center justify-center font-label-md transition-colors' + +function desktopLinkClass(active: boolean) { + return [ + navLinkClass, + active + ? 'border-[#00C3CD] text-[#00C3CD] font-semibold' + : 'border-transparent text-[#94A3B8] hover:text-[#FFFFFF]', + ].join(' ') +} + +function mobileLinkClassFor(active: boolean) { + return [ + mobileLinkClass, + active ? 'text-[#00C3CD] font-semibold' : 'text-[#94A3B8] hover:text-[#FFFFFF]', + ].join(' ') +} + function closeMenu() { mobileOpen.value = false } @@ -44,32 +67,32 @@ watch(() => route.fullPath, closeMenu) > Engine - Sensors - - + Use cases - - + Playground - +