|
| 1 | +<script setup lang="ts"> |
| 2 | +definePageMeta({ |
| 3 | + name: 'accessibility', |
| 4 | +}) |
| 5 | +
|
| 6 | +useSeoMeta({ |
| 7 | + title: () => `${$t('a11y.title')} - npmx`, |
| 8 | + description: () => $t('a11y.welcome', { app: 'npmx' }), |
| 9 | +}) |
| 10 | +
|
| 11 | +defineOgImageComponent('Default', { |
| 12 | + title: () => $t('a11y.title'), |
| 13 | + description: () => $t('a11y.welcome', { app: 'npmx' }), |
| 14 | +}) |
| 15 | +
|
| 16 | +const router = useRouter() |
| 17 | +const canGoBack = useCanGoBack() |
| 18 | +</script> |
| 19 | + |
| 20 | +<template> |
| 21 | + <main class="container flex-1 py-12 sm:py-16 overflow-x-hidden"> |
| 22 | + <article class="max-w-2xl mx-auto"> |
| 23 | + <header class="mb-12"> |
| 24 | + <div class="flex items-baseline justify-between gap-4 mb-4"> |
| 25 | + <h1 class="font-mono text-3xl sm:text-4xl font-medium"> |
| 26 | + {{ $t('a11y.title') }} |
| 27 | + </h1> |
| 28 | + <button |
| 29 | + type="button" |
| 30 | + class="cursor-pointer inline-flex items-center gap-2 font-mono text-sm text-fg-muted hover:text-fg transition-colors duration-200 rounded shrink-0" |
| 31 | + @click="router.back()" |
| 32 | + v-if="canGoBack" |
| 33 | + > |
| 34 | + <span class="i-carbon:arrow-left rtl-flip w-4 h-4" aria-hidden="true" /> |
| 35 | + <span class="sr-only sm:not-sr-only">{{ $t('nav.back') }}</span> |
| 36 | + </button> |
| 37 | + </div> |
| 38 | + </header> |
| 39 | + |
| 40 | + <section class="prose prose-invert max-w-none space-y-8"> |
| 41 | + <p class="text-fg-muted leading-relaxed"> |
| 42 | + <i18n-t keypath="a11y.welcome" tag="span" scope="global"> |
| 43 | + <template #app> |
| 44 | + <strong class="text-fg">npmx</strong> |
| 45 | + </template> |
| 46 | + </i18n-t> |
| 47 | + </p> |
| 48 | + |
| 49 | + <!-- Our Approach --> |
| 50 | + <div> |
| 51 | + <h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-4"> |
| 52 | + {{ $t('a11y.approach.title') }} |
| 53 | + </h2> |
| 54 | + <p class="text-fg-muted leading-relaxed mb-4"> |
| 55 | + {{ $t('a11y.approach.p1') }} |
| 56 | + </p> |
| 57 | + <p class="text-fg-muted leading-relaxed"> |
| 58 | + <i18n-t keypath="a11y.approach.p2" tag="span" scope="global"> |
| 59 | + <template #about> |
| 60 | + <NuxtLink |
| 61 | + :to="{ name: 'about' }" |
| 62 | + class="text-fg-muted hover:text-fg underline decoration-fg-subtle/50 hover:decoration-fg" |
| 63 | + > |
| 64 | + {{ $t('a11y.approach.about_link') }} |
| 65 | + </NuxtLink> |
| 66 | + </template> |
| 67 | + </i18n-t> |
| 68 | + </p> |
| 69 | + </div> |
| 70 | + |
| 71 | + <!-- What We Do --> |
| 72 | + <div> |
| 73 | + <h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-4"> |
| 74 | + {{ $t('a11y.measures.title') }} |
| 75 | + </h2> |
| 76 | + <p class="text-fg-muted leading-relaxed mb-4"> |
| 77 | + {{ $t('a11y.measures.p1') }} |
| 78 | + </p> |
| 79 | + <ul class="space-y-3 text-fg-muted list-none p-0"> |
| 80 | + <li class="flex items-start gap-3"> |
| 81 | + <span class="text-fg-subtle shrink-0">—</span> |
| 82 | + <span>{{ $t('a11y.measures.li1') }}</span> |
| 83 | + </li> |
| 84 | + <li class="flex items-start gap-3"> |
| 85 | + <span class="text-fg-subtle shrink-0">—</span> |
| 86 | + <span>{{ $t('a11y.measures.li2') }}</span> |
| 87 | + </li> |
| 88 | + <li class="flex items-start gap-3"> |
| 89 | + <span class="text-fg-subtle shrink-0">—</span> |
| 90 | + <span>{{ $t('a11y.measures.li3') }}</span> |
| 91 | + </li> |
| 92 | + <li class="flex items-start gap-3"> |
| 93 | + <span class="text-fg-subtle shrink-0">—</span> |
| 94 | + <span>{{ $t('a11y.measures.li4') }}</span> |
| 95 | + </li> |
| 96 | + <li class="flex items-start gap-3"> |
| 97 | + <span class="text-fg-subtle shrink-0">—</span> |
| 98 | + <span>{{ $t('a11y.measures.li5') }}</span> |
| 99 | + </li> |
| 100 | + <li class="flex items-start gap-3"> |
| 101 | + <span class="text-fg-subtle shrink-0">—</span> |
| 102 | + <span>{{ $t('a11y.measures.li6') }}</span> |
| 103 | + </li> |
| 104 | + </ul> |
| 105 | + </div> |
| 106 | + |
| 107 | + <!-- Known Limitations --> |
| 108 | + <div> |
| 109 | + <h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-4"> |
| 110 | + {{ $t('a11y.limitations.title') }} |
| 111 | + </h2> |
| 112 | + <p class="text-fg-muted leading-relaxed"> |
| 113 | + {{ $t('a11y.limitations.p1') }} |
| 114 | + </p> |
| 115 | + </div> |
| 116 | + |
| 117 | + <!-- Feedback --> |
| 118 | + <div> |
| 119 | + <h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-4"> |
| 120 | + {{ $t('a11y.contact.title') }} |
| 121 | + </h2> |
| 122 | + <p class="text-fg-muted leading-relaxed"> |
| 123 | + <i18n-t keypath="a11y.contact.p1" tag="span" scope="global"> |
| 124 | + <template #app> |
| 125 | + <strong class="text-fg">npmx</strong> |
| 126 | + </template> |
| 127 | + <template #link> |
| 128 | + <a |
| 129 | + href="https://github.com/npmx-dev/npmx.dev/issues" |
| 130 | + target="_blank" |
| 131 | + rel="noopener noreferrer" |
| 132 | + class="inline-flex items-center gap-1 text-fg-muted hover:text-fg underline decoration-fg-subtle/50 hover:decoration-fg" |
| 133 | + > |
| 134 | + {{ $t('a11y.contact.link') }} |
| 135 | + <span class="i-carbon:launch rtl-flip w-4 h-4" aria-hidden="true" /> |
| 136 | + </a> |
| 137 | + </template> |
| 138 | + </i18n-t> |
| 139 | + </p> |
| 140 | + </div> |
| 141 | + </section> |
| 142 | + </article> |
| 143 | + </main> |
| 144 | +</template> |
0 commit comments