-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtools.html
More file actions
744 lines (668 loc) · 26.1 KB
/
tools.html
File metadata and controls
744 lines (668 loc) · 26.1 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
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="开发者工具箱 - 全部工具列表,包含 Favicon 生成、中文转换、时间戳、Base64、JSON、颜色、URL、UUID 等实用工具">
<meta name="keywords" content="开发工具,在线工具,工具列表,开发者工具集">
<title>全部工具 - 开发者工具箱</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🛠️</text></svg>">
<!-- 公共样式 -->
<link rel="stylesheet" href="assets/css/common.css">
<style>
.page-header {
text-align: center;
padding: 60px 20px 40px;
background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-tertiary) 100%);
border-radius: 30px;
margin-bottom: 50px;
}
.page-title {
font-size: 3em;
font-weight: 900;
color: var(--color-headline);
margin-bottom: 15px;
}
.page-subtitle {
font-size: 1.2em;
color: var(--color-paragraph);
opacity: 0.9;
}
.page-stats {
display: flex;
gap: 30px;
justify-content: center;
margin-top: 30px;
}
.page-stat {
text-align: center;
}
.page-stat-number {
font-size: 2em;
font-weight: 700;
color: var(--color-headline);
}
.page-stat-label {
font-size: 0.9em;
color: var(--color-paragraph);
opacity: 0.7;
margin-top: 5px;
}
/* 搜索和筛选 */
.filter-section {
background: white;
padding: 30px;
border-radius: 20px;
margin-bottom: 40px;
border: 2px solid var(--color-secondary);
}
.search-bar {
position: relative;
margin-bottom: 25px;
}
.search-input {
width: 100%;
padding: 16px 50px 16px 20px;
border: 2px solid var(--color-secondary);
border-radius: 50px;
font-size: 1.1em;
transition: all 0.3s;
}
.search-input:focus {
outline: none;
border-color: var(--color-button);
box-shadow: 0 0 0 4px rgba(255, 216, 3, 0.1);
}
.search-icon {
position: absolute;
right: 20px;
top: 50%;
transform: translateY(-50%);
font-size: 1.3em;
opacity: 0.5;
}
.filter-tags {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.filter-tag {
padding: 10px 20px;
background: var(--color-secondary);
border: 2px solid var(--color-secondary);
border-radius: 50px;
cursor: pointer;
transition: all 0.3s;
font-weight: 600;
color: var(--color-paragraph);
}
.filter-tag:hover {
border-color: var(--color-tertiary);
background: var(--color-tertiary);
}
.filter-tag.active {
background: var(--color-button);
border-color: var(--color-button);
color: var(--color-button-text);
}
/* 工具分类 */
.category-section {
margin-bottom: 50px;
}
.category-header {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 25px;
padding-bottom: 15px;
border-bottom: 3px solid var(--color-tertiary);
}
.category-icon {
font-size: 2em;
}
.category-title {
font-size: 1.8em;
font-weight: 700;
color: var(--color-headline);
}
.category-count {
font-size: 0.9em;
color: var(--color-paragraph);
opacity: 0.7;
margin-left: auto;
}
/* 工具网格 */
.tools-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 25px;
}
.tool-card {
background: white;
padding: 30px;
border-radius: 16px;
border: 2px solid var(--color-secondary);
transition: all 0.3s;
text-decoration: none;
display: flex;
flex-direction: column;
position: relative;
}
.tool-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 30px var(--color-shadow);
border-color: var(--color-button);
}
.tool-header {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 15px;
}
.tool-icon {
font-size: 2.5em;
}
.tool-info {
flex: 1;
}
.tool-title {
font-size: 1.3em;
font-weight: 700;
color: var(--color-headline);
margin-bottom: 5px;
}
.tool-tags {
display: flex;
gap: 5px;
flex-wrap: wrap;
}
.tool-tag {
font-size: 0.75em;
padding: 3px 8px;
background: var(--color-secondary);
color: var(--color-paragraph);
border-radius: 4px;
}
.tool-tag.hot {
background: #ff6b6b;
color: white;
}
.tool-tag.new {
background: #51cf66;
color: white;
}
.tool-desc {
color: var(--color-paragraph);
line-height: 1.6;
margin-bottom: 20px;
flex: 1;
}
.tool-features {
list-style: none;
padding: 0;
margin: 15px 0;
}
.tool-features li {
display: flex;
align-items: center;
gap: 8px;
color: var(--color-paragraph);
font-size: 0.9em;
margin-bottom: 8px;
}
.tool-features li::before {
content: '✓';
color: var(--color-button);
font-weight: 700;
}
.tool-footer {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 15px;
border-top: 1px solid var(--color-secondary);
margin-top: auto;
}
.tool-status {
font-size: 0.85em;
color: var(--color-paragraph);
opacity: 0.7;
}
.tool-action {
padding: 8px 20px;
background: var(--color-button);
color: var(--color-button-text);
border-radius: 50px;
font-weight: 600;
font-size: 0.9em;
transition: all 0.3s;
}
.tool-card:hover .tool-action {
transform: translateX(5px);
}
/* 空状态 */
.empty-state {
text-align: center;
padding: 80px 20px;
color: var(--color-paragraph);
opacity: 0.6;
}
.empty-state-icon {
font-size: 5em;
margin-bottom: 20px;
}
.empty-state-text {
font-size: 1.2em;
}
/* 响应式 */
@media (max-width: 768px) {
.page-title {
font-size: 2em;
}
.page-stats {
flex-direction: column;
gap: 15px;
}
.tools-grid {
grid-template-columns: 1fr;
}
.category-header {
flex-direction: column;
align-items: flex-start;
}
.category-count {
margin-left: 0;
}
}
</style>
</head>
<body>
<!-- 导航栏 -->
<nav class="navbar">
<div class="nav-container">
<a href="index.html" class="logo">
<div class="logo-icon">🛠️</div>
<span>开发者工具箱</span>
</a>
<a href="index.html" class="back-btn">
<span>←</span>
<span>返回首页</span>
</a>
</div>
</nav>
<!-- 主容器 -->
<div class="container">
<!-- 页面头部 -->
<div class="page-header">
<h1 class="page-title">全部工具</h1>
<p class="page-subtitle">精选 8+ 个实用的开发工具,持续更新中</p>
<div class="page-stats">
<div class="page-stat">
<div class="page-stat-number" id="totalTools">8</div>
<div class="page-stat-label">可用工具</div>
</div>
<div class="page-stat">
<div class="page-stat-number">5</div>
<div class="page-stat-label">工具分类</div>
</div>
<div class="page-stat">
<div class="page-stat-number">100%</div>
<div class="page-stat-label">免费使用</div>
</div>
</div>
</div>
<!-- 搜索和筛选 -->
<div class="filter-section">
<div class="search-bar">
<input
type="text"
class="search-input"
id="searchInput"
placeholder="搜索工具名称、描述或关键词..."
oninput="filterTools()"
>
<span class="search-icon">🔍</span>
</div>
<div class="filter-tags">
<button class="filter-tag active" onclick="filterByCategory('all', this)">
全部工具
</button>
<button class="filter-tag" onclick="filterByCategory('converter', this)">
🔄 转换工具
</button>
<button class="filter-tag" onclick="filterByCategory('generator', this)">
✨ 生成工具
</button>
<button class="filter-tag" onclick="filterByCategory('formatter', this)">
📋 格式化
</button>
<button class="filter-tag" onclick="filterByCategory('encoder', this)">
🔐 编解码
</button>
<button class="filter-tag" onclick="filterByCategory('design', this)">
🎨 设计工具
</button>
</div>
</div>
<!-- 转换工具 -->
<div class="category-section" data-category="converter">
<div class="category-header">
<span class="category-icon">🔄</span>
<h2 class="category-title">转换工具</h2>
<span class="category-count">3 个工具</span>
</div>
<div class="tools-grid">
<!-- 中文转换 -->
<a href="tools/opencc.html" class="tool-card" data-keywords="中文 简体 繁体 转换 opencc">
<div class="tool-header">
<span class="tool-icon">🈯</span>
<div class="tool-info">
<h3 class="tool-title">中文简繁转换</h3>
<div class="tool-tags">
<span class="tool-tag new">新</span>
<span class="tool-tag">转换</span>
</div>
</div>
</div>
<p class="tool-desc">支持简体、繁体、台湾、香港等多种转换模式,基于 OpenCC 实现高质量转换</p>
<ul class="tool-features">
<li>多种转换模式</li>
<li>批量文本处理</li>
<li>实时转换预览</li>
</ul>
<div class="tool-footer">
<span class="tool-status">📊 使用中</span>
<span class="tool-action">立即使用 →</span>
</div>
</a>
<!-- 时间戳转换 -->
<a href="tools/timestamp.html" class="tool-card" data-keywords="时间戳 timestamp unix 时间 日期">
<div class="tool-header">
<span class="tool-icon">⏰</span>
<div class="tool-info">
<h3 class="tool-title">时间戳转换</h3>
<div class="tool-tags">
<span class="tool-tag hot">热门</span>
<span class="tool-tag">时间</span>
</div>
</div>
</div>
<p class="tool-desc">Unix 时间戳、ISO 8601、UTC 等多种时间格式互转,支持时区信息显示</p>
<ul class="tool-features">
<li>多种时间格式</li>
<li>时区信息显示</li>
<li>美化日期选择器</li>
</ul>
<div class="tool-footer">
<span class="tool-status">📊 使用中</span>
<span class="tool-action">立即使用 →</span>
</div>
</a>
<!-- 颜色转换 -->
<a href="tools/color.html" class="tool-card" data-keywords="颜色 color hex rgb hsl 转换">
<div class="tool-header">
<span class="tool-icon">🎨</span>
<div class="tool-info">
<h3 class="tool-title">颜色转换</h3>
<div class="tool-tags">
<span class="tool-tag">设计</span>
</div>
</div>
</div>
<p class="tool-desc">HEX、RGB、HSL 等颜色格式互转,支持实时预览和取色</p>
<ul class="tool-features">
<li>多种颜色格式</li>
<li>实时预览效果</li>
<li>颜色历史记录</li>
</ul>
<div class="tool-footer">
<span class="tool-status">📊 使用中</span>
<span class="tool-action">立即使用 →</span>
</div>
</a>
</div>
</div>
<!-- 生成工具 -->
<div class="category-section" data-category="generator">
<div class="category-header">
<span class="category-icon">✨</span>
<h2 class="category-title">生成工具</h2>
<span class="category-count">2 个工具</span>
</div>
<div class="tools-grid">
<!-- Favicon 生成器 -->
<a href="tools/favicon.html" class="tool-card" data-keywords="favicon 图标 icon ico png">
<div class="tool-header">
<span class="tool-icon">🎨</span>
<div class="tool-info">
<h3 class="tool-title">Favicon 生成器</h3>
<div class="tool-tags">
<span class="tool-tag hot">热门</span>
<span class="tool-tag">图标</span>
</div>
</div>
</div>
<p class="tool-desc">支持图片上传、文字、Emoji 生成 Favicon,多尺寸批量导出</p>
<ul class="tool-features">
<li>多种输入方式</li>
<li>实时预览效果</li>
<li>批量导出尺寸</li>
</ul>
<div class="tool-footer">
<span class="tool-status">📊 使用中</span>
<span class="tool-action">立即使用 →</span>
</div>
</a>
<!-- UUID 生成器 -->
<a href="tools/uuid-generator.html" class="tool-card" data-keywords="uuid guid 生成器 唯一标识">
<div class="tool-header">
<span class="tool-icon">🆔</span>
<div class="tool-info">
<h3 class="tool-title">UUID 生成器</h3>
<div class="tool-tags">
<span class="tool-tag new">新</span>
<span class="tool-tag">生成</span>
</div>
</div>
</div>
<p class="tool-desc">快速生成 UUID v1, v4, v7, Nil UUID 等多种格式,支持批量生成</p>
<ul class="tool-features">
<li>多版本支持</li>
<li>批量生成</li>
<li>多种格式选项</li>
</ul>
<div class="tool-footer">
<span class="tool-status">📊 使用中</span>
<span class="tool-action">立即使用 →</span>
</div>
</a>
</div>
</div>
<!-- 格式化工具 -->
<div class="category-section" data-category="formatter">
<div class="category-header">
<span class="category-icon">📋</span>
<h2 class="category-title">格式化工具</h2>
<span class="category-count">1 个工具</span>
</div>
<div class="tools-grid">
<!-- JSON 格式化 -->
<a href="tools/json.html" class="tool-card" data-keywords="json 格式化 压缩 验证 format">
<div class="tool-header">
<span class="tool-icon">📋</span>
<div class="tool-info">
<h3 class="tool-title">JSON 格式化</h3>
<div class="tool-tags">
<span class="tool-tag hot">热门</span>
<span class="tool-tag">格式化</span>
</div>
</div>
</div>
<p class="tool-desc">格式化、压缩、验证 JSON 数据,支持语法高亮和错误提示</p>
<ul class="tool-features">
<li>智能格式化</li>
<li>语法验证</li>
<li>压缩优化</li>
</ul>
<div class="tool-footer">
<span class="tool-status">📊 使用中</span>
<span class="tool-action">立即使用 →</span>
</div>
</a>
</div>
</div>
<!-- 编解码工具 -->
<div class="category-section" data-category="encoder">
<div class="category-header">
<span class="category-icon">🔐</span>
<h2 class="category-title">编解码工具</h2>
<span class="category-count">2 个工具</span>
</div>
<div class="tools-grid">
<!-- Base64 编解码 -->
<a href="tools/base64.html" class="tool-card" data-keywords="base64 编码 解码 encode decode">
<div class="tool-header">
<span class="tool-icon">🔐</span>
<div class="tool-info">
<h3 class="tool-title">Base64 编解码</h3>
<div class="tool-tags">
<span class="tool-tag">编码</span>
</div>
</div>
</div>
<p class="tool-desc">文本和图片的 Base64 编码解码工具,支持多种格式</p>
<ul class="tool-features">
<li>文本编解码</li>
<li>图片编解码</li>
<li>实时转换</li>
</ul>
<div class="tool-footer">
<span class="tool-status">📊 使用中</span>
<span class="tool-action">立即使用 →</span>
</div>
</a>
<!-- URL 编解码 -->
<a href="tools/url-encoder.html" class="tool-card" data-keywords="url 编码 解码 encode decode uri">
<div class="tool-header">
<span class="tool-icon">🔗</span>
<div class="tool-info">
<h3 class="tool-title">URL 编解码</h3>
<div class="tool-tags">
<span class="tool-tag new">新</span>
<span class="tool-tag">编码</span>
</div>
</div>
</div>
<p class="tool-desc">URL 编码、解码,支持 encodeURI、encodeURIComponent 等多种方式</p>
<ul class="tool-features">
<li>多种编码方式</li>
<li>实时统计</li>
<li>批量处理</li>
</ul>
<div class="tool-footer">
<span class="tool-status">📊 使用中</span>
<span class="tool-action">立即使用 →</span>
</div>
</a>
</div>
</div>
<!-- 空状态(当搜索无结果时显示) -->
<div class="empty-state" id="emptyState" style="display: none;">
<div class="empty-state-icon">🔍</div>
<div class="empty-state-text">未找到匹配的工具,试试其他关键词吧</div>
</div>
</div>
<!-- 页脚 -->
<!-- 页脚 -->
<footer class="footer">
<p>
<a
href="https://imwarn.com"
target="_blank"
data-i18n="footer.author"
>imWarn</a
><span data-i18n="footer.made">制作的小玩具</span> |
<a
href="https://github.com/imwarn/we-tool"
target="_blank"
data-i18n="footer.github"
>GitHub</a
>
|
<a
href="https://www.happyhues.co/palettes/14"
target="_blank"
data-i18n="footer.color"
>配色方案</a
>
</p>
<p style="margin-top: 10px; font-size: 0.9em; opacity: 0.7">
© 2025 We Tool. All rights reserved.
</p>
</footer>
<!-- 公共脚本 -->
<script src="assets/js/common.js"></script>
<script>
let currentCategory = 'all';
// 按分类筛选
function filterByCategory(category, button) {
currentCategory = category;
// 更新按钮状态
document.querySelectorAll('.filter-tag').forEach(tag => {
tag.classList.remove('active');
});
button.classList.add('active');
// 筛选工具
filterTools();
}
// 筛选工具
function filterTools() {
const searchValue = document.getElementById('searchInput').value.toLowerCase();
const categories = document.querySelectorAll('.category-section');
let visibleCount = 0;
categories.forEach(category => {
const categoryType = category.dataset.category;
const cards = category.querySelectorAll('.tool-card');
let categoryHasVisible = false;
cards.forEach(card => {
const title = card.querySelector('.tool-title').textContent.toLowerCase();
const desc = card.querySelector('.tool-desc').textContent.toLowerCase();
const keywords = card.dataset.keywords || '';
const matchesSearch = !searchValue ||
title.includes(searchValue) ||
desc.includes(searchValue) ||
keywords.includes(searchValue);
const matchesCategory = currentCategory === 'all' ||
categoryType === currentCategory;
if (matchesSearch && matchesCategory) {
card.style.display = 'flex';
categoryHasVisible = true;
visibleCount++;
} else {
card.style.display = 'none';
}
});
// 显示/隐藏分类
if (categoryHasVisible && (currentCategory === 'all' || categoryType === currentCategory)) {
category.style.display = 'block';
} else {
category.style.display = 'none';
}
});
// 显示/隐藏空状态
document.getElementById('emptyState').style.display =
visibleCount === 0 ? 'block' : 'none';
}
// 平滑滚动
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) {
target.scrollIntoView({ behavior: 'smooth', block: 'start' });
}
});
});
</script>
</body>
</html>