Skip to content

Commit ae51881

Browse files
committed
add core-activities
1 parent e6e3c30 commit ae51881

File tree

9 files changed

+142
-38
lines changed

9 files changed

+142
-38
lines changed

assets/scss/_common.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,10 @@ $accent: #FF4081;
11691169
font-size: 1rem;
11701170
}
11711171

1172+
.font-size-1_3rem {
1173+
font-size: 1.3rem;
1174+
}
1175+
11721176
.font-size-xl-1_5rem {
11731177
@media (min-width: 1200px) {
11741178
font-size: 1.5rem;

assets/scss/_landingpage.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,4 +433,8 @@
433433
margin-top: 7rem;
434434
margin-bottom: 7rem;
435435
color: #005aa7 !important;
436+
}
437+
438+
.landing-page-core-activities-row-subtitle {
439+
margin-top: -10px;
436440
}

content/english/_index.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,28 @@ Banner:
2020
labels:
2121
- text: AI bias testing
2222
- text: AI standards
23+
Core_Activities:
24+
activities:
25+
- title: Knowledge platform
26+
subtitle: Statistical and legal expertise
27+
url: /knowledge-platform/knowledge-base/
28+
icon: fa-light fa-layer-group
29+
color: '#E3F0FE'
30+
- title: Algoprudence
31+
subtitle: Case-based normative advise
32+
url: /algoprudence/
33+
icon: fa-light fa-scale-balanced
34+
color: '#F7CDBF'
35+
- title: Technical tools
36+
subtitle: Open source AI auditing tools
37+
url: /technical-tools/bdt/
38+
icon: fa-light fa-toolbox
39+
color: '#EFEEDA'
40+
- title: Project work
41+
subtitle: 'Algorithm validation, AI Act'
42+
url: /knowledge-platform/project-work/
43+
icon: fa-light fa-magnifying-glass-plus
44+
color: '#B4DEE8'
2345
About:
2446
content: >
2547
Algorithm Audit is a technically skilled, highly interdisciplinary and

layouts/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
{{ partial "landingpage/about.html" .}}
1010

11+
{{ partial "landingpage/core-activities.html" .}}
12+
1113
{{ partial "landingpage/activityfeed.html" . }}
1214

1315
{{ partial "landingpage/supportedby.html" . }}

layouts/partials/landingpage/about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{ with .Params.About}}
33
<div class="container landing-page-about">
44
<div class="row justify-content-center">
5-
<div class="col-12 col-xl-8 color-blue text-xl-center font-AvenirNextProDemi .font-size-1rem font-size-xl-1_5rem">
5+
<div class="col-12 col-xl-8 color-blue text-xl-center font-AvenirNextProDemi font-size-1rem font-size-xl-1_5rem">
66
{{ .content | markdownify }}
77
</div>
88
</div>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
{{ with .Params.Core_Activities}}
3+
<div class="container landing-page-core-activities pb-5">
4+
<div class="row justify-content-center">
5+
{{ range .activities }}
6+
7+
<a href={{.url}} class="col-12 col-lg-6 col-xl-3 p-1">
8+
<div style="background-color: {{.color}};" class="rounded-lg color-blue font-AvenirNextProDemi font-size-1rem font-size-xl-1_5rem container p-0">
9+
<div class="row mx-4 py-3">
10+
<i class="font-size-2rem fa {{ .icon }}"></i>
11+
</div>
12+
<row class="row mx-4 pt-3">
13+
<h3 class="color-blue font-AvenirNextProDemi font-size-1_3rem">{{.title}}</h3>
14+
</row>
15+
<row class="row mx-4 pb-0 landing-page-core-activities-row-subtitle">
16+
<p class="color-blue font-size-1rem">{{.subtitle}}</p>
17+
</row>
18+
</div>
19+
</a>
20+
{{ end }}
21+
</div>
22+
</div>
23+
{{ end }}

tina/collections/pages/home.ts

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,53 @@ export default {
136136
},
137137
],
138138
},
139+
{
140+
type: "object",
141+
name: "Core_Activities",
142+
label: "Core activities",
143+
fields: [
144+
{
145+
type: "object",
146+
name: "activities",
147+
label: "Activities",
148+
list: true,
149+
fields: [
150+
{
151+
type: "string",
152+
name: "title",
153+
label: "Title",
154+
required: true,
155+
},
156+
{
157+
type: "string",
158+
name: "subtitle",
159+
label: "Subtitle",
160+
},
161+
{
162+
type: "string",
163+
name: "url",
164+
label: "Url",
165+
required: true,
166+
},
167+
{
168+
type: "string",
169+
name: "icon",
170+
label: "Icon",
171+
required: true,
172+
description:
173+
"From https://fontawesome.com/v5/search?m=free (e.g. fa fa-list for https://fontawesome.com/icons/list?f=classic&s=solid)",
174+
},
175+
{
176+
type: "string",
177+
name: "color",
178+
label: "Color",
179+
required: true,
180+
description: "Hex color code (e.g. #FF0000)",
181+
},
182+
],
183+
},
184+
],
185+
},
139186
{
140187
type: "object",
141188
name: "About",
Lines changed: 38 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,40 @@
1-
import { RichTextTemplate } from "@tinacms/schema-tools/dist/types/index"
2-
let template : RichTextTemplate = {
3-
name: 'container_open',
4-
label: 'Container open',
5-
match: {
6-
start: '{{<',
7-
end: '>}}'
1+
import { RichTextTemplate } from "@tinacms/schema-tools/dist/types/index";
2+
let template: RichTextTemplate = {
3+
name: "container_open",
4+
label: "Container open",
5+
match: {
6+
start: "{{<",
7+
end: ">}}",
8+
},
9+
fields: [
10+
{
11+
type: "string",
12+
name: "icon",
13+
label: "Icon",
14+
description:
15+
"From https://fontawesome.com/v5/search?m=free (e.g. fa fa-list for https://fontawesome.com/icons/list?f=classic&s=solid)",
16+
required: true,
817
},
9-
fields: [
10-
{
11-
type: "string",
12-
name: "icon",
13-
label: "Icon",
14-
description: "From https://fontawesome.com/v5/search?m=free (e.g. fa fa-list for https://fontawesome.com/icons/list?f=classic&s=solid)",
15-
required: true,
16-
},
17-
{
18-
type: "string",
19-
name: "title",
20-
label: "Title",
21-
description: "h3 title at top of text box",
22-
required: true,
23-
},
24-
{
25-
type: "string",
26-
name: "id",
27-
label: "ID",
28-
description: "ID to refer to this block as algorithmaudit.eu/.../#ID",
29-
required: false,
30-
},
31-
{
32-
name: 'do_not_use',
33-
label: 'Do not fill, this tag should have a following "Container close" in the content',
34-
type: 'string'
35-
}
36-
]
18+
{
19+
type: "string",
20+
name: "title",
21+
label: "Title",
22+
description: "h3 title at top of text box",
23+
required: true,
24+
},
25+
{
26+
type: "string",
27+
name: "id",
28+
label: "ID",
29+
description: "ID to refer to this block as algorithmaudit.eu/.../#ID",
30+
required: false,
31+
},
32+
{
33+
name: "do_not_use",
34+
label:
35+
'Do not fill, this tag should have a following "Container close" in the content',
36+
type: "string",
37+
},
38+
],
3739
};
38-
export default template;
40+
export default template;

tina/tina-lock.json

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

0 commit comments

Comments
 (0)