🔄 卡若AI 同步 2026-02-23 21:07 | 更新:卡木、运营中枢工作台 | 排除 >20MB: 10 个

This commit is contained in:
2026-02-23 21:07:57 +08:00
parent 80737de48b
commit 7aa7604bb6
6 changed files with 139 additions and 3 deletions

View File

@@ -65,7 +65,8 @@ updated: "2026-02-23"
- `脚本/复盘PPT_毛玻璃.html`:复盘格式毛玻璃示例
- `脚本/卡若人设PPT_毛玻璃.html`:卡若人设介绍
- `脚本/纳瓦尔访谈PPT_毛玻璃.html`:纳瓦尔访谈读书笔记
- `脚本/毛玻璃截图转PPT.py`:截图 + 组装(`--html 复盘|卡若人设|纳瓦尔访谈`
- `脚本/天恩乖乖PPT_毛玻璃.html`:天恩·我和乖乖的故事(儿童高级感
- `脚本/毛玻璃截图转PPT.py`:截图 + 组装(`--html 复盘|卡若人设|纳瓦尔访谈|天恩乖乖`
- 毛玻璃规范:`开发文档/4、前端/苹果毛玻璃风格与自适应规范.md`
### 流程 B直接 python-pptx 生成

View File

@@ -45,3 +45,4 @@
- **卡若人设**:已有 karuo_profile_cover、karuo_wuxing、karuo_yun_amiba
- **复盘**:按目标/过程/反思/总结 每段生成 1 张配图
- **天恩乖乖**:儿童高级感,使用文件夹内真实照片 + 暖奶油底、圆角、图标 🐕💛🎁☀️🌸🌈📖,输出到 `ppt 202060223/我和乖乖的故事_高级版.pptx`

View File

@@ -0,0 +1,125 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=1280, height=720">
<link href="https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&family=Ma+Shan+Zheng&family=Noto+Serif+SC:wght@400;500;600&display=swap" rel="stylesheet">
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Serif SC', 'ZCOOL KuaiLe', -apple-system, serif; -webkit-font-smoothing: antialiased; }
.slide { width: 1280px; height: 720px; display: flex; flex-direction: column; padding: 48px 64px; position: relative; overflow: hidden; }
.img-wrap { border-radius: 24px; overflow: hidden; box-shadow: 0 12px 40px rgba(139,90,43,0.15), 0 0 0 3px rgba(255,250,230,0.9); }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.icon { font-size: 42px; line-height: 1; }
/* 儿童高级感:暖奶油底、圆润、柔和 */
</style>
</head>
<body>
<!-- 1. 封面:儿童高级感拉满 -->
<div class="slide" id="slide-1" style="background: linear-gradient(165deg, #FFF9ED 0%, #FFEFD5 50%, #FFF5E6 100%); justify-content: center; align-items: center; text-align: center;">
<span class="icon" style="color: #D4A574; margin-bottom: 16px;">🐕</span>
<h1 style="font-family: 'Ma Shan Zheng', cursive; font-size: 64px; color: #8B5A2B; margin-bottom: 12px; font-weight: 500;">我和乖乖的故事</h1>
<p style="font-size: 28px; color: #6B4423; font-weight: 500;">汇报人:天恩</p>
<p style="font-size: 22px; color: #8B7355; margin-top: 8px;">二年级4班</p>
</div>
<!-- 2. 这是我和乖乖 -->
<div class="slide" id="slide-2" style="background: #FFFBF5; flex-direction: row; align-items: center; gap: 56px;">
<div class="img-wrap" style="width: 440px; height: 440px; flex-shrink: 0;">
<img src="file:///Users/karuo/Library/Mobile%20Documents/com~apple~CloudDocs/Documents/婼瑄/天恩/ppt%20202060223/27248.jpg" alt="">
</div>
<div style="flex: 1;">
<span class="icon" style="color: #D4A574;">💛</span>
<h2 style="font-size: 36px; color: #8B5A2B; margin: 16px 0 24px; font-weight: 600;">这是我和乖乖!</h2>
<p style="font-size: 24px; line-height: 1.8; color: #5C4033;">乖乖是我家的小狗,它是我的好朋友。</p>
<p style="font-size: 24px; line-height: 1.8; color: #5C4033; margin-top: 16px;">每天放学回家,乖乖都会在门口等我,摇着尾巴欢迎我。</p>
<p style="font-size: 24px; line-height: 1.8; color: #5C4033; margin-top: 16px;">我们一起玩耍、一起散步,乖乖让我的生活变得更快乐!</p>
</div>
</div>
<!-- 3. 乖乖是怎么来到我家的 -->
<div class="slide" id="slide-3" style="background: #FFFBF5; flex-direction: row; align-items: center; gap: 56px;">
<div class="img-wrap" style="width: 440px; height: 440px; flex-shrink: 0;">
<img src="file:///Users/karuo/Library/Mobile%20Documents/com~apple~CloudDocs/Documents/婼瑄/天恩/ppt%20202060223/27249.jpg" alt="">
</div>
<div style="flex: 1;">
<span class="icon" style="color: #D4A574;">🎁</span>
<h2 style="font-size: 36px; color: #8B5A2B; margin: 16px 0 24px; font-weight: 600;">乖乖是怎么来到我家的?</h2>
<p style="font-size: 24px; line-height: 1.8; color: #5C4033;">乖乖是爸爸妈妈送给我的惊喜。</p>
<p style="font-size: 24px; line-height: 1.8; color: #5C4033; margin-top: 16px;">第一次见到它的时候,它小小的、毛茸茸的,一双黑溜溜的眼睛望着我。</p>
<p style="font-size: 24px; line-height: 1.8; color: #5C4033; margin-top: 16px;">从那天起,我们就成了形影不离的好伙伴!</p>
</div>
</div>
<!-- 4. 我和乖乖每天做什么 -->
<div class="slide" id="slide-4" style="background: #FFFBF5; flex-direction: row; align-items: center; gap: 56px;">
<div class="img-wrap" style="width: 440px; height: 440px; flex-shrink: 0;">
<img src="file:///Users/karuo/Library/Mobile%20Documents/com~apple~CloudDocs/Documents/婼瑄/天恩/ppt%20202060223/27250.jpg" alt="">
</div>
<div style="flex: 1;">
<span class="icon" style="color: #D4A574;">☀️</span>
<h2 style="font-size: 36px; color: #8B5A2B; margin: 16px 0 24px; font-weight: 600;">我和乖乖每天做什么?</h2>
<p style="font-size: 22px; line-height: 1.8; color: #5C4033;">早上,乖乖会叫醒我起床。放学后,我们一起在小区里跑步、追球。</p>
<p style="font-size: 22px; line-height: 1.8; color: #5C4033; margin-top: 12px;">乖乖最喜欢我摸它的脑袋,每次摸它,它都会舒服地眯起眼睛。</p>
<p style="font-size: 22px; line-height: 1.8; color: #5C4033; margin-top: 12px;">我们还会一起看绘本,乖乖趴在我身边,好像在听故事呢!</p>
</div>
</div>
<!-- 5. 乖乖最可爱的地方 -->
<div class="slide" id="slide-5" style="background: #FFFBF5; flex-direction: row; align-items: center; gap: 48px;">
<div style="display: flex; gap: 20px; flex-shrink: 0;">
<div class="img-wrap" style="width: 260px; height: 260px;">
<img src="file:///Users/karuo/Library/Mobile%20Documents/com~apple~CloudDocs/Documents/婼瑄/天恩/ppt%20202060223/27251.jpg" alt="">
</div>
<div class="img-wrap" style="width: 260px; height: 260px;">
<img src="file:///Users/karuo/Library/Mobile%20Documents/com~apple~CloudDocs/Documents/婼瑄/天恩/ppt%20202060223/27252.jpg" alt="">
</div>
</div>
<div style="flex: 1;">
<span class="icon" style="color: #D4A574;">🌸</span>
<h2 style="font-size: 36px; color: #8B5A2B; margin: 16px 0 24px; font-weight: 600;">乖乖最可爱的地方</h2>
<p style="font-size: 22px; line-height: 1.8; color: #5C4033;">乖乖的耳朵软软的,跑起来一甩一甩的。</p>
<p style="font-size: 22px; line-height: 1.8; color: #5C4033; margin-top: 12px;">它特别聪明,听得懂「坐下」「握手」这些口令。</p>
<p style="font-size: 22px; line-height: 1.8; color: #5C4033; margin-top: 12px;">乖乖还很懂事,我写作业的时候它会安静地陪着我。</p>
</div>
</div>
<!-- 6. 更多和乖乖的快乐时光 -->
<div class="slide" id="slide-6" style="background: #FFFBF5; flex-direction: row; align-items: center; gap: 56px;">
<div class="img-wrap" style="width: 440px; height: 440px; flex-shrink: 0;">
<img src="file:///Users/karuo/Library/Mobile%20Documents/com~apple~CloudDocs/Documents/婼瑄/天恩/ppt%20202060223/27253.jpg" alt="">
</div>
<div style="flex: 1;">
<span class="icon" style="color: #D4A574;">🌈</span>
<h2 style="font-size: 36px; color: #8B5A2B; margin: 16px 0 24px; font-weight: 600;">更多和乖乖的快乐时光</h2>
<p style="font-size: 24px; line-height: 1.8; color: #5C4033;">我们一起出门散步,乖乖总是跑在我前面。</p>
<p style="font-size: 24px; line-height: 1.8; color: #5C4033; margin-top: 16px;">下雨天,乖乖会趴在窗边陪我一起看雨。</p>
<p style="font-size: 24px; line-height: 1.8; color: #5C4033; margin-top: 16px;">乖乖是我最好的朋友,有它陪伴的每一天都很开心!</p>
</div>
</div>
<!-- 7. 我为乖乖写了一首小诗 -->
<div class="slide" id="slide-7" style="background: linear-gradient(165deg, #FFF9ED 0%, #FFEFD5 100%); flex-direction: row; align-items: center; gap: 56px;">
<div class="img-wrap" style="width: 400px; height: 400px; flex-shrink: 0;">
<img src="file:///Users/karuo/Library/Mobile%20Documents/com~apple~CloudDocs/Documents/婼瑄/天恩/ppt%20202060223/27255.jpg" alt="">
</div>
<div style="flex: 1;">
<span class="icon" style="color: #D4A574;">📖</span>
<h2 style="font-size: 36px; color: #8B5A2B; margin: 16px 0 24px; font-weight: 600;">我为乖乖写了一首小诗</h2>
<p style="font-family: 'Ma Shan Zheng', cursive; font-size: 28px; line-height: 1.9; color: #6B4423;">《我的小伙伴乖乖》</p>
<p style="font-size: 24px; line-height: 1.9; color: #5C4033; margin-top: 16px;">软软的耳朵,黑黑的眼睛,</p>
<p style="font-size: 24px; line-height: 1.9; color: #5C4033;">乖乖是我最好的朋友。</p>
<p style="font-size: 24px; line-height: 1.9; color: #5C4033;">一起奔跑,一起玩耍,</p>
<p style="font-size: 24px; line-height: 1.9; color: #5C4033;">有乖乖的日子,每天都很快乐!</p>
</div>
</div>
<!-- 8. 结尾 -->
<div class="slide" id="slide-8" style="background: linear-gradient(165deg, #FFF9ED 0%, #FFEFD5 100%); justify-content: center; align-items: center; text-align: center;">
<span class="icon" style="color: #D4A574; margin-bottom: 24px;">💛</span>
<p style="font-size: 36px; color: #8B5A2B; font-weight: 600; margin-bottom: 20px;">我的故事讲完啦,希望大家喜欢!</p>
<p style="font-size: 28px; color: #6B4423; margin-bottom: 20px;">你们家里也有小动物好朋友吗?</p>
<p style="font-size: 32px; color: #8B5A2B; font-weight: 600;">谢谢大家!</p>
</div>
</body>
</html>

View File

@@ -20,6 +20,7 @@ from pptx.util import Inches
BASE = Path(__file__).resolve().parent
OUT_ROOT = Path("/Users/karuo/Documents/卡若Ai的文件夹/报告")
TIANEN_DIR = Path("/Users/karuo/Library/Mobile Documents/com~apple~CloudDocs/Documents/婼瑄/天恩/ppt 202060223")
def screenshot_slides(html_path, out_slides_dir, max_slides=10):
@@ -62,7 +63,7 @@ def build_ppt(imgs, out_ppt):
def main():
import argparse
ap = argparse.ArgumentParser()
ap.add_argument("--html", default="复盘", choices=["复盘", "卡若人设", "纳瓦尔访谈"])
ap.add_argument("--html", default="复盘", choices=["复盘", "卡若人设", "纳瓦尔访谈", "天恩乖乖"])
args = ap.parse_args()
if args.html == "卡若人设":
html = BASE / "卡若人设PPT_毛玻璃.html"
@@ -74,6 +75,11 @@ def main():
out_slides = OUT_ROOT / "纳瓦尔访谈_毛玻璃_slides"
out_ppt = OUT_ROOT / "纳瓦尔访谈_读书笔记_毛玻璃.pptx"
max_slides = 12
elif args.html == "天恩乖乖":
html = BASE / "天恩乖乖PPT_毛玻璃.html"
out_slides = TIANEN_DIR / "乖乖_毛玻璃_slides"
out_ppt = TIANEN_DIR / "我和乖乖的故事_高级版.pptx"
max_slides = 8
else:
html = BASE / "复盘PPT_毛玻璃.html"
out_slides = OUT_ROOT / "复盘_毛玻璃_slides"
@@ -90,7 +96,8 @@ def main():
print("✅ PPT 已生成:", out_ppt)
# 导出后自动打开输出文件夹,方便直接访问
import subprocess
subprocess.run(["open", str(OUT_ROOT)], check=False)
open_dir = str(TIANEN_DIR) if args.html == "天恩乖乖" else str(OUT_ROOT)
subprocess.run(["open", open_dir], check=False)
if __name__ == "__main__":

View File

@@ -114,3 +114,4 @@
| 2026-02-23 19:36:02 | 🔄 卡若AI 同步 2026-02-23 19:35 | 更新:卡木、运营中枢参考资料、运营中枢工作台 | 排除 >20MB: 9 个 |
| 2026-02-23 19:39:53 | 🔄 卡若AI 同步 2026-02-23 19:39 | 更新:总索引与入口、运营中枢参考资料、运营中枢工作台、运营中枢 | 排除 >20MB: 10 个 |
| 2026-02-23 20:47:20 | 🔄 卡若AI 同步 2026-02-23 20:47 | 更新:卡木、运营中枢工作台 | 排除 >20MB: 10 个 |
| 2026-02-23 20:58:31 | 🔄 卡若AI 同步 2026-02-23 20:58 | 更新:卡木、运营中枢工作台 | 排除 >20MB: 10 个 |

View File

@@ -117,3 +117,4 @@
| 2026-02-23 19:36:02 | 成功 | 成功 | 🔄 卡若AI 同步 2026-02-23 19:35 | 更新:卡木、运营中枢参考资料、运营中枢工作台 | 排除 >20MB: 9 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) |
| 2026-02-23 19:39:53 | 成功 | 成功 | 🔄 卡若AI 同步 2026-02-23 19:39 | 更新:总索引与入口、运营中枢参考资料、运营中枢工作台、运营中枢 | 排除 >20MB: 10 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) |
| 2026-02-23 20:47:20 | 成功 | 成功 | 🔄 卡若AI 同步 2026-02-23 20:47 | 更新:卡木、运营中枢工作台 | 排除 >20MB: 10 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) |
| 2026-02-23 20:58:31 | 成功 | 成功 | 🔄 卡若AI 同步 2026-02-23 20:58 | 更新:卡木、运营中枢工作台 | 排除 >20MB: 10 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) |