feat(web): add privacy-first sensing options page
Port the Stitch sensing-options design to /sensors with route-based nav, bundled Material Symbols icons, and honest privacy labels in place of mock certifications and scores.
This commit is contained in:
1 parent
99885a8172
commit
baa8fe7ae7
4 files changed
+457
-35
No files matched your search
+58
-34
@@ -3,6 +3,29 @@ const route = useRoute()
|
||||
const mobileOpen = ref(false)
|
||||
const menuButton = ref<HTMLButtonElement | null>(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)
|
||||
>
|
||||
<NuxtLink
|
||||
to="/"
|
||||
aria-current="page"
|
||||
class="inline-flex h-16 items-center border-b-2 border-[#00C3CD] font-label-md text-[#00C3CD] font-semibold transition-colors"
|
||||
:class="desktopLinkClass(engineActive)"
|
||||
:aria-current="engineActive ? 'page' : undefined"
|
||||
>
|
||||
Engine
|
||||
</NuxtLink>
|
||||
<a
|
||||
href="#"
|
||||
class="inline-flex h-16 items-center border-b-2 border-transparent font-label-md text-[#94A3B8] hover:text-[#FFFFFF] transition-colors"
|
||||
@click.prevent
|
||||
<NuxtLink
|
||||
to="/sensors"
|
||||
:class="desktopLinkClass(sensorsActive)"
|
||||
:aria-current="sensorsActive ? 'page' : undefined"
|
||||
>
|
||||
Sensors
|
||||
</a>
|
||||
<a
|
||||
href="#"
|
||||
class="inline-flex h-16 items-center border-b-2 border-transparent font-label-md text-[#94A3B8] hover:text-[#FFFFFF] transition-colors"
|
||||
@click.prevent
|
||||
</NuxtLink>
|
||||
<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"
|
||||
>
|
||||
Use cases
|
||||
</a>
|
||||
<a
|
||||
href="#"
|
||||
class="inline-flex h-16 items-center border-b-2 border-transparent font-label-md text-[#94A3B8] hover:text-[#FFFFFF] transition-colors"
|
||||
@click.prevent
|
||||
</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"
|
||||
>
|
||||
Playground
|
||||
</a>
|
||||
</span>
|
||||
</nav>
|
||||
|
||||
<button
|
||||
@@ -94,33 +117,34 @@ watch(() => route.fullPath, closeMenu)
|
||||
<nav aria-label="Mobile primary" class="max-w-[1200px] mx-auto px-margin-desktop py-space-sm flex flex-col">
|
||||
<NuxtLink
|
||||
to="/"
|
||||
aria-current="page"
|
||||
class="inline-flex h-12 items-center justify-center font-label-md text-[#00C3CD] font-semibold"
|
||||
:class="mobileLinkClassFor(engineActive)"
|
||||
:aria-current="engineActive ? 'page' : undefined"
|
||||
@click="closeMenu"
|
||||
>
|
||||
Engine
|
||||
</NuxtLink>
|
||||
<a
|
||||
href="#"
|
||||
class="inline-flex h-12 items-center justify-center font-label-md text-[#94A3B8] hover:text-[#FFFFFF] transition-colors"
|
||||
@click.prevent="closeMenu"
|
||||
<NuxtLink
|
||||
to="/sensors"
|
||||
:class="mobileLinkClassFor(sensorsActive)"
|
||||
:aria-current="sensorsActive ? 'page' : undefined"
|
||||
@click="closeMenu"
|
||||
>
|
||||
Sensors
|
||||
</a>
|
||||
<a
|
||||
href="#"
|
||||
class="inline-flex h-12 items-center justify-center font-label-md text-[#94A3B8] hover:text-[#FFFFFF] transition-colors"
|
||||
@click.prevent="closeMenu"
|
||||
</NuxtLink>
|
||||
<span
|
||||
class="inline-flex h-12 items-center justify-center font-label-md text-[#94A3B8] cursor-not-allowed"
|
||||
aria-disabled="true"
|
||||
title="Coming soon"
|
||||
>
|
||||
Use cases
|
||||
</a>
|
||||
<a
|
||||
href="#"
|
||||
class="inline-flex h-12 items-center justify-center font-label-md text-[#94A3B8] hover:text-[#FFFFFF] transition-colors"
|
||||
@click.prevent="closeMenu"
|
||||
</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"
|
||||
>
|
||||
Playground
|
||||
</a>
|
||||
</span>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
Reference in new issue
Block a user