diff --git a/README.md b/README.md
index 4ad8bfe8..5384025f 100644
--- a/README.md
+++ b/README.md
@@ -13,14 +13,27 @@
- ${Array(3).fill(icons).flat().map(i => `
`).join('\n')}
+
+
+ ${fileIcons.map(i => `
+
+
+ ${i.slice(0, -4)}
+
+ `).join('\n')}
+
+
+ ${folderIcons.map(i => `
+
+
+ ${i.slice(7, -4)}
+
+ `).join('\n')}
+
`
-await temporaryWriteTask(html, async (f) => {
- const browser = await launch({ headless: 'new' })
- const page = await browser.newPage()
- await page.setViewport({
- height: 300,
- width: 600,
- deviceScaleFactor: 3,
- })
- await page.goto(join('file:', f))
- await page.screenshot({
- path: join(`latte.png`),
- // fullPage: true,
- omitBackground: true,
- // captureBeyondViewport: true,
- })
- await browser.close()
-}, { extension: 'html' })
-await writeFile('preview.html', html)
+}
+
+await temporaryDirectoryTask(async (tmp) => {
+ await Promise.all(flavorEntries.map(async ([flavor]) => {
+ const htmlPath = join(tmp, `${flavor}.html`)
+ const screenshotPath = join('assets', `${flavor}.webp`)
+ await writeFile(htmlPath, generateHtml(flavor))
+ const browser = await launch({ headless: 'new' })
+ const page = await browser.newPage()
+ await page.goto(join('file:', htmlPath))
+ await page.screenshot({
+ type: 'webp',
+ path: screenshotPath,
+ fullPage: true,
+ omitBackground: true,
+ })
+ await browser.close()
+ }))
+})