/** 课程书架——教程首页:入口画像 → 六章卡片 → 关系与进度 */ import { Page, Section } from '../../lib/ui' import { CHAPTERS } from '../../lib/chapters' import { MemphisCard } from '../../components/MemphisCard' import { EntryGuide } from '../../components/EntryGuide' import { RouteLine } from '../../components/RouteLine' import { Ticket } from '../../components/Ticket' import type { ChapterId } from '../../lib/types' /* 场景坐标(节点=卡描边真实边缘):卡1(40,110,250) 卡2(380,44,250,rot) 卡5(700,44,140) */ const nodes = { 1: { id: 1, borderLeft: 40, right: 290, y: 180 }, 2: { id: 2, borderLeft: 380, right: 630, y: 108 }, 5: { id: 5, borderLeft: 700, right: 840, y: 108 }, } as const const GRID: { id: ChapterId; entry?: 1 | 2 | 3 }[] = [ { id: 1, entry: 1 }, { id: 2, entry: 2 }, { id: 3 }, { id: 4 }, { id: 5 }, { id: 6, entry: 3 }, ] export function App() { return (
{GRID.map(({ id, entry }) => ( ))}
) }