style(home): 统一样式单位为px,优化代码格式

- 将CSS样式中的rpx单位替换为px,提升样式一致性
- 在TypeScript文件中添加缺失的分号,优化代码可读性
- 移除多余的注释和空行,简化代码结构
This commit is contained in:
iHeyTang
2025-09-10 19:36:01 +08:00
parent 49ec32e2ac
commit 74efd4b91e
4 changed files with 107 additions and 120 deletions

17
.prettierrc Normal file
View File

@@ -0,0 +1,17 @@
{
"semi": true,
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 150,
"tabWidth": 2,
"useTabs": false,
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "avoid",
"endOfLine": "lf",
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"embeddedLanguageFormatting": "auto",
"htmlWhitespaceSensitivity": "css",
"proseWrap": "preserve"
}