From 86468a9f77e22c40dcbf55e23d6d812fd5ed8441 Mon Sep 17 00:00:00 2001 From: hehh Date: Thu, 27 Nov 2025 15:49:12 +0800 Subject: [PATCH] =?UTF-8?q?chore(site):=20=E4=BC=98=E5=8C=96=E7=BD=91?= =?UTF-8?q?=E7=AB=99=E6=80=A7=E8=83=BD=E4=B8=8E=E6=A0=B7=E5=BC=8F=E7=BB=86?= =?UTF-8?q?=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 jQuery 引用从 BootCDN 改为本地文件以提升加载速度 - 移除页面 body 标签中的禁止右键和选择属性,提高用户体验 - 为事件监听器添加 passive 选项以提升滚动性能 - 调整 StarrySky.js 中 canvas 阴影模糊值以优化视觉效果 - 更新 CSS 样式颜色值,增强文字可读性与整体美观度 - 统一并优化部分文本阴影及字体抗锯齿设置 --- about.html | 2 +- css/style.css | 13 ++++++------- index.html | 10 +++++----- js/StarrySky.js | 4 ++-- 4 files changed, 14 insertions(+), 15 deletions(-) diff --git a/about.html b/about.html index 3162077..4a01af8 100644 --- a/about.html +++ b/about.html @@ -322,7 +322,7 @@ - + diff --git a/css/style.css b/css/style.css index ce1f64d..3ad1a6e 100644 --- a/css/style.css +++ b/css/style.css @@ -262,7 +262,7 @@ pre code { padding: 0; background: none; border: none; word-wrap: normal; } font-size: 1.3em; font-weight: normal; letter-spacing: 2px; - color: #f0f0f0; + color: #ffffff; -webkit-font-smoothing: antialiased; margin-bottom: 20px; } @@ -275,7 +275,7 @@ pre code { padding: 0; background: none; border: none; word-wrap: normal; } line-height: 2; letter-spacing: 2px; color: #ffffff; - text-shadow: 0 1px 2px rgba(141, 114, 114, 0.2) !important; + text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important; position: relative; z-index: 1; font-feature-settings: 'kern' 1; @@ -872,7 +872,7 @@ nav { .weixin-qrcode-desc { font-size: 14px; - color: #666; + color: #555; margin-bottom: 15px; } @@ -986,12 +986,12 @@ nav { display: inline-block; margin: 0 5px; font-size: 0.5em; - color: rgba(255, 255, 255, 0.7); + color: rgba(255, 255, 255, 0.85); line-height: 1.2; } .power a { - color: rgba(255, 255, 255, 0.8); + color: rgba(255, 255, 255, 0.95); font-size: 0.5em; text-decoration: none; transition: color 0.3s ease; @@ -1006,8 +1006,7 @@ nav { .remark .power:not(:last-child):after { content: "|"; margin-left: 8px; - color: rgba(255, 255, 255, 0.5); - color: rgba(255, 255, 255, 0.5); + color: rgba(255, 255, 255, 0.7); } diff --git a/index.html b/index.html index 09f5fac..1ce48f5 100644 --- a/index.html +++ b/index.html @@ -64,7 +64,7 @@ - +
diff --git a/js/StarrySky.js b/js/StarrySky.js index 450699d..b030b46 100644 --- a/js/StarrySky.js +++ b/js/StarrySky.js @@ -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();