Skip to content

Commit

Permalink
更新首页手电筒的文案和截图
Browse files Browse the repository at this point in the history
  • Loading branch information
whinc committed Mar 17, 2024
1 parent 3fd698c commit e5907ce
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ git push origin-gitee main
### 压缩图片

```
TINYPNG_API_KEY=<API_KEY> node ./scripts/tinypng.mjs <input> <output>
TINYPNG_API_KEY=<API_KEY> node ./scripts/tinypng.mjs <input> [input...]
```
Binary file removed public/assets/screenshots/torch.PNG
Binary file not shown.
Binary file added public/assets/screenshots/torch.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 10 additions & 6 deletions scripts/tinypng.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,23 @@ 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',
// width: Math.round(430 / 3),
// 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}`);
Expand Down
6 changes: 3 additions & 3 deletions src/templates/VerticalFeatures.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const VerticalFeatures = () => (
<Section title="功能介绍" description="一个小程序,搞定所有!">
<VerticalFeatureRow
title={pages.calendar.title}
description="支持公历视图、农历视图、公历和农历互转、公历节日、农历节日、法定假日调休、宜忌事项、生肖、星座等。农历遵循现行的国家标准《农历的编算和颁行(GB/T 33661-2017)》权威可靠。"
description="支持公历视图、农历视图、公历和农历互转、公历节日、农历节日、法定假日调休、宜忌事项、生肖、星座等,一键分享日期。遵循现行的国家标准《农历的编算和颁行(GB/T 33661-2017)》权威可靠。"
image={`/assets/screenshots/calendar.png`}
qrcode="/assets/qrcodes/calendar.png"
/>
Expand Down Expand Up @@ -39,8 +39,8 @@ const VerticalFeatures = () => (
/>
<VerticalFeatureRow
title={pages.torch.title}
description="一键开关手电筒,精确显示剩余电量百分比,调节屏幕亮度"
image="/assets/screenshots/torch.png"
description="一键开关手电筒,精确显示剩余电量,可调节屏幕亮度,一键开启闪烁,并可调节闪烁频率"
image="/assets/screenshots/torch.jpeg"
qrcode="/assets/qrcodes/torch.png"
reverse
/>
Expand Down
2 changes: 1 addition & 1 deletion src/utils/AppConfig.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const AppConfig = {
site_name: '小而美工具',
title: '小而美工具',
description: '匠心打磨小巧实用的小功能,旨在为用户提供便捷、高效的生活体验。',
description: '精心雕琢每一项实用小功能,为用户带来无与伦比的便捷与高效生活体验。',
locale: 'zh-CN',
basePath: '/ucalc-website',
};

0 comments on commit e5907ce

Please sign in to comment.