Skip to content

Commit f23e177

Browse files
committed
people
1 parent 868bd08 commit f23e177

File tree

3 files changed

+82
-55
lines changed

3 files changed

+82
-55
lines changed

content/people.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,22 @@ title: "People"
77
All people are listed in chronological order of joining the lab or
88
starting a collaboration with us.
99

10+
<div class="people-card-container">
1011
{{< person "BR" >}}
11-
1212
{{< person "JvR" >}}
13-
1413
{{< person "JW" >}}
15-
1614
{{< person "KL" >}}
17-
1815
{{< person "ER" >}}
19-
2016
{{< person "SK" >}}
21-
2217
{{< person "DS" >}}
23-
2418
{{< person "RB" >}}
25-
2619
{{< person "ES" >}}
27-
2820
{{< person "RvM" >}}
29-
3021
{{< person "MA" >}}
22+
</div>
23+
24+
25+
3126

3227
| | |
3328
|:--------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------:|

layouts/shortcodes/person.html

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,45 @@
1-
<div class="card">
1+
<div class="card-person">
22
{{ $person := .Get 0 }}
33
{{ $person := index .Site.Data.people $person }}
4-
5-
<div class="card-left">
64
<figure class="person">
75
<img src="{{ $person.image }}" width="180" alt="{{ $person.name }}" />
86
</figure>
9-
</div>
10-
11-
<div class="card-right">
127
<span class="card-name">{{ $person.name }}</span><br />
138
<span class="card-job">{{ $person.job }}</span>
14-
15-
<dl class="card-profiles">
9+
<ul class="card-icons">
1610
{{ with $person.github }}
17-
{{ $link := printf "https://github.com/%s" $person.github }}
18-
{{ partial "profile.html" (dict "name" "GitHub" "link" $link "text" $person.github) }}
11+
<li>
12+
<a href="https://github.com/{{ . }}">
13+
<img src="/github-mark.svg" alt="">
14+
</a>
15+
</li>
1916
{{end }}
17+
18+
{{ with $person.orcid }}
19+
<li>
20+
<a href="{{ . }}">
21+
<img src="/orchid-id.svg" alt="">
22+
</a>
23+
</li>
24+
{{end }}
2025

21-
{{ with $person.orcid }}
22-
{{ $link := printf "https://orcid.org/%s" $person.orcid }}
23-
{{ partial "profile.html" (dict "name" "ORCID" "link" $link "text" $person.orcid) }}
24-
{{end }}
26+
{{ with $person.twitter }}
27+
<li>
28+
<a href="https://twitter.com/{{ . }}">
29+
<img src="/logo-x-black.png" alt="">
30+
</a>
31+
</li>
32+
{{ end }}
33+
{{ with $person.web }}
34+
<li>
35+
<a href="{{ . }}">
36+
<img src="/home.png" alt="">
37+
</a>
38+
</li>
39+
{{ end }}
40+
41+
</ul>
2542

26-
{{ with $person.twitter }}
27-
{{ $link := printf "https://twitter.com/%s" $person.twitter }}
28-
{{ $name := printf "@%s" $person.twitter }}
29-
{{ partial "profile.html" (dict "name" "Twitter" "link" $link "text" $name) }}
30-
{{ end }}
3143

32-
{{ with $person.web }}
33-
{{ partial "profile.html" (dict "name" "Web" "link" $person.web "text" $person.web) }}
34-
{{ end }}
35-
</dl>
3644

37-
<div class="card-bio">
38-
{{ $person.bio | markdownify }}
39-
</div>
40-
</div>
4145
</div>

themes/brevis/static/css/style.css

Lines changed: 46 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ body
6565
header
6666
{
6767
padding: 10px;
68-
border-bottom: 1px solid black;
68+
/*border-bottom: 1px solid black;*/
6969

7070
position: fixed;
7171
top: 0;
@@ -198,29 +198,21 @@ footer
198198
margin: 1% auto;
199199
}
200200

201-
.card
201+
.people-card-container
202202
{
203-
box-shadow : 0 4px 8px 0 rgba(0, 0, 0, 0.2);
203+
display : flex;
204204
max-width : 100%;
205+
/*border: 1px solid red; */
205206
margin : auto;
206-
display : flex;
207207
flex-wrap : wrap;
208-
padding : 1em;
209-
margin-top : 1em;
210-
}
211-
212-
.card-left
213-
{
214-
flex : 1;
215-
max-width: 180px;
208+
row-gap: 1em;
209+
column-gap: 1em;
210+
align-content: center;
211+
justify-content: center;
212+
/*padding : 1em;*/
213+
/*margin-top : 1em;*/
216214
}
217215

218-
.card-right
219-
{
220-
flex: 2;
221-
padding-left: 1em;
222-
line-height: 1.2;
223-
}
224216

225217
.card-name,
226218
{
@@ -323,3 +315,39 @@ article.news
323315
{
324316
margin-bottom: 1em;
325317
}
318+
319+
ul.card-icons
320+
{
321+
list-style: none;
322+
margin: 0;
323+
padding: 0;
324+
}
325+
326+
.card-icons img
327+
{
328+
width: 16px;
329+
}
330+
331+
ul.card-icons li
332+
{
333+
display: inline;
334+
margin: 0;
335+
}
336+
337+
.card-person
338+
{
339+
width: 200px;
340+
box-shadow : 0 4px 8px 0 rgba(0, 0, 0, 0.2);
341+
/*border: 1px solid black; */
342+
/*padding: em;*/
343+
justify-content: center;
344+
align-content: center;
345+
text-align: center;
346+
}
347+
348+
349+
.card-person a
350+
{
351+
text-decoration: none;
352+
}
353+

0 commit comments

Comments
 (0)