-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
81 lines (71 loc) · 1.63 KB
/
Copy pathindex.html
File metadata and controls
81 lines (71 loc) · 1.63 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
---
layout: page
---
<div class="intro-section">
<div class="intro-text">
<span class="intro-name">Francesca Morfini</span>
<p>
Hi, I am Francesca! I am a postdoctoral research fellow at McLean Hospital, Harvard Medical School.
I work with Dr.
<a href="https://webbslab.com/" target="_blank" rel="noopener noreferrer">Christian Webb</a>
(McLean Hospital) in the Treatment & Etiology of Depression in Youth Laboratory.
</p>
</div>
<img
src="/assets/img/Francesca_Morfini_headshot_round.png"
alt="Francesca Morfini headshot"
class="headshot"
>
</div>
<style>
.intro-section {
display: flex;
align-items: center;
gap: 2rem;
margin-top: 1rem;
flex-wrap: wrap; /* allows stacking on mobile */
}
.headshot {
width: 40%; /* default for normal desktop */
max-width: none;
object-fit: scale-down;
border-radius: 50%;
order: 2; /* image on right for web */
}
.intro-text {
flex: 1;
order: 1;
}
.intro-name {
color: #E34234;
font-size: 2.5rem;
font-weight: bold;
}
/* Mobile: stack with image first */
@media (max-width: 768px) {
.intro-section {
flex-direction: column;
text-align: center;
}
.headshot {
width: 150px;
margin-bottom: 1rem;
order: 1; /* swap order: image first */
}
.intro-text {
order: 2; /* text after image */
}
.intro-name {
font-size: 1.8rem;
}
}
/* Larger screens */
@media (min-width: 1200px) {
.headshot {
width: 50%; /* bigger image on wide screens */
}
.intro-name {
font-size: 3rem;
}
}
</style>