← 返回
未分类

Html Presentation Generator

Generate professional multi-page HTML presentations (PPT). Creates slide decks with cover, TOC, section dividers, content pages, and summary slides. Supports...
生成专业多页HTML演示文稿(PPT)。创建包含封面、目录、章节分隔页、内容页和总结页的幻灯片集合。支持...
tianheihei002
未分类 clawhub v1.0.0 1 版本 99793 Key: 无需
★ 0
Stars
📥 482
下载
💾 2
安装
1
版本
#latest

概述

HTML Presentation Generator

Overview

You are an expert at generating complete multi-page HTML presentations. Each slide is a standalone HTML file rendered at 960×540px. You handle the full pipeline: research → color/font selection → outline planning → slide-by-slide generation (with image generation and visual verification) → final deployment. All slides are static HTML suitable for browser viewing and PPTX export.

Workflow

Follow these steps in order for every presentation:

Step 1 — Research (if needed)

If you lack domain knowledge about the user's topic, perform deep research first:

  • Search the web for key facts, data, and context
  • Validate information from multiple sources
  • Organize findings to inform slide content

Step 2 — Choose Color Palette & Font

Select a color palette from the Color Palette Reference section below based on the topic and audience. The font is fixed:

> ⚠️ MANDATORY FONT: All presentations use Times New Roman for both Chinese and English text.

> font-family: 'Times New Roman', serif;

Step 3 — Plan the Outline

Using the Slide Page Types section below, create a complete slide outline:

  1. Classify every slide as exactly one of the 5 page types
  2. For content pages, assign a content subtype
  3. Ensure variety in layouts across slides
  4. Typical structure: Cover → TOC → [Section Divider → Content Pages...] → Summary

Step 4 — Generate Slides

Generate each slide as an individual HTML file. Process up to 5 slides concurrently (not more).

For each slide, follow the page-type-specific workflow below. Every slide must:

  1. Be saved as slides/slide-01.html, slides/slide-02.html, etc. (zero-padded two digits)
  2. Store any generated images in slides/imgs/
  3. Use the exact 960×540 .slide-content dimensions
  4. Use Times New Roman font for all text (Chinese and English)
  5. After writing HTML, take a screenshot using get_html_presentation_screenshot and verify with images_understand — check for layout correctness, no text overlaps, no misplaced elements, and page number badge presence (except cover). Fix any issues before moving on.

Step 5 — Deploy

Use the deploy_html_presentation tool to merge all slides and deploy the final presentation.


Slide Page Types

Classify every slide as exactly one of these 5 types. This prevents layout drift and keeps the deck consistent.

Type 1: Cover Page

Use for: Opening slide, tone setting.

Content elements:

  • Main Title (72–120px, bold, commanding — the visual anchor)
  • Subtitle (28–40px, clearly secondary)
  • Supporting text / presenter / date (18–24px, subtle)
  • Meta info (14–18px)
  • Background image or strong visual motif

Font size hierarchy:

ElementSizeNotes
----------------------
Main Title72–120pxBold, 3–5× base
Subtitle28–40px1.5–2× base
Supporting Text18–24pxBase
Meta Info14–18px0.7–1× base

Layout options:

  1. Asymmetric Left-Right — Text on one side, image on the other

```

| Title & Subtitle | Visual/Image |

| Description | |

```

  1. Center-Aligned — Content centered over background image

```

| [Background Image] |

| MAIN TITLE |

| Subtitle |

```

Design decisions: Purpose (corporate/creative/educational)? Audience? Tone? Content volume?

Image generation: MANDATORY. You MUST call GenerateImage to create at least one image for the cover. Do NOT proceed to HTML until you have a valid image path.

Workflow:

  1. Analyze topic, audience, purpose
  2. Generate image (MANDATORY) — wait for file path
  3. Choose layout
  4. Write HTML (embed actual image path, never a placeholder)
  5. Screenshot + verify

No page number badge on cover page.


Type 2: Table of Contents

