Skip to content

Commit 352944a

Browse files
committed
add option for dropdown accordion info for team members
1 parent 074e733 commit 352944a

File tree

4 files changed

+116
-55
lines changed

4 files changed

+116
-55
lines changed

content/english/about/teams.md

Lines changed: 58 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,24 @@
11
---
22
title: Teams
33
subtitle: >
4-
Algorithm Audit consists of an executive team and a collection of multidisciplinary experts that contribute to projects on a part-time basis.
4+
Algorithm Audit consists of an executive team and a collection of
5+
multidisciplinary experts that contribute to projects on a part-time basis.
56
image: /images/svg-illustrations/about.svg
7+
quick_navigation:
8+
title: Overview
9+
links:
10+
- title: Core activities
11+
url: "#about"
12+
- title: Executive team
13+
url: "#executive-team"
14+
- title: Legal experts
15+
url: "#team-legal"
16+
- title: Team LLMs
17+
url: "#team-LLMs"
18+
- title: Team unsupervised bias detection
19+
url: "#team-BDT"
20+
- title: Team synthetic data generation
21+
url: "#team-SDG"
622
about_AA:
723
title: Core activities
824
content: >-
@@ -16,9 +32,9 @@ about_AA:
1632
image: /images/about/knowledge-platform.svg
1733
content: >
1834
Bringing together experts and knowledge to foster the collective
19-
learning process on the responsible use of algorithms, see our
20-
[white papers](/knowledge-platform/knowledge-base/) and
21-
[public standards](/knowledge-platform/knowledge-base/).
35+
learning process on the responsible use of algorithms, see our [white
36+
papers](/knowledge-platform/knowledge-base/) and [public
37+
standards](/knowledge-platform/knowledge-base/).
2238
- subtitle: Normative advice commissions
2339
image: /images/about/commission.svg
2440
content: >
@@ -29,122 +45,127 @@ about_AA:
2945
image: /images/about/technical-tools.svg
3046
content: >
3147
Implementing and testing technical tools to detect and mitigate bias,
32-
e.g., sociotechnical evaluation of generative AI, [unsupervised bias detection](/technical-tools/bdt/) and [synthetic data generation](/technical-tools/sdg/).
48+
e.g., sociotechnical evaluation of generative AI, [unsupervised bias
49+
detection](/technical-tools/bdt/) and [synthetic data
50+
generation](/technical-tools/sdg/).
3351
- subtitle: Project work
3452
image: /images/about/project.svg
3553
content: >
36-
[Supporting](/knowledge-platform/project-work/) public and private sector
37-
organisations with specific questions regarding responsible use of AI, from a not-for-profit perspective.
54+
[Supporting](/knowledge-platform/project-work/) public and private
55+
sector organisations with specific questions regarding responsible use
56+
of AI, from a not-for-profit perspective.
3857
team:
39-
- id: team-SDG
40-
title: Team synthetic data generation
58+
- title: Team synthetic data generation
4159
content: Part-time team working on synthetic data generation tool
4260
icon: fas fa-table
4361
button_text: More about the tool
62+
id: team-SDG
4463
button_link: /technical-tools/sdg/
4564
team_members:
4665
- image: /images/people/EMenvouta.jpeg
4766
name: Emmanuel Menvouta PhD
4867
bio: |
4968
Freelance machine learning engineer, specialized in SDG methodology
69+
accordion_content: ""
5070
- image: /images/people/MLisdonk.png
5171
name: Maikel van de Lisdonk
5272
bio: |
5373
Freelance software developer
74+
accordion_content: ""
5475
- image: /images/people/RLangius.jpg
5576
name: Ruben Langius
5677
bio: |
5778
Freelance software developer
58-
- id: team-BDT
59-
title: Team unsupervised bias detection
79+
accordion_content: ""
80+
- title: Team unsupervised bias detection
6081
content: Part-time team working on unsupervised the bias detection tool
6182
icon: fas fa-search
6283
button_text: More about the tool
84+
id: team-BDT
6385
button_link: /technical-tools/bdt/
6486
team_members:
6587
- image: /images/people/KPadh.jpeg
6688
name: Kirtan Padh
6789
bio: |
6890
PhD-candidate Causal Inference and Machine Learning, TU München
91+
accordion_content: ""
6992
- image: /images/people/MJorgensen.jpeg
7093
name: Mackenzie Jorgensen
7194
bio: |
7295
PhD-candidate Computer Science, King’s College London
96+
accordion_content: ""
7397
- image: /images/people/KProrokovic.jpeg
7498
name: Krsto Proroković
7599
bio: |
76100
PhD-candidate, Swiss AI Lab IDSIA
101+
accordion_content: ""
77102
- image: /images/people/FHolstege.jpeg
78103
name: Floris Holstege
79104
bio: |
80105
PhD-candidate Machine Learning, University of Amsterdam
106+
accordion_content: ""
81107
- image: /images/people/JPersson.jpeg
82108
name: Joel Persson PhD
83109
bio: |
84110
Research Scientist, Spotify
85-
- id: team-LLMs
86-
title: Team Large Language Models (LLMs)
87-
content: Part-time team working on socio-technical evaluation of Large Language Models
111+
accordion_content: ""
112+
- title: Team Large Language Models (LLMs)
113+
content: >-
114+
Part-time team working on socio-technical evaluation of Large Language
115+
Models
88116
icon: fas fa-robot
89117
button_text: More about our evaluations
118+
id: team-LLMs
90119
button_link: /knowledge-platform/project-work/#LLM-validation
91120
team_members:
92121
- image: /images/people/JChristoph.png
93122
name: Joël Christoph
94123
bio: |
95124
PhD-candidate European University Institute
125+
accordion_content: ""
96126
- image: /images/people/TvanOsch.jpg
97127
name: Thomas van Osch
98128
bio: |
99129
ML engineer
130+
accordion_content: ""
100131
- image: /images/people/TDriessen.jpg
101132
name: Tom Driessen
102133
bio: |
103134
PhD-candidate Cognitive Robotics, TU Delft
104-
- id: team-legal
105-
title: Legal experts
135+
accordion_content: ""
136+
- title: Legal experts
106137
content: Part-time team working on human rights and data privacy challenges
107138
icon: fas fa-search
139+
id: team-legal
108140
team_members:
109141
- image: /images/people/IPapageorgiou.jpg
110142
name: Ioanna Papageorgiou
111143
bio: |
112144
Doctoral researcher AI Fairness & Privacy, University of Hannover
145+
accordion_content: ""
113146
- image: /images/people/LNaudts.jpg
114147
name: Laurens Naudts
115-
bio: |
116-
Postdoctoral researcher AI, Media and Democracy Lab, University of Amsterdam
117-
- id: executive-team
118-
title: Executive team
148+
bio: >
149+
Postdoctoral researcher AI, Media and Democracy Lab, University of
150+
Amsterdam
151+
accordion_content: ""
152+
- title: Executive team
119153
content: Full-time team coordinating the different activities of Algorithm Audit
120154
icon: fas fa-users
155+
id: executive-team
121156
team_members:
122157
- image: /images/people/JParie.jpg
123158
name: Jurriaan Parie
124159
bio: |
125160
Director-board member
161+
linkedIn: "https://www.linkedin.com/in/jfparie/"
126162
- image: /images/people/YRemmits.jpg
127163
name: Ylja Remmits
128164
bio: |
129165
Head of Projects
130-
quick_navigation:
131-
title: Overview
132-
links:
133-
- title: Core activities
134-
url: "#about"
135-
- title: Executive team
136-
url: "#executive-team"
137-
- title: Legal experts
138-
url: "#team-legal"
139-
- title: Team LLMs
140-
url: "#team-LLMs"
141-
- title: Team unsupervised bias detection
142-
url: "#team-BDT"
143-
- title: Team synthetic data generation
144-
url: "#team-SDG"
145166
---
146167

