-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
649 lines (570 loc) · 16.9 KB
/
index.html
File metadata and controls
649 lines (570 loc) · 16.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>屏幕时间 - 轻量的 Windows 使用时长提醒工具</title>
<link rel="icon" href="src/ScreenTime/Assets/AppIcon.ico" type="image/x-icon">
<meta name="description" content="屏幕时间是一款轻量的 Windows 本机使用时长统计与休息提醒工具。">
<style>
:root {
color-scheme: light;
--bg: #f7f5f0;
--bg-cool: #eef4f2;
--surface: #ffffff;
--surface-soft: #f4f0e8;
--ink: #1d211d;
--muted: #62695f;
--line: #ded8ce;
--accent: #2f7d52;
--accent-deep: #246142;
--accent-soft: #e6f3ed;
--blue-soft: #e8f0f5;
--shadow-lg: 0 28px 80px rgba(34, 37, 31, 0.14);
--shadow-md: 0 16px 44px rgba(34, 37, 31, 0.1);
}
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
background:
linear-gradient(145deg, rgba(232, 240, 245, 0.78), transparent 34rem),
linear-gradient(0deg, var(--bg), var(--bg));
color: var(--ink);
font-family: "Microsoft YaHei UI", "Segoe UI", system-ui, sans-serif;
}
img {
max-width: 100%;
}
a {
color: inherit;
text-decoration: none;
}
a:focus-visible,
.button:focus-visible {
outline: 3px solid rgba(47, 125, 82, 0.28);
outline-offset: 3px;
}
.icon-link:focus-visible {
outline: 3px solid rgba(47, 125, 82, 0.28);
outline-offset: 3px;
}
.nav {
display: flex;
align-items: center;
justify-content: space-between;
max-width: 1180px;
margin: 0 auto;
padding: 22px 28px;
}
.brand {
display: inline-flex;
align-items: center;
gap: 10px;
font-weight: 800;
}
.mark {
display: grid;
width: 32px;
height: 32px;
place-items: center;
border-radius: 8px;
background: var(--accent);
color: #fff;
font-size: 15px;
font-weight: 800;
}
.nav-actions {
display: flex;
align-items: center;
gap: 22px;
color: var(--muted);
font-size: 14px;
font-weight: 600;
}
.nav-actions a:hover {
color: var(--accent-deep);
}
.icon-link {
display: inline-grid;
width: 34px;
height: 34px;
place-items: center;
border: 1px solid var(--line);
border-radius: 8px;
background: rgba(255, 255, 255, 0.72);
color: var(--ink);
transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.icon-link:hover {
border-color: #b7d8c7;
background: #fff;
color: var(--accent-deep);
transform: translateY(-1px);
}
.icon-link svg {
width: 19px;
height: 19px;
fill: currentColor;
}
.hero {
max-width: 1180px;
margin: 0 auto;
padding: 44px 28px 78px;
}
.hero-grid {
display: grid;
grid-template-columns: minmax(260px, 0.58fr) minmax(720px, 1.42fr);
gap: 40px;
align-items: center;
}
.eyebrow {
display: inline-flex;
align-items: center;
min-height: 30px;
padding: 0 12px;
border: 1px solid #c9dfd4;
border-radius: 999px;
background: rgba(255, 255, 255, 0.72);
color: var(--accent-deep);
font-size: 13px;
font-weight: 800;
}
h1 {
max-width: 440px;
margin: 18px 0 18px;
font-size: 54px;
line-height: 1.06;
letter-spacing: 0;
}
.lead {
max-width: 430px;
margin: 0;
color: var(--muted);
font-size: 17px;
line-height: 1.76;
}
.actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 32px;
}
.button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 46px;
padding: 0 18px;
border: 1px solid var(--line);
border-radius: 8px;
background: rgba(255, 255, 255, 0.74);
font-weight: 800;
transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.button:hover {
transform: translateY(-1px);
border-color: #b7d8c7;
}
.button.primary {
border-color: var(--accent);
background: var(--accent);
color: #fff;
}
.button.primary:hover {
background: var(--accent-deep);
}
.meta {
max-width: 420px;
margin-top: 14px;
color: var(--muted);
font-size: 13px;
line-height: 1.7;
}
.version-pill {
display: inline-flex;
align-items: center;
min-height: 28px;
margin-top: 14px;
padding: 0 10px;
border: 1px solid #c9dfd4;
border-radius: 999px;
background: rgba(255, 255, 255, 0.72);
color: var(--accent-deep);
font-size: 13px;
font-weight: 800;
}
.showcase {
position: relative;
overflow: hidden;
padding: 14px;
border: 1px solid rgba(222, 216, 206, 0.88);
border-radius: 8px;
background: rgba(255, 255, 255, 0.74);
box-shadow: var(--shadow-lg);
}
.carousel-track {
display: flex;
align-items: center;
transition: transform 360ms ease;
}
.carousel-slide {
flex: 0 0 100%;
min-width: 0;
}
.carousel-slide img {
display: block;
width: 100%;
height: auto;
border: 1px solid rgba(222, 216, 206, 0.72);
border-radius: 6px;
background: var(--surface);
}
.carousel-control {
position: absolute;
top: 50%;
display: grid;
width: 38px;
height: 38px;
place-items: center;
border: 1px solid rgba(222, 216, 206, 0.92);
border-radius: 999px;
background: rgba(255, 255, 255, 0.86);
color: var(--ink);
cursor: pointer;
font-size: 24px;
line-height: 1;
transform: translateY(-50%);
transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}
.carousel-control:hover {
border-color: #b7d8c7;
background: #fff;
transform: translateY(-50%) scale(1.04);
}
.carousel-control.prev {
left: 24px;
}
.carousel-control.next {
right: 24px;
}
.carousel-dots {
position: absolute;
left: 50%;
bottom: 24px;
display: flex;
gap: 8px;
transform: translateX(-50%);
}
.carousel-dot {
width: 8px;
height: 8px;
padding: 0;
border: 0;
border-radius: 999px;
background: rgba(29, 33, 29, 0.24);
cursor: pointer;
transition: width 180ms ease, background 180ms ease;
}
.carousel-dot.is-active {
width: 22px;
background: var(--accent);
}
.section {
max-width: 1180px;
margin: 0 auto;
padding: 0 28px;
}
.feature-strip {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1px;
overflow: hidden;
border: 1px solid var(--line);
border-radius: 8px;
background: var(--line);
}
.feature {
min-height: 154px;
padding: 26px 22px;
background: rgba(255, 255, 255, 0.84);
}
.feature strong {
display: block;
margin-bottom: 10px;
font-size: 16px;
}
.feature span {
color: var(--muted);
font-size: 14px;
line-height: 1.75;
}
.privacy {
display: grid;
grid-template-columns: 0.86fr 1.14fr;
gap: 36px;
align-items: start;
margin-top: 34px;
padding: 34px 0 8px;
border-top: 1px solid var(--line);
}
h2 {
margin: 0 0 10px;
font-size: 27px;
line-height: 1.25;
letter-spacing: 0;
}
.privacy p,
.download p {
margin: 0;
color: var(--muted);
line-height: 1.8;
}
.privacy-list {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
margin: 0;
padding: 0;
list-style: none;
}
.privacy-list li {
padding: 15px;
border: 1px solid var(--line);
border-radius: 8px;
background: rgba(244, 240, 232, 0.82);
color: var(--muted);
font-size: 14px;
line-height: 1.65;
}
.download {
max-width: 1180px;
margin: 0 auto;
padding: 44px 28px 68px;
}
.download-box {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
padding: 28px;
border: 1px solid #c9dfd4;
border-radius: 8px;
background: linear-gradient(135deg, var(--accent-soft), var(--blue-soft));
}
@media (max-width: 1180px) {
.hero-grid {
grid-template-columns: minmax(250px, 0.6fr) minmax(620px, 1.4fr);
gap: 32px;
}
.showcase {
padding: 12px;
}
}
@media (max-width: 980px) {
.hero-grid {
grid-template-columns: 1fr;
}
.showcase {
max-width: 960px;
}
}
@media (max-width: 820px) {
.feature-strip,
.privacy,
.privacy-list {
grid-template-columns: 1fr;
}
h1 {
font-size: 44px;
}
.download-box {
align-items: flex-start;
flex-direction: column;
}
}
@media (max-width: 560px) {
.nav {
align-items: flex-start;
flex-direction: column;
gap: 14px;
}
.nav-actions {
width: 100%;
justify-content: space-between;
}
.hero {
padding-top: 34px;
padding-bottom: 58px;
}
h1 {
font-size: 36px;
}
.lead {
font-size: 16px;
}
.showcase {
padding: 8px;
}
.carousel-control {
width: 34px;
height: 34px;
font-size: 21px;
}
.carousel-control.prev {
left: 16px;
}
.carousel-control.next {
right: 16px;
}
.carousel-dots {
bottom: 16px;
}
}
</style>
</head>
<body>
<nav class="nav" aria-label="主导航">
<a class="brand" href="#">
<span class="mark">ST</span>
<span>屏幕时间</span>
</a>
<div class="nav-actions">
<a href="#features">功能</a>
<a href="#privacy">隐私</a>
<a href="#download">下载</a>
<a class="icon-link"
href="https://github.com/wanxb/screen-time"
target="_blank"
rel="noopener noreferrer"
aria-label="打开 GitHub 仓库">
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M12 .5C5.65.5.5 5.65.5 12c0 5.08 3.29 9.39 7.86 10.91.58.11.79-.25.79-.56v-2.01c-3.2.7-3.87-1.54-3.87-1.54-.52-1.33-1.28-1.69-1.28-1.69-1.05-.72.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.03 1.77 2.71 1.26 3.37.96.1-.75.4-1.26.73-1.55-2.55-.29-5.24-1.28-5.24-5.69 0-1.26.45-2.28 1.19-3.08-.12-.29-.52-1.46.11-3.04 0 0 .97-.31 3.17 1.18A10.98 10.98 0 0 1 12 6c.98 0 1.95.13 2.87.38 2.2-1.49 3.17-1.18 3.17-1.18.63 1.58.23 2.75.11 3.04.74.8 1.19 1.82 1.19 3.08 0 4.42-2.69 5.39-5.25 5.68.41.36.78 1.06.78 2.14v3.21c0 .31.21.68.8.56A11.51 11.51 0 0 0 23.5 12C23.5 5.65 18.35.5 12 .5Z" />
</svg>
</a>
</div>
</nav>
<main>
<section class="hero">
<div class="hero-grid">
<div>
<div class="eyebrow">Windows 本机统计 · 休息提醒</div>
<h1>屏幕时间</h1>
<p class="lead">看清每天的电脑使用节奏,在连续专注太久时收到温和提醒。数据只保存在本机,界面克制,适合长期放在托盘里运行。</p>
<div class="actions">
<a class="button primary" href="https://github.com/wanxb/screen-time/releases/latest/download/ScreenTime-v0.1.7-win-x64.zip" download>下载 Windows 版</a>
</div>
<div class="version-pill">当前版本 v0.1.7</div>
<div class="meta">适用于 Windows x64,解压后运行 ScreenTime.exe,不需要额外安装运行环境。</div>
</div>
<div class="showcase" aria-label="产品界面预览轮播">
<div class="carousel-track">
<div class="carousel-slide">
<img src="src/ScreenTime/Assets/preview_0.png" width="1026" height="613" alt="屏幕时间主面板,展示今日使用时长、分类和应用排行">
</div>
<div class="carousel-slide">
<img src="src/ScreenTime/Assets/preview_1.png" width="886" height="533" loading="lazy" alt="屏幕时间设置页面,展示提醒间隔、主题和托盘选项">
</div>
<div class="carousel-slide">
<img src="src/ScreenTime/Assets/preview_2.png" width="2272" height="1278" loading="lazy" alt="屏幕时间全屏休息提醒页面,展示倒计时提示">
</div>
<div class="carousel-slide">
<img src="src/ScreenTime/Assets/preview_3.png" width="1040" height="620" loading="lazy" alt="屏幕时间液态玻璃界面预览,展示透明模糊窗口效果">
</div>
</div>
<button class="carousel-control prev" type="button" aria-label="上一张预览">‹</button>
<button class="carousel-control next" type="button" aria-label="下一张预览">›</button>
<div class="carousel-dots" aria-label="选择预览图片">
<button class="carousel-dot is-active" type="button" aria-label="查看主面板预览"></button>
<button class="carousel-dot" type="button" aria-label="查看设置页面预览"></button>
<button class="carousel-dot" type="button" aria-label="查看提醒页面预览"></button>
<button class="carousel-dot" type="button" aria-label="查看液态玻璃界面预览"></button>
</div>
</div>
</div>
</section>
<section class="section" id="features" aria-label="功能">
<div class="feature-strip">
<div class="feature">
<strong>时长统计</strong>
<span>按天和周查看活跃使用时长、应用排行和分类占比。</span>
</div>
<div class="feature">
<strong>休息提醒</strong>
<span>连续使用到达设定时长后,显示全屏倒计时提醒。</span>
</div>
<div class="feature">
<strong>托盘常驻</strong>
<span>最小化后保持后台运行,适合长期安静地陪着工作。</span>
</div>
<div class="feature">
<strong>本机隐私</strong>
<span>只记录软件级使用数据,不记录键盘内容、截图或浏览器 URL。</span>
</div>
</div>
<section class="privacy" id="privacy">
<div>
<h2>只统计必要信息</h2>
<p>屏幕时间面向个人自用,不需要云端账号,不上传使用数据。统计结果保存在本机 AppData 目录。</p>
</div>
<ul class="privacy-list">
<li>会记录:软件名、进程名、可执行路径、活跃秒数和分类。</li>
<li>会记录:提醒触发与关闭记录,用于计算连续使用状态。</li>
<li>不会记录:键盘输入、聊天内容、文档内容或截图录屏。</li>
<li>不会记录:浏览器 URL、网页内容、账号或云端数据。</li>
</ul>
</section>
</section>
<section class="download" id="download">
<div class="download-box">
<div>
<h2>开始使用屏幕时间</h2>
<p>当前版本 v0.1.7。下载压缩包,解压后运行 ScreenTime.exe。首次启动后可在设置里调整提醒间隔、主题和托盘行为。</p>
</div>
<a class="button primary" href="https://github.com/wanxb/screen-time/releases/latest/download/ScreenTime-v0.1.7-win-x64.zip" download>下载 Windows 版</a>
</div>
</section>
</main>
<script>
const carousel = document.querySelector(".showcase");
const track = carousel.querySelector(".carousel-track");
const dots = Array.from(carousel.querySelectorAll(".carousel-dot"));
const prev = carousel.querySelector(".carousel-control.prev");
const next = carousel.querySelector(".carousel-control.next");
let index = 0;
let timer = window.setInterval(showNext, 4200);
function showSlide(nextIndex) {
index = (nextIndex + dots.length) % dots.length;
track.style.transform = `translateX(-${index * 100}%)`;
dots.forEach((dot, dotIndex) => {
dot.classList.toggle("is-active", dotIndex === index);
});
}
function showNext() {
showSlide(index + 1);
}
function restartTimer() {
window.clearInterval(timer);
timer = window.setInterval(showNext, 4200);
}
prev.addEventListener("click", () => {
showSlide(index - 1);
restartTimer();
});
next.addEventListener("click", () => {
showNext();
restartTimer();
});
dots.forEach((dot, dotIndex) => {
dot.addEventListener("click", () => {
showSlide(dotIndex);
restartTimer();
});
});
</script>
</body>
</html>