Files
web-nuxt/app/layouts/default.vue
T
Noel Sabia 35521b237e
ci / check (push) Successful in 56s
feat(web): finalize sovereign comparison hero for v1.5
Rework the single-page UI for v1.5: faint full-height footer with updated 2026/STACKIT copy, new wordmark logo, operational pipeline badge, vertical mobile connectors, plain pipeline copy, icon-based context labels, hero without the eyebrow pill, and a sovereign comparison matrix with verified forecast metrics. Refresh the verification screenshots and design notes.
2026-11-14 17:36:19 +01:00

130 lines
4.1 KiB
Vue

<script setup lang="ts">
const route = useRoute()
const mobileOpen = ref(false)
const menuButton = ref<HTMLButtonElement | null>(null)
function closeMenu() {
mobileOpen.value = false
}
function onKeydown(event: KeyboardEvent) {
if (event.key === 'Escape' && mobileOpen.value) {
closeMenu()
menuButton.value?.focus()
}
}
function toggleMenu() {
mobileOpen.value = !mobileOpen.value
}
onMounted(() => window.addEventListener('keydown', onKeydown))
onBeforeUnmount(() => window.removeEventListener('keydown', onKeydown))
watch(() => route.fullPath, closeMenu)
</script>
<template>
<header class="fixed top-0 left-0 right-0 z-50 h-16 bg-[#081723]/95 backdrop-blur-md border-b border-[#1e3a52]">
<div class="relative h-16 max-w-[1200px] mx-auto px-margin-desktop flex items-center justify-between">
<NuxtLink
to="/"
aria-label="Schwarz IT — Sensing Engine home"
class="inline-flex items-center shrink-0"
>
<img
src="/schwarz-it-wordmark.svg"
alt="Schwarz IT"
class="h-10 w-auto md:h-12"
/>
</NuxtLink>
<nav
aria-label="Primary"
class="hidden md:flex absolute top-0 left-1/2 -translate-x-1/2 h-16 items-center gap-space-xl"
>
<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"
>
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
>
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
>
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
>
Playground
</a>
</nav>
<button
ref="menuButton"
type="button"
class="md:hidden inline-flex h-11 w-11 items-center justify-center rounded-lg text-[#94A3B8] hover:text-[#FFFFFF] transition-colors"
aria-controls="mobile-nav"
:aria-expanded="mobileOpen"
:aria-label="mobileOpen ? 'Close menu' : 'Open menu'"
@click="toggleMenu"
>
<Icon v-if="mobileOpen" name="material-symbols:close" class="text-[24px]" />
<Icon v-else name="material-symbols:menu" class="text-[24px]" />
</button>
</div>
<div
v-show="mobileOpen"
id="mobile-nav"
class="md:hidden absolute top-full left-0 right-0 bg-[#081723] border-b border-[#1e3a52] shadow-[0_8px_24px_rgba(0,0,0,0.4)]"
>
<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"
@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"
>
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"
>
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"
>
Playground
</a>
</nav>
</div>
</header>
<slot />
</template>