diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-12 20:47:32 +0100 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-12 20:47:32 +0100 |
| commit | 8a5b11d8322b806ce277c399e51b7f40efcb2556 (patch) | |
| tree | 447694202ee9d70cab7e3ecb4ff49e9d6f7ebee7 /src/components/Navbar.astro | |
| parent | de86f122320be7a41cd94476c8a9424c7c766b19 (diff) | |
Text color and background colour is controlled by CSS vars
Diffstat (limited to 'src/components/Navbar.astro')
| -rw-r--r-- | src/components/Navbar.astro | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro new file mode 100644 index 0000000..8174efe --- /dev/null +++ b/src/components/Navbar.astro @@ -0,0 +1,14 @@ +--- +import type Locale from '../types/Locale'; +import SwitchLanguageLink from './SwitchLanguageLink.astro'; + +interface Props { + locale: Locale; +} + +const { locale } = Astro.props; +--- + +<nav class="dark"> + <SwitchLanguageLink currentLocale={locale} /> +</nav> |