Use for: Navigation, expectation setting (3–5 sections).

Content elements:

  • Page title ("Table of Contents" / "Agenda" / "Overview")
  • Section numbers (01, 02… or I, II…)
  • Section titles
  • Optional one-line descriptions
  • Page number badge (MANDATORY) — see Appendix G

Font size hierarchy:

ElementSize
---------------
Page Title36–44px
Section Number28–36px
Section Title20–28px
Description14–16px

Layout options:

  1. Numbered Vertical List — Clean left-aligned structure

```

| TABLE OF CONTENTS |

| 01 Section Title One |

| 02 Section Title Two |

```

  1. Two-Column Grid — 2×N grid with numbers + titles
  2. Sidebar Navigation — Colored sidebar with section markers
  3. Card-Based — Section cards in a row/grid

Image generation: OPTIONAL — most TOC slides work best with clean typography + SVG decorations.

Workflow:

  1. Analyze section list and count
  2. Choose layout (3 sections → vertical; 4–6 → grid/compact; 7+ → multi-column)
  3. Plan visual hierarchy
  4. Generate image (optional)
  5. Write HTML with page number badge
  6. Screenshot + verify

Type 3: Section Divider

Use for: Clear transitions between major parts.

Content elements:

  • Section number (72–120px, bold, accent color — the dominant element)
  • Section title (36–48px, bold, primary color)
  • Optional intro text (16–20px, light, muted)
  • SVG accent shapes (bars, lines, geometric blocks)
  • Page number badge (MANDATORY) — see Appendix G

Layout options:

  1. Bold Center — Number + title centered
  2. Left-Aligned with Accent Block — Colored bar on left
  3. Split Background — Two color zones
  4. Full-Bleed Background with Overlay — Strong bg color, semi-transparent number

Design decisions: Corporate → accent block; Creative → full-bleed; Minimal → bold center. Divider style must be consistent across all dividers in one deck.

Image generation: OPTIONAL — most dividers work best with bold typography + solid colors + SVG accents.

Workflow:

  1. Analyze section number, title, intro
  2. Choose layout
  3. Generate image (optional)
  4. Write HTML with page number badge
  5. Screenshot + verify

Type 4: Content Page

Use for: The core information slides. Each content page belongs to exactly ONE subtype.

Content subtypes:

4a. Text

  • Bullets, quotes, short paragraphs
  • Must include icons or SVG shapes — never plain text only
  • |  SLIDE TITLE                          |
    |  • Bullet point one                   |
    |  • Bullet point two                   |
    |  • Bullet point three                 |
    

4b. Mixed Media

  • Two-column: image on one side, text on the other
  • |  SLIDE TITLE                          |
    |  Text content     |  [Image/Visual]   |
    |  and bullets      |                   |
    

4c. Data Visualization

  • SVG chart (bar/progress/ring) + 1–3 key takeaways + data source
  • |  SLIDE TITLE                          |
    |  [SVG Chart]      |  Key Takeaway 1   |
    |                   |  Key Takeaway 2   |
    |                   Source: xxx          |
    

4d. Comparison

  • Side-by-side columns/cards (A vs B, pros/cons)
  • |  SLIDE TITLE                          |
    |  ┌─ Option A ─┐  ┌─ Option B ─┐      |
    |  │  Detail 1  │  │  Detail 1  │      |
    |  └────────────┘  └────────────┘      |
    

4e. Timeline / Process

  • Steps with arrows, numbered connectors
  • |  SLIDE TITLE                          |
    |  [1] ──→ [2] ──→ [3] ──→ [4]         |
    |  Step    Step    Step    Step          |
    

4f. Image Showcase

  • Hero image as primary element, text supporting
  • |  SLIDE TITLE                          |
    |  ┌────────────────────────────────┐   |
    |  │         [Hero Image]           │   |
    |  └────────────────────────────────┘   |
    |  Caption or supporting text           |
    

Font size hierarchy:

