This commit is contained in:
1 parent
8d687ad05b
commit
03d9f1e9aa
1 file changed
-39
@@ -7,15 +7,6 @@ const engineActive = computed(() => route.path === '/')
|
||||
const sensorsActive = computed(() => route.path.startsWith('/sensors'))
|
||||
const useCasesActive = computed(() => route.path.startsWith('/use-cases'))
|
||||
const playgroundActive = computed(() => route.path.startsWith('/playground'))
|
||||
const activeUseCase = computed(() =>
|
||||
route.query.uc === 'staffing' || route.query.uc === 'prezero' ? route.query.uc : 'routing',
|
||||
)
|
||||
|
||||
const useCaseLinks = [
|
||||
{ id: 'staffing', label: 'UC1: Staffing' },
|
||||
{ id: 'routing', label: 'UC2: Smart Routing' },
|
||||
{ id: 'prezero', label: 'UC3: PreZero Depot' },
|
||||
] as const
|
||||
|
||||
const navLinkClass =
|
||||
'inline-flex h-16 items-center border-b-2 font-label-md transition-colors'
|
||||
@@ -106,24 +97,6 @@ watch(() => route.fullPath, closeMenu)
|
||||
</NuxtLink>
|
||||
</nav>
|
||||
|
||||
<div class="hidden shrink-0 items-center gap-3 xl:flex">
|
||||
<div class="flex items-center rounded-lg border border-[#1e3a52] bg-[#0e2233] p-1">
|
||||
<NuxtLink
|
||||
v-for="item in useCaseLinks"
|
||||
:key="item.id"
|
||||
:to="{ path: '/use-cases', query: { uc: item.id } }"
|
||||
class="rounded px-2.5 py-1 text-[12px] font-medium transition-all"
|
||||
:class="
|
||||
useCasesActive && activeUseCase === item.id
|
||||
? 'border border-[#00C3CD]/20 bg-[#132b40] font-semibold text-[#00C3CD] shadow-sm'
|
||||
: 'text-[#94A3B8] hover:text-white'
|
||||
"
|
||||
>
|
||||
{{ item.label }}
|
||||
</NuxtLink>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button
|
||||
ref="menuButton"
|
||||
type="button"
|
||||
@@ -168,18 +141,6 @@ watch(() => route.fullPath, closeMenu)
|
||||
>
|
||||
Use cases
|
||||
</NuxtLink>
|
||||
<div class="grid grid-cols-3 gap-1 pb-2" aria-label="Use cases">
|
||||
<NuxtLink
|
||||
v-for="item in useCaseLinks"
|
||||
:key="item.id"
|
||||
:to="{ path: '/use-cases', query: { uc: item.id } }"
|
||||
class="rounded border border-[#1e3a52] bg-[#0e2233] px-1 py-2 text-center text-[10px] font-medium text-[#94A3B8]"
|
||||
:class="useCasesActive && activeUseCase === item.id ? 'border-[#00C3CD]/40 text-[#00C3CD]' : ''"
|
||||
@click="closeMenu"
|
||||
>
|
||||
{{ item.label }}
|
||||
</NuxtLink>
|
||||
</div>
|
||||
<NuxtLink
|
||||
to="/playground"
|
||||
:class="mobileLinkClassFor(playgroundActive)"
|
||||
|
||||
Reference in new issue
Block a user