Skip to content

Commit 0db45cc

Browse files
calderbuildclaude
andcommitted
fix(ui): 全面 UI/UX 优化 - 头像彩色化 + 文字对比度增强
关键修复: 1. 头像优化: - 移除所有 grayscale filter,确保头像彩色显示 - 添加紫色渐变边框环效果 - 悬停时发光动画增强 - 暗色模式下保持原色 2. Hero 文字对比度: - 增强背景遮罩渐变 (0.85-0.6-0.75) - 三层 text-shadow 确保可读性 - 加粗字体 (800) + 增大字号 - 字母间距优化 3. 配置更新: - 排除 seo_*.md 和 *optimization*.md 文件 - 删除误入博客的 SEO 报告文件 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9ecb8f8 commit 0db45cc

File tree

5 files changed

+60
-1668
lines changed

5 files changed

+60
-1668
lines changed

_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ exclude:
5252
"PERFORMANCE-OPTIMIZATION.md",
5353
"*-REPORT*.md",
5454
"*报告*.md",
55+
"seo_*.md",
56+
"*optimization*.md",
57+
"*SEO*.md",
5558
]
5659
anchorjs: true # if you want to customize anchor. check out line:181 of `post.html`
5760
# If you have timezone issue (e.g. #68) in China, uncomment to use this:

less/dark-mode.less

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,14 +489,22 @@
489489
}
490490

491491
// Dark mode image adjustments
492-
.dark-mode img {
493-
filter: brightness(0.9) contrast(1.1);
494-
492+
// NOTE: Avatar images should NOT be filtered - keep them colorful!
493+
.dark-mode img:not(.short-about img):not([alt*="Avatar"]) {
494+
filter: brightness(0.92) contrast(1.05);
495+
495496
&:hover {
496-
filter: brightness(1) contrast(1.2);
497+
filter: brightness(1) contrast(1.1);
497498
}
498499
}
499500

501+
// Ensure avatar is ALWAYS colorful and vibrant
502+
.dark-mode .short-about img,
503+
.short-about img {
504+
filter: none !important;
505+
-webkit-filter: none !important;
506+
}
507+
500508
// Print styles - ensure dark mode doesn't affect printing
501509
@media print {
502510
.dark-mode * {

less/jason-blog.less

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -688,22 +688,22 @@ samp {
688688
overflow: hidden; // 防止内容溢出导致的移动
689689
contain: layout style; // CSS Containment提升性能
690690

691-
// Enhanced background overlay for better text readability
691+
// Enhanced background overlay for MAXIMUM text readability
692692
&::before {
693693
content: '';
694694
position: absolute;
695695
top: 0;
696696
left: 0;
697697
right: 0;
698698
bottom: 0;
699+
// Stronger gradient for better text contrast
699700
background: linear-gradient(
700-
135deg,
701-
rgba(0,0,0,0.75) 0%,
702-
rgba(0,0,0,0.45) 50%,
703-
rgba(0,0,0,0.65) 100%
701+
180deg,
702+
rgba(15, 23, 42, 0.85) 0%,
703+
rgba(15, 23, 42, 0.6) 40%,
704+
rgba(15, 23, 42, 0.75) 100%
704705
);
705706
z-index: 1;
706-
// 防止overlay移动
707707
transform: translateZ(0);
708708
will-change: auto;
709709
}
@@ -774,17 +774,21 @@ samp {
774774
text-align: center;
775775
h1 {
776776
margin-top: 0;
777-
font-size: 20px; // Further reduced for ultra-elegant look
778-
color: white;
779-
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
780-
line-height: 1.45; // More relaxed line height
777+
font-size: 24px; // Slightly larger for better presence
778+
color: #ffffff;
779+
// ENHANCED text shadow for maximum readability
780+
text-shadow:
781+
0 2px 4px rgba(0, 0, 0, 0.9),
782+
0 4px 12px rgba(0, 0, 0, 0.6),
783+
0 0 40px rgba(0, 0, 0, 0.4);
784+
line-height: 1.4;
781785
word-wrap: break-word;
782786
hyphens: auto;
783787
max-width: 100%;
784-
margin-bottom: 10px; // Tighter spacing
785-
font-weight: 700; // Bolder for better impact at smaller size
786-
letter-spacing: 0.5px; // Slight expansion for readability
787-
text-transform: none; // Remove any text transformation
788+
margin-bottom: 12px;
789+
font-weight: 800; // Extra bold for impact
790+
letter-spacing: 1px; // More letter spacing for clarity
791+
text-transform: none;
788792

789793
// Smooth progressive sizing - much more conservative
790794
@media only screen and (min-width: 480px) {
@@ -820,10 +824,15 @@ samp {
820824
}
821825
.subheading {
822826
.sans-serif;
823-
font-size: 12px; // Ultra-compact elegant subtitle
824-
line-height: 1.6; // More breathing room
827+
font-size: 14px; // Slightly larger for readability
828+
line-height: 1.6;
825829
display: block;
826-
font-weight: 400;
830+
font-weight: 500;
831+
color: rgba(255, 255, 255, 0.95);
832+
// Enhanced text shadow for subtitle
833+
text-shadow:
834+
0 1px 3px rgba(0, 0, 0, 0.8),
835+
0 2px 8px rgba(0, 0, 0, 0.5);
827836
margin: 10px auto 0; // Tighter top margin
828837
color: rgba(255, 255, 255, 0.95); // Higher contrast
829838
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);

less/sidebar.less

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,28 @@
6262
}
6363
.short-about {
6464
img {
65-
width: 80%;
65+
width: 128px;
66+
height: 128px;
6667
display: block;
67-
border-radius: @border-radius-lg;
68-
margin-bottom: @spacing-lg;
69-
box-shadow: var(--shadow-md);
68+
border-radius: 50%;
69+
margin: 0 auto @spacing-lg;
70+
box-shadow:
71+
0 0 0 4px var(--brand-primary),
72+
0 0 0 8px rgba(79, 70, 229, 0.2),
73+
var(--shadow-lg);
7074
transition: all @duration-base @ease-in-out;
71-
75+
// IMPORTANT: Remove any grayscale filter - show vibrant colors!
76+
filter: none !important;
77+
-webkit-filter: none !important;
78+
object-fit: cover;
79+
7280
&:hover {
73-
transform: scale(1.02);
74-
box-shadow: var(--shadow-lg);
81+
transform: scale(1.08) rotate(3deg);
82+
box-shadow:
83+
0 0 0 4px var(--brand-secondary),
84+
0 0 0 8px rgba(124, 58, 237, 0.3),
85+
0 0 30px rgba(79, 70, 229, 0.4),
86+
var(--shadow-xl);
7587
}
7688
}
7789

0 commit comments

Comments
 (0)