Files
TiktokUI/lib/videos.ts

8 lines
1.6 KiB
TypeScript

export const videos = [
{id:'afterglow', title:'把日落,留在这一刻。', description:'山野没有答案,但晚风会让一切慢下来。', author:'山野来信', handle:'outdoor.notes', avatar:'山', color:'#ed9772', tags:['日落收集计划','治愈系风景','慢下来'], music:'Golden hour · 原创氛围音乐', likes:12840, saves:1860, comments:328, src:'/videos/afterglow.mp4', poster:'/videos/afterglow.jpg', location:'山野之间', label:'CHASE THE LAST LIGHT', subtitle:'日落不落幕'},
{id:'ocean', title:'今天的烦恼,就交给海吧。', description:'听见浪的声音,就像世界按下了暂停键。', author:'蓝色航线', handle:'blue.route', avatar:'海', color:'#55b9c3', tags:['看海日记','蓝色时刻','自由的风'], music:'Ocean breathing · 原创氛围音乐', likes:23670, saves:3201, comments:516, src:'/videos/ocean.mp4', poster:'/videos/ocean.jpg', location:'蔚蓝海岸', label:'SOMEWHERE, BY THE SEA', subtitle:'去有风的地方'},
{id:'night', title:'城市睡了,浪漫还没有。', description:'沿着霓虹的方向,开启一场没有目的地的夜游。', author:'午夜放映室', handle:'midnight.film', avatar:'夜', color:'#b594ed', tags:['城市夜游','霓虹浪漫','赛博空间'], music:'Midnight drive · 原创氛围音乐', likes:9652, saves:987, comments:164, src:'/videos/night.mp4', poster:'/videos/night.jpg', location:'午夜之城', label:'THE NIGHT IS STILL YOUNG', subtitle:'夜色正好'},
];
export type VideoItem = typeof videos[number];
export const compact = (n:number) => n >= 10000 ? `${(n/10000).toFixed(1)}万` : n.toLocaleString('zh-CN');