Files
CV_Site_Nuxt/app/components/AppBottomNav.vue
Noel Sabia e4b30ad944
PR Check / Security scan (Snyk) (pull_request) Skipped
PR Check / Lint + typecheck (pull_request) Successful in 1m7s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 6s
PR Check / Dependency audit (pull_request) Successful in 9s
PR Check / Dockerfile lint (droast) (pull_request) Successful in 5s
PR Check / AI code review (opencode) (pull_request) Successful in 55s
fix(i18n): keep root links in the active locale and fix switcher a11y
AppNav, AppLogo and AppBottomNav used NuxtLink to "/", which resolves to the English root under prefix_except_default; they now use NuxtLinkLocale and drop the hardcoded aria-current. Bottom-nav labels go through $t as well. The switcher's accessible name now contains the visible locale code, aria-haspopup is gone in favour of a plain disclosure with aria-controls, and Escape returns focus to the trigger.
2026-10-23 22:34:09 +02:00

31 lines
1.3 KiB
Vue

<template>
<nav
aria-label="Mobile"
class="fixed bottom-0 left-0 w-full z-50 flex md:hidden bg-surface-container-low/90 backdrop-blur-xl shadow-[0_-1px_12px_rgba(0,0,0,0.3)]"
>
<div class="w-full h-16 px-space-xs flex items-center justify-around">
<NuxtLinkLocale
to="/"
class="w-16 h-12 flex flex-col items-center justify-center text-primary font-semibold transition-colors"
>
<Icon name="material-symbols:badge" aria-hidden="true" class="text-[22px]" />
<span class="font-label-mono text-label-mono">{{ $t('nav.overview') }}</span>
</NuxtLinkLocale>
<a
href="#"
class="w-16 h-12 flex flex-col items-center justify-center text-on-surface-variant hover:text-primary transition-colors"
>
<Icon name="material-symbols:timeline" aria-hidden="true" class="text-[22px]" />
<span class="font-label-mono text-label-mono">{{ $t('nav.lifeMap') }}</span>
</a>
<a
href="#"
class="w-16 h-12 flex flex-col items-center justify-center text-on-surface-variant hover:text-primary transition-colors"
>
<Icon name="material-symbols:code" aria-hidden="true" class="text-[22px]" />
<span class="font-label-mono text-label-mono">{{ $t('nav.devView') }}</span>
</a>
</div>
</nav>
</template>