-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
677 lines (581 loc) · 20.3 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2">
<meta name="website" content="Evolutionary Biology">
<title> YUYING LIN ⛰️🌊 </title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="icon" href="./images/lion_1f981.png" type="image/png">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Saira+Semi+Condensed:500,600,700" rel="stylesheet">
<style>
/* General Styles */
body {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
background-color: #f1f1f1;
margin: 0;
transition: opacity 0.5s ease; /* Animation for fade-in effect */
}
.type, .typed {
color: black !important;
}
.container {
width: 100%;
height: 100%;
display: inline-flex;
justify-content: center;
align-items: center;
font-style: Courier;
color: #616A6B;
}
.container h2 {
font-size: 20px;
color: #999;
font-weight: 500;
letter-spacing: 3px;
top: 65%;
position: absolute;
}
/* Top Section */
.top-section {
display: flex;
align-items: center;
justify-content: center;
position: absolute;
top: 38%;
left: 50%;
transform: translate(-50%, -30%);
}
.mydiv {
width: 150px;
aspect-ratio: 1 / 1;
border-radius: 50%;
overflow: hidden;
margin-right: 0px;
}
.mydiv img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center top;
}
h3 {
text-align: left;
font-size: 18px;
line-height: 1.6;
}
/* Image Gallery */
.image-gallery {
display: flex;
position: absolute; /* Use absolute positioning */
flex-direction: column; /* Stack items vertically */
justify-content: center; /* Center items vertically inside the container */
align-items: flex-end; /* Align the items to the right */
gap: 20px; /* Spacing between items */
width: auto; /* Ensure gallery width adjusts to content */
padding-bottom: 50px;
top: 48%; /* Move the gallery to the vertical center */
right: 25px; /* Align the gallery to the right edge */
transform: translateY(-48%); /* Center the gallery vertically */
}
.image-gallery .gallery-item {
width: 30px;
height: 30px;
border-radius: 50%;
overflow: hidden;
position: relative; /* Ensure items are positioned in the flex container */
}
.image-gallery img {
width: 100%;
height: 100%;
object-fit: cover;
/* No need to apply top: 80% here */
}
/* Scroll-Down Icon */
.scroll-down-div {
position: absolute;
bottom: 20px;
width: 100%;
color: #4d4d4d;
cursor: pointer;
height: 32px;
font-size: 28px;
text-align: center;
}
.pulse-icon {
animation: pulse 1.5s infinite;
}
@keyframes pulse {
0% {
transform: translateY(0); color: black;
}
50% {
transform: translateY(15px); color: #4d4d4d; /* Move down */
}
100% {
transform: translateY(0); color: #4d4d4d;
}
}
/* Smooth Scroll Animation */
.scrolling-animation {
opacity: 0;
transition: opacity 0.5s ease;
}
.visible {
opacity: 1;
}
/* Navigation Bar Styles */
.navbar {
position: fixed;
top: 0;
width: 100%;
background-color: rgba(255, 255, 255, 0.7);
backdrop-filter: blur(10px);
display: flex;
justify-content: space-between;
padding: 0px 20px;
z-index: 9999; /* Increase z-index to make sure it's on top of other elements */
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
font-family: "Courier New", monospace;
font-weight: 520;
background-color: #f1f1f1;
}
.navbar .left {
display: flex;
align-items: center;
}
.navbar .right {
display: flex;
justify-content: flex-end;
gap: 15px;
padding-right:30px;
}
.navbar a {
color: #666;
text-decoration: none;
font-size: 20px;
padding: 3px 15px;
transition: all 0.3s ease;
display: flex;
align-items: center;
}
.navbar a:hover {
background-color: #f1f1f1;
border-radius: 5px;
}
.nav-image {
width: 50px;
height: 50px;
border-radius: 50%;
margin-right: 10px;
object-fit: cover;
object-position: center top;
}
/* The navbar links by default are horizontal */
#navbar-links {
display: flex;
flex-direction: row;
gap: 15px;
}
/* Hamburger Icon */
.navbar .icon {
font-size: 30px;
cursor: pointer;
display: none; /* Initially hidden on larger screens */
}
/* Responsive Adjustments */
@media (max-width: 800px) {
.top-section {
flex-direction: column;
transform: translate(-50%, -50%);
}
#about-me {
background-size: contain; /* Ensures the whole image fits the smaller screen */
background-position: center center; /* Centers the image for better visibility */
background-attachment: scroll; /* Allows the image to scroll naturally */
padding: 20px; /* Adjust padding to avoid overcrowding */
height: auto; /* Allows the height to adjust dynamically based on content */
}
#about-me h1 {
font-size: 13px !important;
text-align: left;
padding-left: 5px !important;
padding-right: 5px !important;
}
#research h1 {
font-size: 15px !important;
padding-top: 50px !important;
text-align: left;
}
/* Display the hamburger icon */
.navbar .icon {
display: block;
}
/* Hide the navbar links by default */
#navbar-links {
display: none;
flex-direction: column;
background-color: rgba(255, 255, 255, 0.9); /* White background with transparency */
position: absolute;
top: 50px;
right: 20px;
left: 20px;
z-index: 1;
}
#navbar-links a {
padding: 12px;
text-align: center;
border-bottom: 1px solid #ccc;
}
/* When menu is visible, display the links as a column */
#navbar-links.show {
display: flex;
}
}
@media (max-width: 480px) {
.mydiv {
width: 120px;
height: 120px;
}
h3 {
text-align: center !important;
font-size: 10px !important;
line-height: 1.2;
}
.container h2 {
font-size: 10px;
}
.image-gallery .gallery-item {
gap: 10px;
width: 20px;
height: 20px;
}
}
/* Section Styles */
section {
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
transition: all 0.5s ease;
padding: 20px;
}
#about-me, #research, #publications, #teaching, #blog {
padding-left: 150px;
padding-right: 150px;
text-align: left;
font-family: "Courier New", monospace;
justify-content: left !important;
}
#about-me {
background-image: url('./images/pexels-fmaderebner-869258.jpg');
background-size: cover; /* Ensures the image covers the entire area */
background-position: center; /* Centers the image */
background-attachment: fixed; /* Optional: Locks the image while scrolling */
color: black;
text-align: left;
display: flex;
justify-content: center;
align-items: center;
padding: 0;
height: 100vh;
padding-right: 150px;
padding-left: 150px;
}
#about-me h1 {
font-size: 18px;
margin: 0;
padding: 20px;
font-weight: 550;
position: relative;
z-index: 1;
}
#about-me h1::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(255, 255, 255, 0.85);
z-index: -1;
}
#research {
text-align: left;
font-size: 18px;
}
#research h1 {
font-size: 18px;
font-weight: 500;
}
#publications h1 {
font-size: 18px;
font-weight: 500;
}
#teaching h1 {
font-size: 18px;
font-weight: 500;
}
#blog h1 {
font-size: 18px;
font-weight: 500;
}
html {
scroll-behavior: smooth;
}
.fade-in {
opacity: 0;
transform: translateY(50px);
animation: fadeInUp 1s forwards;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(50px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
</style>
</head>
<body class="scrolling-animation">
<!-- Navigation Bar -->
<div class="navbar">
<div class="left">
<a href="#main">
<img src="./images/IMG_2901.jpg" class="nav-image">
Yuying Lin
</a>
</div>
<div class="right">
<!-- Hamburger Icon -->
<a href="javascript:void(0);" class="icon" onclick="toggleMenu()">☰</a>
<!-- Navbar Links -->
<div id="navbar-links">
<a href="#about-me" onclick="addAnimation('about-me')">About Me</a>
<a href="#research" onclick="addAnimation('research')">Research</a>
<a href="#publications" onclick="addAnimation('publications')">Publications</a>
<a href="#teaching" onclick="addAnimation('teaching')">Teaching</a>
<a href="#blog" onclick="addAnimation('blog')">Blog</a>
</div>
</div>
</div>
<!-- Sections -->
<section id="main">
<div class="top-section">
<div class="mydiv">
<img src="./images/IMG_2901.jpg" alt="Avatar">
</div>
<h3>
「保持热爱,奔赴山海。」⛰️🌊 <br>
<hr>
KEEP LOVING, KEEP LIVING.
</h3>
</div>
<!-- Image Gallery centered below the text -->
<div class="image-gallery">
<div class="gallery-item">
<a href="https://scholar.google.com/citations?hl=en&user=VT0LYbkAAAAJ" target="_blank">
<img src="./images/google.svg" alt="googlescholar-icon">
</a>
</div>
<div class="gallery-item">
<a href="https://github.com/Lin-Yuying" target="_blank">
<img src="./images/github.svg" alt="github-icon">
</a>
</div>
<div class="gallery-item">
<a href="https://x.com/Y_Lin_Evo" target="_blank">
<img src="./images/twitter.svg" alt="twitter-icon">
</a>
</div>
<div class="gallery-item">
<a href="https://www.instagram.com/your-profile" target="_blank">
<img src="./images/instagram.svg" alt="instagram-icon">
</a>
</div>
<div class="gallery-item">
<a href="mailto:linyuying@zoology.ubc.ca" target="_blank">
<img src="./images/email.png" alt="email-icon">
</a>
</div>
<div class="gallery-item">
<a href="https://orcid.org/0000-0001-7057-5588" target="_blank">
<img src="./images/orcid.svg" alt="orcid-icon">
</a>
</div>
</div>
<div class="container">
<h2> / I AM <span class="type"> </span> /</h2>
</div>
<script src="./sources/typed.umd.js"></script>
<script>
var typed = new Typed(".type", {
strings: ['YUYING LIN.', 'A PHD STUDENT@UBC.', 'A COMPUTATIONAL BIOLOGIST.', 'AN EVOLUTIONARY BIOLOGIST.', 'A CRAZY FAN OF OOLONG TEA.'],
typeSpeed: 50,
loop: true,
backSpeed: 50,
backDelay: 2000
});
</script>
<div class="scroll-down-div" onclick="window.location.href = '#about-me';">
<i class="fa fa-angle-down pulse-icon"></i>
</div>
</section>
<section id="about-me">
<h1>
<br>Hi, I’m Yuying Lin, a PhD student trying to decode the mysteries of how genes work together to create sex chromosomes in guppies, like a genetic matchmaking service, but with fewer love letters and more complex algorithms.
<br><br>
In the lab, my skills include:
<br>1. Writing Python code, hoping it runs without asking for a tea break and praying that the syntax doesn’t turn against me;
<br>2. Pretending to understand what "p-value" really means while holding a cup of oolong tea.
<br>3. Deciphering the secrets of guppy fish genetics, because they are cute and have big evolutionary stories to tell.
<br><br>
Keywords: Bio Nerd, Omics Geek, Conference Locust, Research Robot, Crustacean Crusher, Oolong Tea-rrific Brewmaster
<br><br>
2019 - 2025 Ph.D. in Evolutionary Biology, University of British Columbia
<br>2016 - 2019 M.S. in Zoology, Beijing Normal University
<br>2011 - 2015 B.S. in Biological Sciences, South China Normal University
<br><br>Feel free to reach out if you want to chat about evolution, genetics, or the eternal question: Why does my code work sometimes? <a href="mailto:linyuying@zoology.ubc.ca">linyuying@zoology.ubc.ca</a>
<br><br>(Under Construction...Stay tuned!)
<br><br>
</h1>
</section>
<section id="research">
<h1>
<br><br>I’m broadly interested in evolutionary biology. 🔬
But, with limited time and energy (because, you know, life),
I’m currently working on:
<ul>
<li><span style="font-weight: bold; color: black;">Gene Duplications</span> – More genes, more fun, right? Or maybe a bit of chaos… 🧬</li>
<br><li><span style="font-weight: bold; color: black;">De Novo Mutations</span> - The birth of something completely new. Talk about originality! 💥</li>
<br><li><span style="font-weight: bold; color: black;">Transposable Elements</span> – Jumping genes? Yep, you read that right. 🤸♂️</li>
<br><li><span style="font-weight: bold; color: black;">Sex Chromosome Evolution</span> – How do those chromosomes shape our world? 🤔</li>
<br>...and who knows what else I’ll stumble upon! 🌱
</ul>
<br><br>(Under Construction...Stay tuned!)
</h1>
</section>
<section id="publications">
<h1>
<a style="font-size: 22px;">
<b>Publications</b>
</a>
(<sup><em>#</em></sup>corresponding author,
<a href="https://scholar.google.com/citations?hl=en&user=VT0LYbkAAAAJ" target="_blank" style="text-decoration: none; color: inherit; cursor: pointer; display: inline-flex; align-items: left; font-size: 18px; font-weight: 520;">
<i class="fa fa-graduation-cap" style="margin-right: 8px;font-size: 15px"></i>Google Scholar)
</a>
<br>1. <u><b>Lin, Y.<sup><em>#</em></sup></b></u>, Darolti, I., Morris, J., van der Bijl W., Mank, J. E. (2023) Extensive variation in germline <em>de novo</em> mutations in <em>Poecilia reticulata</em>. <b><em>Genome Research</em></b>. 33(8): 1317-1324 <b><em>(Cover Story)</em></b>
<br><br>2. Fong J. L. M.<sup><em>#</em></sup>, Darolti, I., Metzger D. C. H., Morris J., <u><b>Lin, Y.</b></u>, Sandkam B. A., Mank J. E. (2023) Evolutionary history of the <em>Poecilia picta</em> sex chromosomes. <b><em>Genome Biology and Evolution</em></b>. 15(3): evad030
<br><br>3. <u><b>Lin, Y.</b></u>, Mank, J. E<sup><em>#</em></sup>. (2022) A chromosome predisposed for sex. <b><em>Nature</em></b>. 606: 257-258 (News & Views)
<br><br>4. <u><b>Lin, Y.<sup><em>#</em></sup></b></u>, Darolti, I., Furman, B. L. F., Almeida, P., Sandkam, B. A., Breden, F., Wright, A. E., Mank, J. E. (2022) Gene duplication to the Y chromosome in Trinidadian Guppies. <b><em>Molecular Ecology</em></b>. 31, 1853–1863
</a>
<br><br>
<div style="font-family: 'Courier New', monospace; font-size: 18px; background-color: #f5f5f5; padding: 10px; border: 1px solid #ddd; border-radius: 0px; white-space: pre-wrap; line-height: 1.2; font-weight: 520;">
<span style="color: #000;">if</span> you_like_my_papers:
<em style="color: #666;"># I know you absolutely do</em>
absolutely cite them, or we can’t be friends
<span style="color: #000;">elif</span> neutral:
<em style="color: #666;"># don’t make me beg</em>
cite them anyway, do me a favor to boost my h-index
<span style="color: #000;">else</span>:
<em style="color: #666;"># really?</em>
think again, reconsider your life choice and start over
</div>
<br><br>(Under Construction...Stay tuned!)
</h1>
</section>
<section id="teaching">
<h1>
While I’m teaching, I’m doing my best not to <del>confuse</del> my students and/or myself.
<br><br><br><br>(Under Construction...Stay tuned!)
</h1>
</section>
<section id="blog">
<h1>
<br><br>
When I’m not busy with research, I’m likely on GitHub, writing 100 lines of code to fix 10, or debating the following ratio for optimal brain function:
<br><br>
<div style="text-align: center; padding-right: 30px;">
<span style="font-weight: bold; color: black;">perfect α = ratio of (tea/hrs of sleep)</span>
</div>
<br> Well, you know that, right? It’s always more tea 🍵.
<br>
<br><br><br><br>(Under Construction...Stay tuned!)
</h1>
</section>
<script>
window.onload = function () {
document.body.classList.add("visible");
// Function to handle navbar visibility based on visible section
function updateNavbarVisibility(sectionId) {
const navbar = document.querySelector(".navbar");
if (sectionId === "main" || sectionId === "") {
navbar.style.display = "none"; // Hide navbar for #main section or when no hash is set
} else {
navbar.style.display = "flex"; // Show navbar for other sections
}
}
// Intersection Observer to manage section visibility
const observerOptions = {
threshold: 0.5, // Trigger when 50% of the section is visible
};
const observerCallback = (entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
const sectionId = entry.target.id;
// Update navbar visibility based on section in view
updateNavbarVisibility(sectionId);
// Prevent URL hash update when scrolling
history.replaceState(null, "", window.location.pathname);
}
});
};
// Initialize the IntersectionObserver
const observer = new IntersectionObserver(observerCallback, observerOptions);
// Observe all sections
document.querySelectorAll("section").forEach((section) => {
observer.observe(section);
});
// Smooth scroll behavior for navbar links
const navbarLinks = document.querySelectorAll(".navbar a");
navbarLinks.forEach((link) => {
link.addEventListener("click", (event) => {
event.preventDefault(); // Prevent default link behavior
const targetSection = document.querySelector(link.getAttribute("href"));
// Smoothly scroll to the section
targetSection.scrollIntoView({ behavior: "smooth" });
// Update URL hash manually without triggering scrolling behavior
history.replaceState(null, "", link.getAttribute("href"));
});
});
// Handle "Main" link to immediately hide the navbar
const mainLink = document.querySelector('a[href="#main"]');
if (mainLink) {
mainLink.addEventListener("click", (event) => {
event.preventDefault();
document.querySelector(".navbar").style.display = "none";
history.replaceState(null, "", "#main");
});
}
};
function toggleMenu() {
const links = document.getElementById("navbar-links");
links.classList.toggle("show");
console.log("Menu toggled!");
}
function addAnimation(sectionId) {
const section = document.getElementById(sectionId);
section.classList.add("fade-in");
setTimeout(() => section.classList.remove("fade-in"), 1000);
}
</script>
</body>
</html>