Skip to content

Commit 45a4a3b

Browse files
committed
fix color and remove body when no sublandingpage section is filled
1 parent aa22d49 commit 45a4a3b

File tree

7 files changed

+24
-49
lines changed

7 files changed

+24
-49
lines changed

config/_default/menus.NL.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ weight = 1
88
name = "Algoprudentie"
99
weight = 2
1010
hasChildren = true
11-
url = "/nl/algoprudence/case-repository"
11+
url = "/nl/algoprudence"
1212
[[main]]
1313
parent = "Algoprudentie"
1414
name = "Dien een case in"
@@ -35,7 +35,7 @@ url = "/nl/algoprudence/case-repository"
3535
name = "Technische tools"
3636
weight = 3
3737
hasChildren = true
38-
url = "/nl/technical-tools/BDT"
38+
url = "/nl/technical-tools"
3939
[[main.params]]
4040
icon = "fa-table"
4141
[[main]]
@@ -73,7 +73,7 @@ url = "/nl/technical-tools/BDT"
7373
name = "Kennisplatform"
7474
weight = 1
7575
hasChildren = true
76-
url = "/nl/knowledge-platform/knowledge-base"
76+
url = "/nl/knowledge-platform"
7777
[[main]]
7878
parent = "Kennisplatform"
7979
name = "AI Act standaarden"

config/_default/menus.en.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ weight = 1
88
name = "Knowledge platform"
99
weight = 2
1010
hasChildren = true
11-
url = "/knowledge-platform/knowledge-base"
11+
url = "/knowledge-platform"
1212
[[main]]
1313
parent = "Knowledge platform"
1414
name = "Knowledge base"
@@ -85,7 +85,7 @@ hasChildren = true
8585
name = "Technical tools"
8686
weight = 4
8787
hasChildren = true
88-
url = "/technical-tools/BDT"
88+
url = "/technical-tools"
8989
[[main]]
9090
parent = "Technical tools"
9191
name = "Unsupervised bias detection tool"

content/english/technical-tools/_index.md

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,46 +5,41 @@ titleline2: Open source AI auditing tools
55
subtitle: |
66
We develop open source tools for AI auditing. This makes
77
icon: fa-light fa-toolbox
8-
color: "#D5EBDB"
9-
font_color: color-blue
8+
color: '#D5EBDB'
9+
font_color: '#005AA7'
1010
subpage_links:
1111
- title: Unsupervised bias detection tool
1212
titleline2: >-
1313
Anomaly detection to identify groups that may be subject to unfair
1414
treatment by AI systems
1515
icon: fa-light fa-search-plus
16-
color: "#FFF"
16+
color: '#FFF'
1717
- title: Synthetic data generation tool
18-
titleline2: "Privacy-preserving browser-based tool to generate synthetic tabular data "
18+
titleline2: 'Privacy-preserving browser-based tool to generate synthetic tabular data '
1919
icon: fa-light fa-table
20-
color: "#FFF"
20+
color: '#FFF'
2121
- title: AI Act implementation tool
2222
titleline2: >-
2323
Dynamic questionnaires for identification and risk classification of AI
2424
systems and high-impact algorithms
2525
icon: fa-light fa-file
26-
color: "#FFF"
26+
color: '#FFF'
2727
overview_block:
2828
activities:
2929
- title: Knowledge platform
3030
subtitle: Statistical and legal expertise
3131
url: /knowledge-platform/
3232
icon: fa-light fa-layer-group
33-
color: "#E3F0FE"
33+
color: '#E3F0FE'
3434
- title: Algoprudence
3535
subtitle: Case-based normative advise
3636
url: /algoprudence/
3737
icon: fas fa-balance-scale
38-
color: "#F7CDBF"
38+
color: '#F7CDBF'
3939
- title: Project work
40-
subtitle: "Validation, AI Act etc."
40+
subtitle: 'Validation, AI Act etc.'
4141
url: /knowledge-platform/project-work/
4242
icon: fas fa-search-plus
43-
color: "#E3F0FE"
43+
color: '#E3F0FE'
4444
---
4545

46-
{{< tab_content_open id="overview" title="Other core activities" >}}
47-
48-
{{< overview_block >}}
49-
50-
{{< tab_content_close >}}

layouts/partials/sublanding-page-header.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
<div class="col-12 col-lg-8 col-xl-10 pr-5">
88
{{ $color := .Params.font_color }}
99
{{ if not ($color) }}
10-
{{ $color = "color-white" }}
10+
{{ $color = "#FFF" }}
1111
{{ end }}
12-
<div style="background-color: {{.Params.color}};" class="rounded-lg {{$color}} font-size-1rem font-size-xl-1_5rem container p-0">
12+
<div style="background-color: {{.Params.color}}; color: {{$color}} !important" class="rounded-lg font-size-1rem font-size-xl-1_5rem container p-0">
1313
<div class="row mx-4 py-3">
14-
<i class="font-size-2rem fa {{ .Params.icon }}"></i>
14+
<i style="color: {{$color}} !important" class="font-size-2rem fa {{ .Params.icon }}"></i>
1515
</div>
1616
<row class="row mx-4 pt-3">
17-
<h3 class="{{$color}} font-size-1_3rem">{{.Params.title}}</h3>
17+
<h3 style="color: {{$color}} !important" class="{font-size-1_3rem">{{.Params.title}}</h3>
1818
</row>
1919
<row class="row mx-4 pb-0 landing-page-core-activities-row-subtitle">
20-
<p class="{{$color}} font-size-1rem">{{.Params.titleline2}}</p>
20+
<p style="color: {{$color}} !important" class="font-size-1rem">{{.Params.titleline2}}</p>
2121
</row>
2222
</div>
2323
</div>

layouts/section/sublandingpage.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{ define "main" }}
22
{{ partial "sublanding-page-header.html" . }}
33

4-
4+
{{ if .Content }}
55
<section class="section">
66
<div class="container container-xl">
77
<div class="row">
@@ -46,4 +46,5 @@ <h3>{{.Params.quick_navigation.title}}</h3>
4646
</div>
4747
</div>
4848
</section>
49+
{{ end }}
4950
{{ end }}

tina/collections/shared/page/font_color.ts

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,6 @@ let font_color: TinaField = {
88
name: "font_color",
99
label: "Font color",
1010
required: true,
11-
options: [
12-
{
13-
value: "color-blue",
14-
label: "blue",
15-
},
16-
{
17-
value: "color-lightblue",
18-
label: "lightblue",
19-
},
20-
{
21-
value: "color-white",
22-
label: "white",
23-
},
24-
{
25-
value: "color-gray",
26-
label: "gray",
27-
},
28-
{
29-
value: "color-black",
30-
label: "black",
31-
},
32-
],
11+
description: "Hex color code (e.g. #FF0000)",
3312
};
3413
export default font_color;

tina/tina-lock.json

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

0 commit comments

Comments
 (0)