|
| 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 | +</script> |
| 18 | + |
| 19 | +<template> |
| 20 | + <main class="container flex-1 py-12 sm:py-16 overflow-x-hidden"> |
| 21 | + <article class="max-w-2xl mx-auto"> |
| 22 | + <header class="mb-12"> |
| 23 | + <div class="flex items-baseline justify-between gap-4 mb-4"> |
| 24 | + <h1 class="font-mono text-3xl sm:text-4xl font-medium"> |
| 25 | + {{ $t('a11y.title') }} |
| 26 | + </h1> |
| 27 | + <button |
| 28 | + type="button" |
| 29 | + :title="$t('nav.back')" |
| 30 | + class="inline-flex items-center gap-2 font-mono text-sm text-fg-muted hover:text-fg transition-colors duration-200 rounded focus-visible:outline-accent/70 shrink-0" |
| 31 | + @click="router.back()" |
| 32 | + > |
| 33 | + <span class="i-carbon:arrow-left rtl-flip w-4 h-4" aria-hidden="true" /> |
| 34 | + <span class="hidden sm:inline">{{ $t('nav.back') }}</span> |
| 35 | + </button> |
| 36 | + </div> |
| 37 | + </header> |
| 38 | + |
| 39 | + <section class="prose prose-invert max-w-none space-y-8"> |
| 40 | + <p class="text-fg-muted leading-relaxed"> |
| 41 | + <i18n-t keypath="a11y.welcome" tag="span" scope="global"> |
| 42 | + <template #app> |
| 43 | + <strong class="text-fg">npmx</strong> |
| 44 | + </template> |
| 45 | + </i18n-t> |
| 46 | + </p> |
| 47 | + |
| 48 | + <!-- Commitment to Accessibility --> |
| 49 | + <div> |
| 50 | + <h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-4"> |
| 51 | + {{ $t('a11y.commitment.title') }} |
| 52 | + </h2> |
| 53 | + <p class="text-fg-muted leading-relaxed"> |
| 54 | + {{ $t('a11y.commitment.p1') }} |
| 55 | + </p> |
| 56 | + </div> |
| 57 | + |
| 58 | + <!-- Regulatory Framework and Compliance Status --> |
| 59 | + <div> |
| 60 | + <h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-4"> |
| 61 | + {{ $t('a11y.compliance.title') }} |
| 62 | + </h2> |
| 63 | + <p class="text-fg-muted leading-relaxed mb-4"> |
| 64 | + <i18n-t keypath="a11y.compliance.p1" tag="span" scope="global"> |
| 65 | + <template #guidelines> |
| 66 | + <strong class="text-fg">{{ $t('a11y.compliance.guidelines') }}</strong> |
| 67 | + </template> |
| 68 | + <template #aa> |
| 69 | + <strong class="text-fg">{{ $t('a11y.compliance.aa') }}</strong> |
| 70 | + </template> |
| 71 | + </i18n-t> |
| 72 | + </p> |
| 73 | + <a |
| 74 | + :title="$t('a11y.compliance.wcag_alt')" |
| 75 | + href="https://www.w3.org/WAI/WCAG2AA-Conformance" |
| 76 | + target="_blank" |
| 77 | + rel="noopener noreferrer" |
| 78 | + class="inline-flex items-center gap-1 text-fg-muted hover:text-fg underline decoration-fg-subtle/50 hover:decoration-fg" |
| 79 | + > |
| 80 | + <img |
| 81 | + src="/wcag2.1AA.svg" |
| 82 | + width="88" |
| 83 | + height="32" |
| 84 | + aria-hidden="true" |
| 85 | + :alt="$t('a11y.compliance.wcag_alt')" |
| 86 | + /> |
| 87 | + </a> |
| 88 | + </div> |
| 89 | + |
| 90 | + <!-- Implementation Measures --> |
| 91 | + <div> |
| 92 | + <h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-4"> |
| 93 | + {{ $t('a11y.implementation.title') }} |
| 94 | + </h2> |
| 95 | + <p class="text-fg-muted leading-relaxed mb-4"> |
| 96 | + {{ $t('a11y.implementation.p1') }} |
| 97 | + </p> |
| 98 | + <ul class="space-y-3 text-fg-muted list-none p-0 mb-4"> |
| 99 | + <li class="flex items-start gap-3"> |
| 100 | + <span class="text-fg-subtle shrink-0 mt-1">—</span> |
| 101 | + <span>{{ $t('a11y.implementation.li1') }}</span> |
| 102 | + </li> |
| 103 | + <li class="flex items-start gap-3"> |
| 104 | + <span class="text-fg-subtle shrink-0 mt-1">—</span> |
| 105 | + <span>{{ $t('a11y.implementation.li2') }}</span> |
| 106 | + </li> |
| 107 | + <li class="flex items-start gap-3"> |
| 108 | + <span class="text-fg-subtle shrink-0 mt-1">—</span> |
| 109 | + <span>{{ $t('a11y.implementation.li3') }}</span> |
| 110 | + </li> |
| 111 | + <li class="flex items-start gap-3"> |
| 112 | + <span class="text-fg-subtle shrink-0 mt-1">—</span> |
| 113 | + <span>{{ $t('a11y.implementation.li4') }}</span> |
| 114 | + </li> |
| 115 | + <li class="flex items-start gap-3"> |
| 116 | + <span class="text-fg-subtle shrink-0 mt-1">—</span> |
| 117 | + <span>{{ $t('a11y.implementation.li5') }}</span> |
| 118 | + </li> |
| 119 | + <li class="flex items-start gap-3"> |
| 120 | + <span class="text-fg-subtle shrink-0 mt-1">—</span> |
| 121 | + <span>{{ $t('a11y.implementation.li6') }}</span> |
| 122 | + </li> |
| 123 | + </ul> |
| 124 | + </div> |
| 125 | + |
| 126 | + <!-- Contact and Feedback --> |
| 127 | + <div> |
| 128 | + <h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-4"> |
| 129 | + {{ $t('a11y.contact.title') }} |
| 130 | + </h2> |
| 131 | + <p class="text-fg-muted leading-relaxed"> |
| 132 | + <i18n-t keypath="a11y.contact.p1" tag="span" scope="global"> |
| 133 | + <template #app> |
| 134 | + <strong class="text-fg">npmx</strong> |
| 135 | + </template> |
| 136 | + <template #link> |
| 137 | + <a |
| 138 | + href="https://github.com/npmx-dev/npmx.dev/issues" |
| 139 | + target="_blank" |
| 140 | + rel="noopener noreferrer" |
| 141 | + class="inline-flex items-center gap-1 text-fg-muted hover:text-fg underline decoration-fg-subtle/50 hover:decoration-fg" |
| 142 | + > |
| 143 | + {{ $t('a11y.contact.link') }} |
| 144 | + <span class="i-carbon:launch rtl-flip w-4 h-4" aria-hidden="true" /> |
| 145 | + </a> |
| 146 | + </template> |
| 147 | + </i18n-t> |
| 148 | + </p> |
| 149 | + </div> |
| 150 | + </section> |
| 151 | + </article> |
| 152 | + </main> |
| 153 | +</template> |
0 commit comments