diff --git a/src/components/navigation/Header.svelte b/src/components/navigation/Header.svelte index dea09a0..1c69585 100644 --- a/src/components/navigation/Header.svelte +++ b/src/components/navigation/Header.svelte @@ -7,10 +7,12 @@ } from '$env/static/public'; import ThemeSwitcher from '$lib/ThemeSwitch/ThemeSwitcher.svelte'; import { createEventDispatcher } from 'svelte'; + import { fly } from 'svelte/transition'; const dispatch = createEventDispatcher(); let searchInput = ''; + let isMobileMenuOpen = false; async function handleSearch() { try { @@ -33,66 +35,138 @@ if (PUBLIC_NAV_BAR_LINKS) { headerLinks = JSON.parse(PUBLIC_NAV_BAR_LINKS); } + + function toggleNavbar() { + isMobileMenuOpen = !isMobileMenuOpen; + }