Files
2026-06-08 06:05:31 -05:00

177 lines
5.8 KiB
TypeScript

/**
* 首页静态数据配置
*/
import { avatarForIndex } from "@/app/data/avatars";
export interface MemberPhoto {
name: string;
photo: string;
}
export interface TravelingNow {
name: string;
photo: string;
dest: string;
}
export interface Meetup {
city: string;
emoji: string;
date: string;
count: number;
}
export interface HotTopic {
titleZh: string;
titleEn: string;
views: number;
}
export interface Route {
titleZh: string;
titleEn: string;
citiesZh: string[];
citiesEn: string[];
emojis: string[];
durationZh: string;
durationEn: string;
costZh: string;
costEn: string;
descZh: string;
descEn: string;
gradient: string;
}
export interface HomeStats {
cities: string;
nomads: string;
meetups: string;
homeMeetups: string;
cost: string;
}
export const MEMBER_PHOTOS: MemberPhoto[] = [
{ name: "林晓", photo: avatarForIndex(0) },
{ name: "张浩", photo: avatarForIndex(1) },
{ name: "陈悦", photo: avatarForIndex(2) },
{ name: "周杰", photo: avatarForIndex(3) },
{ name: "吴婷", photo: avatarForIndex(4) },
{ name: "杨帅", photo: avatarForIndex(5) },
{ name: "赵琪", photo: avatarForIndex(6) },
{ name: "黄磊", photo: avatarForIndex(7) },
{ name: "孙莉", photo: avatarForIndex(8) },
];
export const TRAVELING_NOW: TravelingNow[] = [
{ name: "小明", photo: avatarForIndex(9), dest: "大理" },
{ name: "雨晴", photo: avatarForIndex(10), dest: "成都" },
{ name: "阿杰", photo: avatarForIndex(11), dest: "深圳" },
{ name: "小燕", photo: avatarForIndex(12), dest: "杭州" },
{ name: "大伟", photo: avatarForIndex(13), dest: "厦门" },
{ name: "佳琪", photo: avatarForIndex(14), dest: "昆明" },
{ name: "志远", photo: avatarForIndex(15), dest: "丽江" },
{ name: "心怡", photo: avatarForIndex(16), dest: "三亚" },
{ name: "凯文", photo: avatarForIndex(17), dest: "上海" },
{ name: "子豪", photo: avatarForIndex(18), dest: "北京" },
{ name: "浩然", photo: avatarForIndex(19), dest: "广州" },
{ name: "雅琪", photo: avatarForIndex(20), dest: "南京" },
{ name: "天翔", photo: avatarForIndex(21), dest: "长沙" },
{ name: "美玲", photo: avatarForIndex(22), dest: "苏州" },
{ name: "俊杰", photo: avatarForIndex(23), dest: "青岛" },
{ name: "晓华", photo: avatarForIndex(24), dest: "珠海" },
];
export const MEETUPS: Meetup[] = [
{ city: "大理", emoji: "🏯", date: "3月9日", count: 12 },
{ city: "成都", emoji: "🐼", date: "3月12日", count: 8 },
{ city: "深圳", emoji: "🌃", date: "3月14日", count: 15 },
{ city: "厦门", emoji: "🌊", date: "3月16日", count: 6 },
{ city: "杭州", emoji: "⛲", date: "3月20日", count: 23 },
];
export const HOT_TOPICS: HotTopic[] = [
{ titleZh: "大理最佳共享办公空间推荐 Top 10", titleEn: "Top 10 Coworking Spaces in Dali", views: 2340 },
{ titleZh: "2026年数字游民友好城市排名", titleEn: "2026 Digital Nomad Friendly Cities Ranking", views: 1890 },
{ titleZh: "远程工作者的税务规划指南", titleEn: "Tax Planning Guide for Remote Workers", views: 1560 },
{ titleZh: "成都 vs 大理:哪个更适合游民?", titleEn: "Chengdu vs Dali: Which is Better for Nomads?", views: 1230 },
{ titleZh: "新手游民必备工具与装备清单", titleEn: "Essential Tools & Equipment for New Nomads", views: 980 },
];
export const ROUTES: Route[] = [
{
titleZh: "云南慢生活线",
titleEn: "Yunnan Slow Life Route",
citiesZh: ["昆明", "大理", "丽江"],
citiesEn: ["Kunming", "Dali", "Lijiang"],
emojis: ["🌸", "🏯", "🏔️"],
durationZh: "3-6个月",
durationEn: "3-6 months",
costZh: "¥3,200/月起",
costEn: "From ¥3,200/month",
descZh: "从春城昆明出发,沿着滇西北一路感受最纯粹的慢生活",
descEn: "From spring city Kunming, experience the purest slow life along northwest Yunnan",
gradient: "from-purple-500 to-pink-500",
},
{
titleZh: "科技创业线",
titleEn: "Tech Startup Route",
citiesZh: ["深圳", "杭州", "上海"],
citiesEn: ["Shenzhen", "Hangzhou", "Shanghai"],
emojis: ["🌃", "⛲", "🏙️"],
durationZh: "2-4个月",
durationEn: "2-4 months",
costZh: "¥7,000/月起",
costEn: "From ¥7,000/month",
descZh: "穿越中国三大科技中心,连接最前沿的创业生态",
descEn: "Cross China's three tech hubs, connect with cutting-edge startup ecosystem",
gradient: "from-blue-500 to-cyan-500",
},
{
titleZh: "美食文化线",
titleEn: "Food Culture Route",
citiesZh: ["成都", "重庆", "长沙"],
citiesEn: ["Chengdu", "Changsha", "Chongqing"],
emojis: ["🐼", "🌶️", "🎪"],
durationZh: "2-3个月",
durationEn: "2-3 months",
costZh: "¥4,000/月起",
costEn: "From ¥4,000/month",
descZh: "巴蜀到湘楚,用味蕾丈量中国最火辣的城市",
descEn: "From Sichuan to Hunan, explore China's spiciest cities with your taste buds",
gradient: "from-orange-500 to-red-500",
},
];
export const HOME_STATS: HomeStats = {
cities: "46",
nomads: "5,000+",
meetups: "8+",
homeMeetups: "50+",
cost: "¥3,000",
};
export const COMMUNITY_STATS = {
onlineMembers: "3,200+",
messagesPerMonth: "3,200+",
};
/** 首页右侧「电子书」「访谈视频」卡片;暂时关闭,改回 true 即可恢复 */
export const HOME_RIGHT_FEATURE_CARDS_ENABLED = false;
/** 首页 Hero 区「媒体报道」模块;暂时关闭,改回 true 即可恢复 */
export const HOME_MEDIA_PRESS_ENABLED = false;
export const HOME_CONFIG = {
memberPhotos: MEMBER_PHOTOS,
travelingNow: TRAVELING_NOW,
meetups: MEETUPS,
hotTopics: HOT_TOPICS,
routes: ROUTES,
stats: HOME_STATS,
communityStats: COMMUNITY_STATS,
};
export function getHomeConfig() {
return HOME_CONFIG;
}