chore(site): 优化网站性能与样式细节

- 将 jQuery 引用从 BootCDN 改为本地文件以提升加载速度
- 移除页面 body 标签中的禁止右键和选择属性,提高用户体验
- 为事件监听器添加 passive 选项以提升滚动性能
- 调整 StarrySky.js 中 canvas 阴影模糊值以优化视觉效果
- 更新 CSS 样式颜色值,增强文字可读性与整体美观度
- 统一并优化部分文本阴影及字体抗锯齿设置
This commit is contained in:
hehh
2025-11-27 15:49:12 +08:00
parent 0c55a90662
commit 86468a9f77
4 changed files with 14 additions and 15 deletions

View File

@@ -84,7 +84,7 @@ const StarrySky = function () {
}
}
starCount = Math.ceil(canvasWidth * starCountLevel);
}, 200));
}, 200), { passive: true });
} else {
console.error('初始化失败必须传入Canvas元素');
}
@@ -160,7 +160,7 @@ const StarrySky = function () {
canvasContext.shadowOffsetX = 0;
canvasContext.shadowOffsetY = 0;
canvasContext.shadowColor = "rgb(" + star["color"] + ")";
canvasContext.shadowBlur = 10;
canvasContext.shadowBlur = 5;
canvasContext.beginPath();
canvasContext.arc(star_x, star_y, star_radius, 0, 2 * Math.PI);
canvasContext.fill();