feat: add weekly sales tab with WoW growth

This commit is contained in:
Christian Vidal Wolf
2026-01-21 13:19:13 +01:00
parent cc6fd25065
commit 01c90ad889
7 changed files with 1315 additions and 2 deletions
+29
View File
@@ -0,0 +1,29 @@
const puppeteer = require('puppeteer');
const path = require('path');
(async () => {
const browser = await puppeteer.launch({ headless: 'new' });
const page = await browser.newPage();
// Set viewport for presentation
await page.setViewport({ width: 1280, height: 720 });
// Load the HTML file
const filePath = path.join(__dirname, 'presentacion.html');
await page.goto(`file://${filePath}`, { waitUntil: 'networkidle0' });
// Wait for images to load
await page.waitForTimeout(2000);
// Generate PDF
await page.pdf({
path: path.join(__dirname, 'CrazeAnalytix_Presentation.pdf'),
format: 'A4',
landscape: true,
printBackground: true,
margin: { top: '0', right: '0', bottom: '0', left: '0' }
});
console.log('PDF generated successfully!');
await browser.close();
})();