Skip to content

Commit b3f77ad

Browse files
authored
feature: tweaking docusaurus, uitbreiding homepage
2 parents 8354e60 + bea96ad commit b3f77ad

33 files changed

+720
-83
lines changed

docusaurus.config.ts

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@ import type * as Preset from "@docusaurus/preset-classic";
55
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
66

77
const config: Config = {
8-
title: "Developer Portal van de Nederlandse Overheid",
9-
tagline:
10-
"Eén centrale plek voor de developer die voor of met de overheid ontwikkelt ",
8+
title: "Developer.overheid.nl",
9+
customFields: {
10+
siteName: 'Ontwikkelaarsportaal'
11+
},
12+
tagline: "Voor de developer bij de overheid",
13+
organizationName: "developer.overheid.nl",
1114
favicon: "favicon.ico",
15+
headTags: [],
1216

1317
// Set the production url of your site here
1418
url: "https://don.apps.digilab.network",
@@ -68,7 +72,17 @@ const config: Config = {
6872

6973
themeConfig: {
7074
// Replace with your project's social card
71-
image: "img/docusaurus-social-card.jpg",
75+
image: "img/don-social-card.png",
76+
metadata: [
77+
{
78+
property: 'og:title',
79+
content: 'Developer.overheid.nl | Ontwikkelaarsportaal voor de developer bij de overheid',
80+
},
81+
{
82+
name: 'twitter:image:alt',
83+
content: 'Ontwikkelaarsportaal voor de developer bij de overheid; Informatie en tools van de overheid voor ontwikkelaars door Kennisplatform API\'s, Digilab, DSO, Open source werken, BZK, Belastingdienst, Kadaster en andere overheidsorganisaties.',
84+
}
85+
],
7286
navbar: {
7387
title: "Home",
7488
items: [
@@ -135,6 +149,20 @@ const config: Config = {
135149
footer: {
136150
style: "dark",
137151
links: [
152+
{
153+
title: "Mede mogelijk gemaakt door:",
154+
items: [
155+
{
156+
html: `
157+
<div class="sponsors">
158+
<img class="sponsors__logo" src="/img/logo-bzk.png" alt="Logo van Ministerie van Binnenlandse Zaken en Koninkrijksrelaties" />
159+
<img class="sponsors__logo" src="/img/logo-vng.svg" alt="Logo van Vereniging van Nederlandse Gemeenten" />
160+
<img class="sponsors__logo" src="/img/Logo_Forum_Standaardisatie_RGB_wit.png" alt="Logo forum voor standaardisatie" />
161+
</div>
162+
`,
163+
}
164+
]
165+
},
138166
{
139167
title: "Community",
140168
items: [

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
"private": true,
55
"scripts": {
66
"docusaurus": "docusaurus",
7-
"start": "docusaurus start",
8-
"build": "docusaurus build",
7+
"start": "pnpm run --if-present --recursive build && npm-run-all start:*",
8+
"start:docusaurus": "docusaurus start",
9+
"build": "pnpm run --if-present --recursive build && npm-run-all build:*",
10+
"build:docusaurus": "docusaurus build",
911
"swizzle": "docusaurus swizzle",
1012
"deploy": "docusaurus deploy",
1113
"clear": "docusaurus clear",
@@ -17,7 +19,9 @@
1719
},
1820
"dependencies": {
1921
"@docusaurus/core": "3.7.0",
22+
"@docusaurus/plugin-content-docs": "^3.7.0",
2023
"@docusaurus/preset-classic": "3.7.0",
24+
"@docusaurus/theme-common": "^3.7.0",
2125
"@docusaurus/theme-mermaid": "^3.7.0",
2226
"@mdx-js/react": "^3.1.0",
2327
"@rijkshuisstijl-community/components-react": "1.0.0-alpha.114",

pnpm-lock.yaml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proprietary/design-tokens/src/tokens.json

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,25 @@
11
{
2-
"ifm": {
3-
"primary": {
4-
"color": {
5-
"value": "{rhc.color.primary.500}"
2+
"rhc": {
3+
"font-family": {
4+
"primary": {
5+
"value": "RijksoverheidSansWebText, Arial, sans-serif"
6+
}
7+
},
8+
"card-as-link": {
9+
"border-color": {
10+
"value": "{rhc.color.grijs.300}"
11+
},
12+
"link-color": {
13+
"value": "{rhc.color.donkerblauw.500}"
14+
}
15+
}
16+
},
17+
"utrecht": {
18+
"link": {
19+
"visited": {
20+
"color": {
21+
"value": "{rhc.color.donkerblauw.500}"
22+
}
623
}
724
}
825
}

src/components/HomepageFeatures/index.tsx

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,29 @@ import styles from './styles.module.css';
66
type FeatureItem = {
77
title: string;
88
image?: string;
9+
alt?: string;
910
description: JSX.Element;
1011
link: string;
1112
label?: string;
1213
};
1314

1415
const FeatureList: FeatureItem[] = [
16+
{
17+
title: 'Kennisbank',
18+
image: '/img/boek-opengeslagen.svg',
19+
alt: '',
20+
description: (
21+
<>
22+
Lees artikelen over diverse onderwerpen zoals ...
23+
</>
24+
),
25+
link: '/docs',
26+
label: 'Lees onze artikelen',
27+
},
1528
{
1629
title: 'Onze community',
1730
image: '/img/tekstballonnen-met-punten.svg',
31+
alt: '',
1832
description: (
1933
<>
2034
Ga in gesprek met andere developers en vind hier getting started guides, tutorials en tools.
@@ -26,6 +40,7 @@ const FeatureList: FeatureItem[] = [
2640
{
2741
title: 'Vind een API',
2842
image: '/img/ict.svg',
43+
alt: '',
2944
description: (
3045
<>
3146
Bekijk welke API's er allemaal zijn en kom er achter hoe je jouw oplossing hier op kan laten aansluiten.
@@ -37,6 +52,7 @@ const FeatureList: FeatureItem[] = [
3752
{
3853
title: 'Vind een repository',
3954
image: '/img/computercode.svg',
55+
alt: '',
4056
description: (
4157
<>
4258
Vind bestaande repositories om bij aan te haken en ontdek wat er binnen welke organisatie beschikbaar is.
@@ -50,15 +66,6 @@ const FeatureList: FeatureItem[] = [
5066
function Feature({title, image, description, link, label}: FeatureItem) {
5167
return (
5268
<Card href={link} heading={title} description={description} imageSrc={image} linkLabel={label} />
53-
// <div className={clsx('col col--4')}>
54-
// <div className="text--center">
55-
// <Svg className={styles.featureSvg} role="img" />
56-
// </div>
57-
// <div className="text--center padding-horiz--md">
58-
// <Heading as="h3">{title}</Heading>
59-
// <p>{description}</p>
60-
// </div>
61-
// </div>
6269
);
6370
}
6471

src/components/HomepageFeatures/styles.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
.row {
99
display: flex;
1010
justify-content: space-between;
11+
gap: 1rem;
1112
}

0 commit comments

Comments
 (0)