cache flame bg

This commit is contained in:
NhanPT 2022-05-21 20:20:37 +07:00
parent a161f4d13e
commit 9496c6a405
5 changed files with 3 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 47 KiB

View file

@ -1,6 +1,6 @@
:root {
--bgColor: #2d3436;
--bgImage: url("https://images.wallpaperscraft.com/image/single/leaf_plant_green_136967_2560x1440.jpg");
--bgImage: url("/theme/img/bg.jpeg");
--accentColor: #FFA500;
--foreground: #ffffff;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 393 KiB

View file

@ -36,16 +36,14 @@ const sleep = ms => new Promise(r => setTimeout(r, ms));
const themes = getDirectories("../../sample");
for (const theme of themes) {
replaceFiles(`../../sample/${theme}`, '../../src/data');
await sleep(500);
await sleep(2000);
const page = await browser.newPage();
await page.goto('http://localhost:7001');
await page.waitForNetworkIdle();
await sleep(500);
await sleep(1000);
await page.screenshot({ path: `../../docs/screenshots/${theme}.png` });
await page.close();
await sleep(1000);
}
browser.close();