diff --git a/src/components/Search.astro b/src/components/Search.astro new file mode 100644 index 0000000..2507883 --- /dev/null +++ b/src/components/Search.astro @@ -0,0 +1,81 @@ +--- +import '@styles/search.scss' + +export interface Props { + readonly id?: string; + readonly className?: string; + readonly query?: string; + readonly uiOptions?: Record; +} + +const { id, className, query, uiOptions = {} } = Astro.props; +const bundlePath = `${import.meta.env.BASE_URL}pagefind/`; +--- + +
+
+ \ No newline at end of file diff --git a/src/components/global/Header.astro b/src/components/global/Header.astro index 42bfba1..a0635d2 100755 --- a/src/components/global/Header.astro +++ b/src/components/global/Header.astro @@ -1,14 +1,16 @@ --- // Settings import { SiteSettings, HeaderItems } from '@config' +import Search from '@components/Search.astro' ---
-
+ -
+
{HeaderItems.map((item) => ( {item.text} ))}