Loading...
Loading...
Compare original and translation side by side
node scripts/generate-presentation.js --input content.json --output presentation.htmlnode scripts/generate-presentation.js --input content.json --output presentation.htmlnode scripts/export-slides.js presentation.html --format png --output ./slides/node scripts/export-slides.js presentation.html --format png --output ./slides/node scripts/export-slides.js presentation.html --format pdf --output presentation.pdfnode scripts/export-slides.js presentation.html --format pdf --output presentation.pdfbrand-agencybrand-agency| Color | Hex | Usage |
|---|---|---|
| Primary (Orange) | | Title slides, CTAs, accents |
| Secondary (Yellow) | | Highlights, accent slides |
| Accent (Blue) | | Info slides, links |
| Success (Green) | | Positive content |
| Error (Red) | | Warnings, emphasis |
| Foreground | | Text, borders |
| Background | | Light slides |
| 颜色 | 十六进制值 | 用途 |
|---|---|---|
| 主色(橙色) | | 标题页、CTA按钮、强调元素 |
| 辅助色(黄色) | | 高亮内容、强调页 |
| 点缀色(蓝色) | | 信息页、链接 |
| 成功色(绿色) | | 正向内容 |
| 错误色(红色) | | 警告、重点强调 |
| 前景色 | | 文本、边框 |
| 背景色 | | 浅色页面 |
--title--title--content--content--two-col--two-col--code--code--stats--stats--grid--grid--ascii--ascii--image--imageFrames: ┌─────┐ ╔═════╗ ┏━━━━━┓
│ │ ║ ║ ┃ ┃
└─────┘ ╚═════╝ ┗━━━━━┛
Lines: ─ │ ═ ║ ━ ┃ ━━━ ───
Arrows: → ← ↑ ↓ ▶ ◀ ▲ ▼
Shapes: ● ○ ■ □ ▲ △ ★ ☆ ◆ ◇
Blocks: █ ▓ ▒ ░Frames: ┌─────┐ ╔═════╗ ┏━━━━━┓
│ │ ║ ║ ┃ ┃
└─────┘ ╚═════╝ ┗━━━━━┛
Lines: ─ │ ═ ║ ━ ┃ ━━━ ───
Arrows: → ← ↑ ↓ ▶ ◀ ▲ ▼
Shapes: ● ○ ■ □ ▲ △ ★ ☆ ◆ ◇
Blocks: █ ▓ ▒ ░{
"title": "Presentation Title",
"footer": "Company / Date",
"slides": [
{
"type": "title",
"bg": "primary",
"title": "Main Title",
"subtitle": "Subtitle text"
},
{
"type": "content",
"title": "Section Title",
"body": "Introduction paragraph",
"bullets": ["Point 1", "Point 2", "Point 3"]
},
{
"type": "code",
"title": "Code Example",
"language": "javascript",
"code": "const x = 42;"
},
{
"type": "stats",
"items": [
{"value": "14", "label": "templates"},
{"value": "4", "label": "formats"},
{"value": "∞", "label": "possibilities"}
]
}
]
}{
"title": "Presentation Title",
"footer": "Company / Date",
"slides": [
{
"type": "title",
"bg": "primary",
"title": "Main Title",
"subtitle": "Subtitle text"
},
{
"type": "content",
"title": "Section Title",
"body": "Introduction paragraph",
"bullets": ["Point 1", "Point 2", "Point 3"]
},
{
"type": "code",
"title": "Code Example",
"language": "javascript",
"code": "const x = 42;"
},
{
"type": "stats",
"items": [
{"value": "14", "label": "templates"},
{"value": "4", "label": "formats"},
{"value": "∞", "label": "possibilities"}
]
}
]
}title: Presentation Title
footer: Company / Date
slides:
- type: title
bg: primary
title: Main Title
subtitle: Subtitle text
- type: content
title: Section Title
body: Introduction paragraph
bullets:
- Point 1
- Point 2title: Presentation Title
footer: Company / Date
slides:
- type: title
bg: primary
title: Main Title
subtitle: Subtitle text
- type: content
title: Section Title
body: Introduction paragraph
bullets:
- Point 1
- Point 2undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedpresentation-generator/
├── SKILL.md # This file
├── templates/
│ ├── base.html # Base HTML template
│ ├── slides/ # Slide type partials
│ │ ├── title.html
│ │ ├── content.html
│ │ ├── code.html
│ │ ├── stats.html
│ │ ├── two-col.html
│ │ ├── grid.html
│ │ └── ascii.html
│ └── styles.css # Neobrutalism styles
├── scripts/
│ ├── generate-presentation.js # Main generator
│ ├── export-slides.js # PNG/PDF export
│ └── md-to-slides.js # Markdown converter
└── output/ # Generated filespresentation-generator/
├── SKILL.md # 本说明文档
├── templates/
│ ├── base.html # 基础HTML模板
│ ├── slides/ # 各类型幻灯片的模板片段
│ │ ├── title.html
│ │ ├── content.html
│ │ ├── code.html
│ │ ├── stats.html
│ │ ├── two-col.html
│ │ ├── grid.html
│ │ └── ascii.html
│ └── styles.css # 新野蛮主义风格样式
├── scripts/
│ ├── generate-presentation.js # 主生成脚本
│ ├── export-slides.js # PNG/PDF导出脚本
│ └── md-to-slides.js # Markdown转换脚本
└── output/ # 生成文件存放目录npm install playwrightnpm install playwright