Add maintenance and 404 pages, template suites, and MCP skill

This commit is contained in:
2026-11-25 15:36:01 +08:00
parent 277610913a
commit 884ce10789
47 changed files with 470 additions and 52 deletions
+48
View File
@@ -78,4 +78,52 @@ foreach ($themes as $theme => [$name, $description, $templates]) {
$groups[$theme] = compact('name', 'description', 'pages');
}
$suites = [
'gather' => ['Gather · 会场', '暖黄封面与平铺议程,适合会议、工作坊和展览。', [
'gather-conference' => ['会议与工作坊', '留一天,和同行动手做。', '汇总会议议程、嘉宾及到场信息。', [
['agenda', '当日议程', 'event-agenda'], ['speakers', '分享嘉宾', 'speaker-lineup'], ['venue', '如何到场', 'venue-guide'],
]],
'gather-exhibition' => ['展览导览', '用一个下午,走进你的展厅。', '呈现展览主题、参观方式和现场活动。', [
['exhibition', '展览主题', 'editorial-feature'], ['venue', '参观信息', 'venue-guide'], ['sessions', '现场活动', 'event-agenda'],
]],
]],
'market' => ['Market · 商店', '霜绿与墨色,适合商品详情和服务预约。', [
'market-product' => ['商品详情', '把材料和细节讲清楚。', '展示商品及规格,提供咨询和订购入口。', [
['product', '精选商品', 'product-spotlight'], ['specifications', '规格与交付', 'product-specifications'], ['get-in-touch', '订购咨询', 'contact-card'],
]],
'market-service' => ['服务预约', '从第一次沟通到完成交付。', '帮助客户了解服务流程、方案和咨询方式。', [
['process', '服务流程', 'service-process'], ['plans', '选择服务方案', 'pricing'], ['get-in-touch', '预约咨询', 'contact-card'],
]],
]],
'dispatch' => ['Dispatch · 编辑部', '高对比衬线标题和细分隔线,适合专题报道与刊物。', [
'dispatch-feature' => ['专题报道', '围绕一个问题,读得更深。', '把导读、相关报道和延伸资料串成一条路径。', [
['feature', '本期导读', 'editorial-feature'], ['reading', '按顺序阅读', 'reading-path'], ['resources', '延伸资料', 'resources'],
]],
'dispatch-magazine' => ['刊物首页', '把新一期放到读者面前。', '集中呈现最新文章、编辑说明和联系入口。', [
['issue', '最新文章', 'articles'], ['editors', '编辑手记', 'editorial-feature'], ['get-in-touch', '联系编辑部', 'contact-card'],
]],
]],
];
foreach ($suites as $theme => [$name, $description, $templates]) {
$pages = [];
foreach ($templates as $key => [$label, $heading, $lead, $blocks]) {
$sections = [];
foreach ($blocks as $index => [$anchor, $title, $component]) {
$block = BlockTemplates::find($component);
$body = $theme === 'market'
? str_replace(['href="#contact"', 'href="/#contact"'], 'href="#get-in-touch"', $block[1])
: $block[1];
$sections[] = [$anchor, $title, $index % 2 ? 'tinted' : 'plain', $body, $block[3] ?? null];
}
$visual = $key === 'market-product';
$pages[$key] = [
'name' => $label, 'heading' => $heading, 'description' => $lead,
'image' => $visual ? $sample : '', 'alt' => $visual ? '商品展示版式示例' : '',
'actions' => [['#' . $sections[0][0], '查看' . $sections[0][1], 'solid', false]],
'sections' => $sections,
];
}
$groups[$theme] = compact('name', 'description', 'pages');
}
return $groups;