147-
{{< about_AA id="about" >}}
168+
{{< about_AA >}}
148169

149170
{{< team index="4" >}}
150171

@@ -154,4 +175,4 @@ quick_navigation:
154175

155176
{{< team index="1" >}}
156177

157-
{{< team index="0" >}}
178+
{{< team index="0" >}}

layouts/shortcodes/team.html

Lines changed: 38 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{{ $_hugo_config := `{ "version": 1 }` }}
22
{{$param := int (.Get "index")}}
33
{{ with index .Page.Params.team $param }}
4-
<!-- desktop version -->
5-
<div class="container-fluid mt-5 desktop p-0">
4+
<div class="container-fluid mt-5 p-0">
65
<div class="shadow mobile-desktop-container-layout border-bottom-gradient rounded-lg" id={{.id }}>
76

87
{{ if .icon }}
98
<!-- Title and icon -->
109
<h3 class="">
11-
<span class="{{ .icon }} icon mb-4 pl-5"></span>
12-
{{ .title | markdownify }}
10+
<span class="{{ .icon }} icon mb-4 pl-5"></span>
11+
{{ .title | markdownify }}
1312
</h3>
1413

1514
{{ else }}
@@ -23,16 +22,42 @@ <h3 class="pl-3">{{ .title | markdownify }}
2322
<div class="container-team mt-4">
2423
<p>{{ .content | markdownify }}</p>
2524
<div class="row">
26-
{{ range .team_members }}
27-
<div class="col-md-6 team-member p-3">
28-
<div class="row">
29-
<div class="col-md-3">
25+
{{ range .team_members }}
26+
{{ if .accordion_id}}
27+
<script>
28+
docReady(function () {
29+
new Accordion('#accordion_area_team_{{.accordion_id}}');
30+
});
31+
</script>
32+
{{ end }}
33+
<div class="col-md-6 col-12 team-member p-3 " id="accordion_area_team_{{.accordion_id}}">
34+
<div class="row {{if .accordion_content}}ac{{end}}" style="border:none;">
35+
<div class="col-3">
3036
<img src="{{ .image | relURL }}" width="100%;" style="border-radius: 20px;">
3137
</div>
32-
<div class="col-md-9 member-details">
33-
<h4 style="font-weight:100;">{{ .name | markdownify }}</h4>
34-
<p>{{ .bio | markdownify }}</p>
38+
<div class="col-9 member-details pb-0 p-1 {{if .accordion_content}}ac-header{{end}}" >
39+
<div class="{{if .accordion_content}}ac-trigger{{end}} p-1">
40+
<h4 style="font-weight:100;">{{ .name | markdownify }}</h4>
41+
<p>{{ .bio | markdownify }}</p>
42+
</div>
43+
</div>
44+
{{ if .linkedIn }}
45+
<div class="col-3"></div>
46+
<div class="col-9 p-1 pt-0 pb-3 pl-2" style="margin-top: -30px;">
47+
<a href="{{ .linkedIn }}" target="_blank"><span class="fab fa-linkedin" style="font-size: 30px;"></span></a>
48+
</div>
49+
{{ end }}
50+
{{ if .accordion_content }}
51+
<div class="ac-panel w-100">
52+
<div class="row justify-content-between ac-text p-0">
53+
<div class="col-3">
54+
</div>
55+
<div class="col-9 py-4 px-5" style="background-color:#eef2f6;">
56+
<p>{{ .accordion_content | markdownify }}</p>
57+
</div>
58+
</div>
3559
</div>
60+
{{ end }}
3661
</div>
3762
</div>
3863
{{ end }}
@@ -42,11 +67,10 @@ <h4 style="font-weight:100;">{{ .name | markdownify }}</h4>
4267
<!-- button -->
4368
{{ if .button_text }}
4469
<div class="row mt-4 pb-3 justify-content-center d-flex">
45-
<a href="{{.button_link}}"><label class="btn">{{.button_text}}</label></a>
70+
<a href="{{.button_link}}"><label class="btn">{{.button_text}}</label></a>
4671
</div>
4772
{{ end }}
4873