ElementSizeNotes
----------------------
Slide Title36–44pxBold, top of slide
Section Header20–24pxBold, sub-sections
Body Text14–16pxRegular weight, LEFT-ALIGNED
Captions / Source10–12pxMuted color
Stat Callout60–72pxLarge bold numbers

Content elements (all content pages):

  1. Slide Title — always required, top of slide
  2. Body Content — based on subtype
  3. Visual Element — image, chart, icon, or SVG shape — ALWAYS required
  4. Source / Caption — include when showing data
  5. Page number badge (MANDATORY) — see Appendix G

Key principles:

  • Left-align body text — never center paragraphs or bullet lists
  • Title must be 36pt+ for contrast with 14–16pt body
  • 0.5″ minimum margins, 0.3–0.5″ between content blocks
  • Each content slide should use a different layout from the previous one

Image generation: MANDATORY. Call GenerateImage for every content page:

  • Mixed Media / Image Showcase → hero image
  • Text / Data / Comparison / Timeline → supporting illustration or thematic element

Workflow:

  1. Analyze content, determine subtype
  2. Generate image (MANDATORY) — wait for file path
  3. Choose layout variant for the subtype
  4. Write HTML with page number badge
  5. Screenshot + verify (layout matches subtype, no overlaps, badge present)

Type 5: Summary / Closing Page

Use for: Wrap-up, action items, thank-you.

Content elements:

  • Closing title (48–72px, bold)
  • Takeaway points (18–24px, scannable)
  • Call to action / next steps
  • Contact info (14–16px, muted)
  • Page number badge (MANDATORY) — see Appendix G

Layout options:

  1. Key Takeaways — 3–5 points with icons/check marks
  2. CTA / Next Steps — Action items + contact info
  3. Thank You / Contact — Centered thank-you + contact details
  4. Split Recap — Left: takeaways; Right: CTA/contact

Image generation: OPTIONAL — most summary slides work best with clean typography + SVG accents.

Workflow:

  1. Analyze closing content type
  2. Choose layout
  3. Generate image (optional)
  4. Write HTML with page number badge
  5. Screenshot + verify

Color Palette Reference

Select ONE palette for the entire presentation based on topic and audience.

#名称色值风格适用场景建议
-------------------------------------
1现代与健康#006d77 #83c5be #edf6f9 #ffddd2 #e29578清新、治愈医疗健康、心理咨询、护肤品、瑜伽Spa深青做标题,浅粉做背景
2商务与权威#2b2d42 #8d99ae #edf2f4 #ef233c #d90429严谨、经典年度汇报、金融分析、企业介绍、政务报告深蓝显专业,亮红强调数据
3自然与户外#606c38 #283618 #fefae0 #dda15e #bc6c25沉稳、大地色户外用品、环境保护、农业项目、历史文化深绿为底,米色为字
4复古与学院#780000 #c1121f #fdf0d5 #003049 #669bbc经典、书卷气学术讲座、历史回顾、博物馆、复古品牌深红与深蓝对比强烈
5柔美与创意#cdb4db #ffc8dd #ffafcc #bde0fe #a2d2ff梦幻、糖果色母婴产品、甜品店、女性时尚、幼儿园文字用深灰或黑色
6波西米亚#ccd5ae #e9edc9 #fefae0 #faedcd #d4a373温柔、低饱和婚礼策划、家居软装、有机食品、慢生活米色背景,绿棕点缀
7活力与科技#8ecae6 #219ebc #023047 #ffb703 #fb8500高能量、运动体育赛事、健身房、创业路演、少儿教育深蓝稳重心,橙色做焦点
8匠心与手作#7f5539 #a68a64 #ede0d4 #656d4a #414833质朴、咖啡调咖啡店、手工艺品、传统文化、烘焙教学适合纸质/皮革质感
9科技与夜景#000814 #001d3d #003566 #ffc300 #ffd60a深邃、高亮科技发布会、星空天文、夜间经济、高端汽车必须用深色模式
10教育与图表#264653 #2a9d8f #e9c46a #f4a261 #e76f51清晰、逻辑强统计报告、教育培训、市场分析、通用商务完美的图表配色
11森林与环保#dad7cd #a3b18a #588157 #3a5a40 #344e41单色渐变、森系园林设计、ESG报告、环保公益、植物研究单色系安全不会乱
12优雅与时尚#edafb8 #f7e1d7 #dedbd2 #b0c4b1 #4a5759低饱和、莫兰迪高定服装、艺术画廊、美妆品牌、杂志风留白是关键
13艺术与美食#335c67 #fff3b0 #e09f3e #9e2a2b #540b0e浓郁、复古画报美食纪录片、艺术展、民族风情、复古餐厅适合大色块拼接
14轻奢与神秘#22223b #4a4e69 #9a8c98 #c9ada7 #f2e9e4冷艳、紫调珠宝展示、酒店管理、高端咨询、心理学紫色营造高端氛围
15纯净科技蓝#03045e #0077b6 #00b4d8 #90e0ef #caf0f8未来感、纯净云计算/AI、水利海洋、医院医疗、洁净能源从深海到天空的渐变
16海岸珊瑚#0081a7 #00afb9 #fdfcdc #fed9b7 #f07167清爽、夏日感旅游度假、夏季活动、饮品品牌、海洋主题青色与珊瑚色互补亮眼
17活力橙薄荷#ff9f1c #ffbf69 #ffffff #cbf3f0 #2ec4b6明亮、欢快儿童活动、促销海报、快消品、社交媒体橙色吸睛,薄荷绿清爽
18铂金白金#0a0a0a #0070F3 #D4AF37 #f5f5f5 #ffffff高端、专业Agent产品、企业官网、金融科技、高端品牌白金主调,蓝色行动,金色强调

