This commit is contained in:
eric
2026-03-08 12:30:50 -05:00
parent 0e75fb2e6e
commit 57a788006f
12 changed files with 536 additions and 17 deletions

View File

@@ -54,7 +54,15 @@ export interface ThemeConfig {
bucket?: string;
uploadPrefix?: string;
};
/** 电商独立站域名(可选,配置后显示电商卡片) */
shopUrl?: string;
};
/** 关于我们Linktree 链接(可选) */
linktreeUrl?: string;
/** 社交平台链接(用于关于页展示) */
socialLinks?: Array<{ platform: string; label: string; url: string; group?: "domestic" | "overseas" }>;
/** 团队成员(可选) */
teamMembers?: Array<{ name: string; role: string; avatar?: string; link?: string }>;
}
export const THEME_CONFIGS: Record<ThemeId, ThemeConfig> = {
@@ -84,7 +92,22 @@ export const THEME_CONFIGS: Record<ThemeId, ThemeConfig> = {
services: {
join: { amount: 80, type: "meetup" },
pocketbaseJoinCollection: "solan",
shopUrl: process.env.NEXT_PUBLIC_SHOP_URL || "https://store.hackrobot.cn/", // 独立站域名
},
linktreeUrl: process.env.NEXT_PUBLIC_LINKTREE_URL || "https://linktr.ee/digitalnomad",
socialLinks: [
{ platform: "douyin", label: "抖音", url: "https://www.douyin.com", group: "domestic" },
{ platform: "wechat-official", label: "微信公众号", url: "https://mp.weixin.qq.com", group: "domestic" },
{ platform: "xiaohongshu", label: "小红书", url: "https://www.xiaohongshu.com", group: "domestic" },
{ platform: "tiktok", label: "TikTok", url: "https://www.tiktok.com", group: "overseas" },
{ platform: "youtube", label: "YouTube 频道", url: "https://www.youtube.com", group: "overseas" },
{ platform: "twitter", label: "X", url: "https://x.com", group: "overseas" },
],
teamMembers: [
{ name: "成员 A", role: "发起人", link: "#" },
{ name: "成员 B", role: "内容运营", link: "#" },
{ name: "成员 C", role: "技术开发", link: "#" },
],
},
"solo-company": {
id: "solo-company",