Commit 635161c
committed
fix(web): improve accessibility and landing page performance
Accessibility:
- Add aria-label to all icon-only buttons (copy, mobile menu)
- Add aria-expanded to mobile menu toggle
- Force terminal to always use dark theme for WCAG AA contrast
- Add i18n keys: common.menu, common.close
Performance:
- Throttle mousemove with rAF, cache getBoundingClientRect on enter
- Replace 10 box-shadow keyframe animations with 2 transform-only
- Animate border glow only on hover instead of continuously
- Reduce hero gradient orbs blur from 3xl to 2xl
- Add passive flag to scroll listener
- Add will-change and contain hints for animated dots1 parent c1009cc commit 635161c
9 files changed
Lines changed: 85 additions & 355 deletions
File tree
- web/src
- components/landing
- i18n
- views
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
| 44 | + | |
| 45 | + | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
47 | 49 | | |
| 50 | + | |
| 51 | + | |
48 | 52 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
55 | 61 | | |
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
59 | 65 | | |
| 66 | + | |
60 | 67 | | |
61 | 68 | | |
62 | 69 | | |
63 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
64 | 75 | | |
65 | 76 | | |
66 | 77 | | |
| |||
88 | 99 | | |
89 | 100 | | |
90 | 101 | | |
| 102 | + | |
91 | 103 | | |
92 | 104 | | |
93 | 105 | | |
| |||
189 | 201 | | |
190 | 202 | | |
191 | 203 | | |
| 204 | + | |
192 | 205 | | |
193 | 206 | | |
194 | 207 | | |
| |||
280 | 293 | | |
281 | 294 | | |
282 | 295 | | |
283 | | - | |
284 | 296 | | |
285 | 297 | | |
286 | 298 | | |
287 | 299 | | |
288 | 300 | | |
| 301 | + | |
289 | 302 | | |
290 | 303 | | |
291 | 304 | | |
| |||
0 commit comments