Files

36 lines
1.8 KiB
TypeScript

/** 展示页用的示例数据:与真实业务无关,只为示例好看、够长 */
export type DemoApp = {
id: string
name: string
desc: string
icon: string
}
export const DEMO_APPS: DemoApp[] = [
{ id: 'github', name: 'GitHub', desc: '代码托管与开源社区', icon: 'G' },
{ id: 'figma', name: 'Figma', desc: '多人协作的界面设计工具', icon: 'F' },
{ id: 'notion', name: 'Notion', desc: '文档、知识库与项目管理', icon: 'N' },
{ id: 'vercel', name: 'Vercel', desc: '前端部署与边缘网络', icon: 'V' },
{ id: 'unsplash', name: 'Unsplash', desc: '免费高清图片素材', icon: 'U' },
{ id: 'dribbble', name: 'Dribbble', desc: '设计师作品与灵感集', icon: 'D' },
{ id: 'bilibili', name: '哔哩哔哩', desc: '视频社区与学习资源', icon: '哔' },
{ id: 'stash', name: 'Stash', desc: '本地静态页面托管工具', icon: 'S' },
]
export const DEMO_POSTERS = [
{ id: 'p1', title: '星际穿越', tag: '推荐电影' },
{ id: 'p2', title: '银翼杀手 2049', tag: '赛博朋克' },
{ id: 'p3', title: '疯狂动物城', tag: '动画' },
{ id: 'p4', title: '沙丘', tag: '科幻史诗' },
]
export const DEMO_ARTICLES = [
{ id: 'a1', title: 'CES 2026:折叠屏的第二次机会', meta: '2 天前' },
{ id: 'a2', title: '把设计令牌落进 CSS 变量的四种做法', meta: '1 周前' },
]
/** 内联 SVG 渐变封面:不依赖网络,离线也能看到图片态 */
export const DEMO_COVER =
"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%233858f6'/%3E%3Cstop offset='1' stop-color='%237c3aed'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='96' height='96' fill='url(%23g)'/%3E%3C/svg%3E"