4974
</div>
5075
</div>
51-
{{ end }}
52-
<!-- /desktop version -->
76+
{{ end }}

tina/collections/shared/page/building_blocks.ts

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,6 @@ const building_blocks: TinaField[] = [
595595
type: "string",
596596
name: "button_text",
597597
label: "Button text",
598-
required: true,
599598
},
600599
{
601600
type: "string",
@@ -608,7 +607,6 @@ const building_blocks: TinaField[] = [
608607
type: "string",
609608
name: "button_link",
610609
label: "Button link",
611-
required: true,
612610
},
613611
{
614612
type: "object",
@@ -637,7 +635,25 @@ const building_blocks: TinaField[] = [
637635
type: "rich-text",
638636
name: "bio",
639637
label: "Bio",
640-
isBody: false,
638+
},
639+
{
640+
type: "string",
641+
name: "linkedIn",
642+
label: "LinkedIn",
643+
},
644+
{
645+
type: "rich-text",
646+
name: "accordion_content",
647+
label: "Accordion Content",
648+
description:
649+
"If this field is filled, an accordion will be created to show more information",
650+
},
651+
{
652+
type: "string",
653+
name: "accordion_id",
654+
label: "Accordion ID",
655+
description:
656+
"Unique identifier needed to make the accordion work, e.g. use the person's name without spaces and include the team section in it, e.g. coreTeamJohnDoe",
641657
},
642658
],
643659
},

tina/tina-lock.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)