mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-23 00:20:40 +07:00
feat(nav): Mode row in the sheet becomes icon-only with the bar's sun/moon
- Extract SunIcon/MoonIcon from the bar theme control into src/components/ui/icons.tsx (exact geometry and attributes, so the bar renders identically) - MobileMenu Mode row: Dark option draws MoonIcon, Light draws SunIcon in the .mobile-menu-icon-option square the Language and Theme color rows use, aria-pressed + translated aria-label/title - Delete .mobile-menu-segment-option (3 rule groups) from App.css — last user gone - AGENTS.md picker paragraph, spec-v3-mobile-navigation.md (Q18 + progress row), spec-v3-i18n.md cross-reference updated
This commit is contained in:
1 parent
4d4fd066cc
commit
609067c6c9
7 files changed
+43
-42
No files matched your search
@@ -8,6 +8,7 @@ import { navPaths } from '@/data/navigation'
|
||||
import { RollingTextLink } from '@/components/ui/RollingTextLink'
|
||||
import { ThemePaletteMenu } from '@/components/layout/ThemePaletteMenu'
|
||||
import { LanguageIcon } from '@/components/ui/LanguageIcon'
|
||||
import { MoonIcon, SunIcon } from '@/components/ui/icons'
|
||||
import { MobileMenu } from '@/components/layout/MobileMenu'
|
||||
import { ResumeNavButton } from '@/components/layout/ResumeNavButton'
|
||||
|
||||
@@ -150,16 +151,7 @@ export function Navigation() {
|
||||
aria-label={`${strings.nav.themeSwitch[lang]} (${resolvedTheme === 'dark' ? strings.nav.themeDark[lang] : strings.nav.themeLight[lang]})`}
|
||||
title={`${strings.nav.themeMode[lang]}: ${resolvedTheme === 'dark' ? strings.nav.themeDark[lang] : strings.nav.themeLight[lang]}`}
|
||||
>
|
||||
{resolvedTheme === 'dark' ? (
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
|
||||
<circle cx="12" cy="12" r="5" />
|
||||
<path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42" />
|
||||
</svg>
|
||||
) : (
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
|
||||
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" />
|
||||
</svg>
|
||||
)}
|
||||
{resolvedTheme === 'dark' ? <SunIcon /> : <MoonIcon />}
|
||||
</button>
|
||||
|
||||
<ThemePaletteMenu />
|
||||
|
||||
Reference in new issue
Block a user