Add shared ref-17 Studio cover template trial
studio CI and deployment / verify-and-deploy (push) Successful in 3m58s

This commit is contained in:
2026-10-26 19:59:51 +08:00
parent f8fde443f5
commit c3765e7a07
9 changed files with 242 additions and 8 deletions
+17 -3
View File
@@ -1,3 +1,17 @@
export type Idea = {slug:string; title:string; summary:string; slides:{heading:string;body:string;color:string}[]};
// Add a page here; the page, AI text and export bundle share this source.
export const ideas:Idea[]=[{slug:'first-idea',title:'把一个想法,变成一组画面',summary:'从一句话出发,写成页面,再导出为图文或视频。',slides:[{heading:'先捕捉,再打磨',body:'把今天的灵感写下来。不用急着完整,先留下那个让你心动的瞬间。',color:'#ffe5df'},{heading:'让每一页只讲一件事',body:'一个标题,一段解释,一个值得被记住的画面。',color:'#e2e9e1'},{heading:'选择你的表达方式',body:'导出图文长页,或用 Python 将画面制作成视频。',color:'#eee5f5'}]}];
import ref17 from './templates/ref-17.json';
export type Slide={heading:string;body:string;color:string;key?:string;label?:string;accent?:string;kicker?:string};
export type Idea={slug:string;title:string;summary:string;slides:Slide[];template?:typeof ref17};
// Studio owns creative pages. Wiki source tutorials are consumed as text/image data.
export const ideas:Idea[]=[{
slug:'learning-skills-template',title:'学习资料合集 · 封面模板试版',
summary:'一张空白母版与三张主题占位封面,共用 ref-17 的同一套构件坐标;先试文案、色调和边界,暂不填具体 Skills。',template:ref17,
slides:[
{key:'master',label:'空白母版',heading:'合集标题',body:'副标题占位\n栏目一 · 栏目二\n正文稍后填入',color:'#84918c',accent:'#d8ddd4',kicker:'TEMPLATE / 00'},
{key:'notes',label:'A · 笔记复习',heading:'笔记复习',body:'课程 · 笔记 · 复习\n副标题稍后确定\n正文暂不填入',color:'#7a8b7e',accent:'#d5ddcf',kicker:'COLLECTION / A'},
{key:'teaching',label:'B · 教学资料',heading:'教学资料',body:'题目 · 试卷 · 课件\n副标题稍后确定\n正文暂不填入',color:'#7c8e9b',accent:'#d8e0e4',kicker:'COLLECTION / B'},
{key:'english',label:'C · 英语学习',heading:'英语学习',body:'词汇 · 精读 · 表达\n副标题稍后确定\n正文暂不填入',color:'#9b817a',accent:'#e4d6ce',kicker:'COLLECTION / C'},
],
},{slug:'first-idea',title:'把一个想法,变成一组画面',summary:'从一句话出发,写成页面,再导出为图文或视频。',slides:[{heading:'先捕捉,再打磨',body:'把今天的灵感写下来。不用急着完整,先留下那个让你心动的瞬间。',color:'#ffe5df'},{heading:'让每一页只讲一件事',body:'一个标题,一段解释,一个值得被记住的画面。',color:'#e2e9e1'},{heading:'选择你的表达方式',body:'导出图文长页,或用 Python 将画面制作成视频。',color:'#eee5f5'}]}];
export function ideaMarkdown(idea:Idea){
return '# '+idea.title+'\n\n'+idea.summary+'\n\n'+(idea.template?'## 模板来源与约束\n\n教程:'+idea.template.tutorialUrl+'?agent_mode=True\n\n同一套模板:'+idea.template.id+';源画板 '+idea.template.width+'×'+idea.template.height+'。本阶段仅有占位封面,没有具体 Skills 内容。\n\n```json\n'+JSON.stringify(idea.template,null,2)+'\n```\n\n':'')+idea.slides.map(s=>'## '+(s.label||s.heading)+'\n\n'+s.heading+'\n\n'+s.body+'\n\n'+(idea.template?'主色:'+s.color+';叠圆:'+s.accent+'。\n':'')).join('\n\n');
}
@@ -0,0 +1,116 @@
{
"id": "ref-17",
"name": "英文刊头与圆形叠标及窄栏",
"tutorialUrl": "http://8.211.154.134:18131/explore/7b1b2fc5b9690213bbbe07ac",
"referenceUrl": "http://8.211.154.134:18131/api/media/447db777-d060-4987-b753-15422b0b4919",
"sourceSha256": "121ab8a362c45eee86281ca5dfbbe33577cfcd255579a16c3542530484b9f1dc",
"width": 113,
"height": 174,
"masthead": [
"STUDY",
"Skills"
],
"paper": "#f4f2eb",
"ink": "#25342f",
"slots": [
{
"id": "D01",
"kind": "decoration",
"role": "右栏底线",
"box": [
82,
121,
29,
2
]
},
{
"id": "T01",
"kind": "text",
"role": "左上英文第一行",
"box": [
6,
10,
63,
10
]
},
{
"id": "T02",
"kind": "text",
"role": "左上英文第二行",
"box": [
5,
20,
56,
16
]
},
{
"id": "T03",
"kind": "text",
"role": "中部中文横题",
"box": [
51,
50,
60,
16
]
},
{
"id": "T04",
"kind": "text",
"role": "右侧窄栏正文",
"box": [
82,
67,
29,
54
]
},
{
"id": "I01",
"kind": "image",
"role": "左下主图",
"box": [
5,
68,
73,
101
]
},
{
"id": "I02",
"kind": "image",
"role": "左中叠加圆形",
"box": [
5,
53,
22,
22
]
},
{
"id": "D02",
"kind": "decoration",
"role": "刊头右侧双线",
"box": [
61,
27,
50,
7
]
},
{
"id": "D03",
"kind": "decoration",
"role": "底部横向贴条",
"box": [
58,
167,
54,
6
]
}
]
}