This commit is contained in:
1 parent
9ba70965ba
commit
bcee6b2c68
9 files changed
+1931
-12
No files matched your search
+12
-10
@@ -5,6 +5,7 @@ const menuButton = ref<HTMLButtonElement | null>(null)
|
||||
|
||||
const engineActive = computed(() => route.path === '/')
|
||||
const sensorsActive = computed(() => route.path.startsWith('/sensors'))
|
||||
const playgroundActive = computed(() => route.path.startsWith('/playground'))
|
||||
|
||||
const navLinkClass =
|
||||
'inline-flex h-16 items-center border-b-2 font-label-md transition-colors'
|
||||
@@ -86,13 +87,13 @@ watch(() => route.fullPath, closeMenu)
|
||||
>
|
||||
Use cases
|
||||
</span>
|
||||
<span
|
||||
class="inline-flex h-16 items-center border-b-2 border-transparent font-label-md text-[#94A3B8] cursor-not-allowed"
|
||||
aria-disabled="true"
|
||||
title="Coming soon"
|
||||
<NuxtLink
|
||||
to="/playground"
|
||||
:class="desktopLinkClass(playgroundActive)"
|
||||
:aria-current="playgroundActive ? 'page' : undefined"
|
||||
>
|
||||
Playground
|
||||
</span>
|
||||
</NuxtLink>
|
||||
</nav>
|
||||
|
||||
<button
|
||||
@@ -138,13 +139,14 @@ watch(() => route.fullPath, closeMenu)
|
||||
>
|
||||
Use cases
|
||||
</span>
|
||||
<span
|
||||
class="inline-flex h-12 items-center justify-center font-label-md text-[#94A3B8] cursor-not-allowed"
|
||||
aria-disabled="true"
|
||||
title="Coming soon"
|
||||
<NuxtLink
|
||||
to="/playground"
|
||||
:class="mobileLinkClassFor(playgroundActive)"
|
||||
:aria-current="playgroundActive ? 'page' : undefined"
|
||||
@click="closeMenu"
|
||||
>
|
||||
Playground
|
||||
</span>
|
||||
</NuxtLink>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
Reference in new issue
Block a user