diff --git a/README.md b/README.md index 5e3bee0..0aa669e 100644 --- a/README.md +++ b/README.md @@ -32,5 +32,5 @@ git push origin-gitee main ### 压缩图片 ``` -TINYPNG_API_KEY= node ./scripts/tinypng.mjs +TINYPNG_API_KEY= node ./scripts/tinypng.mjs [input...] ``` \ No newline at end of file diff --git a/public/assets/screenshots/torch.PNG b/public/assets/screenshots/torch.PNG deleted file mode 100644 index 69909b0..0000000 Binary files a/public/assets/screenshots/torch.PNG and /dev/null differ diff --git a/public/assets/screenshots/torch.jpeg b/public/assets/screenshots/torch.jpeg new file mode 100644 index 0000000..439b071 Binary files /dev/null and b/public/assets/screenshots/torch.jpeg differ diff --git a/scripts/tinypng.mjs b/scripts/tinypng.mjs index 43c4ff2..ea3480b 100644 --- a/scripts/tinypng.mjs +++ b/scripts/tinypng.mjs @@ -22,7 +22,11 @@ async function compressImage(input) { await tinify .fromFile(input) // 手机截图 - // .resize({ method: 'fit', width: Math.round(1242/3), height: Math.round(2688/3) }) + .resize({ + method: 'fit', + width: Math.round(1242 / 3), + height: Math.round(2688 / 3), + }) // 二维码 // .resize({ // method: 'fit', @@ -30,11 +34,11 @@ async function compressImage(input) { // height: Math.round(430 / 3), // }) // 搜一搜 - .resize({ - method: 'fit', - width: Math.round(1086 / 2), - height: Math.round(400 / 2), - }) + // .resize({ + // method: 'fit', + // width: Math.round(1086 / 2), + // height: Math.round(400 / 2), + // }) .toFile(input); const outputStat = await fs.stat(input); console.log(`after compress size: ${outputStat.size}`); diff --git a/src/templates/VerticalFeatures.tsx b/src/templates/VerticalFeatures.tsx index 284d3c2..48171f0 100644 --- a/src/templates/VerticalFeatures.tsx +++ b/src/templates/VerticalFeatures.tsx @@ -7,7 +7,7 @@ const VerticalFeatures = () => (
@@ -39,8 +39,8 @@ const VerticalFeatures = () => ( /> diff --git a/src/utils/AppConfig.ts b/src/utils/AppConfig.ts index 2d145d5..a9b8616 100644 --- a/src/utils/AppConfig.ts +++ b/src/utils/AppConfig.ts @@ -1,7 +1,7 @@ export const AppConfig = { site_name: '小而美工具', title: '小而美工具', - description: '匠心打磨小巧实用的小功能,旨在为用户提供便捷、高效的生活体验。', + description: '精心雕琢每一项实用小功能,为用户带来无与伦比的便捷与高效生活体验。', locale: 'zh-CN', basePath: '/ucalc-website', };