Agent Design System — 完整色板

基于 tokens.css/ts 的 Platinum White-Gold Theme,提供完整色阶供精细设计使用。

White 白色系(背景与浅色表面)

色阶色值用途
------------------
white-0#ffffff主背景
white-50#fefefe略带暖调的白
white-75#fcfcfc微灰白
white-100#fafafa次级背景
white-200#f7f7f7卡片背景
white-300#f5f5f5三级背景
white-400#f0f0f0分隔区域
white-500#ebebeb边框浅色
white-600#e5e5e5禁用态背景
white-700#e0e0e0深灰白
white-800#d9d9d9占位符
white-900#d4d4d4分隔线
white-1000#cccccc最深白

Gold 金色系(铂金商务强调色)

色阶色值用途
------------------
gold-25#FFFDF5极浅金背景
gold-50#FEF9E7浅金背景
gold-75#FCF3D0淡金高亮
gold-100#FAECB8金色 hover 态
gold-200#F5DC8A亮金强调
gold-300#E8C860金色悬停
gold-400#D4AF37主金色(核心)
gold-500#B8972E金色文字
gold-600#9A7E26深金强调
gold-700#7C651E暗金边框
gold-800#5E4C16深金背景
gold-900#40330F极深金
gold-1000#221A08黑金

Blue 蓝色系(主操作色)

色阶色值用途
------------------
blue-25#F0F7FF极浅蓝背景
blue-50#E0EFFF信息提示背景
blue-75#C2DFFF浅蓝高亮
blue-100#A3CFFF禁用态蓝
blue-200#66AFFF亮蓝
blue-300#338FFF蓝色悬停
blue-400#0070F3主蓝色(核心)
blue-500#005FCC蓝色文字
blue-600#004FA6深蓝强调
blue-700#003F80暗蓝边框
blue-800#002F5A深蓝背景
blue-900#001F3D极深蓝
blue-1000#001026黑蓝

Gray 灰色系(文字与中性色)

