From e71baad55418099a3958fb3adbe40930087d0a30 Mon Sep 17 00:00:00 2001 From: dekun Date: Thu, 11 Jun 2026 00:11:08 +0800 Subject: [PATCH] Fix taiji fish eyes and expose theme toggle on mobile. Correct yin-yang eye colors with contrast strokes, and show light/dark switch in mobile header with Chinese labels. Co-authored-by: Cursor --- components/header.tsx | 14 ++++++++------ components/mode-toggle.tsx | 24 +++++++++++++++--------- components/svg/taiji.tsx | 30 ++++++++++++++++++++++++++---- 3 files changed, 49 insertions(+), 19 deletions(-) diff --git a/components/header.tsx b/components/header.tsx index 3ba8d88..44ea84d 100644 --- a/components/header.tsx +++ b/components/header.tsx @@ -36,19 +36,21 @@ function NavLink({ href, label }: { href: string; label: string }) { export default function Header() { return (
-
- +
+ 知命阁 -
); diff --git a/components/mode-toggle.tsx b/components/mode-toggle.tsx index 8b5df69..110f938 100644 --- a/components/mode-toggle.tsx +++ b/components/mode-toggle.tsx @@ -17,22 +17,28 @@ export function ModeToggle() { return ( - - + setTheme("light")}> - - Light + + 亮色 setTheme("dark")}> - - Dark + + 暗色 setTheme("system")}> - System + + 跟随系统 diff --git a/components/svg/taiji.tsx b/components/svg/taiji.tsx index 755f5e0..ef31248 100644 --- a/components/svg/taiji.tsx +++ b/components/svg/taiji.tsx @@ -24,8 +24,20 @@ export const TaijiIcon = React.memo(function TaijiIcon({ d="M32 2a30 30 0 0 1 0 60 15 15 0 0 1 0-30 15 15 0 0 0 0-30z" className="fill-stone-800 dark:fill-stone-900" /> - - + {/* 阳中有阴 — 鱼眼在阳面,填深色 */} + + {/* 阴中有阳 — 鱼眼在阴面,填浅色 */} + ); }); @@ -59,8 +71,18 @@ export function TaijiWatermark({ d="M100 2a98 98 0 0 1 0 196 49 49 0 0 1 0-98 49 49 0 0 0 0-98z" className="fill-stone-600/10 dark:fill-stone-300/12" /> - - + + ); }