Skip to content

Commit dff4adb

Browse files
committed
Complete homepage plugin list and preview
1 parent b3f4bbe commit dff4adb

File tree

2 files changed

+100
-24
lines changed

2 files changed

+100
-24
lines changed

src/pages/index.module.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,19 @@
3131
border-radius: 28px;
3232
}
3333

34+
.heroVisual {
35+
margin: 1.6rem 0 0;
36+
}
37+
38+
.heroVisual img {
39+
display: block;
40+
width: 100%;
41+
height: auto;
42+
border-radius: 24px;
43+
border: 1px solid var(--site-panel-border);
44+
box-shadow: 0 24px 48px rgba(22, 64, 136, 0.12);
45+
}
46+
3447
.kicker {
3548
margin: 0;
3649
color: var(--site-kicker-color);
@@ -162,6 +175,10 @@
162175
grid-template-columns: repeat(3, minmax(0, 1fr));
163176
}
164177

178+
.pluginGrid {
179+
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
180+
}
181+
165182
.quickCard,
166183
.pluginCard,
167184
.flowCard,

src/pages/index.tsx

Lines changed: 83 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -32,27 +32,41 @@ const quickLinks = [
3232
];
3333

3434
const pluginDocs = [
35+
{
36+
title: 'MatrixLib',
37+
summary: 'Matrix 系列共享前置、稳定 API 基线、更新器与遥测封装。',
38+
topics: ['共享运行时', '开发者 API', '自动更新与审批'],
39+
detail: '共享前置与基础能力',
40+
to: '/docs/matrixlib',
41+
},
3542
{
3643
title: 'MatrixAuth',
37-
summary: '认证、登录、档案绑定与兼容接入文档。',
38-
topics: ['安装与部署', '配置说明', '命令与占位符'],
39-
detail: '8 篇核心文档',
44+
summary: '认证、登录、档案绑定、挂钩状态与稳定 API 文档。',
45+
topics: ['安装与部署', '配置说明', '开发者 API'],
46+
detail: '认证与档案系统',
4047
to: '/docs/matrixauth/overview',
4148
},
4249
{
4350
title: 'MatrixCook',
44-
summary: '锅具、配方、燃料、分类与存储说明。',
45-
topics: ['安装与配置', '锅具与配方', '命令与 PAPI'],
46-
detail: '5 篇核心文档',
51+
summary: '锅具、配方、燃料、运行态快照与稳定 API 文档。',
52+
topics: ['安装与配置', '锅具与配方', '开发者 API'],
53+
detail: '烹饪与锅具系统',
4754
to: '/docs/matrixcook/overview',
4855
},
4956
{
5057
title: 'MatrixShop',
51-
summary: '模块化商店系统的结构、命令、配置与运行边界。',
52-
topics: ['快速开始', '模块总览', '详细配置解读'],
53-
detail: '20+ 篇专题文档',
58+
summary: '模块化交易系统、仓库 SPI、运行态快照与稳定 API 文档。',
59+
topics: ['快速开始', '模块总览', '开发者 API'],
60+
detail: '交易与商业系统',
5461
to: '/docs/matrixshop',
5562
},
63+
{
64+
title: 'MatrixStorage',
65+
summary: '邮箱、仓库、桥接状态、块仓库快照与稳定 API 文档。',
66+
topics: ['安装与依赖', '仓储能力', '开发者 API'],
67+
detail: '仓储与桥接系统',
68+
to: '/docs/matrixstorage',
69+
},
5670
];
5771

5872
const workflowSteps = [
@@ -70,7 +84,17 @@ const workflowSteps = [
7084
},
7185
];
7286

