Repository navigation
Expand file tree
/
Copy pathpoetry.html
More file actions
564 lines (500 loc) · 19.9 KB
/
Copy pathpoetry.html
File metadata and controls
564 lines (500 loc) · 19.9 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Scrapbook Wall | Daniel Han</title>
<link rel="icon" type="image/png" href="images/f1zzyicon.png">
<link rel="stylesheet" href="styles.css">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet">
<style>
/* CUSTOM HANDWRITING FONT */
@font-face {
font-family: 'F1zzyFont';
src: url('fonts/f1zzyfont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
body { overflow: hidden; background: #0a0a0a; margin: 0; }
.section-title {
position: absolute;
top: 100px;
left: 5%;
opacity: 1;
z-index: 10;
pointer-events: none;
}
.board {
position: relative;
width: 85vw;
height: 65vh;
margin: 220px auto 0;
background-color: #bfa071;
background-image: url('images/cork-texture.jpg');
background-size: cover;
background-repeat: no-repeat;
background-position: center;
border: 18px solid #6f4e37;
border-image: linear-gradient(to bottom right, #8b5a2b, #6f4e37, #4e3621) 1;
box-shadow: 0 15px 35px rgba(0,0,0,0.6), inset 0 0 100px rgba(0,0,0,0.3);
border-radius: 4px;
}
.polaroid {
position: absolute;
background-color: #f1e7d0;
background-image:
linear-gradient(rgba(0,0,0,0.01) 1px, transparent 1px),
linear-gradient(90deg, rgba(0,0,0,0.01) 1px, transparent 1px),
linear-gradient(25deg, transparent 65%, rgba(181, 153, 110, 0.1) 75%, transparent 85%),
radial-gradient(circle at 20% 30%, rgba(204, 178, 140, 0.15) 0%, transparent 40%),
radial-gradient(circle at 70% 80%, rgba(190, 160, 120, 0.1) 0%, transparent 50%);
background-size: 100% 100%;
padding: 12px 12px 55px 12px;
box-shadow: 2px 5px 15px rgba(0,0,0,0.4);
width: 200px;
cursor: grab;
user-select: none;
transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1),
height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
box-shadow 0.3s;
top: -500px;
}
.polaroid:active { cursor: grabbing; box-shadow: 5px 10px 25px rgba(0,0,0,0.5); }
.polaroid-photo {
background: #fff;
padding: 15px;
height: 180px;
display: block;
overflow: hidden;
border: 1px solid #ddd;
position: relative;
transition: background 1.2s ease, border-color 1.2s ease, height 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 1.2s ease;
}
.develop-prompt {
font-family: 'F1zzyFont', cursive;
color: #bbb;
font-size: 3.6rem;
transition: opacity 0.5s ease;
pointer-events: none;
text-align: center;
line-height: 0.6;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
}
.develop-prompt span { display: block; }
.polaroid.expanded .develop-prompt { display: none; }
/* =========================================================
PHOTOREALISTIC 3D ANCIENT SCROLL (EXPANDED STATE)
========================================================= */
/* Hide the modern tape and caption when it turns into a scroll */
.polaroid.expanded .polaroid-caption,
.polaroid.expanded .tape {
display: none !important;
}
/* Master Container - Acts as the invisible anchor for the 3D rolls */
.polaroid.expanded {
top: 50% !important;
left: 50% !important;
transform: translate(-50%, -50%) rotate(0deg) !important;
width: 80vw !important;
max-width: 900px !important;
height: 80vh !important;
z-index: 10000 !important;
cursor: default;
/* Strip all Polaroid formatting */
background: transparent !important;
background-image: none !important;
box-shadow: none !important;
padding: 0 !important;
/* Global drop shadow for the entire scroll structure */
filter: drop-shadow(0 40px 50px rgba(0,0,0,0.8));
}
/* TOP 3D ROLL - Simulates the cylindrical top of the scroll */
.polaroid.expanded::before {
content: "";
position: absolute;
top: -15px;
left: -1.5%;
width: 103%;
height: 55px;
/* Complex 3D cylinder lighting */
background: linear-gradient(to bottom, #d4a76a 0%, #f4d39f 20%, #c49250 55%, #6a421b 90%, #301a05 100%);
border-radius: 8px / 25px;
box-shadow: inset 0 0 15px rgba(60, 30, 5, 0.5), 0 15px 25px rgba(0,0,0,0.7);
z-index: 10;
pointer-events: none;
}
/* BOTTOM 3D ROLL - Simulates the cylindrical bottom of the scroll */
.polaroid.expanded::after {
content: "";
position: absolute;
bottom: -15px;
left: -1.5%;
width: 103%;
height: 55px;
/* Reverse 3D cylinder lighting */
background: linear-gradient(to top, #d4a76a 0%, #f4d39f 20%, #c49250 55%, #6a421b 90%, #301a05 100%);
border-radius: 8px / 25px;
box-shadow: inset 0 0 15px rgba(60, 30, 5, 0.5), 0 -15px 25px rgba(0,0,0,0.7);
z-index: 10;
pointer-events: none;
}
/* THE PARCHMENT SHEET */
.polaroid.expanded .polaroid-photo {
height: 100% !important;
max-height: none !important;
overflow-y: auto;
overflow-x: hidden;
padding: 70px 80px !important; /* Forces text inside the scroll boundaries */
background-color: #e4c28f !important; /* Deep aged yellow/brown base */
background-image:
/* Heavy dark edge burns */
linear-gradient(to right, rgba(50,20,0,0.8) 0%, rgba(50,20,0,0.1) 6%, transparent 15%, transparent 85%, rgba(50,20,0,0.1) 94%, rgba(50,20,0,0.8) 100%),
/* Deep grunge blotches and coffee rings */
radial-gradient(ellipse at 10% 20%, rgba(90, 45, 10, 0.3) 0%, transparent 45%),
radial-gradient(ellipse at 85% 85%, rgba(70, 35, 5, 0.4) 0%, transparent 55%),
radial-gradient(circle at 45% 50%, rgba(120, 70, 20, 0.2) 0%, transparent 75%),
radial-gradient(circle at 75% 30%, rgba(50, 20, 0, 0.2) 0%, transparent 35%),
/* Inline SVG Fractal Noise for hyper-realistic paper grain/fibers */
url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.3"/></svg>') !important;
border: none !important;
/* Ragged physically torn paper edges (Left and Right) */
clip-path: polygon(
0.5% 0%, 99.5% 0%,
100% 5%, 99.2% 12%, 100% 22%, 99.5% 35%, 100% 45%, 99.1% 58%, 100% 68%, 99.4% 78%, 100% 88%, 99.6% 96%, 100% 100%,
0% 100%,
0.4% 96%, 0% 88%, 0.6% 78%, 0% 68%, 0.9% 58%, 0% 45%, 0.5% 35%, 0% 22%, 0.8% 12%, 0% 5%
);
}
/* Custom Scrollbar for the Parchment */
.polaroid.expanded .polaroid-photo::-webkit-scrollbar { width: 8px; }
.polaroid.expanded .polaroid-photo::-webkit-scrollbar-track { background: transparent; }
.polaroid.expanded .polaroid-photo::-webkit-scrollbar-thumb { background: rgba(80, 40, 10, 0.5); border-radius: 4px; }
.polaroid.expanded .polaroid-photo::-webkit-scrollbar-thumb:hover { background: rgba(80, 40, 10, 0.8); }
/* REALISTIC INK TEXT */
.poem-body {
color: #fff;
line-height: 0.5;
font-size: 2rem;
font-family: 'F1zzyFont', sans-serif;
white-space: pre-line;
margin: 0;
opacity: 0;
filter: blur(5px);
transition: opacity 1.5s ease 0.3s, filter 1.5s ease 0.3s, color 1.5s ease, text-shadow 1.5s ease;
}
.polaroid.expanded .poem-body {
opacity: 1;
filter: blur(0);
font-size: 5.5rem;
/* Deep charcoal black ink with a slight bleed/blur into the paper */
color: #111;
text-shadow: 0px 0px 3px rgba(0,0,0,0.4);
}
.polaroid.closing .poem-body {
transition: none !important;
opacity: 0 !important;
}
/* POLAROID BASE CAPTION */
.polaroid-caption {
position: absolute;
bottom: 8px;
left: 0;
width: 100%;
padding: 0 10px;
box-sizing: border-box;
color: #4a3721;
font-size: 2.5rem;
line-height: 1.1;
font-family: 'F1zzyFont', cursive;
text-align: center;
opacity: 0.85;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.close-btn {
position: absolute;
top: -10px;
right: -10px;
background: #222;
color: white;
border-radius: 50%;
width: 25px;
height: 25px;
display: flex;
align-items: center;
justify-content: center;
font-family: sans-serif;
font-size: 14px;
font-weight: bold;
cursor: pointer;
opacity: 0;
z-index: 1001;
transition: opacity 0.3s;
}
.polaroid.expanded .close-btn { opacity: 1; }
.tape {
position: absolute;
top: -10px;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 20px;
background: rgba(200, 200, 200, 0.3);
backdrop-filter: blur(1px);
z-index: 5;
}
.font-badge {
font-family: 'F1zzyFont', cursive;
font-size: 3.2rem;
color: #d4a76a; /* Warm gold to match the corkboard / scroll elements */
margin-left: 20px;
vertical-align: middle;
text-transform: none;
letter-spacing: normal;
opacity: 0.9;
font-weight: normal;
}
</style>
</head>
<body>
<div class="grid-bg"></div>
<nav class="nav">
<div class="nav-container">
<a href="/"><div class="nav-logo nav-glitch" data-text="> Daniel Han">> Daniel Han</div></a>
<div class="nav-links">
<a href="/#about" class="hacker-text" data-value="About">About</a>
<a href="/#experience" class="hacker-text" data-value="Experience">Experience</a>
<a href="/#education" class="hacker-text" data-value="Education">Education</a>
<a href="/blog" class="hacker-text" data-value="Blog">Blog</a>
<a href="/misc" class="hacker-text" data-value="Misc">Misc</a>
<a href="/#contact" class="hacker-text" data-value="Contact">Contact</a>
</div>
</div>
</nav>
<h2 class="section-title hacker-text" data-value="> Unfiltered Thoughts">> Unfiltered Thoughts <span class="font-badge">(ft. my own handwriting font)</span></h2>
<div class="board" id="board">
<div class="polaroid">
<div class="tape"></div>
<div class="close-btn">×</div>
<div class="polaroid-photo">
<span class="develop-prompt"><span>click to</span><span>develop</span></span>
<p class="poem-body">Dormant,
but alert for
a rude awakening:
to either save
lives in danger
or save those at risk
of failing an exam.
</p>
</div>
<div class="polaroid-caption">PULL IN CASE OF Exam</div>
</div>
<div class="polaroid">
<div class="tape"></div>
<div class="close-btn">×</div>
<div class="polaroid-photo">
<span class="develop-prompt"><span>click to</span><span>develop</span></span>
<p class="poem-body">Laptop out and about,
productivity is just out of
reach for the Dulce Blueberry Matcha
and sip the carefully crafted
flavors, curated first for the gaze--
taste a mere after-thought.
</p>
</div>
<div class="polaroid-caption">Matcha Over Matter</div>
</div>
<div class="polaroid">
<div class="tape"></div>
<div class="close-btn">×</div>
<div class="polaroid-photo">
<span class="develop-prompt"><span>click to</span><span>develop</span></span>
<p class="poem-body">Gripping the wheel
with my left hand, speeding
over a pothole on the I-5
with my brain scrambling for
the car keys in the ignition, clashing loudly
against my Joshua Tree keychain and
“Close to You” blaring on the AUX.
LA drives me to the edge
of sanity
with all the noise.
Maybe it’s time for another road trip
to Joshua Tree -- alone this time,
sunroof and mouth wide open
in awe of the silent stars above.
</p>
</div>
<div class="polaroid-caption">Stargazing In Silence</div>
</div>
<div class="polaroid">
<div class="tape"></div>
<div class="close-btn">×</div>
<div class="polaroid-photo">
<span class="develop-prompt"><span>click to</span><span>develop</span></span>
<p class="poem-body">Our time may seem like a catastrophe;
Nevertheless, thou shalt maintain thy calm
For the best choice is e’er tranquility.
Rolling ashore, fell prophets from the sea,
The waves chant all night long a wicked psalm
(When time may seem like a catastrophe).
Let’s put our best foot forward and be free,
Share what we have (rich giving paupers alm),
Hope the best choice be e’er tranquility.
Can devilish obliteration be
Transformed into creating, earthly malm,
Though time may seem like a catastrophe?
Perhaps the bitter cold may weaken me--
But cracked hands soften with the use of balm,
So the best choice is e’er tranquility.
Our rhetoric’s become incendiary,
Exploding anger and blood -- verbal napalm;
Our time may seem like a catastrophe,
But the best choice is e’er tranquility.
</p>
</div>
<div class="polaroid-caption">Construction From Destruction</div>
</div>
<div class="polaroid">
<div class="tape"></div>
<div class="close-btn">×</div>
<div class="polaroid-photo">
<span class="develop-prompt"><span>click to</span><span>develop</span></span>
<p class="poem-body">Eyes lock,
I love
the bottomless ethereal
seas of your Iris,
Jess, Sophia? -- You seem like a
Joy to be with and look at
how delusional I am, to be
envisioning a glimpse of what
we could be and see
together.
Drifting off and losing spark,
our eyes mutually agree
with an abrupt but definitive break.
</p>
</div>
<div class="polaroid-caption">Eye Love</div>
</div>
<div class="polaroid">
<div class="tape"></div>
<div class="close-btn">×</div>
<div class="polaroid-photo">
<span class="develop-prompt"><span>click to</span><span>develop</span></span>
<p class="poem-body">Frail fingers, frozen,
wet, and betrayed
by the Weather App
that I so meticulously checked
before stepping out
which solemnly promised me otherwise.
</p>
</div>
<div class="polaroid-caption">Faulty Forecast</div>
</div>
<div class="polaroid">
<div class="tape"></div>
<div class="close-btn">×</div>
<div class="polaroid-photo">
<span class="develop-prompt"><span>click to</span><span>develop</span></span>
<p class="poem-body">Is it wrong of me to assume that
you’re a true believer
in retail therapy,
with Sephora, Zara, and fashion companies
I would have to Google,
brands probably well beyond my tax bracket,
consuming your tabs
and echoed by the ever-growing numbers
in your shopping carts,
items destined to be worn once or twice
before being banished
to the neglected back
of your already overfilled closet,
and the way you scroll--
so casual, so mindless?
This is not your first endeavor
and most definitely won’t be your last.
It’s been 46 minutes and 23 seconds,
but 0 items have been purchased, yet.
I don’t buy it.
I guess you don’t, either.
</p>
</div>
<div class="polaroid-caption">The Voyeur</div>
</div>
</div>
<script>
let highestZ = 10;
let isAnyExpanded = false;
const board = document.getElementById('board');
document.querySelectorAll('.polaroid').forEach((el) => {
const boardWidth = board.offsetWidth;
const boardHeight = board.offsetHeight;
const maxSpawnX = Math.max(0, boardWidth - 240);
const maxSpawnY = Math.max(0, boardHeight - 280);
const x = Math.max(10, Math.random() * maxSpawnX);
const y = Math.max(10, Math.random() * maxSpawnY);
const r = (Math.random() * 20) - 10;
el.style.left = `${x}px`;
el.style.top = `${y}px`;
el.style.transform = `rotate(${r}deg)`;
el.dataset.rot = r;
let isDragging = false;
let startX, startY, initX, initY;
let moveDist = 0;
el.addEventListener('mousedown', (e) => {
if(el.classList.contains('expanded')) return;
isDragging = true;
moveDist = 0;
el.style.zIndex = ++highestZ;
startX = e.clientX;
startY = e.clientY;
initX = el.offsetLeft;
initY = el.offsetTop;
el.style.transition = "none";
});
document.addEventListener('mousemove', (e) => {
if(!isDragging) return;
const dx = e.clientX - startX;
const dy = e.clientY - startY;
moveDist = Math.sqrt(dx*dx + dy*dy);
let newX = initX + dx;
let newY = initY + dy;
const currentBoardWidth = board.offsetWidth;
const currentBoardHeight = board.offsetHeight;
const maxDragX = currentBoardWidth - el.offsetWidth;
const maxDragY = currentBoardHeight - el.offsetHeight;
newX = Math.max(0, Math.min(newX, maxDragX));
newY = Math.max(0, Math.min(newY, maxDragY));
el.style.left = `${newX}px`;
el.style.top = `${newY}px`;
});
document.addEventListener('mouseup', () => {
if(!isDragging) return;
isDragging = false;
el.style.transition = "width 0.6s cubic-bezier(0.4, 0, 0.2, 1), height 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s";
if(moveDist < 5 && !isAnyExpanded) {
el.classList.add('expanded');
isAnyExpanded = true;
}
});
el.querySelector('.close-btn').addEventListener('click', (e) => {
e.stopPropagation();
el.classList.add('closing');
el.classList.remove('expanded');
el.style.transform = `rotate(${el.dataset.rot}deg)`;
setTimeout(() => {
el.classList.remove('closing');
isAnyExpanded = false;
}, 600);
});
});
</script>
</body>
</html>