-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex_backup_use_with_mainpage.html
262 lines (233 loc) · 6.66 KB
/
index_backup_use_with_mainpage.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<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">
<style>
/* General Styles */
body {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
min-height: 120vh; /* Ensure the page is tall enough to require scrolling */
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;
}
/* Responsive Adjustments */
@media (max-width: 700px) {
.top-section {
flex-direction: column;
transform: translate(-50%, -50%);
}
}
@media (max-width: 480px) {
.mydiv {
width: 80px;
height: 80px;
}
h3 {
text-align: center !important;
font-size: 11px !important;
line-height: 1.6;
max-width: 500px;
}
.container h2 {
font-size: 10px;
}
.image-gallery .gallery-item {
gap: 10px;
width: 20px;
height: 20px;
}
</style>
</head>
<body class="scrolling-animation">
<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.' ],
typeSpeed: 50,
loop: true,
backSpeed: 50,
backDelay: 2000
});
</script>
<div class="scroll-down-div" onclick="window.location.href = './mainpage.html';">
<i class="fa fa-angle-down pulse-icon"></i>
</div>
<script>
// Function to check if the user has scrolled to 90% of the page
function checkScrollPosition() {
const scrollPosition = window.scrollY + window.innerHeight;
const documentHeight = document.documentElement.scrollHeight;
if (scrollPosition >= documentHeight * 0.9) { // 90% of the page height
window.location.href = './mainpage.html';
}
}
window.addEventListener('scroll', checkScrollPosition);
window.onload = function () {
document.body.classList.add('visible');
};
</script>
</body>
</html>