// scene-09.js — Section Divider 03 (Content Factory) const pptxgen = require("pptxgenjs"); const slideConfig = { type: 'divider', index: 9 }; function createSlide(pres, theme) { const slide = pres.addSlide(); // Full-bleed image slide.addImage({ path: "./imgs/content-studio_001.jpg", x: 0, y: 0, w: 10, h: 5.625 }); // Dark overlay slide.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: "0a0a0a", transparency: 45 }, line: { color: "0a0a0a", transparency: 45 } }); // Left gold vertical bar slide.addShape(pres.shapes.RECTANGLE, { x: 0.55, y: 0.7, w: 0.07, h: 4.2, fill: { color: theme.accent }, line: { color: theme.accent } }); // "03" large number slide.addText("03", { x: 0.85, y: 0.65, w: 2, h: 1.3, fontSize: 80, bold: true, color: theme.accent, fontFace: "Arial", valign: "middle" }); // "第三幕" slide.addText("第三幕", { x: 0.85, y: 2.05, w: 7, h: 0.75, fontSize: 48, bold: true, color: "FFFFFF", fontFace: "Microsoft YaHei", valign: "middle" }); // "内容工厂,全天候不停歇" slide.addText("内容工厂,全天候不停歇", { x: 0.85, y: 2.8, w: 8, h: 0.75, fontSize: 40, bold: true, color: theme.accent, fontFace: "Microsoft YaHei", valign: "middle" }); // Subtitle slide.addText("每天 6-8 条朋友圈,招商视频,培训材料——多智能体协同完成", { x: 0.85, y: 3.68, w: 8, h: 0.55, fontSize: 16, color: "AAAAAA", fontFace: "Microsoft YaHei", valign: "middle" }); // Page badge (blue) slide.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 9.3, y: 5.1, w: 0.4, h: 0.4, fill: { color: theme.secondary }, line: { color: theme.secondary }, rectRadius: 0.06 }); slide.addText("9", { x: 9.3, y: 5.1, w: 0.4, h: 0.4, fontSize: 11, bold: true, color: "FFFFFF", align: "center", valign: "middle", fontFace: "Arial" }); return slide; } if (require.main === module) { const pres = new pptxgen(); pres.layout = 'LAYOUT_16x9'; const theme = { primary: "0a0a0a", secondary: "0070F3", accent: "D4AF37", light: "f5f5f5", bg: "ffffff" }; createSlide(pres, theme); pres.writeFile({ fileName: "scene-09-preview.pptx" }); } module.exports = { createSlide, slideConfig };