170 lines
5.8 KiB
TypeScript
170 lines
5.8 KiB
TypeScript
/**
|
|
* 首页静态数据配置
|
|
*/
|
|
|
|
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: "https://i.pravatar.cc/150?img=5" },
|
|
{ name: "张浩", photo: "https://i.pravatar.cc/150?img=3" },
|
|
{ name: "陈悦", photo: "https://i.pravatar.cc/150?img=9" },
|
|
{ name: "周杰", photo: "https://i.pravatar.cc/150?img=7" },
|
|
{ name: "吴婷", photo: "https://i.pravatar.cc/150?img=1" },
|
|
{ name: "杨帅", photo: "https://i.pravatar.cc/150?img=12" },
|
|
{ name: "赵琪", photo: "https://i.pravatar.cc/150?img=16" },
|
|
{ name: "黄磊", photo: "https://i.pravatar.cc/150?img=11" },
|
|
{ name: "孙莉", photo: "https://i.pravatar.cc/150?img=20" },
|
|
];
|
|
|
|
export const TRAVELING_NOW: TravelingNow[] = [
|
|
{ name: "小明", photo: "https://i.pravatar.cc/150?img=52", dest: "大理" },
|
|
{ name: "雨晴", photo: "https://i.pravatar.cc/150?img=44", dest: "成都" },
|
|
{ name: "阿杰", photo: "https://i.pravatar.cc/150?img=53", dest: "深圳" },
|
|
{ name: "小燕", photo: "https://i.pravatar.cc/150?img=47", dest: "杭州" },
|
|
{ name: "大伟", photo: "https://i.pravatar.cc/150?img=55", dest: "厦门" },
|
|
{ name: "佳琪", photo: "https://i.pravatar.cc/150?img=48", dest: "昆明" },
|
|
{ name: "志远", photo: "https://i.pravatar.cc/150?img=57", dest: "丽江" },
|
|
{ name: "心怡", photo: "https://i.pravatar.cc/150?img=49", dest: "三亚" },
|
|
{ name: "凯文", photo: "https://i.pravatar.cc/150?img=59", dest: "上海" },
|
|
{ name: "子豪", photo: "https://i.pravatar.cc/150?img=60", dest: "北京" },
|
|
{ name: "浩然", photo: "https://i.pravatar.cc/150?img=61", dest: "广州" },
|
|
{ name: "雅琪", photo: "https://i.pravatar.cc/150?img=21", dest: "南京" },
|
|
{ name: "天翔", photo: "https://i.pravatar.cc/150?img=67", dest: "长沙" },
|
|
{ name: "美玲", photo: "https://i.pravatar.cc/150?img=23", dest: "苏州" },
|
|
{ name: "俊杰", photo: "https://i.pravatar.cc/150?img=68", dest: "青岛" },
|
|
{ name: "晓华", photo: "https://i.pravatar.cc/150?img=26", 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: "18",
|
|
nomads: "5,000+",
|
|
meetups: "8+",
|
|
homeMeetups: "50+",
|
|
cost: "¥3,000",
|
|
};
|
|
|
|
export const COMMUNITY_STATS = {
|
|
onlineMembers: "3,200+",
|
|
messagesPerMonth: "3,200+",
|
|
};
|
|
|
|
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;
|
|
}
|