-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
459 lines (401 loc) · 14.5 KB
/
index.html
File metadata and controls
459 lines (401 loc) · 14.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A collection of simple, standalone HTML tools for everyday tasks. No build process, no frameworks — just open and use.">
<title>Web Tools</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:ital,wght@0,300;0,400;0,600;1,300;1,400&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/@phosphor-icons/[email protected]/src/index.js"></script>
<style>
:root {
--bg: #f5f4f0;
--surface: #faf9f6;
--ink: #1a1917;
--ink-muted: #6b6860;
--ink-faint: #767370;
--border: #e2e0da;
--shadow: rgba(26, 25, 23, 0.12);
--shadow-deep: rgba(26, 25, 23, 0.22);
--accent-ai: #e8f5e9;
--accent-ai-ink: #1b5e20;
--accent-ai-dot: #43a047;
--accent-coffee: #fff3e0;
--accent-coffee-ink: #bf360c;
--accent-coffee-dot: #f4511e;
/* Category: Design */
--accent-design: #e8eaf6;
--accent-design-ink: #1a237e;
--accent-design-dot: #3949ab;
/* Category: GitHub */
--accent-github: #fce4ec;
--accent-github-ink: #880e4f;
--accent-github-dot: #e91e63;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
font-family: 'IBM Plex Sans', sans-serif;
background: var(--bg);
color: var(--ink);
min-height: 100vh;
-webkit-font-smoothing: antialiased;
}
/* Subtle grain overlay */
body::before {
content: '';
position: fixed;
inset: 0;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
pointer-events: none;
z-index: 0;
opacity: 0.4;
}
.page {
position: relative;
z-index: 1;
max-width: 860px;
margin: 0 auto;
padding: 0 24px;
}
/* Header */
header {
padding: 72px 0 56px;
border-bottom: 1px solid var(--border);
margin-bottom: 56px;
}
.header-eyebrow {
font-family: 'IBM Plex Sans', sans-serif;
font-size: 11px;
font-weight: 500;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--ink-muted);
margin-bottom: 20px;
}
h1 {
font-family: 'IBM Plex Serif', serif;
font-size: clamp(2.4rem, 5vw, 3.6rem);
font-weight: 300;
line-height: 1.1;
letter-spacing: -0.02em;
color: var(--ink);
margin-bottom: 20px;
}
h1 em {
font-style: italic;
font-weight: 300;
}
.header-desc {
font-size: 1.05rem;
font-weight: 300;
line-height: 1.65;
color: var(--ink-muted);
max-width: 520px;
}
/* Philosophy strip */
.philosophy {
display: flex;
gap: 32px;
margin-bottom: 64px;
padding-bottom: 48px;
border-bottom: 1px solid var(--border);
flex-wrap: wrap;
}
.philosophy-item {
flex: 1;
min-width: 180px;
}
.philosophy-item .label {
font-size: 10px;
font-weight: 600;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--ink-faint);
margin-bottom: 6px;
}
.philosophy-item p {
font-size: 0.875rem;
line-height: 1.55;
color: var(--ink-muted);
}
/* Tools grid */
.tools-heading {
font-family: 'IBM Plex Sans', sans-serif;
font-size: 11px;
font-weight: 500;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--ink-muted);
margin-bottom: 24px;
}
.tools-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
gap: 20px;
margin-bottom: 80px;
}
.tool-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 16px;
padding: 28px;
text-decoration: none;
color: inherit;
display: flex;
flex-direction: column;
gap: 16px;
box-shadow: 0 2px 8px var(--shadow), 0 8px 32px var(--shadow);
transition: transform 0.18s ease, box-shadow 0.18s ease;
position: relative;
overflow: hidden;
}
.tool-card::after {
content: '';
position: absolute;
inset: 0;
border-radius: 16px;
opacity: 0;
transition: opacity 0.18s ease;
background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, transparent 60%);
pointer-events: none;
}
.tool-card:hover {
transform: translateY(-3px);
box-shadow: 0 4px 16px var(--shadow), 0 20px 48px var(--shadow-deep);
}
.tool-card:hover::after {
opacity: 1;
}
.card-top {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
}
.card-icon {
width: 48px;
height: 48px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
font-size: 22px;
}
.card-arrow {
color: var(--ink-faint);
transition: color 0.18s ease, transform 0.18s ease;
margin-top: 2px;
}
.tool-card:hover .card-arrow {
color: var(--ink-muted);
transform: translate(2px, -2px);
}
.card-title {
font-family: 'IBM Plex Serif', serif;
font-size: 1.2rem;
font-weight: 400;
line-height: 1.25;
color: var(--ink);
letter-spacing: -0.01em;
}
.card-desc {
font-size: 0.875rem;
line-height: 1.6;
color: var(--ink-muted);
font-weight: 300;
}
.card-tag {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 11px;
font-weight: 500;
letter-spacing: 0.04em;
padding: 4px 10px;
border-radius: 20px;
align-self: flex-start;
}
.card-tag .dot {
width: 6px;
height: 6px;
border-radius: 50%;
}
/* Per-card accent colors */
.card--ai .card-icon { background: var(--accent-ai); color: var(--accent-ai-ink); }
.card--ai .card-tag { background: var(--accent-ai); color: var(--accent-ai-ink); }
.card--ai .dot { background: var(--accent-ai-dot); }
.card--coffee .card-icon { background: var(--accent-coffee); color: var(--accent-coffee-ink); }
.card--coffee .card-tag { background: var(--accent-coffee); color: var(--accent-coffee-ink); }
.card--coffee .dot { background: var(--accent-coffee-dot); }
.card--color .card-icon { background: var(--accent-design); color: var(--accent-design-ink); }
.card--color .card-tag { background: var(--accent-design); color: var(--accent-design-ink); }
.card--color .dot { background: var(--accent-design-dot); }
.card--github .card-icon { background: var(--accent-github); color: var(--accent-github-ink); }
.card--github .card-tag { background: var(--accent-github); color: var(--accent-github-ink); }
.card--github .dot { background: var(--accent-github-dot); }
.card--repo .card-icon { background: var(--accent-github); color: var(--accent-github-ink); }
.card--repo .card-tag { background: var(--accent-github); color: var(--accent-github-ink); }
.card--repo .dot { background: var(--accent-github-dot); }
.card--screenshot .card-icon { background: var(--accent-design); color: var(--accent-design-ink); }
.card--screenshot .card-tag { background: var(--accent-design); color: var(--accent-design-ink); }
.card--screenshot .dot { background: var(--accent-design-dot); }
/* Footer */
footer {
border-top: 1px solid var(--border);
padding: 32px 0 48px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
flex-wrap: wrap;
}
footer p {
font-size: 0.8rem;
color: var(--ink-faint);
line-height: 1.5;
}
footer a {
color: var(--ink-muted);
text-decoration: none;
border-bottom: 1px solid var(--border);
transition: color 0.15s, border-color 0.15s;
}
footer a:hover {
color: var(--ink);
border-color: var(--ink-muted);
}
/* Staggered entrance animation */
@keyframes fadeUp {
from { opacity: 0; transform: translateY(16px); }
to { opacity: 1; transform: translateY(0); }
}
header { animation: fadeUp 0.5s ease both; }
.philosophy { animation: fadeUp 0.5s 0.1s ease both; }
.tools-heading { animation: fadeUp 0.5s 0.15s ease both; }
.tool-card:nth-child(1) { animation: fadeUp 0.45s 0.2s ease both; }
.tool-card:nth-child(2) { animation: fadeUp 0.45s 0.27s ease both; }
.tool-card:nth-child(3) { animation: fadeUp 0.45s 0.34s ease both; }
.tool-card:nth-child(4) { animation: fadeUp 0.45s 0.41s ease both; }
.tool-card:nth-child(5) { animation: fadeUp 0.45s 0.48s ease both; }
.tool-card:nth-child(6) { animation: fadeUp 0.45s 0.55s ease both; }
@media (max-width: 600px) {
header { padding: 48px 0 40px; }
.tools-grid { grid-template-columns: 1fr; }
.philosophy { gap: 20px; }
footer { flex-direction: column; align-items: flex-start; }
}
</style>
</head>
<body>
<div class="page">
<header>
<p class="header-eyebrow">pglevy / web-tools</p>
<h1>Small tools. <em>Everyday use.</em></h1>
<p class="header-desc">A collection of standalone HTML utilities. No build step, no framework — open a file and it works. Inspired by Simon Willison's approach to single-file tools.</p>
</header>
<div class="philosophy">
<div class="philosophy-item">
<p class="label">Single file</p>
<p>Each tool is one HTML file with inline CSS and JS. Copy, paste, host anywhere.</p>
</div>
<div class="philosophy-item">
<p class="label">No build step</p>
<p>No React, no npm, no bundler. Dependencies load from a CDN when needed.</p>
</div>
<div class="philosophy-item">
<p class="label">Stays small</p>
<p>A few hundred lines. Easy to read, easy to modify, easy to hand off to an LLM.</p>
</div>
</div>
<p class="tools-heading">Tools</p>
<div class="tools-grid">
<a href="ai-context-decision-tree.html" class="tool-card card--ai">
<div class="card-top">
<div class="card-icon">
<i class="ph-bold ph-tree-structure"></i>
</div>
<i class="ph ph-arrow-up-right card-arrow" style="font-size:18px;"></i>
</div>
<div>
<p class="card-title">AI Context Decision Tree</p>
<p class="card-desc">An interactive decision tree to help you choose the right AI context mechanism — steering files, skills, hooks, MCP servers, and more.</p>
</div>
<span class="card-tag"><span class="dot"></span>AI / Productivity</span>
</a>
<a href="coffee-ratio.html" class="tool-card card--coffee">
<div class="card-top">
<div class="card-icon">
<i class="ph-bold ph-coffee"></i>
</div>
<i class="ph ph-arrow-up-right card-arrow" style="font-size:18px;"></i>
</div>
<div>
<p class="card-title">Coffee Ratio Calculator</p>
<p class="card-desc">Find the perfect coffee-to-water ratio for your brew strength and serving size. Adjust on the fly with smooth sliders.</p>
</div>
<span class="card-tag"><span class="dot"></span>Kitchen</span>
</a>
<a href="color-converter.html" class="tool-card card--color">
<div class="card-top">
<div class="card-icon">
<i class="ph-bold ph-palette"></i>
</div>
<i class="ph ph-arrow-up-right card-arrow" style="font-size:18px;"></i>
</div>
<div>
<p class="card-title">Color Converter</p>
<p class="card-desc">Convert colors between Hex, RGBA, and OKLCH with a live preview. Includes closest CSS named color lookup.</p>
</div>
<span class="card-tag"><span class="dot"></span>Design</span>
</a>
<a href="github-social-preview.html" class="tool-card card--github">
<div class="card-top">
<div class="card-icon">
<i class="ph-bold ph-github-logo"></i>
</div>
<i class="ph ph-arrow-up-right card-arrow" style="font-size:18px;"></i>
</div>
<div>
<p class="card-title">GitHub Social Preview</p>
<p class="card-desc">See how any GitHub repository will appear when shared on social media. Paste a repo URL and preview instantly.</p>
</div>
<span class="card-tag"><span class="dot"></span>GitHub</span>
</a>
<a href="repo-archiver.html" class="tool-card card--repo">
<div class="card-top">
<div class="card-icon">
<i class="ph-bold ph-archive"></i>
</div>
<i class="ph ph-arrow-up-right card-arrow" style="font-size:18px;"></i>
</div>
<div>
<p class="card-title">Repo Archiver</p>
<p class="card-desc">Scan your GitHub repos, score them for staleness, and archive the ones collecting dust. Visual cleanup for your account.</p>
</div>
<span class="card-tag"><span class="dot"></span>GitHub</span>
</a>
<a href="screenshot-generator.html" class="tool-card card--screenshot">
<div class="card-top">
<div class="card-icon">
<i class="ph-bold ph-frame-corners"></i>
</div>
<i class="ph ph-arrow-up-right card-arrow" style="font-size:18px;"></i>
</div>
<div>
<p class="card-title">Screenshot Generator</p>
<p class="card-desc">Create beautiful screenshots with customizable window frames, backgrounds, shadows, and padding. Paste, drop, or upload to style instantly.</p>
</div>
<span class="card-tag"><span class="dot"></span>Design</span>
</a>
</div>
<footer>
<p>Built with care. Hosted on <a href="https://pages.github.com">GitHub Pages</a>.<br>Inspired by <a href="https://simonwillison.net/2025/Dec/10/html-tools/">Simon Willison's approach</a> to single-file tools.</p>
<p><a href="https://github.com/pglevy/web-tools">View source on GitHub</a></p>
</footer>
</div>
</body>
</html>