Skip to content

Commit 906ea74

Browse files
committed
work on people
1 parent 74b12af commit 906ea74

4 files changed

Lines changed: 53 additions & 15 deletions

File tree

images/kushal.jpg

83.2 KB
Loading

people.html

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,23 @@
2121
<a href="sponsors.html">Sponsors</a>
2222
</nav>
2323

24-
<header class="other">
25-
<h1>People</h1>
26-
</header>
24+
<div class="image-row">
25+
<div class="image-item">
26+
<img src="/images/kushal.jpg" alt="Image 1" />
27+
<p class="caption">
28+
<b>Kushal Kolar</b> <br />
29+
PhD Candidate <br />
30+
NYU Williams Lab
31+
</p>
32+
</div>
33+
34+
<div class="image-item">
35+
<img src="images/logo_face.png" alt="Image 2" />
36+
<p class="caption">
37+
This is centered text under the second image. Same behavior here.
38+
</p>
39+
</div>
40+
</div>
2741
</main>
2842

2943
<footer class="footer">

sponsors.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
<header class="site-header">
2929
<h1>
30-
We would like to thank the institutions who have been involved with
30+
We would like to thank the institutions that have been involved with
3131
<br />
3232
fastplotlib over the past few years.
3333
</h1>

style.css

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,6 @@ main .title {
3434
margin-top: 1.2rem;
3535
}
3636

37-
.other h1 {
38-
font-family: "Times New Roman", Times, serif;
39-
font-size: 3.5rem;
40-
font-weight: 500;
41-
margin: 0;
42-
line-height: 1.1;
43-
margin-left: 1rem;
44-
margin-top: 2rem;
45-
text-align: center;
46-
}
47-
4837
/* Footer */
4938
.footer {
5039
background-color: #e9e9e9;
@@ -138,3 +127,38 @@ main .quad-text {
138127
/* color: #444; */
139128
text-align: left;
140129
}
130+
131+
/* People page */
132+
.image-row {
133+
display: flex;
134+
justify-content: center; /* centers images as a group */
135+
align-items: flex-start;
136+
gap: 40px;
137+
margin: 40px auto; /* <-- THIS is the key */
138+
width: 100%;
139+
}
140+
141+
.image-row image-item {
142+
display: flex;
143+
flex-direction: column;
144+
align-items: center;
145+
}
146+
147+
.image-item {
148+
display: flex;
149+
flex-direction: column;
150+
align-items: center;
151+
text-align: center; /* ensures text is centered */
152+
width: fit-content;
153+
}
154+
155+
.image-item img {
156+
width: 180px; /* ← change this number */
157+
height: auto;
158+
}
159+
160+
.image-item .caption {
161+
width: 100%; /* match the image width (since parent shrink-wraps) */
162+
text-align: center;
163+
margin: 10px 0 0;
164+
}

0 commit comments

Comments
 (0)