-
Notifications
You must be signed in to change notification settings - Fork 0
/
about.html
536 lines (481 loc) · 19.1 KB
/
about.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="apple-touch-icon" sizes="180x180" href="favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicons/favicon-16x16.png">
<link rel="manifest" href="favicons/site.webmanifest">
<title>Jason's Webpage</title>
<style>
/* Author (of background texture):
Temani Afif
November 12, 2022
*/
html {
--s: 50px;
--c: #191b22; /* main bg color */
--_s: calc(2*var(--s)) calc(2*var(--s));
--_g: 35.36% 35.36% at;
--_c: #0000 66%,#20222a /* lines color */ 68% 70%,#0000 72%;
background:
radial-gradient(var(--_g) 100% 25%,var(--_c)) var(--s) var(--s)/var(--_s),
radial-gradient(var(--_g) 0 75%,var(--_c)) var(--s) var(--s)/var(--_s),
radial-gradient(var(--_g) 100% 25%,var(--_c)) 0 0/var(--_s),
radial-gradient(var(--_g) 0 75%,var(--_c)) 0 0/var(--_s),
repeating-conic-gradient(var(--c) 0 25%,#0000 0 50%) 0 0/var(--_s),
radial-gradient(var(--_c)) 0 calc(var(--s)/2)/var(--s) var(--s) var(--c);
background-attachment: fixed;
transition: background 0.2s linear;
}
/* Dark mode styles when 'dark-mode' class is added to html */
html.light-mode {
--c: #f2f2f2; /* main bg color */
--_c: #0000 66%, #e3e3e3 /* lines color */ 68% 70%, #0000 72%;
}
@font-face {
font-family: 'Comic Sans MS';
src: url("assets/ComicSansMS3.ttf");
}
body {
/* background-color: #f0f0f0; */
font-family: "Comic Sans MS", sans-serif;
color: #ffffff;
}
body.light-mode {
color: #000000;
}
#themeToggle {
position: fixed;
top: 30px;
right: 35px;
cursor: pointer;
width: 20px;
height: 20px;
background-size: cover;
}
/* Light and dark mode SVGs for the button */
#themeToggle.light {
background-image: url('assets/sun-icon.svg'); /* Path to your light mode SVG */
}
#themeToggle.dark {
background-image: url('assets/moon-icon.svg'); /* Path to your dark mode SVG */
}
.main-container {
width: 80%;
margin: 0 auto;
}
a {
color: #FF90A5;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.nav {
background-color: #FF90A5;
padding: 10px;
text-align: left;
}
.nav a {
display: block;
margin: 10px 0;
color: #000000;
}
marquee {
color: #FF90A5;
margin-bottom: 20px;
}
table {
width: 100%;
}
td {
border: 5px outset #000000;
vertical-align: top;
}
#nyancatToggle {
padding: 8px 8px;
font-size: 12px;
background-color: #32cd32;
color: white;
border: none;
cursor: pointer;
z-index: 1000;
}
#nyancatToggle.on {
background-color: #ff69b4;
}
#nyancatToggle.off {
background-color: #32cd32;
}
@keyframes gradientMove {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
#welcomeText {
font-size: 40px;
font-weight: bold;
background: linear-gradient(270deg, #ff00ff, #009dff, #ff6600);
background-size: 400% 400%;
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
animation: gradientMove 7s ease infinite;
}
.nav-link.active::after {
content: "";
display: inline-block;
width: 22px;
height: 22px;
margin-left: 10px;
background-image: url('assets/pointing-left.svg');
background-size: cover;
vertical-align: -5px;
}
.card-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
margin-bottom: 20px;
}
.card {
width: 200px;
text-align: center;
border: 4px double #FF90A5;
padding: 10px;
background-color: #191b22;
color: #ffffff;
font-family: 'Comic Sans MS';
position: relative;
overflow: hidden;
}
.card-title {
font-size: 16px;
margin-bottom: 20px;
margin-top: 5px;
}
.image-wrapper {
position: relative;
width: 100%;
height: auto;
}
.card img {
width: 100%;
height: auto;
border: 2px solid #ffffff;
/* margin-bottom: 10px; */
transition: opacity 0.3s ease;
}
.card .hover-text {
position: absolute;
top: 5%;
left: 5%;
width: 90%;
height: 90%;
border: 2px solid #ffffff;
display: flex;
justify-content: center;
align-items: center;
background-color: rgba(197, 115, 115, 0.8);
color: #ffffff;
font-size: 16px;
opacity: 0;
transition: opacity 0.3s ease;
text-align: center;
padding: 10px;
box-sizing: border-box;
}
.card a {
color: #FF90A5;
text-decoration: underline;
}
/* Smaller Screens */
@media (max-width: 768px)
{
.main-container {
width: 95%;
}
.nav {
text-align: center;
}
#themeToggle {
position: fixed;
top: 15px;
right: 20px;
cursor: pointer;
width: 15px;
height: 15px;
background-size: cover;
}
}
</style>
</head>
<body>
<div class="main-container">
<div style="text-align: center; margin-top: 5px;">
<h1 id="welcomeText">Jason (himself)</h1>
</div>
<marquee>Fun stuff, fun stuff! ᓚᘏᗢ </marquee>
<table cellpadding="10" cellspacing="0">
<tr>
<!-- Navigation Menu -->
<td class="nav" width="20%" style="position: relative;">
<h3> </h3>
<a href="index.html" class="nav-link">Home</a><br>
<a href="resume.html" class="nav-link">Resume</a><br>
<a href="about.html" class="nav-link">About</a><br>
<a href="blog.html" class="nav-link">Weblog</a><br>
<img src="assets/cats/linea_anluorbarkat.gif" alt="cats" title="cats" style="position: absolute; bottom: 0; left: 0; max-width: 100%; height: auto;" width="1000">
</td>
<!-- Main Content -->
<td width="80%">
<img src="assets/cats/typecat.gif" alt="cats" title="cat" style="max-width: 100%; height: auto;" width="100"> I like neuroscience - especially designing tasks, neurophys recordings and modeling work. <br><br> I really like cats. I also really like dogs, just not as obsessed with them. <br>
This website is like my creative space! I love it. Please email me <a href="mailto:[email protected]"><img src="assets/cats/mail_cat.gif" alt="cat on mailbox" title="cat on mailbox" style="max-width: 100%; height: auto; width: 20px; position: relative; top: 10px;"></a> if you have any suggestions on how I can make it more fun.
<hr>
<p>Find me on <a href="https://open.spotify.com/user/3tlco9oprzrewqimbe30ttd5u" target="_blank">Spotify</a>, <a href="https://twitter.com/jason__joby" target="_blank">Twitter</a>, <a href="https://www.instagram.com/jason.joby/" target="_blank">Instagram</a> (i dont really use this one anymore)</p>
<hr>
<p>My favourite stuff:<br></p>
<div class="card-container">
<!-- TV Show Card -->
<div class="card">
<p class="card-title">My Favourite TV Show</p>
<div class="image-wrapper">
<img src="assets/about/fleabag.jpg" alt="Favorite TV Show">
<div class="hover-text">Simply love every single thing about this.</div>
</div>
<a href="https://www.imdb.com/title/tt5687612/" target="_blank">Fleabag</a> <br>by Phoebe Waller-Bridge
</div>
<!-- Movie Card -->
<div class="card">
<p class="card-title">My Favourite Movie</p>
<div class="image-wrapper">
<img src="assets/about/18x2byd.jpg" alt="Favorite Movie">
<div class="hover-text">Found this from a YT MV made for About You - The 1975</div>
</div>
<a href="https://www.imdb.com/title/tt31039829/" target="_blank">18x2 Beyond Youthful Days</a> <br> Japanese-Taiwanese movie I recently found
</div>
</div>
<div class="card-container">
<!-- Music Album Card -->
<div class="card">
<p class="card-title">My Favourite Album</p>
<div class="image-wrapper">
<img src="assets/about/parachutes.png" alt="Favorite Album">
<div class="hover-text">An all-time favorite album, my fave song on this is Sparks</div>
</div>
<a href="https://open.spotify.com/album/6ZG5lRT77aJ3btmArcykra" target="_blank">Parachutes</a> <br>by Coldplay
</div>
<!-- Song Card -->
<div class="card">
<p class="card-title">My Favourite Song</p>
<div class="image-wrapper">
<img src="assets/about/aboutyou1975.jpg" alt="Favorite Song">
<div class="hover-text">Favourite as of 19th Dec '24. Also 'BIRDS OF A FEATHER' by Billie Eilish!</div>
</div>
<a href="https://open.spotify.com/track/1fDFHXcykq4iw8Gg7s5hG9" target="_blank">About You</a> <br> by The 1975
</div>
</div>
<hr>
<p> Other websites on the internet that I like
<ul>
<li><a href="https://pointerpointer.com/" target="_blank">pointerpointer</a>
<ul>
<li>self explanatory</li>
</ul>
</li>
<li><a href="https://gifcities.org/" target="_blank">GifCities</a>
<ul>
<li>Lots of gifs here!</li>
</ul>
</li>
<li><a href="https://cat-bounce.com/" target="_blank">cat-bounce</a>
<ul>
<li>also self explanatory</li>
</ul>
</li>
<li>some random old archived websites
<ul>
<li><a href="https://web.archive.org/web/20091027045321/http://geocities.com/tea_with_tigger/" target="_blank">someone's geocities page with cat photos</a></li>
</ul>
</li>
</ul>
</p>
<hr>
<div style="text-align: center; margin-top: 5px;">
<img src="assets/cats/cat-relaxing.gif" alt="Kitten relaxing on hammock" title="Kitten relaxing" width="100">
<img src="assets/cats/AnnWalkCat.gif" alt="Kitten walking" title="Kitten walking" width="50">
<img src="assets/cats/cats0030.gif" alt="Kitten sleepin" title="Kitten sleepin" width="150">
<img src="assets/cats/Catmail.gif" alt="Kitten in mailbox" title="Kitten in mailbox" width="90">
<img src="assets/cats/catremote.gif" alt="Cat n TV" title="Cat n TV" width="150">
</div>
<br><br>
<img src="assets/cats/line06_01.gif" alt="line of hearts" title="line of hearts" style="max-width: 100%; height: auto;" width="1000">
</td>
</tr>
</table>
<div style="text-align: center; margin-top: 5px;">
<img src="assets/cat_banner.jpg" alt="Cat Banner: No time spent with a cat is wasted" width="100"><br>
<!-- Toggle Nyancat mode -->
<button id="nyancatToggle">nyancat mode</button><br><br>
</div>
<div id="themeToggle" class="light"></div>
<!-- Scripts -->
<script>
// Get all the cards
const cards = document.querySelectorAll('.card');
cards.forEach(card => {
// Select the image and hover-text div inside the image-wrapper
const imageWrapper = card.querySelector('.image-wrapper');
const img = imageWrapper.querySelector('img');
const hoverText = imageWrapper.querySelector('.hover-text');
// When mouse enters the card
card.addEventListener('mouseenter', () => {
// Hide the image and show the hover text
img.style.opacity = '0';
hoverText.style.opacity = '1';
});
// When mouse leaves the card
card.addEventListener('mouseleave', () => {
// Show the image and hide the hover text
img.style.opacity = '1';
hoverText.style.opacity = '0';
});
});
</script>
<script>
window.onload = function() {
// Get the current page's URL
const currentPage = window.location.pathname.split("/").pop();
// Get all navigation links
const navLinks = document.querySelectorAll(".nav-link");
// Loop through links and check if the href matches the current page
navLinks.forEach(link => {
const linkHref = link.getAttribute("href");
if (linkHref === currentPage || (currentPage === "" && linkHref === "index.html")) {
link.classList.add("active"); // Add 'active' class to the matching link
}
});
};
</script>
<script>
// Get references to HTML and the toggle button
const htmlElement = document.documentElement;
const bodyElement = document.body;
const toggleButton = document.getElementById('themeToggle');
// Function to apply the theme
function applyTheme(theme) {
if (theme === 'light') {
htmlElement.classList.add('light-mode');
bodyElement.classList.add('light-mode');
toggleButton.classList.remove('light');
toggleButton.classList.add('dark');
} else {
htmlElement.classList.remove('light-mode');
bodyElement.classList.remove('light-mode');
toggleButton.classList.remove('dark');
toggleButton.classList.add('light');
}
}
// Read the saved theme from localStorage on page load
const savedTheme = localStorage.getItem('theme');
if (savedTheme) {
applyTheme(savedTheme);
}
// Event listener for toggle button
toggleButton.addEventListener('click', () => {
const currentTheme = htmlElement.classList.contains('light-mode') ? 'light' : 'dark';
const newTheme = currentTheme === 'light' ? 'dark' : 'light';
// Apply the new theme and save it to localStorage
applyTheme(newTheme);
localStorage.setItem('theme', newTheme);
});
</script>
<script>
/******************************************
* Cursor trailer script adapted from Brian Caputo's code:
* Cross browser cursor trailer script- By Brian Caputo ([email protected])
* Distributed with permission from Brian Caputo by lissaexplains.com
* Modified Dec 31st, 02' by DD. This notice must stay intact for use
******************************************/
const images = [
{ src: "assets/abstar1.gif", width: 40, height: 40 },
{ src: "assets/abstar2.gif", width: 40, height: 40 },
{ src: "assets/abstar3.gif", width: 40, height: 40 },
{ src: "assets/abstar4.gif", width: 40, height: 40 },
{ src: "assets/abstar5.gif", width: 40, height: 40 },
{ src: "assets/th_nyan-cat-anim.gif", width: 40, height: 28 }
];
const nos = images.length;
const rate = 50; // Update frequency in ms
const offsetX = 15; // X offset of trail from mouse pointer
const offsetY = 15; // Y offset of trail from mouse pointer
let trailElements = [];
let mouseX = 0, mouseY = 0;
let nyancatMode = false;
let intervalId;
// Create trail elements
function createTrail() {
images.forEach((image, index) => {
const div = document.createElement('div');
div.style.position = 'absolute';
div.style.pointerEvents = 'none'; // Avoid blocking interactions
div.style.width = `${image.width}px`;
div.style.height = `${image.height}px`;
div.style.zIndex = index + 1;
div.innerHTML = `<img src="${image.src}" width="${image.width}" height="${image.height}" alt="">`;
document.body.appendChild(div);
trailElements.push(div);
});
}
// Update the position of each element in the trail
function updateTrail() {
if (!nyancatMode) return; // If nyancat mode is off, do nothing
for (let i = 0; i < trailElements.length - 1; i++) {
const nextElement = trailElements[i + 1];
trailElements[i].style.left = nextElement.style.left;
trailElements[i].style.top = nextElement.style.top;
}
trailElements[trailElements.length - 1].style.left = `${mouseX + offsetX}px`;
trailElements[trailElements.length - 1].style.top = `${mouseY + offsetY}px`;
}
// Mouse movement event listener
document.addEventListener('mousemove', (e) => {
mouseX = e.pageX;
mouseY = e.pageY;
});
// Toggle nyancat mode
function toggleNyancatMode() {
nyancatMode = !nyancatMode;
if (nyancatMode) {
// If turning on nyancat mode, create trail and start interval
if (trailElements.length === 0) {
createTrail();
}
intervalId = setInterval(updateTrail, rate);
document.getElementById('nyancatToggle').classList.remove('off');
document.getElementById('nyancatToggle').classList.add('on');
} else {
// If turning off nyancat mode, clear interval and hide trail
clearInterval(intervalId);
trailElements.forEach(div => {
div.style.left = '-9999px'; // Move trail elements off-screen
div.style.top = '-9999px';
});
document.getElementById('nyancatToggle').classList.remove('on');
document.getElementById('nyancatToggle').classList.add('off');
}
}
// Initialize everything on button click
document.getElementById('nyancatToggle').addEventListener('click', toggleNyancatMode);
</script>
</body>
</html>