初始化政体志子站
收录 zhengquan-site 前后端完整代码:24 朝数据、24 幅权力结构图、 5 条沿革(67 节点 / 269 条细释)、44 个词条,以及部署配置与接口测试。
This commit is contained in:
commit
aa12b9f910
58 files changed
+16253
No files matched your search
@@ -0,0 +1,35 @@
|
||||
import { threads } from '../store.js';
|
||||
import { esc } from '../util.js';
|
||||
|
||||
export function renderThreads() {
|
||||
const rows = threads().map((t, i) => `
|
||||
<a class="thread-row" href="#/thread/${esc(t.slug)}" style="--tc:${esc(t.color)}">
|
||||
<span class="tr-no">${String(i + 1).padStart(2, '0')}</span>
|
||||
<div class="tr-main">
|
||||
<div class="tr-head">
|
||||
<h2>${esc(t.title)}</h2>
|
||||
<span class="tr-sub">${esc(t.subtitle)}</span>
|
||||
</div>
|
||||
<p class="tr-q">${esc(t.question)}</p>
|
||||
<p class="tr-sum">${esc(t.summary)}</p>
|
||||
</div>
|
||||
<div class="tr-meta">
|
||||
<b>${t.count}</b>
|
||||
<span>节点</span>
|
||||
<em>${esc(t.span)}</em>
|
||||
</div>
|
||||
<span class="tr-go" aria-hidden="true">→</span>
|
||||
</a>`).join('');
|
||||
|
||||
const html = `
|
||||
<header class="thread-hero">
|
||||
<p class="kicker">沿革 · 五条专线</p>
|
||||
<h1>制度沿革</h1>
|
||||
<p class="thread-q">横看一朝之架构,纵看千年之因革。</p>
|
||||
<p class="thread-summary">同一件事——谁辅佐皇帝、谁监督百官、地方设几级、士人如何做官、兵从哪里来——在不同朝代有不同的答案。五条专线把二十四朝的制度碎片串成连续的线索,看它如何一步一步变成后来的样子。</p>
|
||||
</header>
|
||||
<div class="thread-index">${rows}</div>
|
||||
`;
|
||||
|
||||
return { html, title: '制度沿革' };
|
||||
}
|
||||
Reference in new issue
Block a user