Skip to content

Commit 05fec5e

Browse files
committed
Modify header links and update footer copyright year
1 parent 86b1e20 commit 05fec5e

File tree

3 files changed

+134
-134
lines changed

3 files changed

+134
-134
lines changed
Lines changed: 63 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,65 @@
11
{
2-
"link.title.Inhalte": {
3-
"message": "Inhalte",
4-
"description": "Der Titel der Fußzeilen-Linkspalte mit dem Titel=Inhalte in der Fußzeile"
5-
},
6-
"link.title.Community": {
7-
"message": "Community",
8-
"description": "Der Titel der Fußzeilen-Linkspalte mit dem Titel=Community in der Fußzeile"
9-
},
10-
"link.title.Mehr": {
11-
"message": "Mehr",
12-
"description": "Der Titel der Fußzeilen-Linkspalte mit dem Titel=Mehr in der Fußzeile"
13-
},
14-
"link.item.label.Dokumentation": {
15-
"message": "Dokumentation",
16-
"description": "Die Bezeichnung des Fußzeilen-Links mit der Bezeichnung=Dokumentation, die auf /docs verweist"
17-
},
18-
"link.item.label.Blog": {
19-
"message": "Blog",
20-
"description": "Die Bezeichnung des Fußzeilen-Links mit der Bezeichnung=Blog, die auf /blog verweist"
21-
},
22-
"link.item.label.Designer": {
23-
"message": "Designer"
24-
},
25-
"link.item.label.Stack Overflow": {
26-
"message": "Stack Overflow"
27-
},
28-
"link.item.label.Discord": {
29-
"message": "Discord"
30-
},
31-
"link.item.label.Twitter": {
32-
"message": "Twitter"
33-
},
34-
"link.item.label.GitHub": {
35-
"message": "GitHub",
36-
"description": "Die Bezeichnung des Fußzeilen-Links mit der Bezeichnung=GitHub, die auf https://github.com/public-ui verweist"
37-
},
38-
"link.item.label.ITZBund": {
39-
"message": "ITZBund",
40-
"description": "Die Bezeichnung des Fußzeilen-Links mit der Bezeichnung=ITZBund, die auf https://itzbund.de verweist"
41-
},
42-
"link.item.label.Portal Barrierefreiheit": {
43-
"message": "Portal Barrierefreiheit",
44-
"description": "Die Bezeichnung des Fußzeilen-Links mit der Bezeichnung=Portal Barrierefreiheit, die auf https://www.barrierefreiheit-dienstekonsolidierung.bund.de/ verweist"
45-
},
46-
"copyright": {
47-
"message": "© Informationstechnikzentrum Bund (ITZBund) 2020 - 2023",
48-
"description": "Das Fußzeilen-Copyright"
49-
},
50-
"link.item.label.FAQ": {
51-
"message": "FAQ",
52-
"description": "Die Bezeichnung des Fußzeilen-Links mit der Bezeichnung=FAQ, die auf https://github.com/public-ui/kolibri/discussions verweist"
53-
},
54-
"link.item.label.Mastodon": {
55-
"message": "Mastodon",
56-
"description": "Die Bezeichnung des Fußzeilen-Links mit der Bezeichnung=Mastodon, die auf https://social.bund.de/@kolibri verweist"
57-
},
58-
"link.item.label.Impressum": {
59-
"message": "Impressum",
60-
"description": "Die Bezeichnung des Fußzeilen-Links mit der Bezeichnung=Impressum, die auf /docs/impressum verweist"
61-
},
62-
"link.item.label.Community of Practices": {
63-
"message": "Community of Practices",
64-
"description": "Die Bezeichnung des Fußzeilen-Links mit der Bezeichnung=Community of Practices, die auf https://github.com/public-ui/kolibri/discussions/516 verweist"
65-
}
2+
"link.title.Inhalte": {
3+
"message": "Inhalte",
4+
"description": "Der Titel der Fußzeilen-Linkspalte mit dem Titel=Inhalte in der Fußzeile"
5+
},
6+
"link.title.Community": {
7+
"message": "Community",
8+
"description": "Der Titel der Fußzeilen-Linkspalte mit dem Titel=Community in der Fußzeile"
9+
},
10+
"link.title.Mehr": {
11+
"message": "Mehr",
12+
"description": "Der Titel der Fußzeilen-Linkspalte mit dem Titel=Mehr in der Fußzeile"
13+
},
14+
"link.item.label.Dokumentation": {
15+
"message": "Dokumentation",
16+
"description": "Die Bezeichnung des Fußzeilen-Links mit der Bezeichnung=Dokumentation, die auf /docs verweist"
17+
},
18+
"link.item.label.Blog": {
19+
"message": "Blog",
20+
"description": "Die Bezeichnung des Fußzeilen-Links mit der Bezeichnung=Blog, die auf /blog verweist"
21+
},
22+
"link.item.label.Designer": {
23+
"message": "Designer"
24+
},
25+
"link.item.label.Stack Overflow": {
26+
"message": "Stack Overflow"
27+
},
28+
"link.item.label.Discord": {
29+
"message": "Discord"
30+
},
31+
"link.item.label.Twitter": {
32+
"message": "Twitter"
33+
},
34+
"link.item.label.GitHub": {
35+
"message": "GitHub",
36+
"description": "Die Bezeichnung des Fußzeilen-Links mit der Bezeichnung=GitHub, die auf https://github.com/public-ui verweist"
37+
},
38+
"link.item.label.ITZBund": {
39+
"message": "ITZBund",
40+
"description": "Die Bezeichnung des Fußzeilen-Links mit der Bezeichnung=ITZBund, die auf https://itzbund.de verweist"
41+
},
42+
"link.item.label.Portal Barrierefreiheit": {
43+
"message": "Portal Barrierefreiheit",
44+
"description": "Die Bezeichnung des Fußzeilen-Links mit der Bezeichnung=Portal Barrierefreiheit, die auf https://www.barrierefreiheit-dienstekonsolidierung.bund.de/ verweist"
45+
},
46+
"copyright.description": {
47+
"message": "Das Fußzeilen-Copyright"
48+
},
49+
"link.item.label.FAQ": {
50+
"message": "FAQ",
51+
"description": "Die Bezeichnung des Fußzeilen-Links mit der Bezeichnung=FAQ, die auf https://github.com/public-ui/kolibri/discussions verweist"
52+
},
53+
"link.item.label.Mastodon": {
54+
"message": "Mastodon",
55+
"description": "Die Bezeichnung des Fußzeilen-Links mit der Bezeichnung=Mastodon, die auf https://social.bund.de/@kolibri verweist"
56+
},
57+
"link.item.label.Impressum": {
58+
"message": "Impressum",
59+
"description": "Die Bezeichnung des Fußzeilen-Links mit der Bezeichnung=Impressum, die auf /docs/impressum verweist"
60+
},
61+
"link.item.label.Community of Practices": {
62+
"message": "Community of Practices",
63+
"description": "Die Bezeichnung des Fußzeilen-Links mit der Bezeichnung=Community of Practices, die auf https://github.com/public-ui/kolibri/discussions/516 verweist"
64+
}
6665
}
Lines changed: 63 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,65 @@
11
{
2-
"link.title.Inhalte": {
3-
"message": "Content",
4-
"description": "The title of the footer links column with title=Inhalte in the footer"
5-
},
6-
"link.title.Community": {
7-
"message": "Community",
8-
"description": "The title of the footer links column with title=Community in the footer"
9-
},
10-
"link.title.Mehr": {
11-
"message": "More",
12-
"description": "The title of the footer links column with title=Mehr in the footer"
13-
},
14-
"link.item.label.Dokumentation": {
15-
"message": "Documentation",
16-
"description": "The label of footer link with label=Dokumentation linking to /docs"
17-
},
18-
"link.item.label.Blog": {
19-
"message": "Blog",
20-
"description": "The label of footer link with label=Blog linking to /blog"
21-
},
22-
"link.item.label.Designer": {
23-
"message": "Designer"
24-
},
25-
"link.item.label.Stack Overflow": {
26-
"message": "Stack Overflow"
27-
},
28-
"link.item.label.Discord": {
29-
"message": "Discord"
30-
},
31-
"link.item.label.Twitter": {
32-
"message": "Twitter"
33-
},
34-
"link.item.label.GitHub": {
35-
"message": "GitHub",
36-
"description": "The label of footer link with label=GitHub linking to https://github.com/public-ui"
37-
},
38-
"link.item.label.ITZBund": {
39-
"message": "ITZBund",
40-
"description": "The label of footer link with label=ITZBund linking to https://itzbund.de"
41-
},
42-
"link.item.label.Portal Barrierefreiheit": {
43-
"message": "Portal Barrierefreiheit",
44-
"description": "The label of footer link with label=Portal Barrierefreiheit linking to https://www.barrierefreiheit-dienstekonsolidierung.bund.de/"
45-
},
46-
"copyright": {
47-
"message": "© Informationstechnikzentrum Bund (ITZBund) 2020 - 2023",
48-
"description": "The footer copyright"
49-
},
50-
"link.item.label.FAQ": {
51-
"message": "FAQ",
52-
"description": "The label of footer link with label=FAQ linking to https://github.com/public-ui/kolibri/discussions"
53-
},
54-
"link.item.label.Mastodon": {
55-
"message": "Mastodon",
56-
"description": "The label of footer link with label=Mastodon linking to https://social.bund.de/@kolibri"
57-
},
58-
"link.item.label.Impressum": {
59-
"message": "Imprint",
60-
"description": "The label of footer link with label=Impressum linking to /docs/impressum"
61-
},
62-
"link.item.label.Community of Practices": {
63-
"message": "Community of Practices",
64-
"description": "The label of footer link with label=Community of Practices linking to https://github.com/public-ui/kolibri/discussions/516"
65-
}
2+
"link.title.Inhalte": {
3+
"message": "Content",
4+
"description": "The title of the footer links column with title=Inhalte in the footer"
5+
},
6+
"link.title.Community": {
7+
"message": "Community",
8+
"description": "The title of the footer links column with title=Community in the footer"
9+
},
10+
"link.title.Mehr": {
11+
"message": "More",
12+
"description": "The title of the footer links column with title=Mehr in the footer"
13+
},
14+
"link.item.label.Dokumentation": {
15+
"message": "Documentation",
16+
"description": "The label of footer link with label=Dokumentation linking to /docs"
17+
},
18+
"link.item.label.Blog": {
19+
"message": "Blog",
20+
"description": "The label of footer link with label=Blog linking to /blog"
21+
},
22+
"link.item.label.Designer": {
23+
"message": "Designer"
24+
},
25+
"link.item.label.Stack Overflow": {
26+
"message": "Stack Overflow"
27+
},
28+
"link.item.label.Discord": {
29+
"message": "Discord"
30+
},
31+
"link.item.label.Twitter": {
32+
"message": "Twitter"
33+
},
34+
"link.item.label.GitHub": {
35+
"message": "GitHub",
36+
"description": "The label of footer link with label=GitHub linking to https://github.com/public-ui"
37+
},
38+
"link.item.label.ITZBund": {
39+
"message": "ITZBund",
40+
"description": "The label of footer link with label=ITZBund linking to https://itzbund.de"
41+
},
42+
"link.item.label.Portal Barrierefreiheit": {
43+
"message": "Portal Barrierefreiheit",
44+
"description": "The label of footer link with label=Portal Barrierefreiheit linking to https://www.barrierefreiheit-dienstekonsolidierung.bund.de/"
45+
},
46+
"copyright.description": {
47+
"message": "The footer copyright"
48+
},
49+
"link.item.label.FAQ": {
50+
"message": "FAQ",
51+
"description": "The label of footer link with label=FAQ linking to https://github.com/public-ui/kolibri/discussions"
52+
},
53+
"link.item.label.Mastodon": {
54+
"message": "Mastodon",
55+
"description": "The label of footer link with label=Mastodon linking to https://social.bund.de/@kolibri"
56+
},
57+
"link.item.label.Impressum": {
58+
"message": "Imprint",
59+
"description": "The label of footer link with label=Impressum linking to /docs/impressum"
60+
},
61+
"link.item.label.Community of Practices": {
62+
"message": "Community of Practices",
63+
"description": "The label of footer link with label=Community of Practices linking to https://github.com/public-ui/kolibri/discussions/516"
64+
}
6665
}

