Files
probably-rendering-one-more…/apps/waterfall-wiki/src/studio/content/ideas.ts
T

18 lines
2.7 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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[];tool?:string;template?:typeof ref17};
// Studio owns creative pages. Wiki source tutorials are consumed as text/image data.
export const ideas:Idea[]=[{slug:'layout-selection',tool:'layout-selection',title:'三种排版 · 模板选择工具',summary:'ref-01、ref-07、ref-26 三种不同构图的可编辑试版。',slides:[]},{
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');
}