From 456cf011b36de91c9936994b1fa45703adcd309b Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Thu, 3 Jul 2025 10:56:21 +0300 Subject: Initial fork of chrismwilliams/astro-theme-cactus theme --- src/components/Search.astro | 162 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 162 insertions(+) create mode 100644 src/components/Search.astro (limited to 'src/components/Search.astro') diff --git a/src/components/Search.astro b/src/components/Search.astro new file mode 100644 index 0000000..7b98c1a --- /dev/null +++ b/src/components/Search.astro @@ -0,0 +1,162 @@ +--- +// Heavy inspiration taken from Astro Starlight -> https://github.com/withastro/starlight/blob/main/packages/starlight/components/Search.astro + +import "@/styles/blocks/search.css"; +--- + + + + +
+ + { + import.meta.env.DEV ? ( +
+

+ Search is only available in production builds.
+ Try building and previewing the site to test it out locally. +

+
+ ) : ( +
+ + ) + } +
+
+
+ + -- cgit v1.2.3