@@ -32,56 +32,181 @@ <h3>Group picture, July 2025</h3>
3232< img width =75% src ="/images/people/CSB-group-2025.png "> < br > < br >
3333</ center >
3434< hr />
35- < div id ="main " role ="main ">
36- < article class ="people ">
37- < h3 > Current members</ h3 >
38- < ul class ="rig columns-4 ">
39- {% for member in site.data.members %}
40- < li >
41- {% if member.avatar %}
42- {% assign avatar = member.avatar %}
43- {% else %}
44- {% assign avatar = '/images/people/bio-photo.jpg' %}
45- {% endif %}
46-
47- {% if member.url %}
48- < a href ="{{ member.url }} " target ="_blank ">
49- < img src ="{{ avatar }} " />
50- </ a >
51- {% else %}
52- < img src ="{{ avatar }} " />
53- {% endif %}
54- < h3 > {{ member.name }}</ h3 >
55- < span class ='mem-position '> {{ member.position }}</ span >
56- < br />
57- {% if member.orcid %}
58- < a target ="_blank " href ={{ member.orcid }} >
59- < img width ="10% " src ="/assets/icons/orcid.svg ">
60- </ a >
61- {% endif %}
62- {% if member.github %}
63- < a target ="_blank " href ={{ member.github }} >
64- < img width ="10% " src ="/assets/icons/github.svg ">
65- </ a >
66- {% endif %}
67- {% if member.linkedin %}
68- < a target ="_blank " href ={{ member.linkedin }} >
69- < img width ="10% " src ="/assets/icons/linkedin.svg ">
70- </ a >
71- {% endif %}
72- {% if member.bluesky %}
73- < a target ="_blank " href ={{ member.bluesky }} >
74- < img width ="10% " src ="/assets/icons/bluesky.svg ">
75- </ a >
76- {% endif %}
77- {% if member.bio %}
78- < p class ='mem-bio '> {{ member.bio }}</ p >
79- {% endif %}
80- </ li >
81- {% endfor %}
82- </ ul >
83- </ article >
84- </ div > <!-- /#index -->
35+ < style >
36+ .team-section {
37+ width : 82% ;
38+ margin : 2rem auto 3rem ;
39+ }
40+ .team-grid {
41+ display : grid;
42+ grid-template-columns : repeat (auto-fill, minmax (155px , 1fr ));
43+ gap : 1.25rem ;
44+ list-style : none;
45+ margin : 0 ;
46+ padding : 0 ;
47+ }
48+ .member-card {
49+ background : # fff ;
50+ border : 1px solid # e8e8e8 ;
51+ border-radius : 3px ;
52+ padding : 1.25rem 0.9rem 0.9rem ;
53+ display : flex;
54+ flex-direction : column;
55+ align-items : center;
56+ text-align : center;
57+ position : relative;
58+ overflow : hidden;
59+ }
60+ .member-card ::before {
61+ content : '' ;
62+ position : absolute;
63+ top : 0 ; left : 0 ; right : 0 ;
64+ height : 3px ;
65+ }
66+ .member-card [data-role = "professor" ]::before { background : # C64537 ; }
67+ .member-card [data-role = "engineer" ]::before { background : # 343434 ; }
68+ .member-card [data-role = "postdoc" ]::before { background : # 308cbc ; }
69+ .member-card [data-role = "phd" ]::before { background : # 5cb85c ; }
70+ .member-card [data-role = "msc" ]::before { background : # dd8338 ; }
71+ .member-card [data-role = "visiting" ]::before { background : # 9b59b6 ; }
72+ .member-card [data-role = "other" ]::before { background : # ccc ; }
73+ .member-photo {
74+ width : 100px ;
75+ height : 100px ;
76+ overflow : hidden;
77+ margin-bottom : 0.85rem ;
78+ flex-shrink : 0 ;
79+ border : 3px solid # f0f0f0 ;
80+ }
81+ .member-photo img {
82+ width : 100% ;
83+ height : 100% ;
84+ object-fit : cover;
85+ display : block;
86+ }
87+ .member-name {
88+ font-family : 'PT Sans Narrow' , sans-serif;
89+ font-size : 1.15rem ;
90+ font-weight : 700 ;
91+ color : # 222 ;
92+ margin : 0 0 0.3rem ;
93+ line-height : 1.25 ;
94+ }
95+ .member-name a {
96+ color : inherit;
97+ text-decoration : none;
98+ }
99+ .member-name a : hover {
100+ color : # C64537 ;
101+ }
102+ .member-position {
103+ font-family : 'PT Serif' , serif;
104+ font-size : 0.85rem ;
105+ color : # 999 ;
106+ line-height : 1.45 ;
107+ margin : 0 ;
108+ flex-grow : 1 ;
109+ }
110+ .member-links {
111+ display : flex;
112+ gap : 0.35rem ;
113+ justify-content : center;
114+ margin-top : 0.85rem ;
115+ padding-top : 0.75rem ;
116+ border-top : 1px solid # f0f0f0 ;
117+ width : 100% ;
118+ }
119+ .member-links a {
120+ display : flex;
121+ align-items : center;
122+ justify-content : center;
123+ width : 26px ;
124+ height : 26px ;
125+ border-radius : 50% ;
126+ background : # f4f4f4 ;
127+ transition : background 0.15s ease;
128+ text-decoration : none;
129+ }
130+ .member-links a : hover {
131+ background : # 343434 ;
132+ }
133+ .member-links a img {
134+ width : 13px ;
135+ height : 13px ;
136+ display : block;
137+ transition : filter 0.15s ease;
138+ }
139+ .member-links a : hover img {
140+ filter : brightness (0 ) invert (1 );
141+ }
142+ </ style >
143+
144+ < div class ="team-section ">
145+ < h3 > Current members</ h3 >
146+ < ul class ="team-grid ">
147+ {% for member in site.data.members %}
148+ {% assign avatar = member.avatar | default: '/images/people/bio-photo.jpg' %}
149+
150+ {% assign role = 'other' %}
151+ {% if member.position contains 'Professor' %}
152+ {% assign role = 'professor' %}
153+ {% elsif member.position contains 'Engineer' or member.position contains 'Manager' %}
154+ {% assign role = 'engineer' %}
155+ {% elsif member.position contains 'Postdoc' %}
156+ {% assign role = 'postdoc' %}
157+ {% elsif member.position contains 'Visiting' %}
158+ {% assign role = 'visiting' %}
159+ {% elsif member.position contains 'Ph.D' or member.position contains 'PhD' %}
160+ {% assign role = 'phd' %}
161+ {% elsif member.position contains 'M.Sc' or member.position contains 'MSc' %}
162+ {% assign role = 'msc' %}
163+ {% endif %}
164+
165+ < li class ="member-card " data-role ="{{ role }} ">
166+ < div class ="member-photo ">
167+ < img src ="{{ avatar }} " alt ="{{ member.name }} " />
168+ </ div >
169+ < p class ="member-name ">
170+ {% if member.url %}
171+ < a href ="{{ member.url }} " target ="_blank "> {{ member.name }}</ a >
172+ {% else %}
173+ {{ member.name }}
174+ {% endif %}
175+ </ p >
176+ < p class ="member-position "> {{ member.position }}</ p >
177+ {% if member.orcid or member.github or member.linkedin or member.bluesky or member.x %}
178+ < div class ="member-links ">
179+ {% if member.orcid %}
180+ < a href ="{{ member.orcid }} " target ="_blank " title ="ORCID ">
181+ < img src ="/assets/icons/orcid.svg " alt ="ORCID ">
182+ </ a >
183+ {% endif %}
184+ {% if member.github %}
185+ < a href ="{{ member.github }} " target ="_blank " title ="GitHub ">
186+ < img src ="/assets/icons/github.svg " alt ="GitHub ">
187+ </ a >
188+ {% endif %}
189+ {% if member.linkedin %}
190+ < a href ="{{ member.linkedin }} " target ="_blank " title ="LinkedIn ">
191+ < img src ="/assets/icons/linkedin.svg " alt ="LinkedIn ">
192+ </ a >
193+ {% endif %}
194+ {% if member.bluesky %}
195+ < a href ="{{ member.bluesky }} " target ="_blank " title ="Bluesky ">
196+ < img src ="/assets/icons/bluesky.svg " alt ="Bluesky ">
197+ </ a >
198+ {% endif %}
199+ {% if member.x %}
200+ < a href ="{{ member.x }} " target ="_blank " title ="X ">
201+ < img src ="/assets/icons/x.svg " alt ="X ">
202+ </ a >
203+ {% endif %}
204+ </ div >
205+ {% endif %}
206+ </ li >
207+ {% endfor %}
208+ </ ul >
209+ </ div >
85210< hr />
86211< center >
87212< h3 > Previous group pictures</ h3 >
0 commit comments