-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
892 lines (760 loc) · 35.6 KB
/
index.html
File metadata and controls
892 lines (760 loc) · 35.6 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
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
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kian Shaker, PhD</title>
<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=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap" rel="stylesheet">
<link rel="icon" type="image/x-icon" href="favicon/favicon.ico">
<link rel="icon" type="image/png" sizes="32x32" href="favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon/favicon-16x16.png">
<link rel="apple-touch-icon" sizes="180x180" href="favicon/apple-touch-icon.png">
<link rel="manifest" href="favicon/site.webmanifest">
<script data-goatcounter="https://xrayshaker.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
<style>
/* ==== COLOR VARIABLES - CHANGE THESE TO UPDATE THE ENTIRE SITE'S COLOR SCHEME ==== */
:root {
--main-color: #1c75bc;
--main-color-rgb: 28, 117, 188;
--main-color-green: #39b54a;
--main-color-gray: #888;
--main-color-red: #dc3545;
}
/* ============================================================================= */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'DM Sans', sans-serif;
background: #fafafa;
color: #333;
min-height: 100vh;
overflow-y: auto;
padding: 2rem;
}
.container {
min-height: 100%;
max-width: 1150px;
margin: 0 auto;
display: grid;
grid-template-columns: 1fr 0.6fr;
grid-template-rows: auto 1fr;
gap: 1.5rem;
}
.header {
grid-column: 1 / -1;
margin-bottom: 0.3rem;
display: flex;
align-items: center;
justify-content: space-between;
}
.profile-photo {
height: 5rem; /* 50% larger than the 2.5rem text */
width: auto;
flex-shrink: 0;
animation: slowShakeRotation 4s ease-in-out infinite;
transform-origin: center;
}
h1 {
font-size: 2.5rem;
font-weight: 300;
color: var(--main-color);
margin-bottom: 0.5rem;
line-height: 1.2;
}
.left-column {
display: flex;
flex-direction: column;
gap: 1.2rem;
}
.right-column {
display: flex;
flex-direction: column;
gap: 1.2rem;
}
.section {
background: white;
border: 2px solid var(--main-color);
border-radius: 8px;
padding: 1.2rem;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.section h2 {
font-size: 1.3rem;
color: var(--main-color);
margin-bottom: 1rem;
font-weight: 500;
line-height: 1.4;
}
.brief-description {
flex: 1;
}
.brief-description p {
line-height: 1.6;
color: #555;
font-size: 1rem;
}
.brief-description a {
color: var(--main-color);
text-decoration: none;
}
.contact {
flex: 0 0 auto;
}
.contact p {
color: #555;
font-size: 1rem;
line-height: 1.6;
}
.contact a {
color: var(--main-color);
text-decoration: none;
}
.contact a:hover {
text-decoration: underline;
}
.links {
flex: 0 0 auto;
}
.icon-links {
display: flex;
gap: 1rem;
flex-wrap: wrap;
}
.icon-link {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 8px;
background: #f8f9ff;
border: 1px solid #e2e8f0;
transition: all 0.2s ease;
text-decoration: none;
}
.icon-link:hover {
background: var(--main-color);
border-color: var(--main-color);
transform: translateY(-2px);
}
.icon-link:hover svg {
fill: white;
}
.icon-link svg {
width: 20px;
height: 20px;
fill: var(--main-color);
transition: fill 0.2s ease;
}
/* Arrow Animation Styles */
.flying-arrow {
position: fixed;
pointer-events: none;
z-index: 1000;
width: 80px;
height: 35px;
}
.flying-arrow svg {
width: 100%;
height: 100%;
filter: drop-shadow(0 2px 4px rgba(57, 181, 74, 0.3));
}
@keyframes arrowFade {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
@keyframes arrowShrink {
0% {
transform: scale(1);
}
100% {
transform: scale(0);
}
}
.flying-arrow.animate {
animation: arrowFade 0.8s ease-out forwards;
}
.flying-arrow.animate svg {
animation: arrowShrink 0.8s ease-out forwards;
}
/* Interaction Atom Animation */
.interaction-atom {
position: fixed;
pointer-events: none;
z-index: 999;
width: 42px;
height: 42px;
}
.interaction-atom svg {
width: 100%;
height: 100%;
}
@keyframes atomAppear {
0% {
opacity: 0;
transform: scale(0);
}
30% {
opacity: 1;
transform: scale(1.2);
}
70% {
opacity: 1;
transform: scale(1);
}
100% {
opacity: 0;
transform: scale(0.8);
}
}
@keyframes electronOrbit1 {
0% { transform: rotate(0deg) translateX(20px) rotate(0deg); }
100% { transform: rotate(360deg) translateX(20px) rotate(-360deg); }
}
@keyframes electronOrbit2 {
0% { transform: rotate(120deg) translateX(20px) rotate(-120deg); }
100% { transform: rotate(480deg) translateX(20px) rotate(-480deg); }
}
@keyframes electronOrbit3 {
0% { transform: rotate(240deg) translateX(20px) rotate(-240deg); }
100% { transform: rotate(600deg) translateX(20px) rotate(-600deg); }
}
.interaction-atom.animate {
animation: atomAppear 0.42s ease-out forwards;
}
.interaction-atom.animate .electron-1 {
transform-origin: 30px 30px;
animation: electronOrbit1 0.42s linear forwards;
}
.interaction-atom.animate .electron-2 {
transform-origin: 30px 30px;
animation: electronOrbit2 0.42s linear forwards;
}
.interaction-atom.animate .electron-3 {
transform-origin: 30px 30px;
animation: electronOrbit3 0.42s linear forwards;
}
/* Shaker Text Animation */
.shaker-text {
font-weight: 900 !important; /* Extra bold for "Shaker" - override Tailwind */
display: inline-block;
animation: slowShakeRotation 4s ease-in-out infinite;
transform-origin: center bottom; /* Anchor point like a flame base */
color: var(--main-color) !important;
}
h1 .shaker-text {
font-weight: 900 !important; /* Higher specificity */
color: var(--main-color) !important;
}
@keyframes slowShakeRotation {
0% {
transform: rotate(-1.5deg);
}
50% {
transform: rotate(1.5deg);
}
100% {
transform: rotate(-1.5deg);
}
}
.projects {
flex: 1;
}
.project-list {
list-style: none;
}
.project-list li {
margin-bottom: 0.6rem;
background: #f8f9ff;
border-radius: 4px;
}
.project-list .project-link:hover {
background: rgba(57, 181, 74, 0.1);
border-radius: 4px;
}
.project-list .project-link.red-project:hover {
background: rgba(220, 53, 69, 0.1);
border-radius: 4px;
}
/* New Blue Project Hover Style */
.project-list .project-link.blue-project:hover {
background: rgba(28, 117, 188, 0.1);
border-radius: 4px;
}
.project-link, .project-item {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.4rem;
width: 100%;
color: inherit;
text-decoration: none;
}
.project-link .project-content {
color: var(--main-color-green);
}
.project-link.red-project .project-content {
color: var(--main-color-red);
}
/* New Blue Project Text Color */
.project-link.blue-project .project-content {
color: var(--main-color);
}
.project-list ag {
color: var(--main-color-green);
text-decoration: none;
}
.project-icon {
width: 1.2em;
height: 1.2em;
flex-shrink: 0;
}
.project-content {
flex: 1;
color: #555;
font-size: 1rem;
line-height: 1.6;
}
.upcoming {
font-style: italic !important;
color: var(--main-color-gray) !important;
}
.publications {
flex: 1;
}
.publications-content {
color: #555;
font-size: 1rem;
line-height: 1.6;
}
.publications-content a {
color: var(--main-color);
text-decoration: none;
}
.publications-content a:hover {
text-decoration: underline;
}
/* New Research Areas Styles */
.research-areas {
display: flex;
flex-direction: column;
gap: 0.8rem;
margin: 1rem 0;
}
.research-area {
background: #f8f9ff;
border-radius: 8px;
padding: 0.8rem;
display: flex;
flex-direction: column;
gap: 0.6rem;
}
.research-area h3 {
font-size: 1.1rem;
color: var(--main-color);
margin: 0;
font-weight: 500;
line-height: 1.4;
}
.research-content-row {
display: flex;
align-items: flex-start;
gap: 1rem;
}
.research-image {
width: 80px;
height: 80px;
flex-shrink: 0;
border: 1px dashed #ccc;
}
.research-publications {
flex: 1;
height: 80px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.publication-list {
list-style: none;
font-size: 0.85rem;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.publication-list li {
color: #555;
line-height: 1.6;
}
.publication-list a {
color: var(--main-color);
text-decoration: none;
}
.publication-list a:hover {
text-decoration: underline;
}
@media (max-width: 768px) {
body {
padding: 1rem;
overflow-y: auto;
height: auto;
}
.container {
grid-template-columns: 1fr;
height: auto;
display: flex;
flex-direction: column;
}
.left-column, .right-column {
display: contents;
}
.header {
justify-content: space-between; /* Name left, photo right */
align-items: center; /* Vertically centered */
}
/* Reorder sections for mobile */
.section.brief-description {
order: 1;
}
.section.projects {
order: 2;
}
.section.publications {
order: 3;
}
.section.contact {
order: 4;
}
.links {
order: 5;
}
/* Keep research areas horizontal on mobile but make them more compact */
.research-content-row {
gap: 0.75rem;
}
.research-image {
width: 80px;
height: 80px;
flex-shrink: 0;
}
.research-publications {
height: 80px;
width: auto;
flex: 1;
}
.publication-list {
height: 80px;
gap: 0.3rem;
font-size: 0.8rem;
}
}
@media (max-height: 600px) {
.container {
min-height: auto;
}
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>Kian <span class="shaker-text" style="color: var(--main-color);">Shaker</span></h1>
<img src="profile.svg" alt="Kian Shaker Profile" class="profile-photo">
</div>
<div class="left-column">
<div class="section brief-description">
<h2>About me </h2>
<p>
I am an X-ray physicist curious about global health problems. I encourage my students, and try myself, to cultivate the <a href="https://slimemoldtimemold.com/2022/02/10/the-scientific-virtues/" target="_blank">7 scientific virtues →</a> <br><br>
In my <a href="https://www.diva-portal.org/smash/get/diva2:1646647/FULLTEXT01.pdf" target="_blank">PhD thesis →</a> (2022, KTH Royal Institute of Technology) I used experimental & computational approaches to explore unconventional contrast mechanisms for X-ray imaging in a preclinical setting. I then did my postdoc at the <a href="https://med.stanford.edu/rsl.html" target="_blank">Radiological Sciences Laboratory →</a> (2022-2024, Stanford University) funded by a <a href="https://kaw.wallenberg.org/en/scholarship-programs-20212022" target="_blank">KAW Postdoctoral Scholarship →</a>. Here I got interested in the intersections of clinical radiology, global health, and open hardware. Now I am back <a href="https://www.kth.se/profile/kiansd?l=en" target="_blank">at KTH →</a> in Stockholm, focusing on democratizing X-ray technologies to adress global health challenges <br><br>
You can find my <a href="https://docs.google.com/viewer?url=https://docs.google.com/document/d/17dNtor6kJRgb_J3uOZOfbR4CvDzbdEcJyZf_BMpM_5s/export?format=pdf"
target="_blank">CV here →</a> and publications on <a href="https://scholar.google.com/citations?user=Kihb5S0AAAAJ&hl=en&oi=ao" target="_blank">Google Scholar →</a><br><br>
On this page you can find my ongoing work on open X-ray technologies and exploration of unconventional contrast mechanisms in X-ray imaging
</p>
</div>
<div class="section contact">
<h2>Contact</h2>
<p>
Email: <a href="mailto:kiansd@kth.se">kiansd@kth.se →</a><br><br>
Adress: <a href="https://maps.app.goo.gl/z3CQKfwQhrvbxzEF6">AlbaNova University Center, Stockholm, Sweden →</a>
</p>
</div>
<div class="links">
<div class="icon-links">
<a href="https://scholar.google.com/citations?user=Kihb5S0AAAAJ&hl=en&oi=ao" target="_blank" class="icon-link" title="Google Scholar">
<svg viewBox="0 0 24 24">
<path d="M12 24C5.37 24 0 18.63 0 12S5.37 0 12 0s12 5.37 12 12-5.37 12-12 12zM12 1C5.93 1 1 5.93 1 12s4.93 11 11 11 11-4.93 11-11S18.07 1 12 1zm4.5 11.5c0 2.76-2.24 5-5 5s-5-2.24-5-5 2.24-5 5-5c1.4 0 2.64.58 3.54 1.5l-1.44 1.38c-.55-.52-1.28-.83-2.1-.83-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3h-3v-2h5.5c.28 0 .5.22.5.5v.5z"/>
</svg>
</a>
<a href="https://github.com/xrayshaker" target="_blank" class="icon-link" title="GitHub">
<svg viewBox="0 0 24 24">
<path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/>
</svg>
</a>
<a href="https://orcid.org/0000-0002-7674-6437" target="_blank" class="icon-link" title="ORCID">
<svg viewBox="0 0 24 24">
<path d="M12 0C5.372 0 0 5.372 0 12s5.372 12 12 12 12-5.372 12-12S18.628 0 12 0zM7.369 4.378c.525 0 .947.431.947.947s-.422.947-.947.947a.95.95 0 0 1-.947-.947c0-.525.422-.947.947-.947zm-.722 3.038h1.444v10.041H6.647V7.416zm3.562 0h3.9c3.712 0 5.344 2.653 5.344 5.025 0 2.578-2.016 5.016-5.325 5.016h-3.919V7.416zm1.444 1.303v7.444h2.297c2.359 0 3.725-1.444 3.725-3.722 0-2.016-1.313-3.722-3.706-3.722h-2.316z"/>
</svg>
</a>
<a href="https://se.linkedin.com/in/kian-shaker-90a780113" target="_blank" class="icon-link" title="LinkedIn">
<svg viewBox="0 0 24 24">
<path d="M19.586 0H4.414C1.978 0 0 1.978 0 4.414v15.172C0 22.022 1.978 24 4.414 24h15.172C22.022 24 24 22.022 24 19.586V4.414C24 1.978 22.022 0 19.586 0zM8 19H5v-8h3v8zM6.5 9.75A1.75 1.75 0 1 1 8.3 8a1.78 1.78 0 0 1-1.8 1.75zM19 19h-3v-4.74c0-1.42-.6-1.93-1.38-1.93A1.74 1.74 0 0 0 13 14.19a.66.66 0 0 0 0 .14V19h-3v-8h2.9v1.3a3.11 3.11 0 0 1 2.7-1.4c1.55 0 3.36.86 3.36 3.66z"/>
</svg>
</a>
<a href="https://www.kth.se/profile/kiansd?l=en" target="_blank" class="icon-link" title="KTH Profile">
<svg viewBox="0 0 24 24">
<path d="M12 3L1 9l4 2.18v6L12 21l7-3.82v-6L23 9L12 3zm6.82 6L12 12.72 5.18 9 12 5.28 18.82 9zM17 15.99l-5 2.73-5-2.73v-3.72L12 15l5-2.73v3.72z"/>
</svg>
</a>
</div>
</div>
</div>
<div class="right-column">
<div class="section projects">
<h2><span class="shaker-text" style="color: var(--main-color);">Open</span> X-ray technologies</h2>
<div class="publications-content" style="margin-bottom: 1rem;">
<p>Democratizing solutions to global challenges</p>
</div>
<ul class="project-list">
<li>
<a href="https://opendosimeter.org/" class="project-link">
<svg class="project-icon" viewBox="0 0 82.67 77.9" xmlns="http://www.w3.org/2000/svg">
<path fill="rgba(57, 181, 74, .5)" stroke="#39b54a" stroke-miterlimit="10" stroke-width="2" d="M49.4,37.78c0,2.64-1.26,4.98-3.22,6.43-1.37,1.05-3.01,1.64-4.87,1.64s-3.44-.59-4.78-1.59c-1.99-1.45-3.27-3.82-3.27-6.49,0-.4.03-.79.08-1.19.44-2.79,2.29-5.12,4.79-6.2.96-.42,2.04-.66,3.18-.66s2.16.23,3.14.63h.03c2.53,1.08,4.41,3.41,4.83,6.23.07.4.1.79.1,1.19Z"/>
<path fill="rgba(57, 181, 74, .5)" stroke="#39b54a" stroke-miterlimit="10" stroke-width="2" d="M36.11,26.91c-3.73,1.76-6.4,5.38-6.83,9.67H1C1,21.59,9.19,8.47,21.34,1.53l14.77,25.38Z"/>
<path fill="rgba(57, 181, 74, .5)" stroke="#39b54a" stroke-miterlimit="10" stroke-width="2" d="M81.67,36.58h-28.28c-.43-4.33-3.16-8-6.94-9.73L61.01,1.36c12.32,6.91,20.66,20.09,20.66,35.23Z"/>
<path fill="rgba(57, 181, 74, .5)" stroke="#39b54a" stroke-miterlimit="10" stroke-width="2" d="M61.92,71.24c-6.03,3.61-13.09,5.66-20.6,5.66s-14.31-1.99-20.29-5.49l13.49-23.64c1.93,1.34,4.27,2.13,6.8,2.13s4.95-.8,6.91-2.19l13.69,23.53Z"/>
</svg>
<div class="project-content">
OpenDosimeter → Released
</div>
</a>
</li>
<li>
<a href="https://www.openxrf.org/" class="project-link red-project">
<svg class="project-icon" viewBox="0 0 1277.29 1335.52" xmlns="http://www.w3.org/2000/svg">
<polygon fill="#dc3545" stroke="#dc3545" stroke-miterlimit="10" stroke-width="50" points="1239.24 39.25 1184.97 140.52 1130.65 241.74 1039.41 154.49 1139.31 96.86 1239.24 39.25"/>
<path fill="rgba(220, 54, 69, .5)" stroke="#dc3545" stroke-miterlimit="10" stroke-width="80" d="M1078.06,202.64c-28.05,13.24-66.52,38.22-85.75,87.05-44.3,112.47,53.45,249.86,4,276.93-14.98,8.2-89.99,4.14-230.43-71.6-191.26-103.15-17.97,149.3,43.69,292.84,61.63,143.6-290.59-116.67-368.98-109.7-78.36,6.93,224.59,385.88,145.59,392.29-78.92,6.36-431.02-253.8-368.93-109.75,62.13,144.01,235.21,396.25,43.68,292.84-117.23-63.33-207-99.88-230.45-71.69-10.49,12.61-10.88,44.4,45.15,141.13"/>
</svg>
<div class="project-content">
OpenXRF → Released
</div>
</a>
</li>
<li>
<a href="https://www.openradiography.org" class="project-link blue-project">
<svg class="project-icon" viewBox="0 0 340 359.08" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="o" x1="-18.48" y1="179.54" x2="281.52" y2="179.54" gradientTransform="translate(301.52) rotate(-180) scale(1 -1)" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#fff"/>
<stop offset=".13" stop-color="#e8f1f8"/>
<stop offset=".41" stop-color="#adcde6"/>
<stop offset=".8" stop-color="#4f94cb"/>
<stop offset="1" stop-color="#1c75bc"/>
</linearGradient>
</defs>
<path fill="url(#o)" fill-opacity=".3" stroke="#1c75bc" stroke-width="20" d="M20,329.54c100-40,200-80,300-120,0-20,0-40,0-60C220,109.54,120,69.54,20,29.54v300Z"/>
</svg>
<div class="project-content">
OpenRadiography → <i>Coming soon</i>
</div>
</a>
</li>
</ul>
</div>
<div class="section publications">
<h2>Beyond attenuation contrast</h2>
<div class="publications-content">
<p>My work on improving X-ray imaging sensitivity</p>
<div class="research-areas">
<div class="research-area">
<h3>X-ray fluorescence</h3>
<div class="research-content-row">
<img src="xrf.svg" alt="XRF" class="research-image">
<div class="research-publications">
<ul class="publication-list">
<li><a href="https://doi.org/10.1021/acsnano.0c10127">Saladino et al, ACS Nano (2021) →</a></li>
<li><a href="https://doi.org/10.1109/TMI.2020.3007165">Shaker et al, IEEE TMI (2020) →</a></li>
<li><a href="https://doi.org/10.1364/BOE.10.003773">Shaker et al, Bio. Opt. Exp. (2019) →</a></li>
</ul>
</div>
</div>
</div>
<div class="research-area">
<h3>Phase contrast</h3>
<div class="research-content-row">
<img src="pbi.svg" alt="PBI" class="research-image">
<div class="research-publications">
<ul class="publication-list">
<li><a href="https://doi.org/10.1073/pnas.2210214120">Häggmark et al, PNAS (2023) →</a></li>
<li><a href="https://doi.org/10.1038/s42005-021-00760-8">Shaker et al, Comm. Phys (2021) →</a></li>
<li><a href="https://doi.org/10.1109/TMI.2020.3031318">Häggmark et al, IEEE TMI (2020) →</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
// Arrow animation functionality
function createArrow() {
const arrow = document.createElement('div');
arrow.className = 'flying-arrow';
arrow.innerHTML = `
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 134.51 27.73">
<polygon points="133.56 11.94 119.45 15.44 105.33 18.94 105.58 3.57 119.57 7.75 133.56 11.94" style="fill: #39b54a; stroke: #39b54a; stroke-miterlimit: 10; stroke-width: .5px;"/>
<path d="M106.75,11.13c-2.03-.79-5.16-1.55-8.6-.27-7.93,2.95-10.34,14.08-14.1,12.87-1.14-.37-4.52-4.27-7.33-14.7-3.83-14.2-8.57,5.94-13.03,15.57-4.46,9.63-7.88-19.75-11.99-23.32-4.11-3.57-9.17,28.79-13.28,25.17-4.1-3.62-7.52-32.99-11.99-23.32-4.46,9.67-9.2,29.79-13.03,15.56C11.06,9.98,8.65,3.86,6.08,3.99c-1.15.06-2.81,1.49-5.12,8.7" style="fill: rgba(57, 181, 74, .5); stroke: #39b54a; stroke-miterlimit: 10; stroke-width: 2px;"/>
</svg>
`;
return arrow;
}
function createInteractionAtom() {
const atom = document.createElement('div');
atom.className = 'interaction-atom';
atom.innerHTML = `
<svg viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg">
<circle cx="30" cy="30" r="4" fill="#39b54a" opacity="0.9"/>
<ellipse cx="30" cy="30" rx="20" ry="10"
fill="none" stroke="#39b54a" stroke-width="1.5" opacity="0.7"/>
<ellipse cx="30" cy="30" rx="10" ry="20"
fill="none" stroke="#39b54a" stroke-width="1.5" opacity="0.7"/>
<ellipse cx="30" cy="30" rx="25" ry="12"
fill="none" stroke="#39b54a" stroke-width="1" opacity="0.5"
transform="rotate(45 30 30)"/>
<circle cx="50" cy="30" r="2" fill="#39b54a" class="electron-1"/>
<circle cx="30" cy="10" r="2" fill="#39b54a" class="electron-2"/>
<circle cx="15" cy="45" r="2" fill="#39b54a" class="electron-3"/>
</svg>
`;
return atom;
}
function getRandomEdgePosition() {
const viewportWidth = window.innerWidth;
const viewportHeight = window.innerHeight;
const edge = Math.floor(Math.random() * 4); // 0: top, 1: right, 2: bottom, 3: left
switch(edge) {
case 0: // top
return { x: Math.random() * viewportWidth, y: -30 };
case 1: // right
return { x: viewportWidth + 30, y: Math.random() * viewportHeight };
case 2: // bottom
return { x: Math.random() * viewportWidth, y: viewportHeight + 30 };
case 3: // left
return { x: -30, y: Math.random() * viewportHeight };
default:
return { x: 0, y: 0 };
}
}
function calculateArrowAngle(startX, startY, endX, endY) {
const dx = endX - startX;
const dy = endY - startY;
return Math.atan2(dy, dx) * 180 / Math.PI;
}
function animateArrow(startPos, endPos) {
const arrow = createArrow();
document.body.appendChild(arrow);
// Calculate initial angle (approach to interaction point)
const initialAngle = calculateArrowAngle(startPos.x, startPos.y, endPos.x, endPos.y);
// Calculate precise arrowhead offset based on your SVG
// Your SVG: viewBox="0 0 134.51 27.73", arrowhead tip at x=133.56 (from polygon)
// Arrow width: 80px, so tip offset = (133.56/134.51) * 80 = 79.44px from left edge
// From center: 79.44 - 40 = 39.44px, so offset ratio = 39.44/80 = 0.493
const arrowLength = 80;
const arrowheadOffset = arrowLength * 0.493; // Precise tip position from polygon coordinates
const offsetX = Math.cos(initialAngle * Math.PI / 180) * arrowheadOffset;
const offsetY = Math.sin(initialAngle * Math.PI / 180) * arrowheadOffset;
// Adjust target so arrowhead tip hits exact click position
const adjustedEndX = endPos.x - offsetX;
const adjustedEndY = endPos.y - offsetY;
// Set initial position and rotation
arrow.style.left = startPos.x + 'px';
arrow.style.top = startPos.y + 'px';
arrow.style.transform = `rotate(${initialAngle}deg)`;
// Calculate distance and duration to interaction point
const approachDistance = Math.sqrt(Math.pow(adjustedEndX - startPos.x, 2) + Math.pow(adjustedEndY - startPos.y, 2));
const approachDuration = Math.min(800, Math.max(300, approachDistance * 1.0));
// Phase 1: Animate to interaction point (arrowhead tip reaches exact click position)
arrow.style.transition = `left ${approachDuration}ms linear, top ${approachDuration}ms linear`;
// Force reflow
arrow.offsetHeight;
// Move to adjusted position so arrowhead tip hits click position
arrow.style.left = adjustedEndX + 'px';
arrow.style.top = adjustedEndY + 'px';
// Phase 2: Scatter at interaction point
setTimeout(() => {
// Create interaction atom at exact click position
const atom = createInteractionAtom();
document.body.appendChild(atom);
atom.style.left = (endPos.x - 21) + 'px'; // Center the 42px atom
atom.style.top = (endPos.y - 21) + 'px';
// Add random rotation to the entire atom (apply to SVG to preserve throughout animation)
const randomRotation = Math.random() * 360;
const atomSvg = atom.querySelector('svg');
atomSvg.style.transform = `rotate(${randomRotation}deg)`;
// Trigger atom animation
setTimeout(() => {
atom.classList.add('animate');
// Remove atom after animation (30% faster)
setTimeout(() => {
if (atom.parentNode) {
atom.parentNode.removeChild(atom);
}
}, 420); // 0.6s * 0.7 = 0.42s = 420ms
}, 10);
// Generate random scatter angle (0-360 degrees)
const scatterAngle = Math.random() * 360;
// Calculate scattered endpoint (200px in random direction from click position)
const scatterDistance = 200;
const scatteredEndX = endPos.x + Math.cos(scatterAngle * Math.PI / 180) * scatterDistance;
const scatteredEndY = endPos.y + Math.sin(scatterAngle * Math.PI / 180) * scatterDistance;
// Update rotation for scattered direction
arrow.style.transform = `rotate(${scatterAngle}deg)`;
// Set up scattered trajectory animation
const scatterDuration = 600;
arrow.style.transition = `left ${scatterDuration}ms linear, top ${scatterDuration}ms linear, transform 100ms ease-out`;
// Start scattering movement from current position
arrow.style.left = scatteredEndX + 'px';
arrow.style.top = scatteredEndY + 'px';
// Start fade and shrink animation immediately after scattering begins
setTimeout(() => {
arrow.classList.add('animate');
}, 50);
// Remove arrow after scattered trajectory completes
setTimeout(() => {
if (arrow.parentNode) {
arrow.parentNode.removeChild(arrow);
}
}, scatterDuration + 100);
}, approachDuration);
}
// Add click event listener
document.addEventListener('click', function(event) {
// Don't trigger on link clicks
if (event.target.tagName === 'A' || event.target.closest('a')) {
return;
}
const clickPos = { x: event.clientX, y: event.clientY };
const startPos = getRandomEdgePosition();
animateArrow(startPos, clickPos);
});
// Prevent text selection during rapid clicking
document.addEventListener('selectstart', function(event) {
if (event.detail && event.detail > 1) {
event.preventDefault();
}
});
</script>
</body>
</html>