mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
fix(a11y): reduced motion, screen-reader text and route-level splitting
Typewriter reads useReducedMotion: under reduced motion the timer never starts and the first role renders whole, while a screen-reader-only span exposes the full role list once instead of one keystroke at a time. BackToTop scrolls instantly under reduced motion and is labelled in the active language; the nav landmark and the mode toggle stop being English-only. The hero photo declares its measured 1200x1600 canvas plus fetch priority so the box is reserved before the 898 kB image decodes. HomePage stays eagerly imported because it owns the LCP; the other six routes lazy-load behind one Suspense boundary, which is also why the pages barrel is gone.
This commit is contained in:
1 parent
0c4aea32b5
commit
63afc1b505
8 files changed
+71
-41
No files matched your search
@@ -21,6 +21,9 @@ export const strings = {
|
||||
langVi: {en: 'Tiếng Việt', vi: 'Tiếng Việt'},
|
||||
langSwitch: {en: 'Switch language', vi: 'Đổi ngôn ngữ'},
|
||||
switchTo: {en: 'Switch to', vi: 'Chuyển sang'},
|
||||
mainNav: {en: 'Main navigation', vi: 'Điều hướng chính'},
|
||||
themeSwitch: {en: 'Switch display mode', vi: 'Đổi chế độ hiển thị'},
|
||||
themeMode: {en: 'Display mode', vi: 'Chế độ hiển thị'},
|
||||
},
|
||||
social: {
|
||||
heading: {en: 'Connect', vi: 'Kết nối'},
|
||||
@@ -113,6 +116,7 @@ export const strings = {
|
||||
},
|
||||
common: {
|
||||
resumeDownload: {en: 'Get Resume', vi: 'Tải CV'},
|
||||
backToTop: {en: 'Scroll to top', vi: 'Cuộn lên đầu trang'},
|
||||
contactTag: {en: 'Contact', vi: 'Liên hệ'},
|
||||
experienceTag: {en: 'Experience', vi: 'Kinh nghiệm'},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user