diff --git a/src/components/Header.astro b/src/components/Header.astro index 751953f..464a6fd 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -18,21 +18,27 @@ const phone = t['phone']; ---
- -
- JPM Security Logo + + +
+ JPM Security Logo
- JPM + JPM
-
+ + +
+ + +
- Security & Services -
- + +
+ - {phone} + {phone}
diff --git a/src/components/LanguageSelector.astro b/src/components/LanguageSelector.astro index aac5303..e2f3d30 100644 --- a/src/components/LanguageSelector.astro +++ b/src/components/LanguageSelector.astro @@ -5,7 +5,7 @@ import { languages } from '../i18n/ui'; const { pathname } = Astro.url; // Function to get the current language and generate the URL for a different language -function getTargetPath(targetLang) { +function getTargetPath(targetLang: string): string { // Check if the current path starts with a language code, if so, replace it const langPathRegex = /^\/(en|nl)\//; const matches = pathname.match(langPathRegex); @@ -20,11 +20,11 @@ function getTargetPath(targetLang) { } --- -
+
{Object.entries(languages).map(([lang, label]) => (