73-
function TelemetryIcon({kind}: {kind: 'shop' | 'auth' | 'cook'}): ReactNode {
87+
function TelemetryIcon({kind}: {kind: 'shop' | 'auth' | 'cook' | 'lib' | 'storage'}): ReactNode {
88+
if (kind === 'lib') {
89+
return (
90+
<svg viewBox="0 0 24 24" aria-hidden="true">
91+
<path d="M5 6.5h14" />
92+
<path d="M5 12h14" />
93+
<path d="M5 17.5h9" />
94+
<path d="M18 17.5h1.5" />
95+
</svg>
96+
);
97+
}
7498
if (kind === 'shop') {
7599
return (
76100
<svg viewBox="0 0 24 24" aria-hidden="true">
@@ -89,6 +113,16 @@ function TelemetryIcon({kind}: {kind: 'shop' | 'auth' | 'cook'}): ReactNode {
89113
</svg>
90114
);
91115
}
116+
if (kind === 'storage') {
117+
return (
118+
<svg viewBox="0 0 24 24" aria-hidden="true">
119+
<path d="M4.5 7.5h15v9h-15z" />
120+
<path d="M8 11h8" />
121+
<path d="M8 14h5" />
122+
<path d="M7 7.5V5.5h10v2" />
123+
</svg>
124+
);
125+
}
92126
return (
93127
<svg viewBox="0 0 24 24" aria-hidden="true">
94128
<path d="M7 9h10l1.2 7H5.8L7 9Z" />
@@ -99,6 +133,15 @@ function TelemetryIcon({kind}: {kind: 'shop' | 'auth' | 'cook'}): ReactNode {
99133
}
100134

101135
const telemetryCards = [
136+
{
137+
icon: 'lib' as const,
138+
title: 'MatrixLib',
139+
status: '已接入',
140+
statusTone: 'active',
141+
chart: 'https://bstats.org/signatures/bukkit/MatrixLib.svg',
142+
to: '/docs/matrixlib/bstats-and-telemetry',
143+
action: '查看 MatrixLib 统计',
144+
},
102145
{
103146
icon: 'shop' as const,
104147
title: 'MatrixShop',
@@ -111,18 +154,29 @@ const telemetryCards = [
111154
{
112155
icon: 'auth' as const,
113156
title: 'MatrixAuth',
114-
status: '预留位置',
115-
statusTone: 'pending',
116-
to: '/docs/matrixauth/overview',
117-
action: '查看 MatrixAuth 文档',
157+
status: '已接入',
158+
statusTone: 'active',
159+
chart: 'https://bstats.org/signatures/bukkit/MatrixAuth.svg',
160+
to: '/docs/matrixauth/bstats-and-telemetry',
161+
action: '查看 MatrixAuth 统计',
118162
},
119163
{
120164
icon: 'cook' as const,
121165
title: 'MatrixCook',
122-
status: '预留位置',
123-
statusTone: 'pending',
124-
to: '/docs/matrixcook/overview',
125-
action: '查看 MatrixCook 文档',
166+
status: '已接入',
167+
statusTone: 'active',
168+
chart: 'https://bstats.org/signatures/bukkit/MatrixCook.svg',
169+
to: '/docs/matrixcook/bstats-and-telemetry',
170+
action: '查看 MatrixCook 统计',
171+
},
172+
{
173+
icon: 'storage' as const,
174+
title: 'MatrixStorage',
175+
status: '已接入',
176+
statusTone: 'active',
177+
chart: 'https://bstats.org/signatures/bukkit/MatrixStorage.svg',
178+
to: '/docs/matrixstorage/bstats-and-telemetry',
179+
action: '查看 MatrixStorage 统计',
126180
},
127181
];
128182

@@ -136,11 +190,13 @@ export default function Home(): ReactNode {
136190
<p className={styles.kicker}>官方文档</p>
137191
<h1 className={styles.heroTitle}>Matrix 官方文档</h1>
138192
<p className={styles.heroDescription}>
139-
集中维护 MatrixAuth、MatrixCook 和 MatrixShop 的使用、部署、配置与排障文档。
140-
站点提供插件索引、本地全文搜索与 AI 搜索入口,方便从概览一路进入到具体字段和命令级别。
193+
集中维护 MatrixLib、MatrixAuth、MatrixCook、MatrixShop 与 MatrixStorage 的使用、部署、
194+
配置、稳定 API 与运维文档。站点提供统一插件入口、本地全文搜索与 AI 搜索能力,
195+
便于从概览进入到发布说明、开发者 API 和具体字段说明。
141196
</p>
142197
<div className={styles.heroMeta}>
143-
<span>3 个插件文档入口</span>
198+
<span>5 个插件文档入口</span>
199+
<span>稳定 API 命名空间</span>
144200
<span>本地全文搜索</span>
145201
<span>AI 辅助检索</span>
146202
</div>
@@ -155,6 +211,9 @@ export default function Home(): ReactNode {
155211
GitHub
156212
</Link>
157213
</div>
214+
<figure className={styles.heroVisual}>
215+
<img src="/img/screenshots/matrix-plugin-hub-combined.webp" alt="Matrix 系列插件入口合并预览图" loading="lazy" />
216+
</figure>
158217
</div>
159218
</div>
160219
</section>
@@ -186,7 +245,7 @@ export default function Home(): ReactNode {
186245
<div className={styles.sectionHeader}>
187246
<p className={styles.kicker}>插件列表</p>
188247
<h2>插件列表</h2>
189-
<p className={styles.sectionLead}>每个插件都按概览、安装、配置、命令和 FAQ 等主题拆分维护</p>
248+
<p className={styles.sectionLead}>首页现已补全 Matrix 系列全部插件入口,并覆盖文档、发布与开发者 API</p>
190249
</div>
191250
<div className={styles.pluginGrid}>
192251
{pluginDocs.map((plugin) => (
@@ -215,9 +274,9 @@ export default function Home(): ReactNode {
215274
<section className={styles.section}>
216275
<div className={styles.sectionHeader}>
217276
<p className={styles.kicker}>插件统计</p>
218-
<h2>首页统计与预留位置</h2>
277+
<h2>bStats 统计总览</h2>
219278
<p className={styles.sectionLead}>
220-
MatrixShop 已经接入统计说明展示,MatrixAuth 和 MatrixCook 的首页卡位也已预留,后续收到代码后可直接补齐
279+
全系列插件当前都已经补齐 bStats 页面,首页这里同步提供统一统计入口与签名图预览
221280
</p>
222281
</div>
223282
<div className={styles.telemetryGrid}>

0 commit comments

Comments
 (0)