forked from hugohe3/ppt-master
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
699 lines (628 loc) · 23.7 KB
/
index.html
File metadata and controls
699 lines (628 loc) · 23.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PPT Master — AI generates natively editable PPTX from any document</title>
<meta name="description" content="Drop in a PDF, DOCX, URL, or Markdown — get back a natively editable PowerPoint with real shapes, not images. Open source, 20 templates, 15 live examples.">
<meta property="og:title" content="PPT Master — AI generates natively editable PPTX">
<meta property="og:description" content="Drop in any document, get back a natively editable PowerPoint with real shapes, real text boxes, and real charts. Not images. Click anything and edit it.">
<meta property="og:image" content="https://hugohe3.github.io/ppt-master/docs/assets/screenshots/preview_tech_claude_plans.png">
<meta property="og:url" content="https://hugohe3.github.io/ppt-master/">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="PPT Master — AI generates natively editable PPTX">
<meta name="twitter:description" content="Drop in any document, get back a natively editable PowerPoint with real shapes. Not images. Open source.">
<meta name="twitter:image" content="https://hugohe3.github.io/ppt-master/docs/assets/screenshots/preview_tech_claude_plans.png">
<link rel="icon"
href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🎨</text></svg>">
<style>
:root {
--primary: #6366f1;
--primary-light: #818cf8;
--secondary: #06b6d4;
--dark: #1e1e2e;
--darker: #11111b;
--text: #cdd6f4;
--text-muted: #9399b2;
--surface: #181825;
--surface-hover: #1e1e2e;
--border: #313244;
--success: #a6e3a1;
--warning: #f9e2af;
--accent: #f5c2e7;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
background: var(--darker);
color: var(--text);
min-height: 100vh;
line-height: 1.6;
}
/* Header */
.header {
background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
padding: 60px 20px;
text-align: center;
position: relative;
overflow: hidden;
}
.header::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
opacity: 0.5;
}
.header-content {
position: relative;
z-index: 1;
max-width: 800px;
margin: 0 auto;
}
.logo {
font-size: 3rem;
margin-bottom: 10px;
}
.header h1 {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 15px;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.header p {
font-size: 1.2rem;
opacity: 0.95;
max-width: 600px;
margin: 0 auto;
}
.header-cta {
display: flex;
justify-content: center;
gap: 15px;
margin-top: 25px;
flex-wrap: wrap;
}
.cta-btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 12px 28px;
border-radius: 8px;
font-size: 1rem;
font-weight: 600;
text-decoration: none;
transition: all 0.2s;
border: none;
cursor: pointer;
}
.cta-btn.primary {
background: #fff;
color: var(--primary);
}
.cta-btn.primary:hover {
background: #f0f0f0;
transform: translateY(-2px);
}
.cta-btn.secondary {
background: rgba(255, 255, 255, 0.15);
color: #fff;
border: 1px solid rgba(255, 255, 255, 0.3);
}
.cta-btn.secondary:hover {
background: rgba(255, 255, 255, 0.25);
transform: translateY(-2px);
}
.stats {
display: flex;
justify-content: center;
gap: 40px;
margin-top: 30px;
flex-wrap: wrap;
}
.stat {
text-align: center;
}
.stat-value {
font-size: 2rem;
font-weight: 700;
}
.stat-label {
font-size: 0.9rem;
opacity: 0.9;
}
/* Navigation */
.nav {
background: var(--surface);
border-bottom: 1px solid var(--border);
padding: 15px 20px;
position: sticky;
top: 0;
z-index: 100;
}
.nav-content {
max-width: 1400px;
margin: 0 auto;
display: flex;
justify-content: center;
gap: 10px;
flex-wrap: wrap;
}
.nav-btn {
background: var(--surface-hover);
border: 1px solid var(--border);
color: var(--text);
padding: 8px 16px;
border-radius: 20px;
cursor: pointer;
font-size: 0.9rem;
transition: all 0.2s;
}
.nav-btn:hover,
.nav-btn.active {
background: var(--primary);
border-color: var(--primary);
}
/* Main Content */
.main {
max-width: 1400px;
margin: 0 auto;
padding: 40px 20px;
}
.section-title {
display: flex;
align-items: center;
gap: 10px;
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 25px;
color: var(--text);
}
.section-title .icon {
font-size: 1.8rem;
}
/* Project Grid */
.projects-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
gap: 25px;
margin-bottom: 50px;
}
.project-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 16px;
overflow: hidden;
transition: all 0.3s ease;
cursor: pointer;
}
.project-card:hover {
transform: translateY(-5px);
border-color: var(--primary);
box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
}
.card-preview {
height: 200px;
background: var(--darker);
position: relative;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
.card-preview img {
width: 100%;
height: 100%;
object-fit: contain;
background: #fff;
}
.card-preview .placeholder {
font-size: 4rem;
opacity: 0.3;
}
.card-badge {
position: absolute;
top: 12px;
right: 12px;
background: var(--primary);
color: white;
padding: 4px 12px;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 600;
}
.card-badge.new {
background: linear-gradient(135deg, #f97316, #ef4444);
}
.card-content {
padding: 20px;
}
.card-title {
font-size: 1.1rem;
font-weight: 600;
margin-bottom: 8px;
color: var(--text);
line-height: 1.4;
}
.card-meta {
display: flex;
gap: 15px;
margin-bottom: 12px;
font-size: 0.85rem;
color: var(--text-muted);
}
.card-meta span {
display: flex;
align-items: center;
gap: 5px;
}
.card-desc {
font-size: 0.9rem;
color: var(--text-muted);
line-height: 1.5;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.card-tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 12px;
}
.tag {
background: var(--darker);
padding: 4px 10px;
border-radius: 12px;
font-size: 0.75rem;
color: var(--text-muted);
}
.tag.style-consulting {
background: rgba(99, 102, 241, 0.2);
color: var(--primary-light);
}
.tag.style-general {
background: rgba(6, 182, 212, 0.2);
color: var(--secondary);
}
.tag.style-creative {
background: rgba(245, 194, 231, 0.2);
color: var(--accent);
}
/* Footer */
.footer {
background: var(--surface);
border-top: 1px solid var(--border);
padding: 40px 20px;
text-align: center;
}
.footer-links {
display: flex;
justify-content: center;
gap: 30px;
margin-bottom: 20px;
flex-wrap: wrap;
}
.footer-links a {
color: var(--text-muted);
text-decoration: none;
transition: color 0.2s;
}
.footer-links a:hover {
color: var(--primary);
}
.footer-copy {
color: var(--text-muted);
font-size: 0.9rem;
}
/* Responsive */
@media (max-width: 768px) {
.header h1 {
font-size: 1.8rem;
}
.header-cta {
flex-direction: column;
align-items: center;
}
.stats {
gap: 20px;
}
.projects-grid {
grid-template-columns: 1fr;
}
.stat-value {
font-size: 1.5rem;
}
}
/* Hidden class for filtering */
.hidden {
display: none !important;
}
</style>
</head>
<body>
<header class="header">
<div class="header-content">
<div class="logo">🎨</div>
<h1>PPT Master</h1>
<p>AI generates natively editable PPTX from any document — real PowerPoint shapes, not images</p>
<div class="header-cta">
<a href="https://github.com/hugohe3/ppt-master" class="cta-btn primary" target="_blank">Star on GitHub</a>
<a href="https://github.com/hugohe3/ppt-master#quick-start" class="cta-btn secondary" target="_blank">Get Started</a>
</div>
<div class="stats">
<div class="stat">
<div class="stat-value">15</div>
<div class="stat-label">Examples</div>
</div>
<div class="stat">
<div class="stat-value">229+</div>
<div class="stat-label">Pages</div>
</div>
<div class="stat">
<div class="stat-value">20</div>
<div class="stat-label">Templates</div>
</div>
</div>
</div>
</header>
<nav class="nav">
<div class="nav-content">
<button class="nav-btn active" data-filter="all">All Projects</button>
<button class="nav-btn" data-filter="consulting">🏢 Consulting</button>
<button class="nav-btn" data-filter="general">🎨 General</button>
<button class="nav-btn" data-filter="creative">✨ Creative</button>
</div>
</nav>
<main class="main">
<div class="projects-grid" id="projects-grid">
<!-- Projects will be inserted here by JavaScript -->
</div>
</main>
<footer class="footer">
<div class="footer-links">
<a href="https://github.com/hugohe3/ppt-master" target="_blank">📦 GitHub</a>
<a href="https://github.com/hugohe3/ppt-master#quick-start" target="_blank">📖 Quick Start</a>
<a href="https://github.com/hugohe3/ppt-master/blob/main/docs/faq.md" target="_blank">❓ FAQ</a>
<a href="https://github.com/hugohe3/ppt-master/discussions" target="_blank">💬 Discussions</a>
</div>
<p class="footer-copy">PPT Master © 2025–2026 · Made with ❤️ by <a href="https://www.hehugo.com/" target="_blank" style="color: var(--primary-light); text-decoration: none;">Hugo He</a></p>
</footer>
<script>
// Project data
const projects = [
{
id: 'ppt169_顶级咨询风_心理治疗中的依恋',
title: '心理治疗中的依恋',
pages: 32,
style: 'consulting',
styleName: '顶级咨询风格',
desc: '螺旋上升结构,从 Bowlby → Ainsworth → Main → Fonagy 的理论演进,到临床实践的应用深化。',
tags: ['MBB 级', '心理学', '专业蓝系'],
isNew: false,
cover: 'P01_封面.svg'
},
{
id: 'ppt169_顶级咨询风_重庆市区域报告_ppt169_20251213',
title: '重庆市区域报告',
pages: 20,
style: 'consulting',
styleName: '顶级咨询风格',
desc: '基于企业预警通数据,全面分析重庆市经济、财政债务、城投、银行业等七大模块。',
tags: ['MBB 级', '政务财政', '数据驱动'],
isNew: true,
cover: 'P01_封面.svg'
},
{
id: 'ppt169_顶级咨询风_甘孜州经济财政分析',
title: '甘孜州经济财政分析',
pages: 17,
style: 'consulting',
styleName: '顶级咨询风格',
desc: '基于 2024 年甘孜州决算数据,涵盖 GDP、财政收支、政府债务等多维分析。',
tags: ['MBB 级', '政务蓝', '藏区文化'],
isNew: false,
cover: 'slide_01_cover.svg'
},
{
id: 'ppt169_顶级咨询风_构建有效AI代理_Anthropic',
title: '构建有效 AI 代理',
pages: 15,
style: 'consulting',
styleName: '顶级咨询风格',
desc: '基于 Anthropic 官方博客,涵盖 Workflows、Agents、工具设计原则等。',
tags: ['MBB 级', 'AI/LLM', 'Anthropic'],
isNew: false,
cover: 'P01_Cover.svg'
},
{
id: 'ppt169_高端咨询风_南欧江水电站战略评估',
title: '南欧江水电站战略评估',
pages: 20,
style: 'consulting',
styleName: '高端咨询风格',
desc: '老挝南欧江梯级水电站项目、主权债务危机与仲裁案全景分析。',
tags: ['战略评估', '湄公河色系', '流域危机'],
isNew: false,
cover: 'slide_01_cover.svg'
},
{
id: 'ppt169_高端咨询风_汽车认证五年战略规划',
title: '汽车认证五年战略规划',
pages: 20,
style: 'consulting',
styleName: '高端咨询风格',
desc: '汽车及零部件领域自愿性产品认证 2026-2030 五年战略规划。',
tags: ['战略规划', '新能源', '绿色低碳'],
isNew: false,
cover: 'slide_01_cover.svg'
},
{
id: 'ppt169_麦肯锡风_kimsoong_customer_loyalty',
title: '客户忠诚度计划分析',
pages: 8,
style: 'consulting',
styleName: '麦肯锡风格',
desc: '展示麦肯锡经典的结构化思维与图表矩阵设计。',
tags: ['McKinsey', 'MECE 原则', '数据驱动'],
isNew: false,
cover: 'slide_01_cover.svg'
},
{
id: 'ppt169_谷歌风_google_annual_report',
title: 'Google 年度工作汇报',
pages: 10,
style: 'consulting',
styleName: 'Google 品牌风格',
desc: 'Google 2025 年度工作汇报模板,融合 Google 设计语言与咨询专业度。',
tags: ['Google 色系', '品牌一致', '数据驱动'],
isNew: false,
cover: 'slide_01_cover.svg'
},
{
id: 'ppt169_通用灵活+代码_debug六步法',
title: 'Debug 六步法',
pages: 10,
style: 'general',
styleName: '通用灵活 + 代码',
desc: '深色科技风格,适合技术团队内部培训分享。',
tags: ['GitHub 暗色', '程序员', '技术培训'],
isNew: false,
cover: 'slide_01_cover.svg'
},
{
id: 'ppt169_通用灵活+学术_重庆大学论文格式标准',
title: '重庆大学论文格式标准',
pages: 11,
style: 'general',
styleName: '通用灵活 + 学术',
desc: '基于重庆大学学位论文撰写格式标准,学术、规范、清晰、实用。',
tags: ['学术风格', '重大蓝', '研究生'],
isNew: false,
cover: 'slide_01_cover.svg'
},
{
id: 'ppt169_通过灵活+代码_三大AI编程神器横向对比',
title: '三大 AI 编程神器横向对比',
pages: 11,
style: 'general',
styleName: '通用灵活',
desc: 'OpenSpec vs ZCF vs Spec Kit 三大 AI 编程工具横向对比分析。',
tags: ['技术评测', '科技蓝', 'AI 工具'],
isNew: false,
cover: 'slide_01_cover.svg'
},
{
id: 'ppt169_易理风_地山谦卦深度研究',
title: '地山谦卦深度研究',
pages: 20,
style: 'creative',
styleName: '易理玄学风格',
desc: '采用「阴阳爻变」设计语言,从象数理占到现代哲学的多维同构。',
tags: ['易经', '阴阳对立', '六爻结构'],
isNew: false,
cover: 'P01_封面.svg'
},
{
id: 'ppt169_禅意风_金刚经第一品研究',
title: '金刚经第一品研究',
pages: 15,
style: 'creative',
styleName: '禅意学术风格',
desc: '页面布局如同禅画,以留白营造意境,暗示「空」的智慧。',
tags: ['禅意', '水墨留白', '般若思想'],
isNew: false,
cover: 'P01_封面.svg'
},
{
id: 'ppt169_像素风_git_introduction',
title: 'Git 入门完全指南',
pages: 10,
style: 'creative',
styleName: '像素复古游戏风',
desc: '复古游戏像素风格,用「存档点」隐喻版本控制概念。',
tags: ['像素风', '霓虹系', '游戏感'],
isNew: false,
cover: 'slide_01_cover.svg'
},
{
id: 'demo_project_intro_ppt169_20251211',
title: 'PPT Master 官方介绍',
pages: 10,
style: 'creative',
styleName: '清新科技风格',
desc: 'PPT Master 项目官方介绍,展示系统架构与四大角色协作机制。',
tags: ['官方介绍', '靛蓝渐变', '系统架构'],
isNew: false,
cover: 'slide_01_cover.svg'
}
];
// Render projects
function renderProjects(filter = 'all') {
const grid = document.getElementById('projects-grid');
grid.innerHTML = '';
const filtered = filter === 'all'
? projects
: projects.filter(p => p.style === filter);
filtered.forEach(project => {
const card = document.createElement('div');
card.className = 'project-card';
card.onclick = () => {
window.location.href = `viewer.html?project=${encodeURIComponent(project.id)}`;
};
const styleClass = project.style === 'consulting' ? 'style-consulting'
: project.style === 'general' ? 'style-general'
: 'style-creative';
const coverUrl = encodeURI(`examples/${project.id}/svg_final/${project.cover}`);
const img = document.createElement('img');
img.src = coverUrl;
img.alt = project.title;
img.onerror = function () {
this.onerror = null;
this.parentElement.innerHTML = '<div class="placeholder">📊</div>';
};
card.innerHTML = `
<div class="card-preview">
${project.isNew ? '<span class="card-badge new">🆕 新增</span>' : ''}
</div>
<div class="card-content">
<h3 class="card-title">${project.title}</h3>
<div class="card-meta">
<span>📄 ${project.pages} 页</span>
<span>🎨 ${project.styleName}</span>
</div>
<p class="card-desc">${project.desc}</p>
<div class="card-tags">
<span class="tag ${styleClass}">${project.styleName}</span>
${project.tags.map(t => `<span class="tag">${t}</span>`).join('')}
</div>
</div>
`;
// Insert image into card-preview
const preview = card.querySelector('.card-preview');
preview.insertBefore(img, preview.firstChild);
grid.appendChild(card);
});
}
// Filter buttons
document.querySelectorAll('.nav-btn').forEach(btn => {
btn.addEventListener('click', () => {
document.querySelectorAll('.nav-btn').forEach(b => b.classList.remove('active'));
btn.classList.add('active');
renderProjects(btn.dataset.filter);
});
});
// Initial render
renderProjects();
</script>
</body>
</html>