-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
685 lines (622 loc) · 26.4 KB
/
index.html
File metadata and controls
685 lines (622 loc) · 26.4 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
<!DOCTYPE html>
<html>
<head>
<title>Amazingca</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#1a1a1a" media="(prefers-color-scheme: dark)">
<meta http-equiv="Cache-Control" content="no-cache">
<meta property="description" content="About Amazingca">
<link rel="preconnect" href="https://cdn.amazingca.dev">
<link rel="icon" type="image/png" href="https://cdn.amazingca.dev/assets/media/circletransoutsmall.png">
</head>
<body>
<main>
<side></side>
<middle>
<div class="Profile">
<div class="Photo">
<img src="https://cdn.amazingca.dev/assets/media/circlewhitesmall.png" id="profilePhoto">
</div>
<div class="Name" id="profileTitle">
<h1 id="profileNames" />
<h3 id="profileTagline" />
</div>
</div>
<div>
<br>
<div class="Seperation">
<div style="flex: 1 0 50%;">
<div class="about">Hello! My name is <span id="name"></span>. I am a content creator currently pursuing computer science.</div>
<br>
<div class="about">I am experienced in front-end/back-end web development, having also contributed automated applications to several Discord communities.</div>
<br>
<div class="about">My interests are in JavaScript, Java, Python, and other languages such as HTML & CSS.</div>
<br>
<div class="about">In my spare time I enjoy coding websites, bots, and even a few <a href="https://words.amazingca.dev" target="_blank" style="color: inherit;">games</a>.</div>
</div>
<div style="margin-inline: 0rem; padding: 0rem; flex: 1 0 50%; overflow-y: scroll;" id="links">
<h4 class="links-main-title">Loading links... In the meantime, here are the links to verify my Mastodon socials:</h4>
<div style="flex-wrap: wrap; display: flex; justify-content: space-between; gap: 1rem;">
<button class="button" style="width: auto; flex: 1 0 50%;">
<a rel="me" href="https://mastodon.social/@amazingca" style="color: inherit; text-decoration: none;">
<label class="amv">my mastodon</label>
</a>
</button>
<button class="button" style="width: auto; flex: 1 0 50%;">
<a rel="me" href="https://mastodon.online/@amazingca" style="color: inherit; text-decoration: none;">
<label class="amv">my mastodon (alt)</label>
</a>
</button>
</div>
</div>
</div>
</div>
<div></div>
<footer>
<div title="Credits to Twemoji and respective authors of blinkies/stamps/buttons where applicable" id="footerEmojis"></div>
<p id="footerCopyright">© Amazingca</p>
</footer>
</middle>
<side></side>
</main>
</body>
<style>
@import url('https://fonts.googleapis.com/css2?family=Shrikhand&display=swap');
@font-face {
font-family: "Maple Mono";
src: url("https://cdn.amazingca.dev/assets/fonts/maple-mono/MapleMono-Medium.ttf.woff2") format("woff2");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "Maple Mono";
src: url("https://cdn.amazingca.dev/assets/fonts/maple-mono/MapleMono-ExtraBold.ttf.woff2") format("woff2");
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: "Maple Mono";
src: url("https://cdn.amazingca.dev/assets/fonts/maple-mono/MapleMono-MediumItalic.ttf.woff2") format("woff2");
font-weight: normal;
font-style: italic;
}
body {
--highlight-background: black;
--highlight-text: white;
margin: 0rem;
}
body.personal {
--highlight-background: rgb(255 215 247);
--highlight-text: black;
background-color: rgb(255 230 250 / 29%);
}
@media (prefers-color-scheme: dark) {
body {
--highlight-background: #ccc;
--highlight-text: black;
background-color: rgb(19 19 19);
color: white;
}
body.personal {
background-color: rgb(25 17 23);
}
}
h1 {
font-family: "Maple Mono";
font-weight: 700;
font-weight: unset;
}
h3, p {
font-family: "Maple Mono";
font-weight: unset;
}
#profileTagline {
font-family: "Maple Mono";
font-style: italic;
font-weight: unset;
}
main {
width: -webkit-fill-available;
display: flex;
justify-content: space-between;
margin-left: 1rem;
margin-right: 1rem;
}
middle {
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100vh;
width: -webkit-fill-available;
max-width: 700px;
}
.Profile {
display: flex;
flex-direction: column;
flex-wrap: wrap;
align-items: center;
margin-top: 1rem;
column-gap: 1rem;
}
.Profile div {
text-align: center;
}
.Profile .Photo img {
width: 100px;
height: 100px;
border-radius: 50%;
}
.Name {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.Profile .Name h1, .Profile .Name h3 {
margin-block-start: 0em;
margin-block-end: 0em;
}
.about {
font-family: Verdana, sans-serif;
line-height: 2em;
}
middle .Seperation {
display: flex;
align-items: center;
gap: 1rem;
}
.links-main-title {
text-align: center;
font-family: Georgia, serif;
line-height: 2em;
}
.flex-row {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.button {
border-width: 0px;
border-radius: 50em;
height: 3.5em;
font-family: 'Shrikhand', cursive;
letter-spacing: 0.03em;
font-size: 17px;
color: black;
cursor: pointer;
background-color: #eeeeee;
-webkit-user-select: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
flex-direction: row;
justify-content: space-between;
}
.button:hover {
animation: move 10s linear infinite alternate;
background: linear-gradient(135deg, #2543a4, #2563a4, #2593a4, #25a482, #25a471, #25a441);
background-size: 400% 400%;
color: white;
}
body.personal .button:hover {
background: linear-gradient(135deg, #cc93d6, #d693be, #ab93d6);
background: linear-gradient(135deg, #cc93d6, #c48edc, #bc89e1, #b282e8, #ab7eed, #a379f2);
background: linear-gradient(135deg, #cc93d6, #c48edc, #bc89e1, #b282e8, #a07cd4, #9161eb); /* Extremely picky with the colors here. Going to leave this one for the time being. */
background-size: 400% 400%; /* For some reason we need to redeclare this value or else the animation doesn't work. */
}
.button-image {
margin-top: auto;
margin-bottom: auto;
-webkit-user-drag: none;
-webkit-user-select: none;
}
.button-image.desktop {
margin-left: 0.5em;
}
.amv {
margin-top: auto;
margin-bottom: auto;
margin-left: 0.5em;
margin-right: 0.5em;
cursor: pointer;
}
@keyframes move {
0% { background-position: 7% 0%; }
50% { background-position: 94% 100%; }
100% { background-position: 7% 0%; }
}
footer, #footerEmojis{
display: flex;
align-items: center;
flex-wrap: wrap;
margin: 1em 0;
gap: 0.5rem;
}
footer {
position: sticky;
top: 100vh;
justify-content: space-between;
}
svg {
width: 36px;
height: 36px;
}
@media screen and (max-width: 1450px) {
main {
justify-content: center;
}
main side {
display: none;
}
}
@media screen and (max-width: 700px) {
middle .Seperation {
flex-wrap: wrap;
}
}
img {
-webkit-user-drag: none;
-webkit-user-select: none;
}
::selection {
background: var(--highlight-background);
color: var(--highlight-text);
}
.off {
display: none;
}
#links::-webkit-scrollbar {
width: 0px;
background: transparent;
}
</style>
<script>
document.getElementById("footerCopyright").innerHTML += " " + new Date().getUTCFullYear();
if (location.hash == "#personal") {
document.getElementsByTagName("body")[0].classList.add("personal");
document.getElementsByTagName("meta")[2].content = "rgb(255, 182, 241)";
}
const profilePhotos = [
{
uri: "https://cdn.amazingca.dev/assets/media/circlewhitesmall.png",
showFor: ""
},
{
uri: "https://cdn.amazingca.dev/assets/media/fursonaheadshot.png",
showFor: "#personal"
}
];
const profileNames = [
{
name: "Amazingca",
showFor: "#"
},
{
name: "Autumn",
showFor: "#personal"
}
];
const profileTaglines = [
{
tag: "Web developer enthusiast",
showFor: ""
},
{
tag: "queer furry",
showFor: "#personal"
}
];
const profilePronouns = [
{
series: "they/them/theirs",
showFor: "#personal"
},
{
series: "she/her/hers",
showFor: "#personal"
}
];
const footerEmojis = [
{
name: "Pride Flag",
element: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" xml:space="preserve"><path fill="#880082" d="M0 27a4 4 0 0 0 4 4h28a4 4 0 0 0 4-4v-.5H0v.5z"/><path fill="#3558A0" d="M0 22.07h36v4.6H0z"/><path fill="#138F3E" d="M0 17.83h36v4.5H0z"/><path fill="#FAD220" d="M0 13.5h36V18H0z"/><path fill="#FF7300" d="M0 9.17h36v4.5H0z"/><path fill="#FF000E" d="M32 5H4a4 4 0 0 0-4 4v.33h36V9a4 4 0 0 0-4-4z"/></svg>`,
showFor: "#"
},
{
name: "Transgender Flag",
element: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36"><path fill="#5BCEFA" d="M0 27c0 2.209 1.791 4 4 4h28c2.209 0 4-1.791 4-4v-1.3H0V27z"/><path fill="#F5A9B8" d="M.026 20.5L0 25.8h36v-5.3z"/><path fill="#EEE" d="M0 15.3h36v5.3H0z"/><path fill="#F5A9B8" d="M0 9.902h36V15.4H0z"/><path fill="#5BCEFA" d="M36 9c0-2.209-1.791-4-4-4H4C1.791 5 0 6.791 0 9v1.2h36V9z"/></svg>`,
showFor: "#"
},
{
name: "Pawjobs",
element: `<a href="https://lunasn0wfall.neocities.org/">
<img src="https://cdn.amazingca.dev/assets/banner/pawjob.gif">
</a>`,
showFor: "#personal"
},
{
name: "Paws",
element: `<img src="https://cdn.amazingca.dev/assets/banner/paws.png">`,
showFor: "#personal"
},
{
name: "Hormones",
element: `<img src="https://cdn.amazingca.dev/assets/banner/hormones.gif">`,
showFor: "#personal"
}
];
const contentFiltering = (item) => ((item.showFor.length == 0) || (item.showFor == location.hash) || (item.showFor == "#" && location.hash == ""));
document.getElementById("profilePhoto").src = profilePhotos.filter(photo => contentFiltering(photo)).at(-1).uri;
document.getElementById("profileNames").innerHTML = profileNames.filter(name => contentFiltering(name)).map(item => item.name).join(", ");
document.getElementById("profileTagline").innerHTML = profileTaglines.filter(tag => contentFiltering(tag)).map(item => item.tag).join(", ");
document.getElementById("profileTitle").innerHTML += (profilePronouns.filter(series => contentFiltering(series)).length > 1) ? ("<h3>" + profilePronouns.filter(series => contentFiltering(series)).map(item => item.series.split("/")[0]).join("/") + "</h3>") : (profilePronouns.filter(series => contentFiltering(series)).length > 0) ? ("<h3>" + profilePronouns.filter(series => contentFiltering(series)).map(item => item.series)[0] + "</h3>") : "";
document.getElementById("name").innerHTML = profileNames.filter(name => contentFiltering(name)).at(-1).name;
document.getElementById("footerEmojis").innerHTML = footerEmojis.filter(item => contentFiltering(item)).map(item => item.element).join("");
var directory = [
{
name: "my bluesky",
target: {
item: "https://bsky.app/profile/autumn.bsky.gay",
copy: false,
hover: "",
override: ""
},
icon: {
dark: "https://cdn.amazingca.dev/assets/social-icons/bsky-color.png",
light: "https://cdn.amazingca.dev/assets/social-icons/bsky-white.png",
}
},
{
name: "my github",
target: {
item: "https://github.com/Amazingca",
copy: false,
hover: "",
override: ""
},
icon: {
dark: "https://cdn.amazingca.dev/assets/social-icons/GitHub-Mark-64px.png",
light: "https://cdn.amazingca.dev/assets/social-icons/GitHub-Mark-Light-64px.png",
}
},
{
name: "my tangled",
target: {
item: "https://tangled.org/autumn.bsky.gay",
copy: false,
hover: "",
override: ""
},
icon: {
dark: "https://cdn.amazingca.dev/assets/social-icons/tangled_black.svg",
light: "https://cdn.amazingca.dev/assets/social-icons/tangled_white.svg",
}
},
{
name: "my tangled (alt)",
target: {
item: "https://tangled.org/autumn.tngl.sh",
copy: false,
hover: "",
override: ""
},
icon: {
dark: "https://cdn.amazingca.dev/assets/social-icons/tangled_black.svg",
light: "https://cdn.amazingca.dev/assets/social-icons/tangled_white.svg",
}
},
{
name: "my discord",
target: {
item: "amazingca",
copy: true,
hover: "",
override: ""
},
icon: {
dark: "https://cdn.amazingca.dev/assets/social-icons/icon_clyde_black_RGB.png",
light: "https://cdn.amazingca.dev/assets/social-icons/icon_clyde_white_RGB.png",
}
},
{
name: "my nostr",
target: {
item: "npub1v99czwu5qpphzzq806tu5zn64ha5llq8r8v82jxfkp7v8kttytmqtpqsvc",
copy: true,
hover: "",
override: ""
},
icon: {
dark: "https://cdn.amazingca.dev/assets/social-icons/NostrBlack.png",
light: "https://cdn.amazingca.dev/assets/social-icons/NostrWhite.png",
}
},
{
name: "my guilded",
target: {
item: "https://www.guilded.gg/r/zzMlWNWdQR",
copy: false,
hover: "rest in peace...",
override: "./blog"
},
icon: {
dark: "https://cdn.amazingca.dev/assets/social-icons/Guilded_Logomark_Black.svg",
light: "https://cdn.amazingca.dev/assets/social-icons/Guilded_Logomark_White.svg",
}
},
{
name: "my mastodon",
target: {
item: "https://mastodon.social/@amazingca",
copy: false,
hover: "",
override: ""
},
icon: {
dark: "https://cdn.amazingca.dev/assets/social-icons/mastodon-color.png",
light: "https://cdn.amazingca.dev/assets/social-icons/mastodon-white.png",
}
},
{
name: "my youtube",
target: {
item: "https://www.youtube.com/@theamazingca",
copy: false,
hover: "",
override: ""
},
icon: {
dark: "https://cdn.amazingca.dev/assets/social-icons/yt_icon_rgb.png",
light: "https://cdn.amazingca.dev/assets/social-icons/yt_icon_mono_dark.png",
}
},
{
name: "my twitch",
target: {
item: "https://twitch.tv/theamazingca",
copy: false,
hover: "",
override: ""
},
icon: {
dark: "https://cdn.amazingca.dev/assets/social-icons/TwitchGlitchPurple.png",
light: "https://cdn.amazingca.dev/assets/social-icons/TwitchGlitchWhite.png",
}
},
{
name: "my threads",
target: {
item: "https://threads.net/@thatamazingca",
copy: false,
hover: "",
override: ""
},
icon: {
dark: "https://cdn.amazingca.dev/assets/social-icons/ThreadsBlack.png",
light: "https://cdn.amazingca.dev/assets/social-icons/ThreadsWhite.png",
}
},
{
name: "my vsco",
target: {
item: "https://vsco.co/amazingca",
copy: false,
hover: "",
override: ""
},
icon: {
dark: "https://cdn.amazingca.dev/assets/social-icons/VSCO_Seal_black.png",
light: "https://cdn.amazingca.dev/assets/social-icons/VSCO_Seal_white.png",
}
},
{
name: "my x",
target: {
item: "https://twitter.com/thatamazingca",
copy: false,
hover: "",
override: ""
},
icon: {
dark: "https://cdn.amazingca.dev/assets/social-icons/twitter_logo_blue.png",
light: "https://cdn.amazingca.dev/assets/social-icons/twitter_logo_white.png",
}
}
];
if (location.hash == "") {
var newDirectory = [];
for (const ref of directory) {
switch (ref.name) {
case "my bluesky":
case "my github":
case "my tangled":
case "my discord":
newDirectory.push(ref);
default:
break;
}
}
directory = newDirectory;
}
var temp = `<div style="flex-wrap: wrap; display: flex; justify-content: space-between; gap: 1rem;>">`;
for (const [i, ref] of directory.entries()) {
if (ref.target.copy == false) {
temp += `<button class="button" style="width: auto; flex: 1 0 50%;" onmouseenter="enter(${i})" onmouseleave="exit(${i})">
<a rel="me" href="${(ref.target.override || ref.target.item)}" style="color: inherit; text-decoration: none;">
<div class="flex-column">
<div class="flex-row">
<img src="${ref.icon.dark}" width="50em" height="50em" class="button-image desktop" id="bp${i}-1">
<img src="${ref.icon.light}" width="50em" height="50em" class="button-image desktop off" id="bp${i}-2">
<label class="amv" id="bl${i}">${ref.name}</label>
</div>
</div>
</a>
</button>`;
} else {
temp += `<button class="button" style="width: auto; flex: 1 0 50%;" onmouseenter="enter(${i})" onmouseleave="exit(${i})" onclick="clickEvent(false, ${i}, false)">
<div class="flex-column">
<div class="flex-row">
<img src="${ref.icon.dark}" width="50em" height="50em" class="button-image desktop" id="bp${i}-1">
<img src="${ref.icon.light}" width="50em" height="50em" class="button-image desktop off" id="bp${i}-2">
<label class="amv" id="bl${i}">${ref.name}</label>
</div>
</div>
</button>`;
}
}
temp += `</div>`;
document.getElementById("links").innerHTML = temp;
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
for (const buttonImage of document.getElementsByClassName("button-image")) {
buttonImage.classList.remove("desktop");
}
}
function enter(i) {
document.getElementById(`bp${i}-1`).classList.add("off");
document.getElementById(`bp${i}-2`).classList.remove("off");
if (directory[i].target.hover != "" && document.getElementById(`bl${i}`).textContent != "copied!") document.getElementById(`bl${i}`).textContent = directory[i].target.hover;
}
function exit(i) {
document.getElementById(`bp${i}-1`).classList.remove("off");
document.getElementById(`bp${i}-2`).classList.add("off");
if (directory[i].target.hover != "" && document.getElementById(`bl${i}`).textContent != "copied!") document.getElementById(`bl${i}`).textContent = directory[i].name;
}
function clickEvent(redir, i, newTab) {
if (redir === true) {
if (newTab === true) {
window.open(directory[i].target.item).focus();
} else {
window.location.href = directory[i].target.item;
}
} else {
navigator.clipboard.writeText(directory[i].target.item);
document.getElementById(`bl${i}`).textContent = "copied!";
setTimeout(function() {
if (directory[i].target.hover == "" || document.getElementById(`bl${i}`).textContent == "copied!") document.getElementById(`bl${i}`).textContent = directory[i].name;
else if (document.getElementById(`bp${i}-1`).classList.contains("off")) document.getElementById(`bl${i}`).textContent = directory[i].target.hover;
}, 1000);
}
}
const buttonSizer = () => {
const linksm = document.getElementById("links").getBoundingClientRect();
for (const button of document.getElementsByClassName("button")) {
const measurements = button.getBoundingClientRect();
const center = measurements.y + ((measurements.bottom - measurements.top) / 2);
const minScale = 0.8;
const minOpacity = 0.5;
const basis = ((center - linksm.top) / ((linksm.bottom - linksm.top) / 2)) * ((center - linksm.bottom) / -((linksm.bottom - linksm.top) / 2));
const scaler = (minScale + (1 - minScale) * basis);
const passthrough = (minOpacity + (1 - minOpacity) * basis);
button.style.transform = `scale(${scaler})`;
button.style.filter = `opacity(${passthrough})`;
}
};
if ((directory.length > 6) && !(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))) {
const links = document.getElementById("links");
links.style.height = "calc(59.5px* 6 + 5rem)";
links.addEventListener("scroll", buttonSizer);
buttonSizer();
}
</script>
</html>