From e70229ad3bf164d60df9fe2f03f12e9f1c84323c Mon Sep 17 00:00:00 2001 From: Sebastian Kawelke <sebastian.kawelke@l3montree.com> Date: Mon, 10 Mar 2025 17:57:33 +0100 Subject: [PATCH] Adds simple language icon link Signed-off-by: Sebastian Kawelke <sebastian.kawelke@l3montree.com> --- public/.well-known/security.txt | 2 +- public/assets/leichte-sprache.svg | 1 + src/components/Footer.tsx | 2 +- src/pages/_meta.ts | 5 ----- ...e-sprache-info.mdx => leichte-sprache.mdx} | 0 theme.config.tsx | 22 +++++++++++++++++-- 6 files changed, 23 insertions(+), 9 deletions(-) create mode 100644 public/assets/leichte-sprache.svg rename src/pages/{leichte-sprache-info.mdx => leichte-sprache.mdx} (100%) diff --git a/public/.well-known/security.txt b/public/.well-known/security.txt index bbcd83c..9f12d6f 100644 --- a/public/.well-known/security.txt +++ b/public/.well-known/security.txt @@ -1,6 +1,6 @@ Contact: mailto:security@zendis.de Contact: mailto:product-security@zendis.de -Expires: 2025-06-01T21:59:00.000Z +Expires: 2027-06-01T21:59:00.000Z Preferred-Languages: de,en Canonical: https://zendis.de/security.txt Hiring: https://zendis.de/karriere \ No newline at end of file diff --git a/public/assets/leichte-sprache.svg b/public/assets/leichte-sprache.svg new file mode 100644 index 0000000..af3a49f --- /dev/null +++ b/public/assets/leichte-sprache.svg @@ -0,0 +1 @@ +<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="21" height="26" viewBox="0 0 21 26" fill="none" xmlns="http://www.w3.org/2000/svg" aria-label="Icon Accessibility"><path d="M10.4984 25.5902C10.3784 25.5902 10.2484 25.5702 10.1284 25.5202L1.07844 22.1602C0.668438 22.0102 0.398438 21.6102 0.398438 21.1802V9.31016C0.398438 8.97016 0.568437 8.65016 0.848437 8.45016C1.12844 8.25016 1.48844 8.20016 1.80844 8.32016L10.5884 11.5102L19.2084 8.49016C19.5284 8.38016 19.8884 8.43016 20.1584 8.62016C20.4384 8.82016 20.5984 9.14016 20.5984 9.48016V21.1502C20.5984 21.5902 20.3284 21.9802 19.9184 22.1302L10.8584 25.5202C10.7384 25.5602 10.6184 25.5902 10.4884 25.5902H10.4984ZM2.49844 20.4402L10.4984 23.4102L18.5084 20.4102V10.9502L10.9284 13.6002C10.6984 13.6802 10.4484 13.6802 10.2184 13.6002L2.48844 10.8002V20.4402H2.49844Z" fill="#131F30"></path><path d="M10.2297 20.9604L6.67969 18.0404L7.94969 16.5004L10.0797 18.2504L14.0597 14.1504L15.4897 15.5404L10.2297 20.9604Z" fill="#131F30"></path><path d="M10.5959 9.43016C8.10594 9.43016 6.08594 7.41016 6.08594 4.92016C6.08594 2.43016 8.10594 0.410156 10.5959 0.410156C13.0859 0.410156 15.1059 2.43016 15.1059 4.92016C15.1059 7.41016 13.0859 9.43016 10.5959 9.43016ZM10.5959 2.41016C9.20594 2.41016 8.08594 3.54016 8.08594 4.92016C8.08594 6.30016 9.21594 7.43016 10.5959 7.43016C11.9759 7.43016 13.1059 6.30016 13.1059 4.92016C13.1059 3.54016 11.9759 2.41016 10.5959 2.41016Z" fill="#131F30"></path></svg> \ No newline at end of file diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index c18c6df..ac5a04e 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -71,7 +71,7 @@ const navigation = { }, { name: 'Leichte Sprache', - href: '/leichte-sprache-info', + href: '/leichte-sprache', external: false, }, ], diff --git a/src/pages/_meta.ts b/src/pages/_meta.ts index 1bdb8e4..e33d114 100644 --- a/src/pages/_meta.ts +++ b/src/pages/_meta.ts @@ -1,8 +1,6 @@ // Copyright 2025 Zentrum für Digitale Souveränität der Öffentlichen Verwaltung (ZenDiS) GmbH. // SPDX-License-Identifier: MIT -import { title } from 'process' - export default { index: { theme: { @@ -33,7 +31,4 @@ export default { 'declaration-on-accessibility': { display: 'hidden', }, - 'leichte-sprache-info': { - display: 'hidden', - }, } diff --git a/src/pages/leichte-sprache-info.mdx b/src/pages/leichte-sprache.mdx similarity index 100% rename from src/pages/leichte-sprache-info.mdx rename to src/pages/leichte-sprache.mdx diff --git a/theme.config.tsx b/theme.config.tsx index 7699381..6b99881 100644 --- a/theme.config.tsx +++ b/theme.config.tsx @@ -52,7 +52,7 @@ const config: DocsThemeConfig = { /> <span> <span className="font-space-grotesk text-xl font-bold text-black"> - Badge Programm Documentation + Badge Programm </span> </span> </span> @@ -72,7 +72,7 @@ const config: DocsThemeConfig = { ), }, docsRepositoryBase: - 'https://gitlab.opencode.de/open-code/badgebackend/badge-api-documentation', + 'https://gitlab.opencode.de/open-code/badgebackend/gitlab-profile/-/tree/main/', backgroundColor: { dark: '12,17,23', light: '255,255,255', @@ -99,6 +99,24 @@ const config: DocsThemeConfig = { footer: { content: <Footer />, }, + navbar: { + extraContent: ( + <div className="flex items-center space-x-4"> + <a + href="/leichte-sprache" + className="text-base font-medium hover:opacity-60" + > + <img + src="/assets/leichte-sprache.svg" + alt="Leichte Sprache Icon" + width={24} + height={24} + className="h-6 w-auto" + /> + </a> + </div> + ), + }, } export default config -- GitLab