-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
753 lines (655 loc) · 22.3 KB
/
Copy pathindex.html
File metadata and controls
753 lines (655 loc) · 22.3 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
745
746
747
748
749
750
751
752
753
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Music of Things · Side Projects</title>
<meta name="description" content="Music of Things is a personal showcase of side projects spanning web, audio, and creative coding.">
<meta name="keywords" content="side projects, portfolio, static site, github pages, creative coding, music">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<style>
:root {
--dark: #141413;
--light: #faf9f5;
--mid-gray: #b0aea5;
--light-gray: #e8e6dc;
--orange: #d97757;
--blue: #6a9bcc;
--green: #788c5d;
--font-head: 'Poppins', Arial, sans-serif;
--font-body: 'Lora', Georgia, serif;
--font-mono: 'JetBrains Mono', monospace;
--radius: 4px;
--transition: 0.2s ease;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
font-family: var(--font-body);
background: var(--light);
color: var(--dark);
line-height: 1.7;
}
.container {
width: min(1080px, 92vw);
margin: 0 auto;
}
.eyebrow {
font-family: var(--font-head);
font-size: 11px;
font-weight: 600;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--orange);
}
nav {
position: sticky;
top: 0;
z-index: 100;
height: 64px;
border-bottom: 1px solid var(--light-gray);
background: color-mix(in srgb, var(--light) 92%, white 8%);
backdrop-filter: blur(8px);
}
.nav-inner {
height: 100%;
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
}
.logo {
font-family: var(--font-head);
font-weight: 700;
font-size: 14px;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--dark);
text-decoration: none;
}
.logo span { color: var(--orange); }
.nav-links {
list-style: none;
display: flex;
gap: 24px;
}
.nav-links a {
text-decoration: none;
font-family: var(--font-head);
font-size: 12px;
font-weight: 500;
letter-spacing: 0.06em;
text-transform: uppercase;
color: #726f66;
transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--dark); }
.hero {
padding: 88px 0 64px;
border-bottom: 1px solid var(--light-gray);
}
.hero-grid {
display: grid;
grid-template-columns: 1.4fr 1fr;
gap: 28px;
align-items: end;
}
h1 {
font-family: var(--font-head);
font-size: clamp(36px, 6vw, 62px);
line-height: 1.08;
font-weight: 300;
letter-spacing: -0.03em;
margin: 16px 0;
}
h1 strong { font-weight: 700; }
.hero p {
max-width: 58ch;
color: #6b685f;
font-size: 18px;
}
.hero-meta {
border: 1px solid var(--light-gray);
background: white;
border-radius: var(--radius);
padding: 20px;
display: grid;
gap: 8px;
}
.hero-meta p {
font-size: 14px;
color: #6b685f;
margin: 0;
}
section {
padding: 72px 0;
scroll-margin-top: 80px;
}
.section-heading {
display: flex;
justify-content: space-between;
align-items: end;
gap: 20px;
border-bottom: 1px solid var(--light-gray);
padding-bottom: 16px;
margin-bottom: 28px;
}
h2 {
font-family: var(--font-head);
font-size: clamp(28px, 4vw, 38px);
font-weight: 600;
letter-spacing: -0.02em;
line-height: 1.2;
}
.section-note {
font-family: var(--font-mono);
font-size: 12px;
color: var(--mid-gray);
white-space: nowrap;
}
.project-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 18px;
}
.project-card {
border: 1px solid var(--light-gray);
border-radius: var(--radius);
background: white;
overflow: hidden;
transition: transform var(--transition), box-shadow var(--transition);
display: flex;
flex-direction: column;
min-height: 420px;
}
.project-card:hover {
transform: translateY(-3px);
box-shadow: 0 10px 28px rgba(20, 20, 19, 0.1);
}
.project-thumb {
aspect-ratio: 16 / 10;
border-bottom: 1px solid var(--light-gray);
background: linear-gradient(130deg, #fff 0%, #f3f1ea 100%);
display: grid;
place-items: center;
padding: 10px;
}
.project-thumb svg {
width: 100%;
height: 100%;
border-radius: 3px;
overflow: visible;
}
.project-content {
padding: 16px;
display: grid;
gap: 10px;
flex-grow: 1;
}
.title-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.project-content h3 {
font-family: var(--font-head);
font-weight: 600;
font-size: 20px;
line-height: 1.3;
}
.project-content p {
font-size: 15px;
color: #646158;
}
.meta-row {
display: flex;
gap: 8px;
flex-wrap: wrap;
align-items: center;
min-height: 28px;
}
.chip,
.stat {
font-family: var(--font-mono);
font-size: 11px;
padding: 4px 8px;
border: 1px solid var(--light-gray);
border-radius: 999px;
color: #5f5b52;
background: #fffeff;
line-height: 1;
}
.chip { text-transform: lowercase; }
.project-links {
margin-top: auto;
display: flex;
gap: 14px;
flex-wrap: wrap;
font-family: var(--font-head);
font-size: 12px;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.project-links a {
color: var(--dark);
text-decoration: none;
border-bottom: 1px solid transparent;
transition: border-color var(--transition);
}
.project-links a:hover { border-color: var(--dark); }
.placeholder-note {
border: 1px dashed var(--light-gray);
border-radius: var(--radius);
background: white;
padding: 16px;
color: #646158;
font-size: 15px;
margin-top: 8px;
}
.timeline {
border: 1px solid var(--light-gray);
border-radius: var(--radius);
background: white;
padding: 12px 18px;
}
.timeline-item {
padding: 18px 0;
border-bottom: 1px solid var(--light-gray);
display: grid;
grid-template-columns: 110px 1fr;
gap: 16px;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-time {
font-family: var(--font-mono);
font-size: 12px;
color: var(--mid-gray);
}
.timeline-item h3 {
font-family: var(--font-head);
font-size: 18px;
line-height: 1.4;
margin-bottom: 4px;
}
.timeline-item p { color: #646158; font-size: 15px; }
.about-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 18px;
}
.card {
background: white;
border: 1px solid var(--light-gray);
border-radius: var(--radius);
padding: 22px;
}
.card h3 {
font-family: var(--font-head);
font-size: 20px;
margin-bottom: 10px;
line-height: 1.3;
}
.stack {
display: flex;
gap: 10px;
flex-wrap: wrap;
margin-top: 12px;
}
.pill {
font-family: var(--font-mono);
font-size: 12px;
color: #59564e;
border: 1px solid var(--light-gray);
padding: 5px 8px;
border-radius: 999px;
background: #fffeff;
}
.contact {
background: var(--dark);
color: var(--light);
border-radius: var(--radius);
padding: 40px;
display: grid;
gap: 16px;
}
.contact h2,
.contact p { color: var(--light); }
.contact .eyebrow { color: var(--orange); }
.button-row {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 8px;
}
.btn {
border: 1px solid transparent;
border-radius: var(--radius);
font-family: var(--font-head);
font-size: 13px;
font-weight: 500;
padding: 10px 18px;
text-decoration: none;
letter-spacing: 0.03em;
display: inline-flex;
align-items: center;
gap: 6px;
transition: all var(--transition);
}
.btn-primary {
background: var(--orange);
color: #fff;
}
.btn-primary:hover { background: #c8654a; }
.btn-outline {
border-color: rgba(250, 249, 245, 0.35);
color: var(--light);
background: rgba(250, 249, 245, 0.05);
}
.btn-outline:hover { border-color: var(--light); }
footer {
border-top: 1px solid var(--light-gray);
padding: 24px 0 32px;
font-family: var(--font-head);
color: var(--mid-gray);
font-size: 12px;
letter-spacing: 0.04em;
text-align: center;
text-transform: uppercase;
}
@media (max-width: 960px) {
.hero-grid,
.about-grid,
.project-grid {
grid-template-columns: 1fr;
}
.section-note { white-space: normal; }
nav { height: auto; }
.nav-inner { padding: 14px 0; flex-wrap: wrap; }
.nav-links { gap: 14px; flex-wrap: wrap; }
}
@media (max-width: 640px) {
.timeline-item { grid-template-columns: 1fr; gap: 6px; }
.hero { padding-top: 56px; }
.contact { padding: 26px; }
}
</style>
</head>
<body>
<nav>
<div class="container nav-inner">
<a class="logo" href="#top">music<span>/</span>things</a>
<ul class="nav-links">
<li><a href="#projects">Projects</a></li>
<li><a href="#now">Now</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div>
</nav>
<header id="top" class="hero">
<div class="container hero-grid">
<div>
<p class="eyebrow">Personal Side Project Studio</p>
<h1>Building small ideas into <strong>useful, shippable tools</strong>.</h1>
<p>
Welcome to Music of Things, a project showcase for experiments in product design, web builds, sound systems,
and creative automation. Featured projects below are loaded from public GitHub repositories.
</p>
</div>
<aside class="hero-meta" aria-label="Status">
<p class="eyebrow">Current Focus</p>
<p>Shipping practical micro-products with a strong signal: clear UX, fast performance, and useful documentation.</p>
<p id="repo-source" class="stat">Source: github.com/musicofthings</p>
</aside>
</div>
</header>
<main>
<section id="projects">
<div class="container">
<div class="section-heading">
<div>
<p class="eyebrow">01 — Work</p>
<h2>Featured Projects</h2>
</div>
<p class="section-note">Live data from public GitHub repos with diagram cards</p>
</div>
<div id="project-grid" class="project-grid" aria-live="polite"></div>
<div id="project-placeholder" class="placeholder-note" hidden></div>
</div>
</section>
<section id="now">
<div class="container">
<div class="section-heading">
<div>
<p class="eyebrow">02 — Updates</p>
<h2>What I am working on now</h2>
</div>
<p class="section-note">Monthly snapshot log</p>
</div>
<div class="timeline">
<article class="timeline-item">
<p class="timeline-time">Jan 2026</p>
<div>
<h3>Polishing repo-first portfolio content</h3>
<p>Turning each project into a concise story with value proposition, architecture notes, and practical outcomes.</p>
</div>
</article>
<article class="timeline-item">
<p class="timeline-time">Dec 2025</p>
<div>
<h3>Static deployment cleanup</h3>
<p>Removed legacy dependencies to keep this site lightweight and deterministic for GitHub Pages deployment.</p>
</div>
</article>
<article class="timeline-item">
<p class="timeline-time">Nov 2025</p>
<div>
<h3>Experiment archive pass</h3>
<p>Cataloged prototypes by domain (audio, tooling, productivity, visual systems) for faster retrieval.</p>
</div>
</article>
</div>
</div>
</section>
<section id="about">
<div class="container">
<div class="section-heading">
<div>
<p class="eyebrow">03 — Profile</p>
<h2>About this space</h2>
</div>
<p class="section-note">Built with vanilla HTML, CSS, and JavaScript</p>
</div>
<div class="about-grid">
<article class="card">
<h3>How featured images work</h3>
<p>Each project card generates a custom SVG diagram using repo metadata (stars, forks, recency, language signal) as visual primitives.</p>
<div class="stack">
<span class="pill">Signal over decoration</span>
<span class="pill">Generated diagrams</span>
<span class="pill">Core-value blurbs</span>
</div>
</article>
<article class="card">
<h3>Tech approach</h3>
<p>No framework required. The page fetches public repositories at runtime and renders cards client-side for easy maintenance.</p>
<div class="stack">
<span class="pill">GitHub REST API</span>
<span class="pill">Progressive fallback</span>
<span class="pill">Single-file deploy</span>
</div>
</article>
</div>
</div>
</section>
<section id="contact" class="container">
<div class="contact">
<p class="eyebrow">04 — Connect</p>
<h2>Want to collaborate or follow along?</h2>
<p>Explore project source, open issues, or reach out for creative/product collaboration.</p>
<div class="button-row">
<a class="btn btn-primary" href="mailto:hello@example.com">Email</a>
<a class="btn btn-outline" href="https://github.com/musicofthings" target="_blank" rel="noopener noreferrer">GitHub Profile</a>
</div>
</div>
</section>
</main>
<footer>
<div class="container">Music of Things · Side Projects · Updated 2026</div>
</footer>
<script>
(function () {
const username = 'musicofthings';
const repoApi = `https://api.github.com/users/${username}/repos?per_page=100&sort=updated`;
const projectGrid = document.getElementById('project-grid');
const placeholder = document.getElementById('project-placeholder');
const sourceLabel = document.getElementById('repo-source');
sourceLabel.textContent = `Source: github.com/${username}`;
function toDateSignal(date) {
const days = Math.max(1, Math.floor((Date.now() - new Date(date).getTime()) / (1000 * 60 * 60 * 24)));
return Math.max(0.1, Math.min(1, 1 - (days / 365)));
}
function describeCoreValue(repo) {
const lang = repo.language || 'General';
const desc = (repo.description || '').toLowerCase();
if (desc.includes('api') || desc.includes('backend')) {
return 'Reliable service layer for integrating data and workflows.';
}
if (desc.includes('ui') || desc.includes('design') || desc.includes('front')) {
return 'Interface-first build focused on clarity and interaction quality.';
}
if (desc.includes('audio') || desc.includes('music') || desc.includes('sound')) {
return 'Creative tooling that turns audio ideas into repeatable workflows.';
}
if (desc.includes('automation') || desc.includes('script') || desc.includes('tool')) {
return 'Automation utility that saves time through repeatable operations.';
}
if (lang === 'JavaScript' || lang === 'TypeScript') {
return 'Product experiment emphasizing fast iteration and practical UX.';
}
if (lang === 'Python') {
return 'Data and workflow project optimized for rapid experimentation.';
}
return 'General-purpose side project with a focus on useful outcomes and maintainable structure.';
}
function iconFor(repo) {
const text = `${repo.name} ${(repo.description || '')}`.toLowerCase();
if (text.includes('audio') || text.includes('music') || text.includes('sound')) return '🎛️';
if (text.includes('api') || text.includes('server') || text.includes('backend')) return '🧩';
if (text.includes('design') || text.includes('ui') || text.includes('portfolio')) return '🎨';
if (text.includes('automation') || text.includes('workflow') || text.includes('script')) return '⚙️';
if (text.includes('ai') || text.includes('agent') || text.includes('ml')) return '🤖';
return '🚀';
}
function createDiagram(repo) {
const stars = Math.min(100, repo.stargazers_count || 0);
const forks = Math.min(100, repo.forks_count || 0);
const issues = Math.min(100, repo.open_issues_count || 0);
const recency = Math.round(toDateSignal(repo.pushed_at) * 100);
const docs = Math.min(100, ((repo.description || '').length / 120) * 100);
const values = [stars, forks, recency, docs, 100 - issues];
const labels = ['Impact', 'Adoption', 'Velocity', 'Clarity', 'Stability'];
const cx = 160;
const cy = 100;
const radius = 70;
const points = values.map((value, i) => {
const angle = ((Math.PI * 2) / values.length) * i - Math.PI / 2;
const r = (radius * value) / 100;
return `${(cx + Math.cos(angle) * r).toFixed(1)},${(cy + Math.sin(angle) * r).toFixed(1)}`;
}).join(' ');
const axis = values.map((_, i) => {
const angle = ((Math.PI * 2) / values.length) * i - Math.PI / 2;
const x = cx + Math.cos(angle) * radius;
const y = cy + Math.sin(angle) * radius;
return `<line x1="${cx}" y1="${cy}" x2="${x.toFixed(1)}" y2="${y.toFixed(1)}" stroke="#d9d6cb" stroke-width="1"/>`;
}).join('');
const rings = [0.25, 0.5, 0.75, 1].map(scale =>
`<circle cx="${cx}" cy="${cy}" r="${(radius * scale).toFixed(1)}" fill="none" stroke="#e8e6dc" stroke-width="1"/>`
).join('');
const labelNodes = labels.map((label, i) => {
const angle = ((Math.PI * 2) / labels.length) * i - Math.PI / 2;
const x = cx + Math.cos(angle) * (radius + 20);
const y = cy + Math.sin(angle) * (radius + 20);
return `<text x="${x.toFixed(1)}" y="${y.toFixed(1)}" text-anchor="middle" font-size="8" font-family="JetBrains Mono, monospace" fill="#858176">${label}</text>`;
}).join('');
return `
<svg viewBox="0 0 320 200" role="img" aria-label="Core value diagram for ${repo.name}">
<rect x="0" y="0" width="320" height="200" fill="url(#grad-${repo.id})"/>
<defs>
<linearGradient id="grad-${repo.id}" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#faf9f5"/>
<stop offset="100%" stop-color="#efede4"/>
</linearGradient>
</defs>
${rings}
${axis}
<polygon points="${points}" fill="#6a9bcc66" stroke="#3f6d9a" stroke-width="2"/>
<circle cx="${cx}" cy="${cy}" r="3" fill="#d97757"/>
${labelNodes}
<text x="16" y="24" font-size="12" font-family="Poppins, Arial, sans-serif" font-weight="600" fill="#3a3833">${iconFor(repo)} ${repo.name}</text>
</svg>`;
}
function makeCard(repo) {
const lang = repo.language || 'unknown';
const topics = (repo.topics || []).slice(0, 2);
const blurb = describeCoreValue(repo);
const article = document.createElement('article');
article.className = 'project-card';
article.innerHTML = `
<div class="project-thumb">${createDiagram(repo)}</div>
<div class="project-content">
<div class="title-row">
<h3>${repo.name.replace(/-/g, ' ')}</h3>
<span class="stat">★ ${repo.stargazers_count}</span>
</div>
<p>${blurb}</p>
<div class="meta-row">
<span class="chip">${lang}</span>
<span class="stat">Forks ${repo.forks_count}</span>
${topics.map(topic => `<span class="chip">${topic}</span>`).join('')}
</div>
<div class="project-links">
<a href="${repo.html_url}" target="_blank" rel="noopener noreferrer">Repository</a>
${repo.homepage ? `<a href="${repo.homepage}" target="_blank" rel="noopener noreferrer">Live Demo</a>` : ''}
</div>
</div>`;
return article;
}
function renderFallback(message) {
placeholder.hidden = false;
placeholder.textContent = `${message} The site will automatically show your public repositories when this page is opened with internet access.`;
}
async function loadRepos() {
try {
const response = await fetch(repoApi, {
headers: {
Accept: 'application/vnd.github+json'
}
});
if (!response.ok) {
throw new Error(`GitHub API error: ${response.status}`);
}
const repos = await response.json();
const filtered = repos
.filter(repo => !repo.fork && !repo.archived)
.slice(0, 6);
if (!filtered.length) {
renderFallback('No public repositories found.');
return;
}
filtered.forEach(repo => projectGrid.appendChild(makeCard(repo)));
} catch (error) {
renderFallback('Could not load repositories right now.');
console.warn(error);
}
}
loadRepos();
})();
</script>
</body>
</html>