feat(app): introduce Hall of Fame section and refactor UI
This commit adds the '名人堂' (Hall of Fame) feature and removes the Element Plus dependency. - feat(content): Add Hall of Fame section with a new content collection, homepage component, and detail pages. - refactor(join-us): Rewrite the 'Join Us' form to remove Element Plus, using native elements and Reka UI. The form is temporarily disabled. - feat(ui): Display cover images on News and Events cards. - chore: Integrate Umami for web analytics. - fix: Correct minor text issues, including graduation year in the footer.
This commit is contained in:
@@ -11,6 +11,7 @@ export default defineContentConfig({
|
||||
subtitle: z.string(),
|
||||
date: z.coerce.date(),
|
||||
location: z.string(),
|
||||
cover: z.string().url(),
|
||||
}),
|
||||
}),
|
||||
// 新闻集合
|
||||
@@ -32,5 +33,17 @@ export default defineContentConfig({
|
||||
ogImage: z.string().optional(),
|
||||
}),
|
||||
}),
|
||||
// 名人堂
|
||||
hallOfFames: defineCollection({
|
||||
type: "page",
|
||||
source: "hall-of-fames/*md",
|
||||
schema: z.object({
|
||||
name: z.string(),
|
||||
photo: z.string().url(),
|
||||
title: z.string(),
|
||||
description: z.string(),
|
||||
gallery: z.array(z.string()),
|
||||
}),
|
||||
}),
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user