From 89cfeff439ba7d6f5ea863453c90758d706461a9 Mon Sep 17 00:00:00 2001 From: joyzhao Date: Mon, 16 Jun 2025 18:37:28 +0800 Subject: [PATCH] feat(navigation): add services section to header and translations - Add 'nav.services' translations in both English and Chinese - Include services link in desktop and mobile navigation - Add id to services section for navigation - Use personalInfo.name instead of translation for header name --- src/components/GlassHeader.tsx | 5 ++++- src/i18n/ui.ts | 2 ++ src/pages/index.astro | 2 +- src/pages/zh/index.astro | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/GlassHeader.tsx b/src/components/GlassHeader.tsx index 2f58c0c..534b3c2 100644 --- a/src/components/GlassHeader.tsx +++ b/src/components/GlassHeader.tsx @@ -1,4 +1,5 @@ import ThemeToggle from "./ui/theme-toggle"; +import { personalInfo } from "@/lib/data"; import LanguageSwitcher from "./LanguageSwitcher"; import { useTranslations, getLocalizedPath, type Lang } from "@/i18n/utils"; import { useState, useEffect } from "react"; @@ -35,13 +36,14 @@ export default function GlassHeader({ lang }: GlassHeaderProps) { className="flex items-center text-lg font-medium transition-opacity duration-150 hover:opacity-80" href={getLocalizedPath('/', lang)} > - โœจ {t('personal.name')} + โœจ {personalInfo.name} {/* Desktop Navigation */}