diff --git a/.DS_Store b/.DS_Store
new file mode 100644
index 0000000..f47b553
Binary files /dev/null and b/.DS_Store differ
diff --git a/src/components/Footer.astro b/src/components/Footer.astro
index 1c3e6cc..32737c9 100644
--- a/src/components/Footer.astro
+++ b/src/components/Footer.astro
@@ -1,53 +1,68 @@
---
-/**
- * 全站页脚组件
- * 包含公司信息、导航链接和社交媒体图标
- */
+import { hrefFor, type Lang, type SiteCopy } from '../i18n';
+
+interface Props {
+ lang: Lang;
+ copy: SiteCopy;
+}
+
+const { lang, copy } = Astro.props;
---
diff --git a/src/components/Header.astro b/src/components/Header.astro
index 7f5cee6..5a46aed 100644
--- a/src/components/Header.astro
+++ b/src/components/Header.astro
@@ -1,44 +1,74 @@
---
import { Icon } from 'astro-icon/components';
+import { LANGS, hrefFor, langLabels, type Lang, type RouteKey, type SiteCopy } from '../i18n';
interface Props {
- currentPath: string;
+ lang: Lang;
+ copy: SiteCopy;
+ currentSegment: RouteKey;
}
-const { currentPath } = Astro.props;
+const { lang, copy, currentSegment } = Astro.props;
-const navItems = [
- { label: '首页', href: '/' },
- { label: '教学理念', href: '/teaching-philosophy' },
- { label: '课程体系', href: '/curriculum' },
- { label: '师资团队', href: '/faculty' },
- { label: '关于我们', href: '/about' },
+const navItems: { label: string; segment: RouteKey }[] = [
+ { label: copy.nav.home, segment: '' },
+ { label: copy.nav.philosophy, segment: 'teaching-philosophy' },
+ { label: copy.nav.curriculum, segment: 'curriculum' },
+ { label: copy.nav.faculty, segment: 'faculty' },
+ { label: copy.nav.about, segment: 'about' },
];
---