-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
821 lines (730 loc) · 28.9 KB
/
index.html
File metadata and controls
821 lines (730 loc) · 28.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
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>David Sun</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
:root {
--bg-primary: #0a0a0b;
--bg-secondary: #111113;
--bg-card: #16161a;
--bg-card-hover: #1c1c21;
--text-primary: #e8e8e8;
--text-secondary: #888893;
--text-muted: #5a5a65;
--accent: #64ffda;
--accent-dim: #64ffda33;
--accent-secondary: #7c3aed;
--border: #2a2a32;
--gradient-1: linear-gradient(135deg, #64ffda 0%, #7c3aed 100%);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
font-family: 'Space Grotesk', sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
line-height: 1.6;
overflow-x: hidden;
}
::selection {
background: var(--accent);
color: var(--bg-primary);
}
/* Noise overlay */
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
opacity: 0.03;
pointer-events: none;
z-index: 1000;
}
/* Grid background */
.grid-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image:
linear-gradient(var(--border) 1px, transparent 1px),
linear-gradient(90deg, var(--border) 1px, transparent 1px);
background-size: 60px 60px;
opacity: 0.15;
pointer-events: none;
z-index: -1;
}
.container {
max-width: 1100px;
margin: 0 auto;
padding: 0 24px;
}
/* Navigation */
nav {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 100;
padding: 20px 0;
background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 100%);
}
nav .container {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-family: 'JetBrains Mono', monospace;
font-size: 1.1rem;
font-weight: 600;
color: var(--accent);
text-decoration: none;
letter-spacing: -0.5px;
}
.logo::before {
content: '> ';
opacity: 0.5;
}
.nav-links {
display: flex;
gap: 32px;
list-style: none;
}
.nav-links a {
font-family: 'JetBrains Mono', monospace;
font-size: 0.85rem;
color: var(--text-secondary);
text-decoration: none;
transition: color 0.2s ease;
position: relative;
}
.nav-links a:hover {
color: var(--accent);
}
.nav-links a::before {
content: '//';
margin-right: 4px;
opacity: 0.4;
}
/* Hero Section */
.hero {
min-height: 100vh;
display: flex;
align-items: center;
padding-top: 80px;
}
.hero-content {
max-width: 700px;
}
.hero-tag {
font-family: 'JetBrains Mono', monospace;
font-size: 0.9rem;
color: var(--accent);
margin-bottom: 20px;
opacity: 0;
animation: fadeInUp 0.6s ease forwards;
}
.hero h1 {
font-size: clamp(2.8rem, 7vw, 4.5rem);
font-weight: 700;
line-height: 1.1;
margin-bottom: 24px;
letter-spacing: -2px;
opacity: 0;
animation: fadeInUp 0.6s ease 0.1s forwards;
}
.hero h1 .gradient {
background: var(--gradient-1);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero-description {
font-size: 1.15rem;
color: var(--text-secondary);
max-width: 540px;
margin-bottom: 40px;
opacity: 0;
animation: fadeInUp 0.6s ease 0.2s forwards;
}
.hero-cta {
display: flex;
gap: 16px;
flex-wrap: wrap;
opacity: 0;
animation: fadeInUp 0.6s ease 0.3s forwards;
}
.btn {
font-family: 'JetBrains Mono', monospace;
font-size: 0.85rem;
padding: 14px 28px;
border-radius: 6px;
text-decoration: none;
transition: all 0.2s ease;
cursor: pointer;
border: none;
}
.btn-primary {
background: var(--accent);
color: var(--bg-primary);
font-weight: 600;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 30px var(--accent-dim);
}
.btn-secondary {
background: transparent;
color: var(--text-primary);
border: 1px solid var(--border);
}
.btn-secondary:hover {
border-color: var(--accent);
color: var(--accent);
}
/* Section Styles */
section {
padding: 120px 0;
}
.section-header {
margin-bottom: 60px;
}
.section-label {
font-family: 'JetBrains Mono', monospace;
font-size: 0.85rem;
color: var(--accent);
margin-bottom: 12px;
display: flex;
align-items: center;
gap: 12px;
}
.section-label::after {
content: '';
flex: 1;
height: 1px;
background: var(--border);
max-width: 300px;
}
.section-title {
font-size: 2.2rem;
font-weight: 600;
letter-spacing: -1px;
}
/* Projects */
.projects-grid {
display: grid;
gap: 24px;
}
.project-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 12px;
padding: 32px;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.project-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: var(--gradient-1);
transform: scaleX(0);
transform-origin: left;
transition: transform 0.3s ease;
}
.project-card:hover {
background: var(--bg-card-hover);
transform: translateY(-4px);
border-color: var(--accent-dim);
}
.project-card:hover::before {
transform: scaleX(1);
}
.project-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 16px;
}
.project-icon {
width: 48px;
height: 48px;
background: var(--accent-dim);
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.4rem;
}
.project-links {
display: flex;
gap: 12px;
}
.project-links a {
color: var(--text-muted);
transition: color 0.2s ease;
}
.project-links a:hover {
color: var(--accent);
}
.project-title {
font-size: 1.3rem;
font-weight: 600;
margin-bottom: 12px;
letter-spacing: -0.5px;
}
.project-description {
color: var(--text-secondary);
font-size: 0.95rem;
margin-bottom: 20px;
line-height: 1.7;
}
.project-tech {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.tech-tag {
font-family: 'JetBrains Mono', monospace;
font-size: 0.75rem;
padding: 6px 12px;
background: var(--bg-secondary);
border-radius: 4px;
color: var(--text-secondary);
}
/* About */
.about-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 60px;
align-items: start;
}
.about-text p {
color: var(--text-secondary);
margin-bottom: 20px;
font-size: 1.05rem;
}
.about-text p:last-child {
margin-bottom: 0;
}
.about-text strong {
color: var(--text-primary);
}
.skills-section h3 {
font-family: 'JetBrains Mono', monospace;
font-size: 0.9rem;
color: var(--accent);
margin-bottom: 20px;
}
.skills-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}
.skill-item {
font-family: 'JetBrains Mono', monospace;
font-size: 0.85rem;
color: var(--text-secondary);
padding: 10px 14px;
background: var(--bg-card);
border-radius: 6px;
border: 1px solid var(--border);
transition: all 0.2s ease;
}
.skill-item:hover {
border-color: var(--accent-dim);
color: var(--text-primary);
}
.skill-item::before {
content: '→ ';
color: var(--accent);
opacity: 0.6;
}
/* Contact */
.contact-content {
text-align: center;
max-width: 600px;
margin: 0 auto;
}
.contact-content p {
color: var(--text-secondary);
font-size: 1.1rem;
margin-bottom: 40px;
}
.contact-links {
display: flex;
justify-content: center;
gap: 24px;
flex-wrap: wrap;
}
.contact-link {
display: flex;
align-items: center;
gap: 10px;
padding: 16px 28px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text-primary);
text-decoration: none;
font-family: 'JetBrains Mono', monospace;
font-size: 0.9rem;
transition: all 0.2s ease;
}
.contact-link:hover {
border-color: var(--accent);
color: var(--accent);
transform: translateY(-2px);
}
.contact-link svg {
width: 20px;
height: 20px;
}
/* Footer */
footer {
padding: 40px 0;
border-top: 1px solid var(--border);
}
footer .container {
display: flex;
justify-content: space-between;
align-items: center;
}
footer p {
font-family: 'JetBrains Mono', monospace;
font-size: 0.8rem;
color: var(--text-muted);
}
/* Animations */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Scroll animations */
.fade-in {
opacity: 0;
transform: translateY(30px);
transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
opacity: 1;
transform: translateY(0);
}
/* Responsive */
@media (max-width: 768px) {
.nav-links {
display: none;
}
.about-content {
grid-template-columns: 1fr;
gap: 40px;
}
.hero h1 {
font-size: 2.4rem;
}
section {
padding: 80px 0;
}
.project-card {
padding: 24px;
}
.contact-links {
flex-direction: column;
align-items: stretch;
}
footer .container {
flex-direction: column;
gap: 16px;
text-align: center;
}
}
</style>
</head>
<body>
<div class="grid-bg"></div>
<nav>
<div class="container">
<a href="#" class="logo">david_sun</a>
<ul class="nav-links">
<li><a href="#projects">projects</a></li>
<li><a href="#about">about</a></li>
<li><a href="#contact">contact</a></li>
</ul>
</div>
</nav>
<section class="hero">
<div class="container">
<div class="hero-content">
<p class="hero-tag">// Computer Science @ UCLA</p>
<h1>Hi, I'm <span class="gradient">David Sun</span></h1>
<p class="hero-description">
I build things that work. Currently exploring systems programming,
computer graphics, and machine learning. Background in competitive
math and physics, with a love for elegant solutions to hard problems.
</p>
<div class="hero-cta">
<a href="#projects" class="btn btn-primary">View Projects</a>
<a href="#contact" class="btn btn-secondary">Get in Touch</a>
</div>
</div>
</div>
</section>
<section id="projects">
<div class="container">
<div class="section-header fade-in">
<p class="section-label">01 // Projects</p>
<h2 class="section-title">Things I've Built</h2>
</div>
<div class="projects-grid">
<div class="project-card fade-in">
<div class="project-header">
<div class="project-icon">👻</div>
<div class="project-links">
<a href="https://github.com/024dsun/3d-pacman" target="_blank" rel="noopener noreferrer">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>
</svg>
</a>
</div>
</div>
<h3 class="project-title">3D Horror Pac-Man</h3>
<p class="project-description">
A horror-themed reimagining of the classic arcade game built for my computer graphics final.
Features first-person gameplay, A* pathfinding for ghost AI, real-time collision detection,
dynamic lighting, and shadow mapping for atmospheric tension.
</p>
<div class="project-tech">
<span class="tech-tag">THREE.js</span>
<span class="tech-tag">JavaScript</span>
<span class="tech-tag">A* Algorithm</span>
<span class="tech-tag">WebGL</span>
</div>
</div>
<div class="project-card fade-in">
<div class="project-header">
<div class="project-icon">🔍</div>
<div class="project-links">
<a href="https://github.com/zsun404512/lost-and-found" target="_blank" rel="noopener noreferrer">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>
</svg>
</a>
</div>
</div>
<h3 class="project-title">UCLA Lost and Found</h3>
<p class="project-description">
A full-stack web application helping UCLA students report and find lost items on campus.
Built with a React frontend and Node.js backend, featuring a comprehensive testing suite
including unit tests, integration tests, and end-to-end testing.
</p>
<div class="project-tech">
<span class="tech-tag">React</span>
<span class="tech-tag">Node.js</span>
<span class="tech-tag">Vitest</span>
<span class="tech-tag">Playwright</span>
<span class="tech-tag">Cucumber</span>
</div>
</div>
<div class="project-card fade-in">
<div class="project-header">
<div class="project-icon">⚡</div>
<div class="project-links">
<!-- TODO: Add GitHub link when repo is initialized -->
<a href="#" class="github-placeholder" title="GitHub link coming soon">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>
</svg>
</a>
</div>
</div>
<h3 class="project-title">Branch Predictor Optimization</h3>
<p class="project-description">
Optimized a perceptron-based branch predictor for computer architecture coursework.
Achieved 3.403 MPKI through systematic improvements including hash function
optimization and extended history lengths up to 256 bits using dual-variable approaches.
</p>
<div class="project-tech">
<span class="tech-tag">C++</span>
<span class="tech-tag">Computer Architecture</span>
<span class="tech-tag">Perceptron</span>
</div>
</div>
<div class="project-card fade-in">
<div class="project-header">
<div class="project-icon">🏠</div>
<div class="project-links">
<a href="https://github.com/024dsun/housing-price-predictor" target="_blank" rel="noopener noreferrer">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>
</svg>
</a>
</div>
</div>
<h3 class="project-title">Housing Price Predictor</h3>
<p class="project-description">
Machine learning algorithms implemented from scratch in C++ for predicting housing prices.
A deep dive into ML fundamentals without relying on external libraries, focusing on
understanding the underlying mathematics and optimization techniques.
</p>
<div class="project-tech">
<span class="tech-tag">C++</span>
<span class="tech-tag">Machine Learning</span>
<span class="tech-tag">Linear Algebra</span>
</div>
</div>
</div>
</div>
</section>
<section id="about">
<div class="container">
<div class="section-header fade-in">
<p class="section-label">02 // About</p>
<h2 class="section-title">A Bit About Me</h2>
</div>
<div class="about-content">
<div class="about-text fade-in">
<p>
I'm a <strong>Computer Science student at UCLA</strong> with a background in
competitive math and physics. I'm drawn to problems that sit at the
intersection of theory and implementation.
</p>
<p>
Currently, I'm diving into <strong>machine learning</strong> and
<strong>interpretability research</strong>, trying to understand not just
how models work, but why they work. I enjoy the process of building things
from the ground up—whether that's a 3D game engine, a branch predictor,
or ML algorithms in pure C++.
</p>
<p>
When I'm not coding, you'll find me grinding competitive programming problems,
biking long distances, or spending time with my girlfriend.
</p>
</div>
<div class="skills-section fade-in">
<h3>// Tech I Work With</h3>
<div class="skills-grid">
<div class="skill-item">C++</div>
<div class="skill-item">Python</div>
<div class="skill-item">JavaScript</div>
<div class="skill-item">React</div>
<div class="skill-item">Node.js</div>
<div class="skill-item">THREE.js</div>
<div class="skill-item">PyTorch</div>
<div class="skill-item">Git</div>
</div>
</div>
</div>
</div>
</section>
<section id="contact">
<div class="container">
<div class="section-header fade-in" style="text-align: center;">
<p class="section-label" style="justify-content: center;">03 // Contact</p>
<h2 class="section-title">Let's Connect</h2>
</div>
<div class="contact-content fade-in">
<p>
I'm always interested in hearing about new opportunities, interesting projects,
or just chatting about tech. Feel free to reach out!
</p>
<div class="contact-links">
<a href="024dsun@gmail.com" class="contact-link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path>
<polyline points="22,6 12,13 2,6"></polyline>
</svg>
Email
</a>
<a href="https://github.com/024dsun" target="_blank" rel="noopener noreferrer" class="contact-link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>
</svg>
GitHub
</a>
<a href="https://linkedin.com/in/024dsun" target="_blank" rel="noopener noreferrer" class="contact-link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path>
<rect x="2" y="9" width="4" height="12"></rect>
<circle cx="4" cy="4" r="2"></circle>
</svg>
LinkedIn
</a>
<a href="/resume.pdf" class="contact-link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
<polyline points="14 2 14 8 20 8"></polyline>
<line x1="16" y1="13" x2="8" y2="13"></line>
<line x1="16" y1="17" x2="8" y2="17"></line>
<polyline points="10 9 9 9 8 9"></polyline>
</svg>
Resume
</a>
</div>
</div>
</div>
</section>
<footer>
<div class="container">
<p>Built by David Sun</p>
<p>© 2025</p>
</div>
</footer>
<script>
// Scroll-triggered animations
const observerOptions = {
root: null,
rootMargin: '0px',
threshold: 0.1
};
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('visible');
}
});
}, observerOptions);
document.querySelectorAll('.fade-in').forEach(el => {
observer.observe(el);
});
// Smooth scroll for nav links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) {
target.scrollIntoView({
behavior: 'smooth',
block: 'start'
});
}
});
});
</script>
</body>
</html>