-
-
Notifications
You must be signed in to change notification settings - Fork 237
feat(i18n,ui): add accessibility statement page #1096
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
danielroe
merged 11 commits into
npmx-dev:main
from
userquin:feat-add-a11y-statement-page
Feb 10, 2026
+337
−0
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
68b022d
feat(i18n,ui): add accessibility statement page
userquin 2a8f9fb
chore: include JS entry
userquin bddea5d
chore: remove aria-hidden from wcag svg logo
userquin 6be576a
chore: add li7 JS entry to the template
userquin 8fd0200
chore: sort pages
userquin 2332462
chore: sort static routes rules
userquin 696b944
chore: include aria-hidden=true to em-dash spans
userquin 81f32e7
Merge remote-tracking branch 'origin/main' into feat-add-a11y-stateme…
danielroe 72422b6
fix: update page in line with new elements, reword statement
danielroe 3e7e3a2
chore: remove title from link
danielroe 61c983a
chore: add mobile menu entry
danielroe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,144 @@ | ||
| <script setup lang="ts"> | ||
| definePageMeta({ | ||
| name: 'accessibility', | ||
| }) | ||
| useSeoMeta({ | ||
| title: () => `${$t('a11y.title')} - npmx`, | ||
| description: () => $t('a11y.welcome', { app: 'npmx' }), | ||
| }) | ||
| defineOgImageComponent('Default', { | ||
| title: () => $t('a11y.title'), | ||
| description: () => $t('a11y.welcome', { app: 'npmx' }), | ||
| }) | ||
| const router = useRouter() | ||
| const canGoBack = useCanGoBack() | ||
| </script> | ||
|
|
||
| <template> | ||
| <main class="container flex-1 py-12 sm:py-16 overflow-x-hidden"> | ||
| <article class="max-w-2xl mx-auto"> | ||
| <header class="mb-12"> | ||
| <div class="flex items-baseline justify-between gap-4 mb-4"> | ||
| <h1 class="font-mono text-3xl sm:text-4xl font-medium"> | ||
| {{ $t('a11y.title') }} | ||
| </h1> | ||
| <button | ||
| type="button" | ||
| 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" | ||
| @click="router.back()" | ||
| v-if="canGoBack" | ||
| > | ||
| <span class="i-carbon:arrow-left rtl-flip w-4 h-4" aria-hidden="true" /> | ||
| <span class="sr-only sm:not-sr-only">{{ $t('nav.back') }}</span> | ||
| </button> | ||
| </div> | ||
| </header> | ||
|
|
||
| <section class="prose prose-invert max-w-none space-y-8"> | ||
| <p class="text-fg-muted leading-relaxed"> | ||
| <i18n-t keypath="a11y.welcome" tag="span" scope="global"> | ||
| <template #app> | ||
| <strong class="text-fg">npmx</strong> | ||
| </template> | ||
| </i18n-t> | ||
| </p> | ||
|
|
||
| <!-- Our Approach --> | ||
| <div> | ||
| <h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-4"> | ||
| {{ $t('a11y.approach.title') }} | ||
| </h2> | ||
| <p class="text-fg-muted leading-relaxed mb-4"> | ||
| {{ $t('a11y.approach.p1') }} | ||
| </p> | ||
| <p class="text-fg-muted leading-relaxed"> | ||
| <i18n-t keypath="a11y.approach.p2" tag="span" scope="global"> | ||
| <template #about> | ||
| <NuxtLink | ||
| :to="{ name: 'about' }" | ||
| class="text-fg-muted hover:text-fg underline decoration-fg-subtle/50 hover:decoration-fg" | ||
| > | ||
| {{ $t('a11y.approach.about_link') }} | ||
| </NuxtLink> | ||
| </template> | ||
| </i18n-t> | ||
| </p> | ||
| </div> | ||
|
|
||
| <!-- What We Do --> | ||
| <div> | ||
| <h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-4"> | ||
| {{ $t('a11y.measures.title') }} | ||
| </h2> | ||
| <p class="text-fg-muted leading-relaxed mb-4"> | ||
| {{ $t('a11y.measures.p1') }} | ||
| </p> | ||
| <ul class="space-y-3 text-fg-muted list-none p-0"> | ||
| <li class="flex items-start gap-3"> | ||
| <span class="text-fg-subtle shrink-0">—</span> | ||
| <span>{{ $t('a11y.measures.li1') }}</span> | ||
| </li> | ||
| <li class="flex items-start gap-3"> | ||
| <span class="text-fg-subtle shrink-0">—</span> | ||
| <span>{{ $t('a11y.measures.li2') }}</span> | ||
| </li> | ||
| <li class="flex items-start gap-3"> | ||
| <span class="text-fg-subtle shrink-0">—</span> | ||
| <span>{{ $t('a11y.measures.li3') }}</span> | ||
| </li> | ||
| <li class="flex items-start gap-3"> | ||
| <span class="text-fg-subtle shrink-0">—</span> | ||
| <span>{{ $t('a11y.measures.li4') }}</span> | ||
| </li> | ||
| <li class="flex items-start gap-3"> | ||
| <span class="text-fg-subtle shrink-0">—</span> | ||
| <span>{{ $t('a11y.measures.li5') }}</span> | ||
| </li> | ||
| <li class="flex items-start gap-3"> | ||
| <span class="text-fg-subtle shrink-0">—</span> | ||
| <span>{{ $t('a11y.measures.li6') }}</span> | ||
| </li> | ||
| </ul> | ||
| </div> | ||
|
|
||
| <!-- Known Limitations --> | ||
| <div> | ||
| <h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-4"> | ||
| {{ $t('a11y.limitations.title') }} | ||
| </h2> | ||
| <p class="text-fg-muted leading-relaxed"> | ||
| {{ $t('a11y.limitations.p1') }} | ||
| </p> | ||
| </div> | ||
|
|
||
| <!-- Feedback --> | ||
| <div> | ||
| <h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-4"> | ||
| {{ $t('a11y.contact.title') }} | ||
| </h2> | ||
| <p class="text-fg-muted leading-relaxed"> | ||
| <i18n-t keypath="a11y.contact.p1" tag="span" scope="global"> | ||
| <template #app> | ||
| <strong class="text-fg">npmx</strong> | ||
| </template> | ||
| <template #link> | ||
| <a | ||
| href="https://github.com/npmx-dev/npmx.dev/issues" | ||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| class="inline-flex items-center gap-1 text-fg-muted hover:text-fg underline decoration-fg-subtle/50 hover:decoration-fg" | ||
| > | ||
| {{ $t('a11y.contact.link') }} | ||
| <span class="i-carbon:launch rtl-flip w-4 h-4" aria-hidden="true" /> | ||
| </a> | ||
| </template> | ||
| </i18n-t> | ||
| </p> | ||
| </div> | ||
| </section> | ||
| </article> | ||
| </main> | ||
| </template> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.