-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
719 lines (657 loc) · 40.3 KB
/
index.html
File metadata and controls
719 lines (657 loc) · 40.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
<!DOCTYPE html>
<html lang="en">
<head>
<script>
(function () { var t = localStorage.getItem('theme'); if (!t) { var m = document.cookie.match(new RegExp('(?:^|; )theme=([^;]*)')); t = m ? decodeURIComponent(m[1]) : null; } if (t === 'dark' || (!t && window.matchMedia('(prefers-color-scheme:dark)').matches)) document.documentElement.classList.add('dark'); })();
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Michael Qiu | A Development Enthusiast</title>
<link rel="shortcut icon" type="image/png" href="resources/favicon.png">
<!-- Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Tailwind Config -->
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
'klein-blue': '#002FA7',
'klein-blue-bright': '#0038c8',
'bg-dark': '#0a0a0a',
'bg-light': '#FAFAF6',
'deep-navy': '#020412',
'gold': '#D4A853',
'gold-light': '#E8C97A',
},
fontFamily: {
sans: ['Inter', 'sans-serif'],
display: ['Syncopate', 'sans-serif'],
editorial: ['Playfair Display', 'serif'],
},
fontSize: {
xs: '1.0rem',
sm: '1.4rem',
base: '1.7rem',
lg: '1.8rem',
xl: '2.2rem',
'2xl': '1.625rem',
'3xl': '2rem',
'4xl': '2.5rem',
'5xl': '3.5rem',
'6xl': '5rem',
'7xl': '8rem',
},
animation: {
'fade-in': 'fadeIn 0.5s ease-out forwards',
'pulse-slow': 'pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite',
'scroll-bounce': 'scrollBounce 2s ease-in-out infinite',
},
keyframes: {
fadeIn: {
'0%': { opacity: '0', transform: 'translateY(10px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
scrollBounce: {
'0%, 100%': { transform: 'translateY(0)' },
'50%': { transform: 'translateY(8px)' },
}
}
}
}
}
</script>
<!-- Vue 3 -->
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<!-- Three.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<!-- GSAP -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/ScrollTrigger.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/ScrollToPlugin.min.js"></script>
<!-- Lenis (Smooth Scroll) -->
<script src="https://unpkg.com/@studio-freight/lenis@1.0.42/dist/lenis.min.js"></script>
<!-- Lucide Icons -->
<script src="https://unpkg.com/lucide@latest"></script>
<script src="scripts/page-transition.js"></script>
<!-- Google Fonts -->
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&family=Syncopate:wght@400;700&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Noto+Serif+SC:wght@400;500;700;900&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="styles/main.css">
</head>
<body class="theme-base">
<!-- Preloader -->
<div id="preloader" style="position: fixed; inset: 0; z-index: 10002; background-color: #002FA7; touch-action: none;">
<div class="container h-full relative">
<div class="preloader-content">
<div class="preloader-counter">[ <span id="preloader-percent">00</span>% ]</div>
<svg class="preloader-text-svg" viewBox="0 0 320 80" xmlns="http://www.w3.org/2000/svg">
<defs>
<clipPath id="preloader-clip">
<rect x="0" y="0" width="0" height="80"></rect>
</clipPath>
</defs>
<!-- Background Outline -->
<text id="preloader-text-base" x="0" y="55" font-family="'Inter', -apple-system, BlinkMacSystemFont, sans-serif" font-weight="900" letter-spacing="-0.05em" class="preloader-text-base">loading</text>
<!-- Draw Stroke Layer -->
<text x="0" y="55" font-family="'Inter', -apple-system, BlinkMacSystemFont, sans-serif" font-weight="900" letter-spacing="-0.05em" class="preloader-text-stroke">loading</text>
<!-- Fill Layer -->
<text x="0" y="55" font-family="'Inter', -apple-system, BlinkMacSystemFont, sans-serif" font-weight="900" letter-spacing="-0.05em" class="preloader-text-fill" clip-path="url(#preloader-clip)">loading</text>
</svg>
</div>
</div>
</div>
<script>
(function() {
// Lock scroll while preloader is visible
document.body.style.overflow = 'hidden';
document.documentElement.style.overflow = 'hidden';
var preloaderEl = document.getElementById('preloader');
window.__blockScroll = function(e) { e.preventDefault(); e.stopPropagation(); };
preloaderEl.addEventListener('wheel', window.__blockScroll, { passive: false, capture: true });
preloaderEl.addEventListener('touchmove', window.__blockScroll, { passive: false, capture: true });
var RESOURCES = [
'resources/works/desktop-renamer.png',
'resources/works/desktop-renamer-full.png',
'resources/works/desktop-renamer-full-dark.png',
'resources/works/opt-clicker.png',
'resources/works/opt-clicker-full.png',
'resources/works/opt-clicker-full-dark.png',
'resources/works/space-switcher.png',
'resources/works/space-switcher-full.png',
'resources/works/space-switcher-full-dark.png',
'resources/photos/01.jpeg',
'resources/photos/02.jpeg',
'resources/photos/03.jpeg',
'resources/photos/04.jpeg',
'resources/photos/05.jpeg',
'resources/photos/06.jpeg',
'resources/photos/07.jpeg',
'resources/demo-reel.mp4'
];
var IMG_RE = /\.(png|jpe?g|gif|webp|svg|ico)(\?|$)/i;
var VID_RE = /\.(mp4|webm|mov)(\?|$)/i;
var fill = document.querySelector('#preloader-clip rect');
var strokeText = document.querySelector('.preloader-text-stroke');
var percentText = document.getElementById('preloader-percent');
var textEl = document.getElementById('preloader-text-base');
window.__resourcesReady = new Promise(function(resolve) {
var total = RESOURCES.length;
var loaded = 0;
var settled = false;
// Track actual loading progress
var targetProgress = 0;
var displayedProgress = 0;
// Start animation loop
var lastTime = Date.now();
var minDuration = 800; // minimum duration in ms for 0% to 100% (fast and responsive)
function frame() {
var now = Date.now();
var dt = now - lastTime;
lastTime = now;
// Target progress based on resources loaded
targetProgress = total > 0 ? (loaded / total) : 1;
if (displayedProgress < targetProgress || targetProgress === 1) {
// Advance displayed progress at a rate of 100% per minDuration
displayedProgress += dt / minDuration;
if (displayedProgress > targetProgress && targetProgress < 1) {
displayedProgress = targetProgress;
}
}
if (displayedProgress >= 1) {
displayedProgress = 1;
}
// Calculate dynamic text width using getBBox to map progress exactly to text letters
var textWidth = 220; // fallback
var textX = 0; // fallback
if (textEl) {
try {
var bbox = textEl.getBBox();
if (bbox && bbox.width > 0) {
textWidth = bbox.width;
textX = bbox.x;
}
} catch(e) {}
}
// Update DOM elements
if (fill) {
fill.setAttribute('x', textX);
fill.setAttribute('width', displayedProgress * textWidth);
}
if (strokeText) strokeText.style.strokeDashoffset = 600 - (displayedProgress * 600);
if (percentText) percentText.textContent = String(Math.floor(displayedProgress * 100)).padStart(2, '0');
if (displayedProgress >= 1 && loaded >= total) {
if (!settled) {
settled = true;
// Add transitions for the final complete state
if (fill) {
fill.style.transition = 'width 0.3s cubic-bezier(0.32, 0.72, 0, 1)';
fill.setAttribute('width', textWidth);
}
if (strokeText) strokeText.style.transition = 'stroke-dashoffset 0.3s cubic-bezier(0.32, 0.72, 0, 1)';
setTimeout(resolve, 300);
}
} else {
requestAnimationFrame(frame);
}
}
// Start the loop
requestAnimationFrame(frame);
// Resource loading listeners
function itemLoaded() {
loaded++;
}
// Set up a safety timeout in case loading hangs
var TIMEOUT = 10000;
setTimeout(function() {
loaded = total;
}, TIMEOUT);
if (total === 0) {
loaded = 0;
} else {
RESOURCES.forEach(function(url) {
if (IMG_RE.test(url)) {
var img = new Image();
img.onload = itemLoaded;
img.onerror = itemLoaded;
img.src = url;
} else if (VID_RE.test(url)) {
var vid = document.createElement('video');
vid.preload = 'auto';
var done = false;
function markDone() {
if (!done) { done = true; itemLoaded(); }
}
vid.onloadedmetadata = markDone;
vid.onerror = markDone;
vid.src = url;
vid.load();
setTimeout(markDone, 4000);
} else {
fetch(url).then(itemLoaded).catch(itemLoaded);
}
});
}
});
})();
</script>
<div id="app" class="relative min-h-screen">
<!-- Architectural Grid Lines -->
<div class="grid-lines">
<div v-for="i in 12" :key="i" class="grid-line"></div>
</div>
<!-- Navigation Dock -->
<div class="nav-dock hide-mobile" :class="{ 'nav-dock--visible': showNavDock }"
:style="{ bottom: navDockBottom }">
<a @click.prevent="scrollToTop" href="#" class="nav-dock__btn" :class="{ 'disabled': isSidebarOpen }">
<i data-lucide="arrow-up" class="w-5 h-5"></i>
</a>
<div class="nav-dock__label"><span class="nav-dock__label-text">{{ sectionLabels[activeSection] ||
activeSection }}</span></div>
<button @click="toggleTheme" class="nav-dock__btn"
:aria-label="themeMode === 'system' ? 'Switch to light mode' : themeMode === 'light' ? 'Switch to dark mode' : 'Switch to system theme'">
<span v-if="themeMode === 'dark'"><i data-lucide="moon" class="w-5 h-5"></i></span>
<span v-else-if="themeMode === 'light'"><i data-lucide="sun" class="w-5 h-5"></i></span>
<span v-else><i data-lucide="sun-moon" class="w-5 h-5"></i></span>
</button>
<button @click="toggleSidebar" class="nav-dock__btn" :class="{ 'active': isSidebarOpen }">
<i data-lucide="menu" class="w-5 h-5"></i>
</button>
</div>
<main class="transition-opacity duration-700" :class="{ 'opacity-10': isSidebarOpen }">
<!-- Hero Section -->
<section id="home" class="hero">
<!-- Gradient Background (dissolves in) -->
<div class="hero__bg"></div>
<!-- Particle Constellation Layer -->
<div id="particle-layer" class="hero__particles"></div>
<!-- Top Quicknav -->
<nav class="hero__quicknav hide-mobile">
<div class="hero__quicknav-logo">
<a href="/" aria-label="Michael Qiu Home" style="cursor:pointer!important">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1039.8 581.48" fill="white"
style="width:4.5rem;height:auto">
<path fill-rule="evenodd"
d="M634.68,10c0-5.5-2.48-6.24-5.51-1.65l-244.88,370.96c-3.03,4.59-5.51,12.85-5.51,18.35v173.83c0,5.5,4.5,10,10,10h235.9c5.5,0,10-4.5,10-10V10Z" />
<path fill-rule="evenodd"
d="M379.26,10c0-5.5-2.48-6.24-5.5-1.65L1.41,573.13c-3.03,4.59-1,8.35,4.5,8.35H241.47c5.5,0,12.48-3.76,15.5-8.35l116.77-177.13c3.03-4.59,5.5-12.85,5.5-18.35V10Z" />
<path
d="M1033.98,581.48c5.5,0,7.45-3.71,4.34-8.25l-237.54-346.18c-3.11-4.54-10.16-8.25-15.66-8.25h-109.7c-5.5,0-10,4.5-10,10v342.67c0,5.5,4.5,10,10,10h358.56Z" />
<path
d="M790.05,211.64c2.79,4.74,7.36,4.74,10.15,0L919.75,8.62C922.54,3.88,920.32,0,914.82,0h-239.41c-5.5,0-7.72,3.88-4.93,8.62l119.55,203.03Z" />
</svg>
</a>
</div>
<div class="hero__quicknav-cols">
<div class="hero__quicknav-col">
<div class="hero__quicknav-label">
{{ t('nav.page') }}
</div>
<a @click.prevent="handleNavClick('profile')" href="#profile"
class="hero__quicknav-link">{{ t('nav.persona') }}</a>
<a @click.prevent="handleNavClick('works')" href="#works"
class="hero__quicknav-link">{{ t('nav.projects') }}</a>
<a @click.prevent="handleNavClick('photos')" href="#photos"
class="hero__quicknav-link">{{ t('nav.story') }}</a>
</div>
<div class="hero__quicknav-col">
<div class="hero__quicknav-label">
{{ t('nav.projects') }}
</div>
<a href="https://desktoprenamer.mqiu.dev" target="_blank"
class="hero__quicknav-link">DesktopRenamer</a>
<a href="https://optclicker.mqiu.dev" target="_blank"
class="hero__quicknav-link">OptClicker</a>
<a href="https://spaceswitcher.mqiu.dev" target="_blank"
class="hero__quicknav-link">SpaceSwitcher</a>
</div>
<div class="hero__quicknav-col">
<div class="hero__quicknav-label">
{{ t('nav.links') }}
</div>
<a href="https://mqiu.dev/blog" target="_blank"
class="hero__quicknav-link">{{ t('nav.blog') }}</a>
<a href="https://github.com/gitmichaelqiu" target="_blank"
class="hero__quicknav-link">{{ t('nav.github') }}</a>
<a href="https://www.kaggle.com/michaelqiu0606" target="_blank"
class="hero__quicknav-link">{{ t('nav.kaggle') }}</a>
</div>
</div>
<div class="hero__quicknav-lang">
<button @click="setLang('en')" class="hero__quicknav-lang-btn hero__quicknav-lang-opt" :class="{ 'is-active': lang === 'en' }" aria-label="Switch to English">EN</button>
<span class="hero__quicknav-lang-sep">/</span>
<button @click="setLang('zh')" class="hero__quicknav-lang-btn hero__quicknav-lang-opt" :class="{ 'is-active': lang === 'zh' }" aria-label="切换到中文">中文</button>
</div>
</nav>
<!-- Hero Content -->
<div class="hero__content">
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1039.8 581.48"
class="hero__logo" fill="white">
<g>
<path fill-rule="evenodd"
d="M634.68,10c0-5.5-2.48-6.24-5.51-1.65l-244.88,370.96c-3.03,4.59-5.51,12.85-5.51,18.35v173.83c0,5.5,4.5,10,10,10h235.9c5.5,0,10-4.5,10-10V10Z" />
<path fill-rule="evenodd"
d="M379.26,10c0-5.5-2.48-6.24-5.5-1.65L1.41,573.13c-3.03,4.59-1,8.35,4.5,8.35H241.47c5.5,0,12.48-3.76,15.5-8.35l116.77-177.13c3.03-4.59,5.5-12.85,5.5-18.35V10Z" />
</g>
<path
d="M1033.98,581.48c5.5,0,7.45-3.71,4.34-8.25l-237.54-346.18c-3.11-4.54-10.16-8.25-15.66-8.25h-109.7c-5.5,0-10,4.5-10,10v342.67c0,5.5,4.5,10,10,10h358.56Z" />
<path
d="M790.05,211.64c2.79,4.74,7.36,4.74,10.15,0L919.75,8.62C922.54,3.88,920.32,0,914.82,0h-239.41c-5.5,0-7.72,3.88-4.93,8.62l119.55,203.03Z" />
</svg>
<div class="hero__text">
<div class="mask-wrap">
<h1 class="hero__name mask-inner">{{ t('hero.name') }}</h1>
</div>
<div class="mask-wrap">
<p class="hero__tagline mask-inner">{{ t('hero.tagline') }}</p>
</div>
</div>
</div>
</section>
<!-- Profile Section -->
<section id="profile" class="section-rk">
<div class="container">
<div class="content-grid mb-24">
<div class="content-label">
<svg class="section-label-icon" viewBox="0 0 14 14" fill="currentColor">
<path d="M0 0L14 14H0V0Z" />
</svg>{{ t('profile.label') }}
</div>
<div class="content-body">
<div class="mask-wrap">
<h2 class="heading-l mb-10 mask-inner" v-html="t('profile.heading')"></h2>
</div>
<div class="mask-wrap">
<p class="paragraph-l max-w-3xl mask-inner">{{ t('profile.body') }}</p>
</div>
</div>
</div>
<div class="logo-placeholder-wrap mt-16 overflow-hidden relative flex items-center justify-center"
style="background: radial-gradient(ellipse at 50% 30%, #001a5c 0%, #01071a 100%); min-height: 50vh;">
<!-- Subtle gold accent glow -->
<div class="absolute inset-0 opacity-20"
style="background: radial-gradient(circle at 50% 60%, var(--gold) 0%, transparent 60%);">
</div>
<!-- Animated grid pattern overlay -->
<div class="absolute inset-0 opacity-5"
style="background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.5) 2px, rgba(255,255,255,0.5) 4px), repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.5) 2px, rgba(255,255,255,0.5) 4px);">
</div>
<!-- Interactive Logo -->
<div class="logo-interactive relative z-10 cursor-pointer"
style="width: min(50%, 20rem);">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1039.8 581.48" fill="white" class="w-full h-auto drop-shadow-2xl" style="filter: drop-shadow(0 20px 60px rgba(0,0,0,0.3));">
<path fill-rule="evenodd"
d="M634.68,10c0-5.5-2.48-6.24-5.51-1.65l-244.88,370.96c-3.03,4.59-5.51,12.85-5.51,18.35v173.83c0,5.5,4.5,10,10,10h235.9c5.5,0,10-4.5,10-10V10Z" />
<path fill-rule="evenodd"
d="M379.26,10c0-5.5-2.48-6.24-5.5-1.65L1.41,573.13c-3.03,4.59-1,8.35,4.5,8.35H241.47c5.5,0,12.48-3.76,15.5-8.35l116.77-177.13c3.03-4.59,5.5-12.85,5.5-18.35V10Z" />
<path
d="M1033.98,581.48c5.5,0,7.45-3.71,4.34-8.25l-237.54-346.18c-3.11-4.54-10.16-8.25-15.66-8.25h-109.7c-5.5,0-10,4.5-10,10v342.67c0,5.5,4.5,10,10,10h358.56Z" />
<path
d="M790.05,211.64c2.79,4.74,7.36,4.74,10.15,0L919.75,8.62C922.54,3.88,920.32,0,914.82,0h-239.41c-5.5,0-7.72,3.88-4.93,8.62l119.55,203.03Z" />
</svg>
</div>
</div>
</div>
</section>
<!-- Demo Reel Section -->
<section id="demo" class="relative w-full" style="border-top: none;">
<div class="relative w-full overflow-hidden bg-deep-navy" style="aspect-ratio: 16/9;">
<video src="resources/demo-reel.mp4" autoplay muted loop playsinline preload="auto" class="absolute inset-0 w-full h-full object-cover"></video>
<!-- Soft bottom gradient -->
<div class="absolute bottom-0 left-0 right-0 pointer-events-none" style="height: 60%; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 12%, rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.03) 55%, transparent 100%);"></div>
<!-- Play button -->
<button type="button" @click.prevent="openVideoModal"
class="absolute bottom-6 right-6 z-10 flex items-center gap-2 px-5 py-3 rounded-full text-white text-sm font-medium transition-all duration-300 hover:scale-105"
style="background: rgba(0,0,0,0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.2); font-family: 'Inter', sans-serif; letter-spacing: 0.02em; cursor: pointer;">
<i data-lucide="play" class="w-4 h-4 fill-white"></i>
{{ t('demo.watchFull') }}
</button>
</div>
</section>
<!-- Video Modal Overlay -->
<transition name="video-modal">
<div v-if="showVideoModal" @click.self="closeVideoModal"
class="fixed inset-0 z-[10003] flex items-center justify-center p-8"
style="background: rgba(0,0,0,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);">
<button @click="closeVideoModal"
class="absolute top-6 right-6 z-10 w-12 h-12 flex items-center justify-center rounded-full text-white transition-all duration-300 hover:scale-110"
style="background: rgba(255,255,255,0.1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.2); cursor: pointer;"
aria-label="Close video">
<i data-lucide="x" class="w-6 h-6"></i>
</button>
<div class="video-modal-content relative">
<video src="resources/demo-reel.mp4" autoplay controls playsinline preload="auto"
class="max-w-[90vw] max-h-[85vh] rounded-lg block"
style="box-shadow: 0 25px 80px rgba(0,0,0,0.5); background: transparent;"
ref="modalVideo"></video>
</div>
</div>
</transition>
<!-- Works Section -->
<section id="works" class="section-rk" style="border-top: none;">
<div class="container">
<div class="content-grid mb-16">
<div class="content-label">
<svg class="section-label-icon" viewBox="0 0 14 14" fill="currentColor">
<path d="M0 0L14 14H0V0Z" />
</svg>{{ t('works.label') }}
</div>
<div class="content-body">
<div class="mask-wrap">
<h2 class="heading-l mb-10 mask-inner" v-html="t('works.heading')"></h2>
</div>
<div class="mask-wrap">
<p class="paragraph-l max-w-3xl mask-inner">{{ t('works.body') }}</p>
</div>
</div>
</div>
<div class="works-grid">
<div v-for="(app, i) in apps" :key="app.id" class="work-card group"
data-hover-follow>
<div class="flex justify-between items-start mb-8">
<span class="text-klein-blue !text-2xl md:!text-4xl font-light"
style="font-family:'Inter',sans-serif;letter-spacing:-0.04em;">0{{i+1}}</span>
<h3 class="heading-l">{{ app.name }}</h3>
</div>
<div class="screenshot-parallax mb-8">
<img :src="isDark ? app.fullImgDark : app.fullImg" :alt="app.name + ' screenshot'"
class="screenshot-parallax-img">
</div>
<p class="text-base opacity-100 mb-8 max-w-md"
style="font-family:'Inter',sans-serif;font-weight:400;line-height:1.5;letter-spacing: -0.04em;">
{{ t('works.' + app.id) }}</p>
<div class="work-meta border-t-0 pt-0">
<a :href="app.link" target="_blank" data-btn class="ml-auto"
style="font-size: 1.2rem; letter-spacing: 0em;">
<div data-btn-bg></div>
<div data-btn-inner :data-text="t('works.viewProject')">
<span data-btn-text>{{ t('works.viewProject') }}</span>
</div>
</a>
</div>
<img :src="app.img" data-hover-follower class="card-subimg">
</div>
</div>
</div>
</section>
<!-- Photos Section -->
<section id="photos" class="section-rk">
<div class="container">
<div class="content-grid mb-24">
<div class="content-label">
<svg class="section-label-icon" viewBox="0 0 14 14" fill="currentColor">
<path d="M0 0L14 14H0V0Z" />
</svg>{{ t('photos.label') }}
</div>
<div class="content-body">
<div class="mask-wrap">
<h2 class="heading-l mb-10 mask-inner" v-html="t('photos.heading')"></h2>
</div>
<div class="mask-wrap">
<p class="paragraph-l max-w-3xl mask-inner" v-html="t('photos.body')"></p>
</div>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-12 gap-8">
<div v-for="(photo, i) in photos" :key="photo.title"
data-hover-follow
class="parallax-wrap group border border-black/5 dark:border-white/10"
style="overflow: visible;"
:class="{
'col-span-1 md:col-span-4 aspect-[3/4]': true,
'md:mt-6': i % 3 === 1,
'md:mt-12': i % 3 === 2
}">
<div class="overflow-hidden relative w-full h-full">
<img :src="photo.url" :alt="photo.title" class="w-full h-full object-cover parallax-img">
<img :src="photo.url" :alt="photo.title + ' hover'" class="hover-subimg"
style="width: 32%; height: auto; aspect-ratio: 3/4; top: 10%; right: 10%;">
</div>
<span data-hover-follower class="photo-flag">{{ photo.flag }}</span>
<div
class="absolute inset-0 bg-black/40 opacity-0 group-hover:opacity-100 transition-opacity flex flex-col justify-end p-8">
<p class="text-sm text-white mb-2"
style="font-family:'Inter',sans-serif;letter-spacing:-0.04em;">{{ lang === 'zh' ? photo.dateZh : photo.date }}</p>
<h4 class="font-bold text-lg text-white" style="letter-spacing: -0.02em;">{{ lang === 'zh' ? photo.titleZh : photo.title }}</h4>
</div>
</div>
<a href="photos/"
class="parallax-wrap group border border-black/5 dark:border-white/10 col-span-1 md:col-span-4 aspect-[3/4] md:mt-6 flex items-center justify-center bg-klein-blue hover:bg-[#0038c8] transition-colors">
<div class="text-center text-white">
<span class="block font-bold text-lg mb-3"
style="font-family:'Inter',sans-serif;">{{ t('photos.exploreAll') }}</span>
<i data-lucide="arrow-up-right"
class="w-8 h-8 mx-auto opacity-70 group-hover:translate-x-1 group-hover:-translate-y-1 transition-transform duration-300"></i>
</div>
</a>
</div>
</div>
</section>
<!-- Liaison / Connect Section -->
<section id="connect" class="section-rk">
<div class="container">
<div class="content-grid mb-16">
<div class="content-label">
<svg class="section-label-icon" viewBox="0 0 14 14" fill="currentColor">
<path d="M0 0L14 14H0V0Z" />
</svg>{{ t('connect.label') }}
</div>
<div class="content-body">
<div class="mask-wrap">
<h2 class="heading-l mb-16 mask-inner" v-html="t('connect.heading')"></h2>
</div>
<div class="flex flex-col">
<a v-for="link in [
{ key: 'blog', url: 'https://mqiu.dev/blog' },
{ key: 'github', url: 'https://github.com/gitmichaelqiu' },
{ key: 'kaggle', url: 'https://www.kaggle.com/michaelqiu0606' }
]" :key="link.key" :href="link.url" target="_blank"
class="relative flex items-center gap-8 py-10 border-b border-black/5 dark:border-white/10 group overflow-hidden">
<i data-lucide="arrow-up-right"
style="stroke-width: 1.6px;"
class="absolute left-0 w-20 h-20 text-klein-blue opacity-0 -translate-x-full group-hover:opacity-100 group-hover:translate-x-0 transition-all duration-500"></i>
<div class="group-hover:translate-x-20 transition-transform duration-500">
<span class="text-xl font-semibold block" style="font-family:'Inter',sans-serif;">{{ t('nav.' + link.key) }}</span>
<span class="text-sm opacity-50 block" style="font-family:'Inter',sans-serif;font-weight:400;">{{ t('connect.' + link.key + 'Desc') }}</span>
</div>
<i data-lucide="arrow-up-right"
style="stroke-width: 1.6px;"
class="w-20 h-20 opacity-20 group-hover:opacity-0 group-hover:translate-x-4 transition-all duration-500 ml-auto flex-shrink-0"></i>
</a>
</div>
</div>
</div>
</div>
</section>
</main>
<footer class="w-full bg-klein-blue text-white pt-16 pb-8"
style="background-color: var(--klein-blue); color: var(--pure-white);">
<div class="container">
<div class="grid grid-cols-1 md:grid-cols-12 gap-8 mb-16">
<!-- Brand -->
<div class="md:col-span-5">
<a href="#" @click.prevent="scrollToTop" class="inline-block mb-3" aria-label="Back to top">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1039.8 581.48" fill="white"
style="width:2.5rem;height:auto">
<path fill-rule="evenodd"
d="M634.68,10c0-5.5-2.48-6.24-5.51-1.65l-244.88,370.96c-3.03,4.59-5.51,12.85-5.51,18.35v173.83c0,5.5,4.5,10,10,10h235.9c5.5,0,10-4.5,10-10V10Z" />
<path fill-rule="evenodd"
d="M379.26,10c0-5.5-2.48-6.24-5.5-1.65L1.41,573.13c-3.03,4.59-1,8.35,4.5,8.35H241.47c5.5,0,12.48-3.76,15.5-8.35l116.77-177.13c3.03-4.59,5.5-12.85,5.5-18.35V10Z" />
<path
d="M1033.98,581.48c5.5,0,7.45-3.71,4.34-8.25l-237.54-346.18c-3.11-4.54-10.16-8.25-15.66-8.25h-109.7c-5.5,0-10,4.5-10,10v342.67c0,5.5,4.5,10,10,10h358.56Z" />
<path
d="M790.05,211.64c2.79,4.74,7.36,4.74,10.15,0L919.75,8.62C922.54,3.88,920.32,0,914.82,0h-239.41c-5.5,0-7.72,3.88-4.93,8.62l119.55,203.03Z" />
</svg>
</a>
<p class="text-xs text-white/70" style="font-family:'Inter',sans-serif;">{{ t('footer.copyright') }}</p>
</div>
<!-- Navigation -->
<div class="md:col-span-2">
<p class="footer-nav-label" style="margin-bottom:0.35rem;">{{ t('footer.page') }}</p>
<div class="flex flex-col gap-1">
<a @click.prevent="handleNavClick('profile')" href="#profile" class="footer-nav-link">{{ t('nav.persona') }}</a>
<a @click.prevent="handleNavClick('works')" href="#works" class="footer-nav-link">{{ t('nav.projects') }}</a>
<a @click.prevent="handleNavClick('photos')" href="#photos" class="footer-nav-link">{{ t('nav.story') }}</a>
</div>
</div>
<!-- Projects -->
<div class="md:col-span-2">
<p class="footer-nav-label" style="margin-bottom:0.35rem;">{{ t('footer.projects') }}</p>
<div class="flex flex-col gap-1">
<a href="https://desktoprenamer.mqiu.dev" target="_blank" class="footer-nav-link">DesktopRenamer</a>
<a href="https://optclicker.mqiu.dev" target="_blank" class="footer-nav-link">OptClicker</a>
<a href="https://spaceswitcher.mqiu.dev" target="_blank" class="footer-nav-link">SpaceSwitcher</a>
</div>
</div>
<!-- Links -->
<div class="md:col-span-3">
<p class="footer-nav-label" style="margin-bottom:0.35rem;">{{ t('footer.links') }}</p>
<div class="flex flex-col gap-1">
<a href="https://mqiu.dev/blog" target="_blank" class="footer-nav-link">{{ t('nav.blog') }}</a>
<a href="https://github.com/gitmichaelqiu" target="_blank" class="footer-nav-link">{{ t('nav.github') }}</a>
<a href="https://www.kaggle.com/michaelqiu0606" target="_blank" class="footer-nav-link">{{ t('nav.kaggle') }}</a>
</div>
</div>
</div>
<div class="border-t border-white/10 pt-8 mt-8">
<div class="text-[clamp(2.5rem,8vw,10rem)] font-black tracking-tighter leading-none">
mqiu.dev
</div>
</div>
</div>
</footer>
<!-- Sidebar -->
<transition name="fade">
<aside v-if="isSidebarOpen" class="fixed inset-0 sidebar-rk z-[10001] flex flex-col">
<div class="container flex-1 flex flex-col justify-center">
<div class="flex flex-col" style="gap: 1rem;">
<a v-for="link in [
{id: 'home', key: 'overview'},
{id: 'profile', key: 'persona'},
{id: 'works', key: 'projects'},
{id: 'photos', key: 'story'},
{id: 'connect', key: 'links'}
]" :key="link.id" :href="'#'+link.id" @click.prevent="handleNavClick(link.id)"
class="sidebar-link">
<div class="mask-wrap">
<span class="mask-inner">{{ t('sidebar.' + link.key) }}</span>
</div>
</a>
<a href="https://mqiu.dev/blog" target="_blank" class="sidebar-link group">
<div class="mask-wrap">
<span class="mask-inner">{{ t('sidebar.blog') }}<i data-lucide="arrow-up-right" class="sidebar-ext-icon"></i></span>
</div>
</a>
</div>
</div>
</aside>
</transition>
</div>
<script src="scripts/particles.js"></script>
<script src="scripts/project3d.js"></script>
<script src="scripts/i18n.js"></script>
<script src="scripts/app.js?v=3"></script>
</body>
</html>