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
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>tyler.xyz Β· Aqua Desktop</title>
<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; }
.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; }
.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; }
</style>
</head>
<body>
<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>
<!-- 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 Trinh</div>
</div>
</div>
</div>
<p style="margin: 0 0 8px;">Hi! I'm 23, Vietnamese-American, and this little corner of the internet is where I keep the un-LinkedIn version of myself. Quant finance pays the bills, but tinkering with servers and chasing chord voicings 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 thesis (please end)</li>
<li>learning Cherokee by Bud Powell</li>
<li>rebuilding my Nextcloud on a new mini-PC</li>
<li>cooking through every <em>bΓΊn</em> recipe my mom texts me</li>
<li>3 movies 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 β tylertrains</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">Forgejo</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">cdn lag Β· 0.4s</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;">
<div class="photo" style="width: 84px; height: 84px;"><span>[ pod art ]</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 + 2 friends 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>
<!-- TODO: wire to podcast RSS via iTunes lookup API once we know the Apple Podcasts ID -->
<div style="display: flex; flex-direction: column; gap: 4px; font-size: 12px; line-height: 1.5;">
<div style="display:flex;justify-content:space-between;gap:8px;"><span>#84 β every wong kar-wai, ranked</span><span style="opacity:0.6;flex-shrink:0;">1:47</span></div>
<div style="display:flex;justify-content:space-between;gap:8px;"><span>#83 β paul thomas anderson cinematic universe</span><span style="opacity:0.6;flex-shrink:0;">1:32</span></div>
<div style="display:flex;justify-content:space-between;gap:8px;"><span>#82 β vietnamese cinema is real, actually</span><span style="opacity:0.6;flex-shrink:0;">1:58</span></div>
<div style="display:flex;justify-content:space-between;gap:8px;"><span>#81 β the criterion sale haul</span><span style="opacity:0.6;flex-shrink:0;">1:12</span></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="#" style="text-decoration:none;">apple</a>
<a class="aqua sm" href="#" style="text-decoration:none;">spotify</a>
<a class="aqua sm" href="#" 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>
<textarea id="gb-msg" placeholder="say hiβ¦" 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>
<!-- 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" src="/mus/bazaar-theme.mp3" loop preload="none"></audio>
</div>
<script src="aero.js"></script>
<script>
const desk = document.getElementById('desk');
Aero.makeClouds(document.getElementById('clouds'));
Aero.spawnBubbles(desk, 24);
Aero.sparkleCursor();
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)); }
});
});
// music toggle
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');
let musicOn = false;
mtBtn.addEventListener('click', () => {
musicOn = !musicOn;
if (musicOn) {
bgm.volume = 0.2;
bgm.play();
mtBtn.textContent = 'ββ';
mtLabel.textContent = 'βͺ a-dog β bazaar theme';
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))';
}
});
// 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', () => {
const msg = document.getElementById('gb-msg').value.trim();
const status = document.getElementById('gb-status');
if (!msg) { status.textContent = 'β type something first β'; return; }
status.textContent = 'β sent! talk soon';
document.getElementById('gb-msg').value = '';
setTimeout(() => { status.textContent = 'β takes ~2 days for a reply β'; }, 4000);
});
}
// 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 => ({'&':'&','<':'<','>':'>','"':'"',"'":'''}[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>
|