Skip to content

Commit 9c464fc

Browse files
bingggclaude
andcommitted
✨ 优化分享功能和首页体验
- 在分享页面添加X分享按钮,提升社交媒体分享体验 - 修复返回首页时的URL hash清理问题,防止重复进入分享页面 - 增加首页标题上方留白(60px),提升视觉舒适度 - 重新精简首页文案,突出四大核心功能:本地浏览、便捷分享、导入查看、隐私保护 - 优化隐私说明文案,强调分享功能的安全性 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ff9e457 commit 9c464fc

3 files changed

Lines changed: 677 additions & 241 deletions

File tree

assets/css/styles.css

Lines changed: 97 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -87,41 +87,66 @@ body {
8787
/* Header Styles */
8888
.header {
8989
text-align: center;
90-
padding: 28px 20px;
91-
border-bottom: 1px solid #262626;
90+
padding: 60px 20px 60px 20px; /* Increased top padding from 40px to 60px for more breathing room */
9291
background: #000000;
9392
z-index: 10;
9493
position: relative;
9594
overflow: hidden;
9695
}
9796

98-
/* Animated background light effect */
97+
/* Elegant breathing ring gradient animation */
9998
.header::before {
10099
content: '';
101100
position: absolute;
102-
top: -50%;
103-
left: -50%;
104-
width: 200%;
105-
height: 200%;
106-
background: radial-gradient(
107-
circle at center,
108-
rgba(102, 126, 234, 0.08) 0%,
109-
rgba(102, 126, 234, 0.04) 30%,
110-
rgba(102, 126, 234, 0.02) 50%,
111-
transparent 70%
112-
);
113-
animation: headerGlow 8s ease-in-out infinite;
101+
top: 50%;
102+
left: 50%;
103+
width: 300px;
104+
height: 300px;
105+
transform: translate(-50%, -50%);
106+
background:
107+
radial-gradient(
108+
circle at center,
109+
rgba(255, 255, 255, 0.08) 0%,
110+
rgba(255, 255, 255, 0.04) 30%,
111+
rgba(255, 255, 255, 0.02) 50%,
112+
transparent 70%
113+
);
114+
border-radius: 50%;
115+
animation: breathingRing 8s ease-in-out infinite;
116+
pointer-events: none;
117+
}
118+
119+
.header::after {
120+
content: '';
121+
position: absolute;
122+
top: 50%;
123+
left: 50%;
124+
width: 500px;
125+
height: 500px;
126+
transform: translate(-50%, -50%);
127+
background:
128+
radial-gradient(
129+
circle at center,
130+
transparent 0%,
131+
rgba(255, 255, 255, 0.03) 40%,
132+
rgba(255, 255, 255, 0.06) 50%,
133+
rgba(255, 255, 255, 0.03) 60%,
134+
transparent 80%
135+
);
136+
border-radius: 50%;
137+
animation: breathingRing 12s ease-in-out infinite reverse;
114138
pointer-events: none;
139+
opacity: 0.7;
115140
}
116141

117-
@keyframes headerGlow {
142+
@keyframes breathingRing {
118143
0%, 100% {
119-
transform: translate(-50%, -50%) rotate(0deg) scale(1);
120-
opacity: 0.3;
144+
transform: translate(-50%, -50%) scale(0.8);
145+
opacity: 0.4;
121146
}
122147
50% {
123-
transform: translate(-45%, -45%) rotate(180deg) scale(1.1);
124-
opacity: 0.6;
148+
transform: translate(-50%, -50%) scale(1.2);
149+
opacity: 0.8;
125150
}
126151
}
127152

@@ -299,6 +324,15 @@ body {
299324
color: #d4d4d8;
300325
}
301326

327+
/* Homepage Actions Container */
328+
.homepage-actions {
329+
display: flex;
330+
flex-direction: column;
331+
gap: 16px;
332+
align-items: center;
333+
margin-top: 32px;
334+
}
335+
302336
.access-btn {
303337
background: linear-gradient(135deg, #ffffff, #f8fafc);
304338
color: #000000;
@@ -308,7 +342,6 @@ body {
308342
font-size: 13px;
309343
font-weight: 600;
310344
cursor: pointer;
311-
margin: 24px 0;
312345
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
313346
display: inline-flex;
314347
align-items: center;
@@ -317,6 +350,15 @@ body {
317350
position: relative;
318351
overflow: hidden;
319352
box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
353+
min-width: 200px;
354+
justify-content: center;
355+
}
356+
357+
.access-btn.secondary {
358+
background: linear-gradient(135deg, #18181b, #27272a);
359+
color: #ffffff;
360+
border: 1px solid #3f3f46;
361+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
320362
}
321363

322364
.access-btn::before {
@@ -330,16 +372,24 @@ body {
330372
transition: left 0.6s ease;
331373
}
332374

375+
.access-btn.secondary::before {
376+
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
377+
}
378+
333379
.access-btn:hover::before {
334380
left: 100%;
335381
}
336382

337383
.access-btn:hover {
338-
background: linear-gradient(135deg, #f8fafc, #e2e8f0);
339384
transform: translateY(-2px);
340385
box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
341386
}
342387

388+
.access-btn.secondary:hover {
389+
background: linear-gradient(135deg, #27272a, #3f3f46);
390+
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
391+
}
392+
343393
.access-btn:active {
344394
transform: translateY(0px);
345395
transition: all 0.1s ease;
@@ -612,7 +662,10 @@ body {
612662
text-overflow: ellipsis;
613663
white-space: nowrap;
614664
font-size: 12px;
615-
max-width: 200px;
665+
max-width: 180px; /* Reduced to ensure better fit */
666+
line-height: 1.2;
667+
max-height: 1.2em; /* Ensure single line */
668+
display: block; /* Ensure block display for proper truncation */
616669
}
617670

618671
.session-meta {
@@ -672,6 +725,10 @@ body {
672725
color: #ffffff;
673726
letter-spacing: -0.025em;
674727
flex: 1;
728+
overflow: hidden;
729+
text-overflow: ellipsis;
730+
white-space: nowrap;
731+
max-width: 300px; /* Ensure it doesn't take up too much space */
675732
}
676733

677734
.session-actions {
@@ -887,6 +944,21 @@ body {
887944
line-height: 1.4;
888945
}
889946

947+
/* Public Gist reminder note */
948+
.share-public-note {
949+
background: #13141a;
950+
border: 1px solid #3f3f46;
951+
border-radius: 4px;
952+
padding: 8px 10px;
953+
margin: 8px 0;
954+
}
955+
956+
.share-public-note small {
957+
color: #60a5fa;
958+
font-size: 11px;
959+
line-height: 1.4;
960+
}
961+
890962
/* Gist Import Styles */
891963
.gist-import-section {
892964
display: flex;
@@ -1281,16 +1353,11 @@ body {
12811353
font-size: 13px;
12821354
font-weight: 500;
12831355
white-space: nowrap;
1284-
opacity: 0;
1285-
max-width: 0;
1286-
overflow: hidden;
1287-
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
1288-
}
1289-
1290-
.fab-btn:hover .fab-text {
12911356
opacity: 1;
12921357
max-width: 80px;
12931358
margin-left: 4px;
1359+
overflow: hidden;
1360+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
12941361
}
12951362

12961363
.fab-btn:hover .fab-icon {

0 commit comments

Comments
 (0)