summaryrefslogtreecommitdiff
path: root/src/components/Navbar.astro
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-13 14:29:02 +0100
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-13 14:35:37 +0100
commit144deab1b6067f59a56ae36c333f3097d08056ef (patch)
tree8b20660c6b48cce57bbafb5b0a287759d1b8d1ce /src/components/Navbar.astro
parentc39c9d8d67db7833a027beed870aa3f879a27d57 (diff)
Adds Logo to Navbar
Diffstat (limited to 'src/components/Navbar.astro')
-rw-r--r--src/components/Navbar.astro9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro
index 80829d3..1ce0749 100644
--- a/src/components/Navbar.astro
+++ b/src/components/Navbar.astro
@@ -2,15 +2,24 @@
import type Locale from '../types/Locale';
import Breadcrumbs from './Breadcrumbs.astro';
import SwitchLanguageLink from './SwitchLanguageLink.astro';
+import tSite from '../i18n/translations/site';
+import translate from '../i18n/translate';
interface Props {
locale: Locale;
}
const { locale } = Astro.props;
+
+const t = translate(locale);
---
<nav class="dark">
+ <h1 class="logo">
+ <a href="/">
+ {t(tSite, { key: 'scots-leid-associe' })}
+ </a>
+ </h1>
<SwitchLanguageLink currentLocale={locale} />
<Breadcrumbs />
</nav>