dev/src/theme/Navbar/index.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import BrowserOnly from '@docusaurus/BrowserOnly';
88
import { LanguageSwitch } from '@site/src/components/LanguageSwitch';
99
import Navbar from '@theme-original/Navbar';
1010
import ThemeSelect from './ThemeSelect';
11+
import { useDocsPreferredVersion } from '@docusaurus/theme-common';
1112

1213
export const NavbarWrapper: FunctionComponent<PropsWithChildren> = (props) => {
1314
// const [dark, setDark] = useState(false);
@@ -24,7 +25,8 @@ export const NavbarWrapper: FunctionComponent<PropsWithChildren> = (props) => {
2425
// setDark(false);
2526
// },
2627
// };
27-
28+
const docVersion = useDocsPreferredVersion();
29+
const version = (docVersion?.preferredVersion?.name as number) > 2 ? 'v2' : 'v1';
2830
return (
2931
<div className="kolibri-navbar-wrapper sticky top-0 z-50 bg-white">
3032
<div className="kolibri-navbar max-w-screen-md lg:max-w-4xl 2xl:max-w-[95rem] mx-auto grid grid-cols-[1fr,auto] gap-y-2 items-center 2xl:grid-cols-[1fr,auto,auto,auto] p-4 lg:px-8">
@@ -59,7 +61,7 @@ export const NavbarWrapper: FunctionComponent<PropsWithChildren> = (props) => {
5961
_variant="ghost"
6062
/>
6163
</div>
62-
<div>
64+
{/* <div>
6365
<KolLinkButton
6466
_href="/cheat-sheet/"
6567
_icons={'codicon codicon-record-keys'}
@@ -80,10 +82,10 @@ export const NavbarWrapper: FunctionComponent<PropsWithChildren> = (props) => {
8082
// _target="designer"
8183
_variant="ghost"
8284
/>
83-
</div>
85+
</div> */}
8486
<div>
8587
<KolLinkButton
86-
_href="/presentation/presentation.pdf"
88+
_href={`/${version}/sample-react/#/handout/basic`}
8789
_icons={'codicon codicon-preview'}
8890
_hideLabel
8991
_label="Präsentation anschauen"
@@ -102,7 +104,7 @@ export const NavbarWrapper: FunctionComponent<PropsWithChildren> = (props) => {
102104
_target="discord"
103105
_variant="ghost"
104106
/>
105-
</div> */}
107+
</div>
106108
<div>
107109
<KolLinkButton
108110
_href="https://social.bund.de/@kolibri"
@@ -113,7 +115,7 @@ export const NavbarWrapper: FunctionComponent<PropsWithChildren> = (props) => {
113115
// _target="mastodon"
114116
_variant="ghost"
115117
/>
116-
</div>
118+
</div>*/}
117119
</div>
118120
<div className="flex-grow">
119121
<BrowserOnly>{() => <ThemeSelect />}</BrowserOnly>

0 commit comments

Comments
 (0)