-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
808 lines (713 loc) · 36 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Ben Follington - Designer, Programmer, Researcher, Artist (bf.wtf)</title>
<style>
:root {
--spacing-0: 3px;
--spacing-1: 6px;
--spacing-2: 12px;
--spacing-3: 18px;
--spacing-4: 24px;
--spacing-5: 30px;
--roundness: 4px;
--fg-text: #aaa;
--highlight-text: #efefef;
--base-font-size: 16px;
--small-font-size: 13px;
--header-font-size: 14px;
--small-header-font-size: 12px;
--icon-size: 18px;
--max-width: 450px;
--base-animation-delay: 0.4s;
--animation-spacing: 0.025s;
--hover-cursor: crosshair;
--ring-offset-shadow: 0 0 #0000;
--ring-shadow: 0 0 #0000;
--shadow-color: rgba(0, 0, 0, 0.2);
--shadow: 0px 1px 0px -1px var(--shadow-color), 0px 1px 1px -1px var(--shadow-color), 0px 1px 2px -1px var(--shadow-color), 0px 2px 4px -2px var(--shadow-color), 0px 3px 6px -3px var(--shadow-color);
}
* {
margin: 0;
padding: 0;
}
html,
body,
canvas {
width: 100%;
height: 100%;
background: black;
font-size: var(--base-font-size);
color: var(--fg-text);
font-family: "Martian Mono", monospace;
}
.background {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.content {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
gap: 4px;
justify-content: flex-start;
align-items: flex-start;
padding: var(--spacing-2);
box-sizing: border-box;
overflow-y: auto;
background: linear-gradient(128deg, rgba(48,48,64,0.7) 0%, rgba(64,64,64,0.4) 33%, rgba(64,64,64,0.4) 100%);
}
.glassy {
background: linear-gradient(rgba(24,32,32,0.9) 0%, rgba(0,0,0,0.64) 50%, rgba(0,0,0,0.6) 100%);
background-position: 50% 0%;
/* background-color: rgba(0, 0, 0, 0.64); */
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
box-sizing: border-box;
background-clip: padding-box;
border: 1px solid rgba(128, 128, 128, 0.07);
box-shadow: var(--ring-offset-shadow, 0 0 #0000), var(--ring-shadow, 0 0 #0000), var(--shadow);
border-radius: var(--roundness);
}
.role {
min-height: 128px;
background-size: 64%;
background-repeat: no-repeat;
transition: background-position 0.15s ease-out;
display: block;
text-decoration: none;
color: var(--fg-text);
}
.role.subconscious {
background-image: url("/subconscious.png");
background-size: 55%;
background-position: 125% 32px;
}
.role.twopm {
background-image: url("/twopm.png");
background-position: 125% 24px;
}
.pixel {
image-rendering: crisp-edges;
image-rendering: pixelated;
}
@media screen and (max-width: 600px) {
.role {
background-size: 75%;
background-position: 125% 50px;
}
.role.subconscious {
background-size: 64%;
background-position: 125% 48px;
}
}
.job-title {
/* margin-left: var(--spacing-5); */
font-size: var(--small-font-size);
}
.panel {
display: block;
padding: var(--spacing-1);
max-width: var(--max-width);
transition: transform 0.15s ease-out;
}
.panel:hover {
transform: scale(1.025);
}
.small {
font-size: var(--small-font-size);
}
.panel.small {
padding: var(--spacing-0);
}
.thoughts {
display: block;
font-size: var(--small-font-size);
max-width: var(--max-width);
}
.full-width {
width: 100%;
max-width: var(--max-width);
}
.tags span {
font-size: var(--small-font-size);
display: inline-block;
margin: 0;
margin-right: calc(-1 * var(--spacing-2) + 4px);
margin-bottom: var(--spacing-0);
padding: var(--spacing-0);
border-radius: var(--roundness);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
box-sizing: border-box;
}
.tags span:hover {
z-index: 999;
position: relative;
}
.tags .glassy, .small.glassy {
background-image: none;
background-color: rgba(0, 0, 0, 0.32);
}
.two-column {
display: flex;
flex-direction: row;
width: 100%;
max-width: var(--max-width);
gap: 6px;
}
.two-column div {
flex: 0.5;
}
.project-link {
display: inline-block;
margin-top: var(--spacing-2);
}
.heading {
margin-top: var(--spacing-4);
text-shadow: 0px 1px 5px rgba(0, 0, 0, 1), 0px 1px 16px rgba(0, 0, 0, 0.5), 0px 1px 32px rgba(0, 0, 0, .32);
color: var(--highlight-text);
opacity: 0.75;
font-size: var(--small-header-font-size);
}
.heading.small {
margin-top: var(--spacing-1);
}
/* ANIMATIONS */
@keyframes fadeIn {
from {
opacity: 0;
transform: translate3d(0, -12px, 0);
}
to {
opacity: 1;
transform: translate3d(0, 0, 0);
}
}
.fade-in {
animation: fadeIn 0.1s ease-out backwards;
}
.fade-in:nth-child(1) {
animation-delay: calc(var(--base-animation-delay));
}
.fade-in:nth-child(2) {
animation-delay: calc(var(--base-animation-delay) + var(--animation-spacing));
}
.fade-in:nth-child(3) {
animation-delay: calc(var(--base-animation-delay) + 2 * var(--animation-spacing));
}
.fade-in:nth-child(4) {
animation-delay: calc(var(--base-animation-delay) + 3 * var(--animation-spacing));
}
.fade-in:nth-child(5) {
animation-delay: calc(var(--base-animation-delay) + 4 * var(--animation-spacing));
}
.fade-in:nth-child(6) {
animation-delay: calc(var(--base-animation-delay) + 5 * var(--animation-spacing));
}
.fade-in:nth-child(7) {
animation-delay: calc(var(--base-animation-delay) + 6 * var(--animation-spacing));
}
.fade-in:nth-child(8) {
animation-delay: calc(var(--base-animation-delay) + 7 * var(--animation-spacing));
}
.fade-in:nth-child(9) {
animation-delay: calc(var(--base-animation-delay) + 8 * var(--animation-spacing));
}
.fade-in:nth-child(10) {
animation-delay: calc(var(--base-animation-delay) + 9 * var(--animation-spacing));
}
.fade-in:nth-child(11) {
animation-delay: calc(var(--base-animation-delay) + 10 * var(--animation-spacing));
}
.fade-in:nth-child(12) {
animation-delay: calc(var(--base-animation-delay) + 11 * var(--animation-spacing));
}
.fade-in:nth-child(13) {
animation-delay: calc(var(--base-animation-delay) + 12 * var(--animation-spacing));
}
.fade-in:nth-child(14) {
animation-delay: calc(var(--base-animation-delay) + 13 * var(--animation-spacing));
}
.fade-in:nth-child(15) {
animation-delay: calc(var(--base-animation-delay) + 14 * var(--animation-spacing));
}
.fade-in:nth-child(16) {
animation-delay: calc(var(--base-animation-delay) + 15 * var(--animation-spacing));
}
.fade-in:nth-child(17) {
animation-delay: calc(var(--base-animation-delay) + 16 * var(--animation-spacing));
}
.fade-in:nth-child(18) {
animation-delay: calc(var(--base-animation-delay) + 17 * var(--animation-spacing));
}
.fade-in:nth-child(19) {
animation-delay: calc(var(--base-animation-delay) + 18 * var(--animation-spacing));
}
.fade-in:nth-child(20) {
animation-delay: calc(var(--base-animation-delay) + 19 * var(--animation-spacing));
}
</style>
<script type="text/javascript">
window._shaderParams = {
mouseX: 0,
mouseY: 0,
gyroX: 0,
gyroY: 0,
gyroZ: 0,
}
addEventListener("mousemove", (e) => {
window._shaderParams.mouseX = e.clientX / window.innerWidth
window._shaderParams.mouseY = e.clientY / window.innerHeight
})
addEventListener("deviceorientation", (e) => {
window._shaderParams.gyroZ = e.alpha / 360
window._shaderParams.gyroY = e.beta / 180.0
window._shaderParams.gyroX = e.gamma / 90.0
})
document.addEventListener("DOMContentLoaded", (e) => {
document.querySelector("#motion").addEventListener("click", (e) => {
if (!DeviceMotionEvent.requestPermission) {
console.warn("no motion")
return
}
DeviceMotionEvent.requestPermission()
})
})
// define custom elements
class Highlight extends HTMLElement {
render() {
this.shadow.innerHTML = `
<style>
span {
background-color: rgba(255, 255, 255, 0);
color: var(--highlight-text);
display: inline-block;
font-weight: bold;
white-space: nowrap;
padding: 3px 3px;
border-radius: 2px;
line-height: 16px;
transform-origin: left top;
box-shadow: 0px 5px 17px 2px rgba(0,0,0,0);
transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}
img {
vertical-align: middle;
}
span:hover {
background-color: rgba(255, 255, 255, 0.8);
color: rgba(0, 0, 0, 0.8);
cursor: var(--hover-cursor);
transform: scale(1.1);
background-filter: invert(100%);
-webkit-background-filter: invert(100%);
box-shadow:0px 2px 5px 3px rgba(0,0,0,0.31);
}
span:hover img {
filter: invert(100%);
}
</style>
<span><slot></slot></span>`
}
constructor() {
super()
this.shadow = this.attachShadow({ mode: "open" })
}
connectedCallback() {
this.render()
}
}
customElements.define("bf-highlight", Highlight)
class Link extends HTMLElement {
href = ""
target = ""
static get observedAttributes() {
return ["href", "target"]
}
attributeChangedCallback(property, oldValue, newValue) {
if (oldValue === newValue) return
this[property] = newValue
}
render() {
this.shadow.innerHTML = `
<style>
a:hover, a span:hover {
--hover-cursor: pointer;
}
</style>
<a target="${this.target}" href="${this.href}""><bf-highlight><slot></slot></bf-highlight></a>`
}
constructor() {
super()
this.shadow = this.attachShadow({ mode: "open" })
}
connectedCallback() {
this.render()
}
}
customElements.define("bf-link", Link)
class Marquee extends HTMLElement {
items = ""
static get observedAttributes() {
return ["items"]
}
attributeChangedCallback(property, oldValue, newValue) {
if (oldValue === newValue) return
this[property] = newValue
}
render() {
const items = this.items.split(",")
const lengthApproximationHack = this.items.length * 2 + 16;
const lengthApproximationHackMobile = this.items.length * 2.36 + 24;
this.shadow.innerHTML = `
<style>
.marquee-wrapper {
flex-shrink: 0;
overflow: hidden;
position: relative;
margin-left: calc(-1 * var(--spacing-2));
margin-right: calc(-1 * var(--spacing-2));
height: 24px;
--length-approximation: ${lengthApproximationHack}%;
--negative-length-approximation: -${lengthApproximationHack}%;
}
@media screen and (max-width: 600px) {
.marquee-wrapper {
--length-approximation: ${lengthApproximationHackMobile}%;
--negative-length-approximation: -${lengthApproximationHackMobile}%;
}
}
.marquee {
position: absolute;
left: 0;
right: 0;
display: inline-flex;
flex-direction: row;
flex-wrap: nowrap;
white-space: nowrap;
animation: marquee 32s linear infinite;
}
.marquee-delay {
animation: marquee-2 32s linear infinite;
}
@keyframes marquee {
0% {
transform: translateX(0);
}
100% {
transform: translateX(var(--negative-length-approximation));
}
}
@keyframes marquee-2 {
0% {
transform: translateX(var(--length-approximation));
}
100% {
transform: translateX(0%);
}
}
.marquee span {
font-size: var(--small-font-size);
display: inline-block;
margin: 0;
margin-right: var(--spacing-0);
margin-bottom: var(--spacing-0);
background-color: rgba(0, 0, 0, 0.2);
padding: var(--spacing-0) var(--spacing-1);
border-radius: var(--roundness);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
box-sizing: border-box;
}
</style>
<div class="full-width marquee-wrapper fade-in">
<div class="marquee">
${items.map((item) => `<span class="glassy">${item}</span>`).join("")}
</div>
<div class="marquee marquee-delay">
${items.map((item) => `<span class="glassy">${item}</span>`).join("")}
</div>
</div>`
}
constructor() {
super()
this.shadow = this.attachShadow({ mode: "open" })
}
connectedCallback() {
this.render()
}
}
customElements.define("bf-marquee", Marquee)
class Icon extends HTMLElement {
type = "none"
static get observedAttributes() {
return ["type"]
}
attributeChangedCallback(property, oldValue, newValue) {
if (oldValue === newValue) return
this[property] = newValue
}
render() {
const style = `
<style>
.icon {
vertical-align: middle;
line-height: 10px;
position: relative;
top: -1px;
}
.icon svg {
width: var(--icon-size);
height: var(--icon-size);
}
</style>`
let body = ""
switch (this.type) {
case "none":
body = ``
break
case "arrow":
body = `
<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.14645 3.14645C8.34171 2.95118 8.65829 2.95118 8.85355 3.14645L12.8536 7.14645C13.0488 7.34171 13.0488 7.65829 12.8536 7.85355L8.85355 11.8536C8.65829 12.0488 8.34171 12.0488 8.14645 11.8536C7.95118 11.6583 7.95118 11.3417 8.14645 11.1464L11.2929 8H2.5C2.22386 8 2 7.77614 2 7.5C2 7.22386 2.22386 7 2.5 7H11.2929L8.14645 3.85355C7.95118 3.65829 7.95118 3.34171 8.14645 3.14645Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></svg>
`
break
case "person":
body = `
<svg
width="15"
height="15"
viewBox="0 0 15 15"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M7.5 0.875C5.49797 0.875 3.875 2.49797 3.875 4.5C3.875 6.15288 4.98124 7.54738 6.49373 7.98351C5.2997 8.12901 4.27557 8.55134 3.50407 9.31167C2.52216 10.2794 2.02502 11.72 2.02502 13.5999C2.02502 13.8623 2.23769 14.0749 2.50002 14.0749C2.76236 14.0749 2.97502 13.8623 2.97502 13.5999C2.97502 11.8799 3.42786 10.7206 4.17091 9.9883C4.91536 9.25463 6.02674 8.87499 7.49995 8.87499C8.97317 8.87499 10.0846 9.25463 10.8291 9.98831C11.5721 10.7206 12.025 11.8799 12.025 13.5999C12.025 13.8623 12.2376 14.0749 12.5 14.0749C12.7623 14.075 12.975 13.8623 12.975 13.6C12.975 11.72 12.4778 10.2794 11.4959 9.31132C10.7244 8.55135 9.70025 8.12903 8.50625 7.98352C10.0187 7.5474 11.125 6.15289 11.125 4.5C11.125 2.49797 9.50203 0.875 7.5 0.875ZM4.825 4.5C4.825 3.02264 6.02264 1.825 7.5 1.825C8.97736 1.825 10.175 3.02264 10.175 4.5C10.175 5.97736 8.97736 7.175 7.5 7.175C6.02264 7.175 4.825 5.97736 4.825 4.5Z"
fill="currentColor"
fill-rule="evenodd"
clip-rule="evenodd"
></path>
</svg>`
break
case "mouse":
body = `
<svg
width="15"
height="15"
viewBox="0 0 15 15"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M3.29227 0.048984C3.47033 -0.032338 3.67946 -0.00228214 3.8274 0.125891L12.8587 7.95026C13.0134 8.08432 13.0708 8.29916 13.0035 8.49251C12.9362 8.68586 12.7578 8.81866 12.5533 8.82768L9.21887 8.97474L11.1504 13.2187C11.2648 13.47 11.1538 13.7664 10.9026 13.8808L8.75024 14.8613C8.499 14.9758 8.20255 14.8649 8.08802 14.6137L6.15339 10.3703L3.86279 12.7855C3.72196 12.934 3.50487 12.9817 3.31479 12.9059C3.1247 12.8301 3 12.6461 3 12.4414V0.503792C3 0.308048 3.11422 0.130306 3.29227 0.048984ZM4 1.59852V11.1877L5.93799 9.14425C6.05238 9.02363 6.21924 8.96776 6.38319 8.99516C6.54715 9.02256 6.68677 9.12965 6.75573 9.2809L8.79056 13.7441L10.0332 13.178L8.00195 8.71497C7.93313 8.56376 7.94391 8.38824 8.03072 8.24659C8.11753 8.10494 8.26903 8.01566 8.435 8.00834L11.2549 7.88397L4 1.59852Z"
fill="currentColor"
fill-rule="evenodd"
clip-rule="evenodd"
></path>
</svg>`
break
case "cursor":
body = `
<svg
width="15"
height="15"
viewBox="0 0 15 15"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M4.5 1C4.22386 1 4 1.22386 4 1.5C4 1.77614 4.22386 2 4.5 2C5.42215 2 6.0399 2.23054 6.42075 2.56379C6.79286 2.88939 7 3.36626 7 4V7H5.75C5.47386 7 5.25 7.22386 5.25 7.5C5.25 7.77614 5.47386 8 5.75 8H7V11C7 11.6337 6.79286 12.1106 6.42075 12.4362C6.0399 12.7695 5.42215 13 4.5 13C4.22386 13 4 13.2239 4 13.5C4 13.7761 4.22386 14 4.5 14C5.57785 14 6.4601 13.7305 7.07925 13.1888C7.24168 13.0467 7.38169 12.8896 7.5 12.7198C7.61832 12.8896 7.75832 13.0467 7.92075 13.1888C8.5399 13.7305 9.42215 14 10.5 14C10.7761 14 11 13.7761 11 13.5C11 13.2239 10.7761 13 10.5 13C9.57785 13 8.9601 12.7695 8.57925 12.4362C8.20714 12.1106 8 11.6337 8 11V8H9.25C9.52614 8 9.75 7.77614 9.75 7.5C9.75 7.22386 9.52614 7 9.25 7H8V4C8 3.36626 8.20714 2.88939 8.57925 2.56379C8.9601 2.23054 9.57785 2 10.5 2C10.7761 2 11 1.77614 11 1.5C11 1.22386 10.7761 1 10.5 1C9.42215 1 8.5399 1.26946 7.92075 1.81121C7.75832 1.95333 7.61832 2.11043 7.5 2.28023C7.38168 2.11043 7.24168 1.95333 7.07925 1.81121C6.4601 1.26946 5.57785 1 4.5 1Z"
fill="currentColor"
fill-rule="evenodd"
clip-rule="evenodd"
></path>
</svg>`
break
case "wand":
body = `
<svg
width="15"
height="15"
viewBox="0 0 15 15"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M13.9 0.499976C13.9 0.279062 13.7209 0.0999756 13.5 0.0999756C13.2791 0.0999756 13.1 0.279062 13.1 0.499976V1.09998H12.5C12.2791 1.09998 12.1 1.27906 12.1 1.49998C12.1 1.72089 12.2791 1.89998 12.5 1.89998H13.1V2.49998C13.1 2.72089 13.2791 2.89998 13.5 2.89998C13.7209 2.89998 13.9 2.72089 13.9 2.49998V1.89998H14.5C14.7209 1.89998 14.9 1.72089 14.9 1.49998C14.9 1.27906 14.7209 1.09998 14.5 1.09998H13.9V0.499976ZM11.8536 3.14642C12.0488 3.34168 12.0488 3.65826 11.8536 3.85353L10.8536 4.85353C10.6583 5.04879 10.3417 5.04879 10.1465 4.85353C9.9512 4.65827 9.9512 4.34169 10.1465 4.14642L11.1464 3.14643C11.3417 2.95116 11.6583 2.95116 11.8536 3.14642ZM9.85357 5.14642C10.0488 5.34168 10.0488 5.65827 9.85357 5.85353L2.85355 12.8535C2.65829 13.0488 2.34171 13.0488 2.14645 12.8535C1.95118 12.6583 1.95118 12.3417 2.14645 12.1464L9.14646 5.14642C9.34172 4.95116 9.65831 4.95116 9.85357 5.14642ZM13.5 5.09998C13.7209 5.09998 13.9 5.27906 13.9 5.49998V6.09998H14.5C14.7209 6.09998 14.9 6.27906 14.9 6.49998C14.9 6.72089 14.7209 6.89998 14.5 6.89998H13.9V7.49998C13.9 7.72089 13.7209 7.89998 13.5 7.89998C13.2791 7.89998 13.1 7.72089 13.1 7.49998V6.89998H12.5C12.2791 6.89998 12.1 6.72089 12.1 6.49998C12.1 6.27906 12.2791 6.09998 12.5 6.09998H13.1V5.49998C13.1 5.27906 13.2791 5.09998 13.5 5.09998ZM8.90002 0.499976C8.90002 0.279062 8.72093 0.0999756 8.50002 0.0999756C8.2791 0.0999756 8.10002 0.279062 8.10002 0.499976V1.09998H7.50002C7.2791 1.09998 7.10002 1.27906 7.10002 1.49998C7.10002 1.72089 7.2791 1.89998 7.50002 1.89998H8.10002V2.49998C8.10002 2.72089 8.2791 2.89998 8.50002 2.89998C8.72093 2.89998 8.90002 2.72089 8.90002 2.49998V1.89998H9.50002C9.72093 1.89998 9.90002 1.72089 9.90002 1.49998C9.90002 1.27906 9.72093 1.09998 9.50002 1.09998H8.90002V0.499976Z"
fill="currentColor"
fill-rule="evenodd"
clip-rule="evenodd"
></path>
</svg>`
break
case "house":
body = `
<svg
width="15"
height="15"
viewBox="0 0 15 15"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M7.07926 0.222253C7.31275 -0.007434 7.6873 -0.007434 7.92079 0.222253L14.6708 6.86227C14.907 7.09465 14.9101 7.47453 14.6778 7.71076C14.4454 7.947 14.0655 7.95012 13.8293 7.71773L13 6.90201V12.5C13 12.7761 12.7762 13 12.5 13H2.50002C2.22388 13 2.00002 12.7761 2.00002 12.5V6.90201L1.17079 7.71773C0.934558 7.95012 0.554672 7.947 0.32229 7.71076C0.0899079 7.47453 0.0930283 7.09465 0.32926 6.86227L7.07926 0.222253ZM7.50002 1.49163L12 5.91831V12H10V8.49999C10 8.22385 9.77617 7.99999 9.50002 7.99999H6.50002C6.22388 7.99999 6.00002 8.22385 6.00002 8.49999V12H3.00002V5.91831L7.50002 1.49163ZM7.00002 12H9.00002V8.99999H7.00002V12Z"
fill="currentColor"
fill-rule="evenodd"
clip-rule="evenodd"
></path>
</svg>`
break
case "pin":
body = `
<svg
width="15"
height="15"
viewBox="0 0 15 15"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M6 3.5C6 2.67157 6.67157 2 7.5 2C8.32843 2 9 2.67157 9 3.5C9 4.32843 8.32843 5 7.5 5C6.67157 5 6 4.32843 6 3.5ZM8 5.94999C9.14112 5.71836 10 4.70948 10 3.5C10 2.11929 8.88071 1 7.5 1C6.11929 1 5 2.11929 5 3.5C5 4.70948 5.85888 5.71836 7 5.94999V13.5C7 13.7761 7.22386 14 7.5 14C7.77614 14 8 13.7761 8 13.5V5.94999Z"
fill="currentColor"
fill-rule="evenodd"
clip-rule="evenodd"
></path>
</svg>`
break
case "moon":
body = `<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></svg>`
break
case "move":
body = `<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.81819 0.93179C7.64245 0.756054 7.35753 0.756054 7.18179 0.93179L5.43179 2.68179C5.25605 2.85753 5.25605 3.14245 5.43179 3.31819C5.60753 3.49392 5.89245 3.49392 6.06819 3.31819L6.99999 2.38638V5.49999C6.99999 5.77613 7.22385 5.99999 7.49999 5.99999C7.77613 5.99999 7.99999 5.77613 7.99999 5.49999V2.38638L8.93179 3.31819C9.10753 3.49392 9.39245 3.49392 9.56819 3.31819C9.74392 3.14245 9.74392 2.85753 9.56819 2.68179L7.81819 0.93179ZM7.99999 9.49999C7.99999 9.22385 7.77613 8.99999 7.49999 8.99999C7.22385 8.99999 6.99999 9.22385 6.99999 9.49999V12.6136L6.06819 11.6818C5.89245 11.5061 5.60753 11.5061 5.43179 11.6818C5.25605 11.8575 5.25605 12.1424 5.43179 12.3182L7.18179 14.0682C7.35753 14.2439 7.64245 14.2439 7.81819 14.0682L9.56819 12.3182C9.74392 12.1424 9.74392 11.8575 9.56819 11.6818C9.39245 11.5061 9.10753 11.5061 8.93179 11.6818L7.99999 12.6136V9.49999ZM8.99999 7.49999C8.99999 7.22385 9.22385 6.99999 9.49999 6.99999H12.6136L11.6818 6.06819C11.5061 5.89245 11.5061 5.60753 11.6818 5.43179C11.8575 5.25605 12.1424 5.25605 12.3182 5.43179L14.0682 7.18179C14.2439 7.35753 14.2439 7.64245 14.0682 7.81819L12.3182 9.56819C12.1424 9.74392 11.8575 9.74392 11.6818 9.56819C11.5061 9.39245 11.5061 9.10753 11.6818 8.93179L12.6136 7.99999H9.49999C9.22385 7.99999 8.99999 7.77613 8.99999 7.49999ZM3.31819 6.06819L2.38638 6.99999H5.49999C5.77613 6.99999 5.99999 7.22385 5.99999 7.49999C5.99999 7.77613 5.77613 7.99999 5.49999 7.99999H2.38638L3.31819 8.93179C3.49392 9.10753 3.49392 9.39245 3.31819 9.56819C3.14245 9.74392 2.85753 9.74392 2.68179 9.56819L0.93179 7.81819C0.756054 7.64245 0.756054 7.35753 0.93179 7.18179L2.68179 5.43179C2.85753 5.25605 3.14245 5.25605 3.31819 5.43179C3.49392 5.60753 3.49392 5.89245 3.31819 6.06819Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></svg>`
break
case "magnify":
body = `
<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></svg>
`
}
this.shadow.innerHTML = `${style}<span class="icon">${body}</span>`
}
constructor() {
super()
this.shadow = this.attachShadow({ mode: "open" })
}
connectedCallback() {
this.render()
}
}
customElements.define("bf-icon", Icon)
</script>
<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=Martian+Mono:wght@300;700&display=swap"
rel="stylesheet"
/>
<!-- self-hosted analytics -->
<script async defer data-website-id="b548cc69-60e7-4439-8ede-a2fcd3338ff0" src="https://google-analytics-sucks.vercel.app/umami.js"></script>
</head>
<body>
<div class="background">
<canvas id="shader"></canvas>
</div>
<div class="content">
<div class="panel glassy fade-in">
<p>
<bf-highlight>
<bf-icon type="person"></bf-icon>
Ben Follington</bf-highlight
>
is a <bf-highlight><bf-icon type="mouse"></bf-icon> Designer</bf-highlight>,
<bf-highlight>
<bf-icon type="cursor"></bf-icon>
Programmer</bf-highlight
>,
<bf-highlight>
<bf-icon type="magnify"></bf-icon>
Researcher</bf-highlight
>
and
<bf-highlight>
<bf-icon type="wand"></bf-icon>
Artist</bf-highlight
> living in
<bf-highlight>
<bf-icon type="pin"></bf-icon>
Brisbane, AU
</bf-highlight>
</p>
</div>
<!-- <div class="panel glassy fade-in full-width">
<p>
<span>
<bf-icon type="house"></bf-icon>
living in
</span>
</p>
</div> -->
<h1 class="heading fade-in">Now</h1>
<div class="two-column fade-in">
<div class="panel glassy">
<a href="https://subconscious.network/" class="role subconscious">
<bf-link href="https://subconscious.network/">
Subconscious</bf-link
><br />
<span class="job-title">App Developer</span>
</a>
</div>
<div class="panel glassy ">
<a href="https://twopm.studio" class="role twopm">
<bf-link href="https://twopm.studio">
TwoPM Studios</bf-link
><br />
<span class="job-title">Technical Director</span>
</a>
</div>
</div>
<h1 class="heading fade-in">Interests</h1>
<bf-marquee class="full-width fade-in" items="video games,user interfaces,generative art,creative computing,education,mindfulness,psychology,consciousness"></bf-marquee>
<bf-marquee class="full-width fade-in" items="figma,unity3d,godot,touchdesigner,vim,git,rive,blender,aseprite,ableton,davinci resolve"></bf-marquee>
<bf-marquee class="full-width fade-in" items="typescript,react,clojure,solidjs,rust,swift,svelte,Next.js,F#,C#,HTML,CSS,webgl,three.js"></bf-marquee>
<h1 class="heading fade-in">Past</h1>
<div class="full-width tags fade-in">
<span class="glassy"><bf-link href="http://nats.io/">nats.io</bf-highlight></span>
<span class="glassy"><bf-link href="https://www.economicpossibility.org/">LEP</bf-highlight></span>
<span class="glassy"><bf-link href="https://zkga.me/">darkforest.eth</bf-highlight></span>
<span class="glassy"><bf-link href="https://fundamental.sh/">fundamental.sh</bf-highlight></span>
<span class="glassy"><bf-link href="https://www.connectdevelop.com/">Connect Develop</bf-highlight></span>
<span class="glassy"><bf-link href="https://www.locatrix.com/">Locatrix</bf-highlight></span>
<span class="glassy"><bf-highlight>Voltic Games</bf-highlight></span>
<span class="glassy"><bf-link href="https://www.uq.edu.au/">UQ</bf-highlight></span>
</div>
<h1 class="heading fade-in">Links</h1>
<div class="full-width tags fade-in">
<span class="glassy"><bf-link target="new" href="https://cv.bf.wtf/">CV</bf-link></span>
<span class="glassy"><bf-link target="new" href="https://twitter.com/vivavolt">Twitter</bf-link></span>
<span class="glassy"><bf-link target="new" href="https://github.com/bfollington">Github</bf-link></span>
<span class="glassy"><bf-link target="new" href="https://store.steampowered.com/app/1274210/WizardChess/">WizardChess</bf-link></span>
<span class="glassy"
><bf-link target="new" href="https://shimmeringvoid.substack.com/"
>Substack</bf-link
></span
>
<span class="glassy"><bf-link target="new" href="https://www.are.na/ben-follington">Are.na</bf-link></span>
<span class="glassy"
><bf-link target="new" href="https://www.youtube.com/@vivavolt/">Youtube</bf-link></span
>
<span class="glassy"><bf-link target="new" href="mailto:work@bf.wtf">Email</bf-link></span>
</div>
<!-- <button class="glassy" type="button" id="motion">enable device motion</button> -->
</div>
</div>
<script src="background.js"></script>
</body>
</html>