diff --git a/site/src/components/SiteSearch.svelte b/site/src/components/SiteSearch.svelte new file mode 100644 index 0000000000..407816263a --- /dev/null +++ b/site/src/components/SiteSearch.svelte @@ -0,0 +1,21 @@ + + +{#if showing} + +{/if} + + diff --git a/site/src/routes/_layout.svelte b/site/src/routes/_layout.svelte index 55f4861880..5b812b7a16 100644 --- a/site/src/routes/_layout.svelte +++ b/site/src/routes/_layout.svelte @@ -3,9 +3,12 @@ import { stores } from '@sapper/app'; import { Icon, Icons, Nav, NavItem } from '@sveltejs/site-kit'; import PreloadingIndicator from '../components/PreloadingIndicator.svelte'; + import SiteSearch from '../components/SiteSearch.svelte'; export let segment; + let showingSearch = false; + const { page, preloading, session } = stores(); setContext('app', { @@ -53,7 +56,15 @@ + + + showingSearch = true}> + + + + + {/if}