feat(about): add team member profile page

This commit introduces a new section to showcase team members, starting with the founder's profile.

- Adds a dynamic page route `/about/` to display individual member profiles.
- Creates a new `about` content collection to source profile information from Markdown files.
- Adds the first profile for 'Xiaomai', including a detailed resume and background image.
- Integrates a 'Teams' dropdown into the main navigation header.
- Implements a `copyToClipboard` utility with a toast notification for sharing profile links.
This commit is contained in:
2025-11-08 13:40:23 +08:00
parent fb67355a15
commit f9e02372b2
10 changed files with 254 additions and 61 deletions

View File

@@ -50,9 +50,7 @@ const defineWebDevSchema = () =>
label: z.string().min(1),
icon: z.string().optional(), // 比如 "lucide:mouse-pointer-click"
// 你原结构里通过 createService 包装,但最终是一个对象
plans: z
.array(PricingPlanPropsSchema)
.min(1),
plans: z.array(PricingPlanPropsSchema).min(1),
// 预留扩展字段例如category、tags、hidden 等)
category: z.string().optional(),
tags: z.array(z.string()).optional(),
@@ -82,5 +80,10 @@ export default defineContentConfig({
source: "zh-CN/webDev.yml",
schema: defineWebDevSchema(),
}),
about: defineCollection({
type: "page",
source: "about/*.md",
schema: z.object({}),
}),
},
});