feat: new TwoPointZero branding - icons, favicon, mockup i18n

- Replace extension icons with new TwoPointZero design (16/32/48/96/128)
- Update manifest.base.json with 32+96 icon sizes
- Increase popup logo to 48px, website nav logo to 64px
- Generate website webp sizes (64/128/200) + AVIF variants from 600px source
- Add favicon PNGs (16x16, 32x32) + apple-touch-icon + 192x192
- Fix logo vertical centering via display:contents on picture wrappers
- Convert mockup section from inline <span lang> pairs to {{MOCK_*}} template vars
- Add MOCK translations for FR, ES, PT-BR, RU locale files
- Bump AVIF quality 70->80, speed 6->4, remove min 3KB threshold
- Regenerate www/ with build.js
This commit is contained in:
Timo
2026-06-01 15:29:33 +02:00
parent a1f921407c
commit 79025f4d18
76 changed files with 577 additions and 428 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ function minifyCSS(code) {
.replace(/;\}/g, '}')
.trim();
}
const MIN_AVIF_KB = 3;
const MIN_AVIF_KB = 0;
function copyDirSync(src, dest) {
fs.mkdirSync(dest, { recursive: true });
@@ -189,7 +189,7 @@ async function compile() {
if (stat.size < MIN_AVIF_KB * 1024) continue;
const dest = path.join(destAssets, f.replace(/\.webp$/, '.avif'));
if (fs.existsSync(dest) && fs.statSync(dest).mtimeMs >= stat.mtimeMs) continue;
await sharp(src).avif({ quality: 70, speed: 6 }).toFile(dest);
await sharp(src).avif({ quality: 80, speed: 4 }).toFile(dest);
avifCount++;
}
console.log(` ${avifCount} AVIF files generated.`);