-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathslidedeck.html
50 lines (48 loc) · 1.33 KB
/
slidedeck.html
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
<style>
div.gallery {
display: flex;
flex-wrap: wrap;
font-family: Calibri, sans-serif;
place-content: center;
}
div.member {
width: 130px;
text-align: center;
}
.name, .role, .title, .company {
display: block;
margin-top: 5px;
font-family: Calibri, sans-serif;
}
.role {
font-weight: bold;
}
.headshot {
height: 90px;
width: 90px;
position: relative;
overflow: hidden;
border-radius: 50%;
margin: auto;
display: block;
}
.headshot img {
position: absolute;
left: 50%;
top: 50%;
height: 100%;
width: auto;
transform: translate(-50%,-50%);
}
</style>
<div class="gallery">
{% for committee_member in include.committee_members %}
<div class="member"{% if committee_member.Role == 'Chair' %} style="order: -{{ forloop.index0 }};"{% endif %}>
<span class="headshot"><img alt="{{ committee_member.FirstName }} {{ committee_member.LastName }}" src="{%- include snippets/headshot.html profile_image=committee_member.LogoURL member_id=committee_member.MemberID %}"></span>
<span class="name">{{ committee_member.FirstName }} {{ committee_member.LastName }}</span>
<span class="role committee_member-role">{% if committee_member.Role != 'None' %}{{ committee_member.Role }}{% endif %}</span>
<span class="title">{{ committee_member.Title }}</span>
<span class="company">{{ committee_member.Organization.Name }}</span>
</div>
{% endfor %}
</div>