Skip to content

Commit b4bf6e4

Browse files
committed
People cards
1 parent 136d76c commit b4bf6e4

File tree

3 files changed

+82
-35
lines changed

3 files changed

+82
-35
lines changed

_data/people.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
- name: Vladimir Diaz
2+
role: Developer
23
since: 2013
34
photo: img/smiley.jpg
45
interests: Software update security
@@ -10,12 +11,13 @@
1011
link: https://www.python.org/dev/peps/pep-0458/
1112
- name: PEP 480
1213
link: http://catalog.unm.edu/catalogs/2013-2014/courses/PEP/480-582.html
13-
deployments: TUF (used in Flynn, LEAP, and Docker software repositories; on-going integrations at repositories for Ruby, CoreOS, Haskell, OCaml, and Python’s PyPI).
14+
deployments: TUF (used in Flynn, LEAP, and Docker software repositories; on-going integrations at repositories for Ruby, CoreOS, Haskell, OCaml, and Python’s PyPI).
1415

1516
- name: Lukas Pühringer
17+
role: Developer
1618
since: 2016
1719
photo: img/smiley.jpg
18-
interests: Security in operating systems and full stack networking; <br \> Distributed software development and version control systems; Front-end development and graphical user interfaces
20+
interests: Security in operating systems and full stack networking. Distributed software and version control systems.
1921
projects: Lead Developer for Toto
2022
publications:
2123
- name: PIK 2013

css/people.scss

Lines changed: 52 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,72 @@
11
---
22
---
33

4-
.people-boxes .person {
4+
.people-boxes {
5+
margin-top: 3em;
6+
font-size: 0.8em;
7+
}
8+
9+
.people-boxes li {
510
list-style-type: none;
11+
margin-bottom: 2rem;
12+
}
613

7-
max-width: 30em;
8-
border-width: 2px;
14+
.people-boxes .person {
15+
max-width: 35rem;
16+
border-width: 5px;
917
border-style: solid;
1018
border-color: black;
19+
padding: 1rem;
1120

12-
margin-bottom: 2em;
21+
position: relative;
22+
height: 20rem;
1323
}
1424

1525
.people-boxes .header {
1626
font-weight: bold;
17-
font-size: 1.2em;
27+
font-size: 1.2rem;
28+
display: block;
1829
}
1930

2031
.people-boxes .name {
2132
font-weight: bold;
22-
font-size: 1.5em;
33+
font-size: 1.5rem;
2334
}
2435

2536
.people-boxes .photo {
26-
float: right;
27-
display: inline;
28-
size: 6em;
29-
width: 6em;
37+
position: absolute;
38+
top: 0;
39+
right: 0;
40+
margin: 1rem 1rem;
41+
width: 8rem;
42+
border-style: solid;
43+
border-width: 2px;
44+
}
45+
46+
.people-boxes .role {
47+
font-style: italic;
3048
}
49+
50+
.people-boxes .interests {
51+
position: absolute;
52+
top: 4.5rem;
53+
width: 65%;
54+
}
55+
56+
.people-boxes .publications {
57+
position: absolute;
58+
top: 10rem;
59+
left: 14rem;
60+
}
61+
62+
.people-boxes .projects {
63+
position: absolute;
64+
top: 10rem;
65+
}
66+
67+
.people-boxes .deployments {
68+
position: absolute;
69+
top: 14rem;
70+
}
71+
72+

people.html

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,34 @@
77

88
<ul class="people-boxes">
99
{% for person in site.data.people %}
10-
<li class="person">
11-
<div class="name"> {{ person.name }} </div>
12-
<img class="photo" src="{{ person.photo }}" />
13-
<div class="interests">
14-
<span class="header">Research Interests</span>
15-
{{ person.interests }}
16-
</div>
17-
<div class="projects">
18-
<span class="header">Lab Projects</span>
19-
{{ person.projects }}
20-
</div>
21-
<div class="publications">
22-
<span class="header">Publications</span>
23-
{% assign pubLinks = '' | split:':' %}
24-
{% for publication in person.publications %}
25-
{% capture pubLink %} <a href="{{ publication.link }}">{{ publication.name }}</a> {% endcapture %}
26-
{% assign pubLinks = pubLinks | push: pubLink %}
27-
{% endfor %}
10+
<li>
11+
<div class="person">
12+
<div class="name"> {{ person.name }} </div>
13+
<div class="role"> {{ person.role }} </div>
14+
<img class="photo" src="{{ person.photo }}" />
15+
<div class="interests">
16+
<span class="header">Research Interests</span>
17+
{{ person.interests }}
18+
</div>
19+
<div class="projects">
20+
<span class="header">Lab Projects</span>
21+
{{ person.projects }}
22+
</div>
23+
<div class="publications">
24+
<span class="header">Publications</span>
25+
{% assign pubLinks = '' | split:':' %}
26+
{% for publication in person.publications %}
27+
{% capture pubLink %} <a href="{{ publication.link }}">{{ publication.name }}</a> {% endcapture %}
28+
{% assign pubLinks = pubLinks | push: pubLink %}
29+
{% endfor %}
2830

2931

30-
{{ pubLinks | array_to_sentence_string }}
31-
</div>
32-
<div class="deployments">
33-
<span class="header">Software/System Deployments</span>
34-
{{ person.deployments }}
32+
{{ pubLinks | array_to_sentence_string }}
33+
</div>
34+
<div class="deployments">
35+
<span class="header">Software/System Deployments</span>
36+
{{ person.deployments }}
37+
</div>
3538
</div>
3639
</li>
3740
{% endfor %}

0 commit comments

Comments
 (0)