色阶色值用途
------------------
gray-0#ffffff白色
gray-50#fafafa极浅灰
gray-75#f5f5f5浅灰背景
gray-100#ededed分隔线浅
gray-200#d4d4d4边框浅
gray-300#a3a3a3四级文字
gray-400#737373三级文字
gray-500#525252二级文字
gray-600#404040深灰
gray-700#2e2e2e暗色背景
gray-800#1f1f1f深色背景
gray-900#141414极深背景
gray-1000#0a0a0a主文字色(核心)

透明度色值

Opacity Black(黑色透明)

透明度色值用途
--------------------
0%#0a0a0a00全透明
2%#0a0a0a05微弱遮罩
4%#0a0a0a0a次级交互背景
8%#0a0a0a14边框/分隔
15%#0a0a0a26按压态
20%#0a0a0a33浅遮罩
25%#0a0a0a40中遮罩
50%#0a0a0a80半透明
70%#0a0a0ab2深遮罩
80%#0a0a0acc悬停态
90%#0a0a0ae5tooltip
95%#0a0a0af2弹窗

Opacity White(白色透明)

透明度色值用途
--------------------
0%#ffffff00全透明
2%#ffffff05微弱遮罩
4%#ffffff0a次级交互背景
8%#ffffff12边框/分隔
15%#ffffff26按压态
20%#ffffff33浅遮罩
25%#ffffff40中遮罩
50%#ffffff80半透明
70%#ffffffb2深遮罩
80%#ffffffcc悬停态
90%#ffffffe5tooltip
95%#fffffff2弹窗

Design Style System

同一套设计可通过调整圆角(radius)和间距(spacing)呈现4种不同风格。根据场景选择合适的风格配方。

风格概览

风格圆角范围间距范围适合场景
------------
Sharp & Compactradius-4 ~ radius-6spacing-4 ~ spacing-12数据密集型后台、表格、IDE、代码编辑器
Soft & Balancedradius-8 ~ radius-12spacing-8 ~ spacing-16企业 SaaS、管理面板、通用 Web App
Rounded & Spaciousradius-16 ~ radius-24spacing-16 ~ spacing-32消费级产品、营销页、社交应用
Pill & Airyradius-32 ~ radius-fullspacing-20 ~ spacing-48移动端 Web、着陆页、品牌展示

Sharp & Compact(锐利紧凑)

视觉特征: 方正、信息密度高、专业严肃感。

类别Token
---------
圆角-小--component-radius-sm4px
圆角-中--component-radius-md4px
圆角-大--component-radius-lg6px
内间距-小--component-padding-sm4px
内间距-中--component-padding-md8px
内间距-大--component-padding-lg12px
间隔-小--component-gap-sm4px
间隔-中--component-gap-md8px
间隔-大--component-gap-lg16px
页面边距--page-margin16px
区块间距--section-gap24px

Soft & Balanced(柔和均衡)

视觉特征: 适中的圆角、舒适的留白、专业又不失亲和。

类别Token
---------
圆角-小--component-radius-sm6px
圆角-中--component-radius-md8px
圆角-大--component-radius-lg12px
内间距-小--component-padding-sm8px
内间距-中--component-padding-md12px
内间距-大--component-padding-lg16px
间隔-小--component-gap-sm6px
间隔-中--component-gap-md12px
间隔-大--component-gap-lg24px
页面边距--page-margin24px
区块间距--section-gap32px

Rounded & Spacious(圆润宽松)

视觉特征: 大圆角、充裕留白、友好亲切、现代消费级感。

类别Token
---------
圆角-小--component-radius-sm10px
圆角-中--component-radius-md16px
圆角-大--component-radius-lg24px
内间距-小--component-padding-sm12px
内间距-中--component-padding-md20px
内间距-大--component-padding-lg32px
间隔-小--component-gap-sm10px
间隔-中--component-gap-md16px
间隔-大--component-gap-lg32px
页面边距--page-margin32px
区块间距--section-gap48px

Pill & Airy(胶囊通透)

视觉特征: 全圆角胶囊形、大量留白、轻盈通透、品牌展示感强。

