forked from npmx-dev/npmx.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaccessibility.vue
More file actions
153 lines (144 loc) · 5.64 KB
/
accessibility.vue
File metadata and controls
153 lines (144 loc) · 5.64 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<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()
</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"
:title="$t('nav.back')"
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"
@click="router.back()"
>
<span class="i-carbon:arrow-left rtl-flip w-4 h-4" aria-hidden="true" />
<span class="hidden sm:inline">{{ $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>
<!-- Commitment to Accessibility -->
<div>
<h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-4">
{{ $t('a11y.commitment.title') }}
</h2>
<p class="text-fg-muted leading-relaxed">
{{ $t('a11y.commitment.p1') }}
</p>
</div>
<!-- Regulatory Framework and Compliance Status -->
<div>
<h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-4">
{{ $t('a11y.compliance.title') }}
</h2>
<p class="text-fg-muted leading-relaxed mb-4">
<i18n-t keypath="a11y.compliance.p1" tag="span" scope="global">
<template #guidelines>
<strong class="text-fg">{{ $t('a11y.compliance.guidelines') }}</strong>
</template>
<template #aa>
<strong class="text-fg">{{ $t('a11y.compliance.aa') }}</strong>
</template>
</i18n-t>
</p>
<a
:title="$t('a11y.compliance.wcag_alt')"
href="https://www.w3.org/WAI/WCAG2AA-Conformance"
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"
>
<img
src="/wcag2.1AA.svg"
width="88"
height="32"
aria-hidden="true"
:alt="$t('a11y.compliance.wcag_alt')"
/>
</a>
</div>
<!-- Implementation Measures -->
<div>
<h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-4">
{{ $t('a11y.implementation.title') }}
</h2>
<p class="text-fg-muted leading-relaxed mb-4">
{{ $t('a11y.implementation.p1') }}
</p>
<ul class="space-y-3 text-fg-muted list-none p-0 mb-4">
<li class="flex items-start gap-3">
<span class="text-fg-subtle shrink-0 mt-1">—</span>
<span>{{ $t('a11y.implementation.li1') }}</span>
</li>
<li class="flex items-start gap-3">
<span class="text-fg-subtle shrink-0 mt-1">—</span>
<span>{{ $t('a11y.implementation.li2') }}</span>
</li>
<li class="flex items-start gap-3">
<span class="text-fg-subtle shrink-0 mt-1">—</span>
<span>{{ $t('a11y.implementation.li3') }}</span>
</li>
<li class="flex items-start gap-3">
<span class="text-fg-subtle shrink-0 mt-1">—</span>
<span>{{ $t('a11y.implementation.li4') }}</span>
</li>
<li class="flex items-start gap-3">
<span class="text-fg-subtle shrink-0 mt-1">—</span>
<span>{{ $t('a11y.implementation.li5') }}</span>
</li>
<li class="flex items-start gap-3">
<span class="text-fg-subtle shrink-0 mt-1">—</span>
<span>{{ $t('a11y.implementation.li6') }}</span>
</li>
</ul>
</div>
<!-- Contact and 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>