aboutsummaryrefslogtreecommitdiff
path: root/index.html
blob: e2ee661d9c939d7e816d8f9d10541e46ad569076 (plain)
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>tyler.xyz Β· Aqua Desktop</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Audiowide&family=Michroma&family=Plus+Jakarta+Sans:wght@200;300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;700&family=IBM+Plex+Mono:wght@400;500&display=swap" />
<link rel="stylesheet" href="aero.css" />
<style>
  /* ============= LOCKED PALETTE ============= */
  :root {
    --sky: url("img/wallpaper.png") center / cover no-repeat, linear-gradient(180deg, oklch(78% 0.10 215) 0%, oklch(88% 0.14 145) 100%);
    --sun: radial-gradient(circle, oklch(99% 0.02 215) 0%, oklch(94% 0.05 215 / 0) 60%);
    --icon-blue:   linear-gradient(135deg, oklch(92% 0.06 215), oklch(72% 0.13 220) 60%, oklch(48% 0.13 230));
    --icon-orange: linear-gradient(135deg, oklch(94% 0.10 145), oklch(78% 0.18 145) 55%, oklch(52% 0.16 150));
    --icon-green:  linear-gradient(135deg, oklch(94% 0.12 130), oklch(76% 0.18 140) 55%, oklch(50% 0.16 150));
    --icon-pink:   linear-gradient(135deg, oklch(88% 0.08 195), oklch(68% 0.13 200) 60%, oklch(45% 0.13 210));
    --icon-silver: linear-gradient(135deg, oklch(98% 0.005 220), oklch(85% 0.015 220) 60%, oklch(62% 0.03 225));
    --title-bar:   linear-gradient(to bottom, oklch(94% 0.05 195), oklch(78% 0.10 200) 50%, oklch(60% 0.12 215));
    --start-btn:   linear-gradient(to bottom, oklch(94% 0.10 145) 0%, oklch(75% 0.18 145) 48%, oklch(50% 0.16 150) 52%, oklch(68% 0.18 145) 100%);
    --start-border: oklch(40% 0.14 150);
  }
  .desk { position: fixed; inset: 0; overflow: hidden; background: var(--sky); background-size: cover; background-position: center; }
  .icons { position: absolute; left: 24px; top: 24px; display: grid; grid-template-columns: 1fr; gap: 18px; z-index: 10; }
  .icon { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 80px; cursor: pointer; text-align: center; }
  .icon .glyph {
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, oklch(88% 0.10 220), oklch(70% 0.14 230) 60%, oklch(50% 0.13 240));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -3px 6px rgba(40,80,140,0.4), 0 4px 14px rgba(40,80,140,0.35);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    position: relative;
  }
  .icon .glyph::before { content: ""; position: absolute; left: 4px; right: 4px; top: 3px; height: 40%; border-radius: 12px; background: linear-gradient(to bottom, rgba(255,255,255,0.75), transparent); }
  .icon .glyph.orange { background: linear-gradient(135deg, oklch(92% 0.08 70), oklch(75% 0.16 55) 60%, oklch(55% 0.15 35)); }
  .icon .glyph.green  { background: linear-gradient(135deg, oklch(90% 0.10 145), oklch(75% 0.15 145) 60%, oklch(50% 0.13 155)); }
  .icon .glyph.pink   { background: linear-gradient(135deg, oklch(90% 0.10 350), oklch(75% 0.16 350) 60%, oklch(55% 0.16 340)); }
  .icon .glyph.silver { background: linear-gradient(135deg, oklch(95% 0.01 240), oklch(78% 0.03 240) 60%, oklch(55% 0.04 240)); }
  .icon .label { font-size: 12px; color: white; text-shadow: 0 1px 3px rgba(0,0,0,0.6); font-weight: 500; }
  .icon:hover .glyph { transform: translateY(-2px) scale(1.04); transition: transform 200ms; }

  .win { position: absolute; min-width: 320px; z-index: 50; }
  .win .titlebar {
    height: 32px; padding: 0 12px; display: flex; align-items: center; gap: 8px;
    border-radius: 18px 18px 0 0;
    background: var(--title-bar);
    color: var(--title-fg, white); font-size: 13px; font-weight: 600; text-shadow: 0 1px 2px var(--title-shadow, rgba(0,0,0,0.3));
    cursor: grab; user-select: none;
    border-bottom: 1px solid rgba(0,0,0,0.15);
  }
  .win .titlebar .dots { display: flex; gap: 6px; margin-right: 8px; }
  .win .titlebar .dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.35); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,0.7); }
  .win .titlebar .dot.r { background: radial-gradient(circle at 35% 30%, oklch(85% 0.18 30), oklch(55% 0.18 30)); }
  .win .titlebar .dot.y { background: radial-gradient(circle at 35% 30%, oklch(95% 0.15 95), oklch(70% 0.18 80)); }
  .win .titlebar .dot.g { background: radial-gradient(circle at 35% 30%, oklch(90% 0.18 145), oklch(60% 0.18 150)); }
  .win .body { padding: 16px; font-size: 13px; line-height: 1.55; color: oklch(22% 0.04 240); border-radius: 0 0 18px 18px; }

  .taskbar {
    position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
    height: 56px; padding: 0 12px; display: flex; align-items: center; gap: 10px;
    border-radius: 28px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.55), rgba(180,210,240,0.45));
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.85);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 12px 36px rgba(40,80,140,0.3);
    z-index: 200;
  }
  .taskbar .start {
    height: 40px; padding: 0 18px 0 14px; display: inline-flex; align-items: center; gap: 8px;
    border-radius: 20px;
    background: var(--start-btn);
    color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.4); font-weight: 700; font-size: 13px;
    border: 1px solid var(--start-border); cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 3px 10px rgba(180,90,40,0.3);
  }
  .taskbar .sep { width: 1px; height: 32px; background: linear-gradient(to bottom, transparent, rgba(60,100,160,0.4), transparent); }
  .tray { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 12px; color: oklch(25% 0.05 240); }
  .clock { font-family: "Segoe UI", Tahoma; font-weight: 600; }

  /* SERVER ROW */
  .srv-row {
    display: flex; align-items: center; gap: 10px; padding: 7px 0;
    border-bottom: 1px dotted oklch(72% 0.05 220); font-size: 12px;
  }
  .srv-row:last-child { border-bottom: 0; }
  .srv-led {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
    animation: led-pulse 2.2s ease-in-out infinite;
  }
  .srv-led.ok   { background: radial-gradient(circle at 30% 30%, oklch(96% 0.18 145), oklch(60% 0.18 150)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 0 8px oklch(70% 0.18 145 / 0.7); }
  .srv-led.warn { background: radial-gradient(circle at 30% 30%, oklch(95% 0.16 85),  oklch(70% 0.18 75));  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 0 8px oklch(70% 0.18 80 / 0.6); }
  @keyframes led-pulse { 50% { opacity: 0.55; } }
  .srv-host { font-family: 'Courier New', monospace; flex: 1; color: oklch(25% 0.05 230); }
  .srv-meta { font-size: 10px; opacity: 0.7; }

  /* FILM DIARY ROW */
  .film-row {
    display: flex; gap: 10px; padding: 8px 0;
    border-bottom: 1px dotted oklch(72% 0.05 220);
  }
  .film-row:last-child { border-bottom: 0; }
  .film-poster {
    width: 38px; height: 56px; border-radius: 4px; flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 2px 6px rgba(40,80,140,0.2);
  }
  .film-meta { flex: 1; min-width: 0; font-size: 12px; line-height: 1.45; }
  .film-title { font-weight: 700; color: oklch(25% 0.06 230); font-size: 13px; }
  .film-year { font-weight: 400; opacity: 0.6; font-size: 11px; margin-left: 3px; }
  .film-rating { font-size: 11px; margin: 1px 0 2px; }
  .film-rating .star { color: oklch(80% 0.04 230); }
  .film-rating .star.on { color: oklch(72% 0.16 60); text-shadow: 0 0 4px oklch(80% 0.18 70 / 0.5); }
  .film-rating .star.half { background: linear-gradient(90deg, oklch(72% 0.16 60) 50%, oklch(80% 0.04 230) 50%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
  .film-note { font-size: 11px; opacity: 0.75; font-style: italic; }

  /* ===== BROWSER / ARTICLE READER ===== */
  .browser-toolbar {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.22);
    border-bottom: 1px solid rgba(200,220,240,0.45);
  }
  .browser-url-bar {
    flex: 1; height: 22px; padding: 0 10px;
    border-radius: 11px;
    background: rgba(255,255,255,0.62); border: 1px solid rgba(180,200,220,0.45);
    font: 400 11px 'IBM Plex Mono', monospace; color: oklch(30% 0.05 230);
    display: flex; align-items: center; overflow: hidden;
    white-space: nowrap; text-overflow: ellipsis;
  }
  .browser-bookmarks {
    display: flex; gap: 5px; padding: 5px 12px;
    background: rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(200,220,240,0.35);
    flex-wrap: wrap;
  }
  .browser-bm {
    height: 20px; padding: 0 10px;
    border-radius: 10px; border: 1px solid rgba(180,200,220,0.4);
    background: rgba(255,255,255,0.55);
    font: 600 10px 'Plus Jakarta Sans', sans-serif; color: oklch(30% 0.08 230);
    cursor: pointer; letter-spacing: 0.3px;
    transition: background 150ms, border-color 150ms;
  }
  .browser-bm:hover { background: rgba(255,255,255,0.88); }
  .browser-bm.active { background: rgba(255,255,255,0.92); border-color: oklch(55% 0.12 220); color: oklch(22% 0.10 230); }
  .browser-body {
    overflow-y: auto; max-height: 440px;
    padding: 16px 20px; border-radius: 0 0 18px 18px;
  }
  /* article typography inside the browser */
  .browser-body h1 { font-size: 17px; font-weight: 700; margin: 0 0 10px; color: oklch(24% 0.08 230); }
  .browser-body h2 { font-size: 14px; font-weight: 700; margin: 16px 0 6px; color: oklch(27% 0.08 230); border-bottom: 1px solid rgba(120,160,200,0.3); padding-bottom: 4px; }
  .browser-body h3 { font-size: 13px; font-weight: 600; margin: 12px 0 5px; color: oklch(29% 0.07 230); }
  .browser-body h4 { font-size: 12px; font-weight: 600; margin: 10px 0 4px; color: oklch(31% 0.06 230); font-style: italic; }
  .browser-body p { margin: 0 0 9px; font-size: 12px; line-height: 1.65; color: oklch(22% 0.04 240); }
  .browser-body ul, .browser-body ol { padding-left: 18px; margin: 0 0 9px; }
  .browser-body li { font-size: 12px; line-height: 1.7; color: oklch(22% 0.04 240); }
  .browser-body img { max-width: 160px; border-radius: 8px; margin: 6px 0; display: block; box-shadow: 0 2px 8px rgba(40,80,140,0.15); }
  .browser-body figure { margin: 8px 0; }
  .browser-body figcaption { font-size: 10px; opacity: 0.65; margin-top: 3px; }
  .browser-body a { color: oklch(42% 0.16 255); text-decoration: none; }
  .browser-body a:hover { text-decoration: underline; }
  .browser-body pre, .browser-body .body > p { font: 12px 'IBM Plex Mono', monospace; line-height: 1.65; white-space: pre-wrap; color: oklch(22% 0.04 240); }
  .browser-body center { text-align: center; }
  /* chrome theme overrides for browser */
  body[data-theme="chrome"] .browser-url-bar { background: rgba(195,202,215,0.5); border-color: oklch(50% 0.04 250); color: oklch(14% 0.03 250); }
  body[data-theme="chrome"] .browser-bookmarks { background: rgba(195,202,215,0.15); border-bottom-color: oklch(60% 0.03 250); }
  body[data-theme="chrome"] .browser-bm { font-family: 'Michroma', sans-serif; font-size: 8px; text-transform: uppercase; letter-spacing: 1px; border-color: oklch(55% 0.04 250); background: linear-gradient(to bottom, oklch(92% 0.01 240), oklch(78% 0.02 240)); color: oklch(18% 0.04 250); }
  body[data-theme="chrome"] .browser-bm:hover { background: linear-gradient(to bottom, oklch(97% 0.01 240), oklch(86% 0.02 240)); }
  body[data-theme="chrome"] .browser-bm.active { background: linear-gradient(to bottom, oklch(99% 0.01 240), oklch(90% 0.02 240)); border-color: oklch(40% 0.10 280); }
  body[data-theme="chrome"] .browser-body h1,
  body[data-theme="chrome"] .browser-body h2,
  body[data-theme="chrome"] .browser-body h3,
  body[data-theme="chrome"] .browser-body h4 { font-family: 'Michroma', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; }
  body[data-theme="chrome"] .browser-body p,
  body[data-theme="chrome"] .browser-body li { font-family: 'Space Grotesk', sans-serif; }
</style>
</head>
<body>
  <script>(function(){var t=localStorage.getItem('tyler.theme')||'aero';document.body.setAttribute('data-theme',t);})();</script>
  <div class="desk" id="desk">
    <div class="sun" style="background: var(--sun);"></div>
    <div class="lens-flare"></div>
    <div class="clouds" id="clouds"></div>

    <!-- Desktop icons -->
    <div class="icons">
      <div class="icon" data-open="about"><div class="glyph" style="background: var(--icon-blue)">πŸ‘€</div><div class="label">About Me</div></div>
      <div class="icon" data-open="now"><div class="glyph" style="background: var(--icon-orange)">β˜€</div><div class="label">Now.txt</div></div>
      <div class="icon" data-open="music"><div class="glyph" style="background: var(--icon-pink)">β™ͺ</div><div class="label">last.fm</div></div>
      <div class="icon" data-open="servers"><div class="glyph" style="background: var(--icon-green)">πŸ–₯</div><div class="label">My Servers</div></div>
      <div class="icon" data-open="podcast"><div class="glyph" style="background: var(--icon-silver)">πŸŽ™</div><div class="label">REEL MOUTH</div></div>
      <div class="icon" data-open="films"><div class="glyph" style="background: var(--icon-pink)">🎞</div><div class="label">Films</div></div>
      <div class="icon" data-open="guestbook"><div class="glyph" style="background: var(--icon-blue)">βœ‰</div><div class="label">Contact</div></div>
      <div class="icon" data-open="browser"><div class="glyph" style="background: var(--icon-silver)">🌐</div><div class="label">Articles</div></div>
    </div>

    <!-- WINDOWS -->
    <div class="win glass" id="w-about" style="left: 180px; top: 60px; width: 440px;">
      <div class="titlebar"><div class="dots"><div class="dot r no-drag" onclick="this.closest('.win').style.display='none'"></div><div class="dot y"></div><div class="dot g"></div></div>About Me β€” tyler.txt</div>
      <div class="body">
        <div style="display: flex; gap: 14px; margin-bottom: 12px;">
          <div class="photo" style="width: 110px; height: 130px; background: none; padding: 0;"><img src="/img/static/portrait.jpg" alt="portrait" style="width:100%;height:100%;object-fit:cover;border-radius:10px;" /></div>
          <div>
            <div style="font-size: 22px; font-weight: 700; line-height: 1.1; color: oklch(28% 0.10 240);">Tyler Hoang</div>
            <div style="font-size: 12px; opacity: 0.7; margin-top: 2px;">a.k.a. Thuy Β· Tiger Β· Train</div>
            <div style="margin-top: 10px; font-size: 12px; line-height: 1.6;">
              <div>🏦 banker @ Chase</div>
              <div>πŸŽ“ M.S. Financial Analytics, CSULB</div>
              <div>🎹 hobbyist jazz pianist</div>
              <div>🐧 linux sysadmin for fun</div>
              <div>πŸ’ married to my lovely wife Trinh</div>
            </div>
          </div>
        </div>
        <p style="margin: 0 0 8px;">Hi! I'm Tyler, 24, Vietnamese-American, and this little corner of the internet is where I keep the un-LinkedIn version of myself. Banking pays the bills, but tinkering with servers, chasing chord voicings, and cooking dishes is what I do for fun.</p>
        <p style="margin: 0;">Poke around β€” drag windows, open icons, click the bubbles. The professional site is <a class="aero-link" href="https://tylerhoang.xyz">elsewhere</a>; this one's all play.</p>
      </div>
    </div>

    <div class="win glass warm" id="w-now" style="left: 660px; top: 100px; width: 320px;">
      <div class="titlebar" style="background: var(--title-bar);"><div class="dots"><div class="dot r no-drag" onclick="this.closest('.win').style.display='none'"></div><div class="dot y"></div><div class="dot g"></div></div>Now.txt</div>
      <div class="body">
        <div style="font-size: 11px; opacity: 0.7; margin-bottom: 8px;">updated 3 days ago Β· from sunny long beach</div>
        <ul style="margin: 0; padding-left: 18px; line-height: 1.7;">
          <li>finishing my master's program (please end)</li>
          <li>studying for cfa level i</li>
          <li>relearning nardis by bill evans</li>
          <li>rebuilding my nas/homelab</li>
          <li>many many episodes behind on the REEL MOUTH backlog</li>
        </ul>
      </div>
    </div>

    <div class="win glass blue" id="w-music" style="left: 380px; top: 360px; width: 360px;">
      <div class="titlebar"><div class="dots"><div class="dot r no-drag" onclick="this.closest('.win').style.display='none'"></div><div class="dot y"></div><div class="dot g"></div></div>last.fm β€” trollshotlol</div>
      <div class="body" id="np-host">
        <div id="np-card"></div>
        <div style="margin-top: 14px; font-size: 11px; opacity: 0.75; text-transform: uppercase; letter-spacing: 1px;">recent</div>
        <div id="np-recent" style="margin-top: 6px; display: flex; flex-direction: column; gap: 6px; font-size: 12px;">
          <div style="display:flex;justify-content:space-between;"><span>Stella by Starlight Β· Bill Evans</span><span style="opacity:0.6">2m</span></div>
          <div style="display:flex;justify-content:space-between;"><span>Body and Soul Β· Coleman Hawkins</span><span style="opacity:0.6">9m</span></div>
          <div style="display:flex;justify-content:space-between;"><span>Flamingo Β· Kero Kero Bonito</span><span style="opacity:0.6">38m</span></div>
        </div>
      </div>
    </div>

    <!-- SERVERS -->
    <div class="win glass" id="w-servers" style="left: 740px; top: 390px; width: 380px; display: none;">
      <div class="titlebar" style="background: var(--title-bar);"><div class="dots"><div class="dot r no-drag" onclick="this.closest('.win').style.display='none'"></div><div class="dot y"></div><div class="dot g"></div></div>My Servers β€” uptime.sh</div>
      <div class="body">
        <div style="font-size: 11px; opacity: 0.7; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1.5px;">home lab status Β· auto-poll 30s</div>
        <div id="srv-list" style="display: flex; flex-direction: column; gap: 0;">
          <div class="srv-row"><div class="srv-led ok"></div><div class="srv-host">drive.tylerhoang.xyz</div><div class="srv-meta">Nextcloud</div></div>
          <div class="srv-row"><div class="srv-led ok"></div><div class="srv-host">up.tylerhoang.xyz</div><div class="srv-meta">Jenniesafe</div></div>
          <div class="srv-row"><div class="srv-led ok"></div><div class="srv-host">git.tylerhoang.xyz</div><div class="srv-meta">cgit</div></div>
          <div class="srv-row"><div class="srv-led ok"></div><div class="srv-host">tylerhoang.xyz</div><div class="srv-meta">portfolio</div></div>
          <div class="srv-row"><div class="srv-led ok"></div><div class="srv-host">fun.tylerhoang.xyz</div><div class="srv-meta">this site</div></div>
          <div class="srv-row"><div class="srv-led ok"></div><div class="srv-host">films.tylerhoang.xyz</div><div class="srv-meta">film diary</div></div>
          <div class="srv-row"><div class="srv-led warn"></div><div class="srv-host">reelmouth.tv</div><div class="srv-meta">on hiatus</div></div>
          <div class="srv-row"><div class="srv-led ok"></div><div class="srv-host">*.onion mirrors</div><div class="srv-meta">tor</div></div>
        </div>
        <div style="margin-top: 12px; padding-top: 10px; border-top: 1px dotted oklch(70% 0.05 220); font-size: 11px; opacity: 0.7; line-height: 1.6; font-family: 'Courier New', monospace;">
          host: beelink ser5 Β· debian 12<br/>
          4c / 8g / 1tb nvme · 🌱 carbon-neutral via vultr<br/>
          logs kept 30d. i basically never read them.
        </div>
      </div>
    </div>

    <!-- PODCAST -->
    <div class="win glass" id="w-podcast" style="left: 220px; top: 420px; width: 340px; display: none;">
      <div class="titlebar" style="background: var(--title-bar);"><div class="dots"><div class="dot r no-drag" onclick="this.closest('.win').style.display='none'"></div><div class="dot y"></div><div class="dot g"></div></div>REEL MOUTH β€” film pod</div>
      <div class="body">
        <div style="display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px;">
          <img id="pod-art" src="" alt="REEL MOUTH" style="width: 84px; height: 84px; border-radius: 12px; object-fit: cover; box-shadow: 0 3px 10px rgba(0,0,0,0.18); display: none;" />
          <div class="photo" id="pod-art-placeholder" style="width: 84px; height: 84px;"><span>πŸŽ™</span></div>
          <div style="font-size: 12px; line-height: 1.5;">
            <div style="font-size: 16px; font-weight: 700; color: oklch(28% 0.08 230); letter-spacing: -0.3px;">REEL MOUTH</div>
            <div style="opacity: 0.7; margin-bottom: 4px;">a film podcast Β· since 2022</div>
            <div>tyler + mark arguing about movies for ~90 minutes a week. We agree maybe 30% of the time.</div>
          </div>
        </div>
        <div style="font-size: 11px; opacity: 0.7; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px;">latest episodes</div>
        <div id="pod-episodes" style="display: flex; flex-direction: column; gap: 4px; font-size: 12px; line-height: 1.5;">
          <div style="opacity: 0.5; font-style: italic;">loading…</div>
        </div>
        <div style="margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap;">
          <a class="aqua sm" href="https://reelmouth.tv" style="text-decoration:none;">β–Ά reelmouth.tv</a>
          <a class="aqua sm" href="https://podcasts.apple.com/us/podcast/reel-mouth/id1709836497" style="text-decoration:none;">apple</a>
          <a class="aqua sm" href="https://open.spotify.com/show/4hu14vsr1fucEoV5MIrqCY" style="text-decoration:none;">spotify</a>
          <a class="aqua sm" href="https://anchor.fm/s/e8438774/podcast/rss" style="text-decoration:none;">rss</a>
        </div>
      </div>
    </div>

    <!-- GUESTBOOK / CONTACT -->
    <div class="win glass" id="w-guestbook" style="left: 540px; top: 200px; width: 360px; display: none;">
      <div class="titlebar" style="background: var(--title-bar);"><div class="dots"><div class="dot r no-drag" onclick="this.closest('.win').style.display='none'"></div><div class="dot y"></div><div class="dot g"></div></div>Contact β€” say hi.txt</div>
      <div class="body">
        <p style="margin: 0 0 10px;">No newsletter, no analytics. Just one email I actually read.</p>
        <div style="padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.85); font-family: 'Courier New', monospace; font-size: 13px; margin-bottom: 14px;">
          πŸ“§ <a class="aero-link" href="mailto:tyler@tylerhoang.xyz">tyler@tylerhoang.xyz</a>
        </div>
        <div style="font-size: 12px; line-height: 1.7;">
          <div>πŸ”‘ <a class="aero-link" href="/files/gpg-main.txt">GPG public key</a> β€” encrypt if you can</div>
          <div>πŸ™ <a class="aero-link" href="https://github.com/tyhoang">github.com/tyhoang</a></div>
          <div>πŸ“ <a class="aero-link" href="https://git.tylerhoang.xyz">git.tylerhoang.xyz</a></div>
          <div>🎞 <a class="aero-link" href="https://letterboxd.com/trainytrain">letterboxd.com/trainytrain</a></div>
        </div>
        <div style="margin-top: 14px; padding-top: 10px; border-top: 1px dotted oklch(70% 0.05 220);">
          <div style="font-size: 10px; opacity: 0.65; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px;">β€” leave a quick note β€”</div>
          <input id="gb-name" placeholder="your name" class="no-drag" style="width: 100%; padding: 7px 10px; margin-bottom: 6px; border-radius: 10px; border: 1px solid rgba(120,160,200,0.4); background: rgba(255,255,255,0.7); font: 12px 'Segoe UI', Tahoma, sans-serif; color: oklch(25% 0.05 230); box-sizing: border-box;" />
          <input id="gb-email" type="email" placeholder="your email" class="no-drag" style="width: 100%; padding: 7px 10px; margin-bottom: 6px; border-radius: 10px; border: 1px solid rgba(120,160,200,0.4); background: rgba(255,255,255,0.7); font: 12px 'Segoe UI', Tahoma, sans-serif; color: oklch(25% 0.05 230); box-sizing: border-box;" />
          <textarea id="gb-msg" placeholder="say hi…" class="no-drag" style="width: 100%; min-height: 56px; resize: vertical; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(120,160,200,0.4); background: rgba(255,255,255,0.7); font: 12px 'Segoe UI', Tahoma, sans-serif; color: oklch(25% 0.05 230); box-sizing: border-box;"></textarea>
          <div style="display:flex; justify-content: space-between; align-items: center; margin-top: 6px;">
            <span id="gb-status" style="font-size: 10px; opacity: 0.65; font-style: italic;">β€” takes ~2 days for a reply β€”</span>
            <button class="aqua sm no-drag" id="gb-send">send</button>
          </div>
        </div>
      </div>
    </div>

    <!-- FILMS -->
    <div class="win glass" id="w-films" style="left: 460px; top: 280px; width: 400px; display: none;">
      <div class="titlebar" style="background: var(--title-bar);"><div class="dots"><div class="dot r no-drag" onclick="this.closest('.win').style.display='none'"></div><div class="dot y"></div><div class="dot g"></div></div>Films β€” films.tylerhoang.xyz</div>
      <div class="body">
        <div style="display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px;">
          <div>
            <div style="font-size: 14px; font-weight: 700; color: oklch(28% 0.08 230);">my film diary</div>
            <div style="font-size: 11px; opacity: 0.7;">a self-hosted Letterboxd, sort of. since '16.</div>
          </div>
          <div id="films-stats" style="font-size: 10px; text-align: right; opacity: 0.7; line-height: 1.4;"></div>
        </div>
        <div style="font-size: 11px; opacity: 0.7; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px;">recent watches</div>
        <div id="films-list" style="display: flex; flex-direction: column;">
          <div class="film-row">
            <div class="film-poster" style="background: linear-gradient(135deg, oklch(70% 0.14 30), oklch(40% 0.10 280));"></div>
            <div class="film-meta">
              <div class="film-title">Chungking Express <span class="film-year">1994</span></div>
              <div class="film-rating"><span class="star on">β˜…</span><span class="star on">β˜…</span><span class="star on">β˜…</span><span class="star on">β˜…</span><span class="star on">β˜…</span><span style="opacity:0.6;margin-left:8px;">2d ago Β· rewatch #11</span></div>
              <div class="film-note">still cry at the pineapples. wong's best.</div>
            </div>
          </div>
          <div class="film-row">
            <div class="film-poster" style="background: linear-gradient(135deg, oklch(85% 0.10 80), oklch(55% 0.12 30));"></div>
            <div class="film-meta">
              <div class="film-title">The Scent of Green Papaya <span class="film-year">1993</span></div>
              <div class="film-rating"><span class="star on">β˜…</span><span class="star on">β˜…</span><span class="star on">β˜…</span><span class="star on">β˜…</span><span class="star">β˜…</span><span style="opacity:0.6;margin-left:8px;">5d ago</span></div>
              <div class="film-note">trinh picked it. so quiet you can hear yourself think.</div>
            </div>
          </div>
          <div class="film-row">
            <div class="film-poster" style="background: linear-gradient(135deg, oklch(45% 0.10 250), oklch(25% 0.06 260));"></div>
            <div class="film-meta">
              <div class="film-title">Stalker <span class="film-year">1979</span></div>
              <div class="film-rating"><span class="star on">β˜…</span><span class="star on">β˜…</span><span class="star on">β˜…</span><span class="star on">β˜…</span><span class="star">β˜…</span><span style="opacity:0.6;margin-left:8px;">1w ago</span></div>
              <div class="film-note">3 hours of soviet vibes. felt every minute, in a good way.</div>
            </div>
          </div>
          <div class="film-row">
            <div class="film-poster" style="background: linear-gradient(135deg, oklch(75% 0.16 35), oklch(50% 0.14 20));"></div>
            <div class="film-meta">
              <div class="film-title">Perfect Days <span class="film-year">2023</span></div>
              <div class="film-rating"><span class="star on">β˜…</span><span class="star on">β˜…</span><span class="star on">β˜…</span><span class="star on half">β˜…</span><span class="star">β˜…</span><span style="opacity:0.6;margin-left:8px;">2w ago</span></div>
              <div class="film-note">koji yakusho cleaning toilets is more cinema than most cinema.</div>
            </div>
          </div>
        </div>
        <div style="margin-top: 12px; display: flex; gap: 8px; align-items: center; justify-content: space-between;">
          <span style="font-size: 11px; opacity: 0.7;">also mirrored on <a class="aero-link" href="https://letterboxd.com/trainytrain">letterboxd</a></span>
          <a class="aqua sm" href="https://films.tylerhoang.xyz" style="text-decoration:none;">see all β†’</a>
        </div>
      </div>
    </div>

    <!-- BROWSER / ARTICLE READER -->
    <div class="win glass" id="w-browser" style="left: 200px; top: 80px; width: 580px; display: none;">
      <div class="titlebar">
        <div class="dots"><div class="dot r no-drag" onclick="this.closest('.win').style.display='none'"></div><div class="dot y"></div><div class="dot g"></div></div>
        <div class="browser-url-bar no-drag" id="browser-url">about:blank</div>
      </div>
      <div class="browser-bookmarks no-drag">
        <button class="browser-bm no-drag" data-src="articles/library.html" data-title="Personal Library">πŸ“š library</button>
        <button class="browser-bm no-drag" data-src="articles/music.html" data-title="Music List">🎡 music list</button>
        <button class="browser-bm no-drag" data-src="articles/software.html" data-title="Software &amp; Hardware">πŸ’» software</button>
      </div>
      <div class="body browser-body" id="browser-content">
        <div style="opacity:0.5;text-align:center;padding:40px 0;font-size:12px;">← click a bookmark to load an article</div>
      </div>
    </div>

    <!-- TASKBAR -->
    <div class="taskbar">
      <div class="start"><span style="font-size:16px;">❀</span> tyler</div>
      <div class="sep"></div>
      <div id="mt"></div>
      <div class="sep"></div>
      <div id="cc"></div>
      <div class="sep"></div>
      <div class="tray">
        <span class="clock" id="clock"></span>
        <span style="opacity:0.6">|</span>
        <span>πŸ“Ά ☁ 73Β°F</span>
      </div>
    </div>

    <audio id="bgm" loop preload="none"></audio>
  </div>

<script src="aero.js"></script>
<script>
  Aero.initTheme();
  const desk = document.getElementById('desk');
  Aero.makeClouds(document.getElementById('clouds'));
  Aero.spawnBubbles(desk, 24);
  Aero.sparkleCursor();
  Aero.mountThemeSwitcher();

  document.querySelectorAll('.win').forEach(w => {
    Aero.makeDraggable(w, w.querySelector('.titlebar'));
  });

  document.querySelectorAll('.icon').forEach(ic => {
    ic.addEventListener('dblclick', () => {
      const key = ic.dataset.open;
      const w = document.getElementById('w-' + key);
      if (w) { w.style.display = ''; w.style.zIndex = (++window.__zTop || (window.__zTop = 100)); }
    });
    ic.addEventListener('click', () => {
      const key = ic.dataset.open;
      const w = document.getElementById('w-' + key);
      if (w) { w.style.display = ''; w.style.zIndex = (++window.__zTop || (window.__zTop = 100)); }
    });
  });

  // podcast RSS
  let podLoaded = false;
  async function loadPodcast() {
    if (podLoaded) return;
    podLoaded = true;
    try {
      const { art, episodes } = await Aero.fetchReelMouthFeed(6);
      if (art) {
        const img = document.getElementById('pod-art');
        const ph = document.getElementById('pod-art-placeholder');
        img.src = art;
        img.style.display = '';
        if (ph) ph.style.display = 'none';
      }
      const container = document.getElementById('pod-episodes');
      if (episodes.length) {
        container.innerHTML = episodes.map(e =>
          `<div style="display:flex;justify-content:space-between;gap:8px;">
            <a href="${e.url}" target="_blank" rel="noopener" style="color:inherit;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;" title="${e.title}">${e.title.toLowerCase()}</a>
            <span style="opacity:0.6;flex-shrink:0;">${e.duration}</span>
          </div>`
        ).join('');
      } else {
        container.innerHTML = '<div style="opacity:0.5;font-style:italic;">no episodes found</div>';
      }
    } catch (err) {
      document.getElementById('pod-episodes').innerHTML = '<div style="opacity:0.5;font-style:italic;">couldn\'t load feed</div>';
    }
  }
  document.querySelectorAll('.icon[data-open="podcast"]').forEach(ic => {
    ic.addEventListener('click', loadPodcast);
    ic.addEventListener('dblclick', loadPodcast);
  });

  // music toggle + volume slider (theme-aware)
  const MUSIC = {
    aero:   { src: '/mus/bazaar-theme.mp3',                 label: 'β™ͺ a-dog β€” bazaar theme' },
    chrome: { src: '/mus/CoolMan - WhoIsUsingThisComputer_.mp3', label: 'β™ͺ coolman β€” who is using this computer?' },
  };
  document.getElementById('mt').innerHTML = Aero.musicToggleHTML();
  const mtDiv = document.getElementById('mt');
  const mtBtn = mtDiv.querySelector('.mt-btn');
  const mtLabel = mtDiv.querySelector('.mt-label');
  const bgm = document.getElementById('bgm');
  bgm.volume = 0.2;

  const vol = document.createElement('input');
  vol.type = 'range'; vol.min = '0'; vol.max = '1'; vol.step = '0.01'; vol.value = '0.2';
  vol.className = 'no-drag aero-vol';
  vol.title = 'volume';
  vol.style.cssText = 'width:70px;margin-left:6px;cursor:pointer;accent-color:oklch(55% 0.13 230);vertical-align:middle;';
  mtDiv.querySelector('.music-toggle').appendChild(vol);
  vol.addEventListener('input', () => { bgm.volume = Number(vol.value); });

  let musicOn = false;

  function applyMusicTheme() {
    const track = MUSIC[Aero.getTheme()] || MUSIC.aero;
    if (bgm.getAttribute('src') !== track.src) {
      const pos = bgm.currentTime;
      bgm.src = track.src;
      if (musicOn) { bgm.load(); bgm.currentTime = 0; bgm.play(); }
    }
    if (musicOn) mtLabel.textContent = (MUSIC[Aero.getTheme()] || MUSIC.aero).label;
  }

  mtBtn.addEventListener('click', () => {
    musicOn = !musicOn;
    if (musicOn) {
      const track = MUSIC[Aero.getTheme()] || MUSIC.aero;
      bgm.src = track.src;
      bgm.load();
      bgm.play();
      mtBtn.textContent = '❚❚';
      mtLabel.textContent = track.label;
      mtBtn.style.background = 'radial-gradient(circle at 30% 25%,white,oklch(75% 0.14 55) 60%,oklch(55% 0.15 35))';
    } else {
      bgm.pause();
      mtBtn.textContent = 'β–Ά';
      mtLabel.textContent = 'music off';
      mtBtn.style.background = 'radial-gradient(circle at 30% 25%,white,oklch(82% 0.12 220) 60%,oklch(50% 0.13 240))';
    }
  });

  // swap track live when theme changes while music is playing
  window.addEventListener('themechange', applyMusicTheme);

  // counter
  document.getElementById('cc').innerHTML = Aero.counterHTML(0, 'visitors');
  Aero.fetchVisitorCount()
    .then(n => {
      document.getElementById('cc').innerHTML = Aero.counterHTML(n, 'visitors');
    })
    .catch(() => {});

  // now playing
  document.getElementById('np-card').innerHTML = Aero.nowPlayingHTML(false);
  Aero.animateEq(document.getElementById('np-card'));

  // fetch last.fm
  Aero.fetchLastFm()
    .then(tracks => {
      if (tracks && tracks.length > 0) {
        document.getElementById('np-card').innerHTML = Aero.nowPlayingHTML(false, tracks[0]);
        Aero.animateEq(document.getElementById('np-card'));

        const recentDiv = document.getElementById('np-recent');
        if (tracks.length > 1) {
          recentDiv.innerHTML = tracks.slice(1, 4).map(t => {
            const ago = t.when ? Math.floor((Date.now() - t.when) / 60000) : 0;
            const timeStr = ago < 60 ? ago + 'm' : Math.floor(ago / 60) + 'h';
            return `<div style="display:flex;justify-content:space-between;"><span>${t.artist ? t.artist + ' β€” ' : ''}${t.name}</span><span style="opacity:0.6">${timeStr}</span></div>`;
          }).join('');
        }
      }
    })
    .catch(() => {});

  // clock
  function tick() {
    const d = new Date();
    document.getElementById('clock').textContent =
      d.toLocaleTimeString([], { hour: 'numeric', minute: '2-digit' });
  }
  tick(); setInterval(tick, 30000);

  // guestbook send (fake but cute)
  const gbBtn = document.getElementById('gb-send');
  if (gbBtn) {
    gbBtn.addEventListener('click', async () => {
      const name = document.getElementById('gb-name').value.trim();
      const email = document.getElementById('gb-email').value.trim();
      const message = document.getElementById('gb-msg').value.trim();
      const status = document.getElementById('gb-status');
      if (!name || !email || !message) { status.textContent = 'β€” fill in all three fields β€”'; return; }
      status.textContent = 'sending…';
      gbBtn.disabled = true;
      try {
        const res = await fetch('https://tylerhoang.xyz/api/contact', {
          method: 'POST',
          headers: { 'Content-Type': 'application/json' },
          body: JSON.stringify({ name, email, message }),
        });
        const data = await res.json().catch(() => ({}));
        if (res.ok) {
          status.textContent = 'βœ“ sent! talk soon';
          document.getElementById('gb-name').value = '';
          document.getElementById('gb-email').value = '';
          document.getElementById('gb-msg').value = '';
        } else {
          status.textContent = data.error || 'βœ— something went wrong';
        }
      } catch {
        status.textContent = 'βœ— could not reach server';
      } finally {
        gbBtn.disabled = false;
        setTimeout(() => { status.textContent = 'β€” takes ~2 days for a reply β€”'; }, 5000);
      }
    });
  }

  // browser article loader
  function browserLoad(src) {
    const content = document.getElementById('browser-content');
    const urlBar = document.getElementById('browser-url');
    document.querySelectorAll('.browser-bm').forEach(b => b.classList.toggle('active', b.dataset.src === src));
    urlBar.textContent = 'fun.tylerhoang.xyz/' + src;
    content.innerHTML = '<div style="opacity:0.5;text-align:center;padding:30px 0;font-size:12px;">loading…</div>';
    fetch(src)
      .then(r => { if (!r.ok) throw new Error(r.status); return r.text(); })
      .then(html => {
        const doc = new DOMParser().parseFromString(html, 'text/html');
        // strip stylesheets, scripts, old styles
        doc.querySelectorAll('link[rel="stylesheet"], style, script').forEach(el => el.remove());
        // strip Bootstrap navbar component (the nav bar itself, not the page wrapper)
        doc.querySelectorAll('div.navbar').forEach(el => el.remove());
        // strip blink tags, preserving inner HTML (colored spans etc.)
        doc.querySelectorAll('blink').forEach(el => {
          el.replaceWith(...Array.from(el.childNodes));
        });
        content.innerHTML = doc.body.innerHTML;
        content.scrollTop = 0;
      })
      .catch(() => {
        content.innerHTML = '<div style="opacity:0.5;text-align:center;padding:30px 0;font-size:12px;">couldn\'t load article</div>';
      });
  }
  document.querySelectorAll('.browser-bm').forEach(bm => {
    bm.addEventListener('click', () => browserLoad(bm.dataset.src));
  });

  // fetch films
  Aero.fetchFilms()
    .then(data => {
      try {
        const films = Array.isArray(data) ? data : (data.films || data.data || []);
        const filmsList = document.getElementById('films-list');

        if (films.length > 0) {
          const esc = s => String(s == null ? '' : s).replace(/[&<>"']/g, c => ({'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#39;'}[c]));
          filmsList.innerHTML = films.slice(0, 4).map((film) => {
            const rating = Math.max(0, Math.min(3, Number(film.stars ?? film.rating ?? 0)));
            const stars = Array.from({ length: 3 }, (_, i) =>
              i < rating ? '<span class="star on">β˜…</span>' : '<span class="star">β˜…</span>'
            ).join('');

            let when = '';
            const raw = film.date_watched || film.watchedAt;
            if (raw) {
              const d = new Date(raw);
              if (!isNaN(d)) {
                const days = Math.floor((Date.now() - d) / 86400000);
                if (days <= 0) when = 'today';
                else if (days === 1) when = '1d ago';
                else if (days < 7) when = days + 'd ago';
                else if (days < 30) when = Math.floor(days / 7) + 'w ago';
                else when = Math.floor(days / 30) + 'mo ago';
              } else {
                when = String(raw);
              }
            }

            const poster = film.poster_url || film.posterUrl;
            const posterStyle = poster
              ? `background: url('${esc(poster).replace(/'/g, '%27')}') center / cover;`
              : `background: linear-gradient(135deg, oklch(70% 0.13 220), oklch(40% 0.10 250));`;

            const sub = film.director ? esc(film.director) : (film.note ? esc(film.note) : '');

            return `
              <div class="film-row">
                <div class="film-poster" style="${posterStyle}"></div>
                <div class="film-meta">
                  <div class="film-title">${esc(film.title)} <span class="film-year">${esc(film.year || '')}</span></div>
                  <div class="film-rating">${stars}<span style="opacity:0.6;margin-left:8px;">${when}</span></div>
                  ${sub ? `<div class="film-note">${sub}</div>` : ''}
                </div>
              </div>
            `;
          }).join('');
        }

        const statsDiv = document.getElementById('films-stats');
        if (data.total !== undefined || data.count !== undefined) {
          const total = data.total || data.count;
          let statsHtml = `<div><strong style="color: oklch(28% 0.08 230); font-size: 13px;">${total}</strong> watched</div>`;
          if (data.thisYear !== undefined) {
            statsHtml += `<div><strong style="color: oklch(28% 0.08 230); font-size: 13px;">${data.thisYear}</strong> this year</div>`;
          }
          statsDiv.innerHTML = statsHtml;
        }
      } catch (err) {
        console.error('Films parse error:', err);
      }
    })
    .catch(err => {
      console.error('Films fetch error:', err);
    });
</script>
</body>
</html>