Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 2x 6x 6x 2x | <template>
<nav
:aria-label="$t('subjectsSectionNav.label')"
class="mt-5 -ml-3 flex flex-wrap font-sans text-sm font-semibold"
>
<ULink
v-for="(hash, key) in SECTIONS"
:key
raw
:to="{ hash }"
class="inline-flex min-h-11 items-center px-3 text-primary underline-offset-4 hover:underline focus-visible:rounded-xs"
>{{
$t(`subjectsSectionNav.${key}`, { count: index[key].length }, index[key].length)
}}</ULink
>
</nav>
</template>
<script setup lang="ts">
interface Props {
index: SubjectIndex;
}
defineProps<Props>();
const SECTIONS = { subjects: "#areas", formats: "#formatos", topics: "#temas" } as const;
</script>
|