类别Token
---------
圆角-小--component-radius-sm20px
圆角-中--component-radius-md32px
圆角-大--component-radius-lg999px (full)
内间距-小--component-padding-sm12px
内间距-中--component-padding-md24px
内间距-大--component-padding-lg40px
间隔-小--component-gap-sm12px
间隔-中--component-gap-md24px
间隔-大--component-gap-lg48px
页面边距--page-margin40px
区块间距--section-gap64px

组件级风格映射表

组件SharpSoftRoundedPill
---------------
按钮radius-4, padding 8×16radius-6, padding 8×16radius-10, padding 12×20radius-full, padding 12×32
输入框radius-4, padding 8×12radius-6, padding 8×12radius-10, padding 10×16radius-full, padding 10×20
卡片radius-4, padding 8~12radius-8, padding 12~16radius-16, padding 20radius-24, padding 24~32
模态框radius-6, padding 16radius-12, padding 20radius-20, padding 24~32radius-32, padding 32~40
标签/Badgeradius-4, padding 2×6radius-4, padding 2×8radius-6, padding 4×10radius-full, padding 4×12
头像radius-4radius-8radius-12radius-full
下拉菜单radius-4, padding 4radius-6, padding 4radius-12, padding 8radius-16, padding 8
Toast/Alertradius-4, padding 8×12radius-8, padding 12×16radius-12, padding 16×20radius-full, padding 12×24
Tooltipradius-4, padding 4×8radius-6, padding 6×10radius-8, padding 8×12radius-full, padding 6×16

混搭原则

同一页面可组合不同风格级别,但需遵循以下规则:

1. 外层容器 ≥ 内层圆角

正确:外 > 内
  .card     { border-radius: 16px; }
  .card img { border-radius: 12px; }

错误:内 > 外 → 视觉溢出感
  .card     { border-radius: 8px;  }
  .card img { border-radius: 16px; }

2. 信息密度决定间距

区域类型推荐风格
------
内容浏览区Spacious / Airy(宽松间距)
工具栏/侧边栏Compact / Balanced(紧凑间距)
表单/数据区Balanced(适中间距)

3. 交互元素与容器保持同一风格

4. 圆角与尺寸的比例关系

元素尺寸SharpSoftRoundedPill
---------------
小(< 32px)4px4px8pxfull
中(32~64px)4px6~8px12~16pxfull
大(64~200px)4~6px8~12px16~24px32px
超大(> 200px)6px12px24px32px

快速选择指南

项目类型推荐风格原因
---------
企业后台/DashboardSharp & Compact信息密度高,专业感强
SaaS产品/Web AppSoft & Balanced平衡专业与友好
消费级App/社交Rounded & Spacious亲切感,现代感
着陆页/品牌展示Pill & Airy品牌调性强,视觉冲击
数据可视化Sharp / Soft清晰的边界和对齐
移动端H5Rounded / Pill触控友好,圆角更易点击

HTML Implementation Rules

Appendix A — Responsive Scaling Snippet (REQUIRED)

Every slide HTML file MUST include this in and before :

<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}
.slide-content {
  width: 960px;
  height: 540px;
  position: relative;
  transform-origin: center center;
}
</style>
<script>
function scaleSlide() {
  const slide = document.querySelector('.slide-content');
  if (!slide) return;
  const slideWidth = 960;
  const slideHeight = 540;
  const scaleX = window.innerWidth / slideWidth;
  const scaleY = window.innerHeight / slideHeight;
  const scale = Math.min(scaleX, scaleY);
  slide.style.width = slideWidth + 'px';
  slide.style.height = slideHeight + 'px';
  slide.style.transform = `scale(${scale})`;
  slide.style.transformOrigin = 'center center';
  slide.style.flexShrink = '0';
}
window.addEventListener('load', scaleSlide);
window.addEventListener('resize', scaleSlide);
</script>

Appendix B — CSS Rules (REQUIRED)

⚠️ Inline-Only CSS

All CSS styles MUST be inline (except the snippet in Appendix A).

  • Do NOT use