返回模板
Product roadmap timeline
A vertical milestone timeline with clear status pills and responsive spacing.
完整源码
1 行 · 1.3 KB<style>*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,sans-serif;background:#f6f7fb;color:#172033}button,a{font:inherit}.wrap{width:min(960px,calc(100% - 32px));margin:auto}</style><style>main{padding:56px 16px}.tl{max-width:640px;margin:auto;border-left:2px solid #cbd5e1;padding-left:24px}.item{position:relative;margin-bottom:28px}.dot{position:absolute;left:-32px;top:4px;width:14px;height:14px;border-radius:99px;background:#4f46e5;border:3px solid #eef2ff}.date{font-size:13px;font-weight:700;color:#4f46e5}.item h2{margin:4px 0 6px;font-size:20px}.item p{margin:0;color:#526074;line-height:1.6}</style><main><div class="tl"><article class="item"><span class="dot"></span><div class="date">Q1 · Shipped</div><h2>Sandboxed Live Editor</h2><p>Added instant HTML, Markdown, SVG, and Mermaid previewing across mobile and desktop viewports.</p></article><article class="item"><span class="dot"></span><div class="date">Q2 · Shipped</div><h2>Curated Topics & Templates</h2><p>Organized starter layouts and community showcases with generated Cover screenshots.</p></article><article class="item"><span class="dot"></span><div class="date">Q3 · In Progress</div><h2>Custom Share Slugs & API</h2><p>Allowing creators to publish directly from AI assistants with custom short links.</p></article></div></main>适用场景
适合产品路线图、项目演进史、个人履历里程碑或历史时间轴教学展示。
布局原理
左侧竖线锚定每个阶段节点与时间标签,天然适配桌面端和手机竖屏,避免横向时间轴拥挤滚动。
如何定制
建议每个节点写明具体状态和简短成果说明,避免只写空泛日期。
发布前检查
检查不同屏幕宽度下圆点与竖线的对齐精度,确保只看文字也能分清进度状态。