Created luxury dark-themed PowerPoint presentation for Chinese writing course: - 7 slides: title, location, 2 dishes (piadina/croquettes), ambiance, menu CN, credits - Design: black bg #1A1A1A, gold #D4AF37, Italian flag diagonal (rotated squares) - All text in Chinese/Italian (zero English) - Individual HTML slides + conversion script (html2pptx architecture) - Final version: Alimentari_Piccolo_v3.pptx - Team: 李知珉、闵智铉、亓昊天 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
25 lines
768 B
JavaScript
25 lines
768 B
JavaScript
const pptxgen = require('pptxgenjs');
|
|
const html2pptx = require('/mnt/e/Users/Alexis Trouvé/Documents/Projets/couple_matters/.claude/skills/pptx/scripts/html2pptx.js');
|
|
const path = require('path');
|
|
|
|
async function generatePresentation() {
|
|
const pptx = new pptxgen();
|
|
pptx.layout = 'LAYOUT_16x9';
|
|
|
|
const htmlFile = path.join(__dirname, 'alimentari_piccolo.html');
|
|
|
|
try {
|
|
await html2pptx(htmlFile, pptx);
|
|
|
|
const outputPath = path.join(__dirname, '..', 'Alimentari_Piccolo.pptx');
|
|
await pptx.writeFile({ fileName: outputPath });
|
|
|
|
console.log(`✅ Présentation créée avec succès: ${outputPath}`);
|
|
} catch (error) {
|
|
console.error('❌ Erreur lors de la génération:', error.message);
|
|
process.exit(1);
|
|
}
|
|
}
|
|
|
|
generatePresentation();
|