From bbd2f6e32fecd11fe8dfef09ba4780c34aef76a3 Mon Sep 17 00:00:00 2001 From: Korbs Date: Wed, 23 Oct 2024 00:15:28 -0400 Subject: [PATCH] Add components --- source/src/components/global/Footer.astro | 0 source/src/components/global/Head.astro | 20 +++++ source/src/components/global/Header.astro | 79 +++++++++++++++++++ source/src/components/global/SearchMenu.astro | 51 ++++++++++++ source/src/components/search/Correction.astro | 24 ++++++ .../components/search/RelatedSearches.astro | 23 ++++++ source/src/components/search/WebLink.astro | 43 ++++++++++ 7 files changed, 240 insertions(+) create mode 100644 source/src/components/global/Footer.astro create mode 100644 source/src/components/global/Head.astro create mode 100644 source/src/components/global/Header.astro create mode 100644 source/src/components/global/SearchMenu.astro create mode 100644 source/src/components/search/Correction.astro create mode 100644 source/src/components/search/RelatedSearches.astro create mode 100644 source/src/components/search/WebLink.astro diff --git a/source/src/components/global/Footer.astro b/source/src/components/global/Footer.astro new file mode 100644 index 0000000..e69de29 diff --git a/source/src/components/global/Head.astro b/source/src/components/global/Head.astro new file mode 100644 index 0000000..b8b8403 --- /dev/null +++ b/source/src/components/global/Head.astro @@ -0,0 +1,20 @@ +--- +// Components +import { Tooltips } from 'astro-tooltips' +--- + + + Zarro Search + + + + + + + + + + + + + \ No newline at end of file diff --git a/source/src/components/global/Header.astro b/source/src/components/global/Header.astro new file mode 100644 index 0000000..007d918 --- /dev/null +++ b/source/src/components/global/Header.astro @@ -0,0 +1,79 @@ +--- +// Properties +const {Query} = Astro.props + +// Icons +import { HalfMoon, Menu } from "@iconoir/vue"; +--- + +
+
+ + +
+
+ + + +
+
+ + \ No newline at end of file diff --git a/source/src/components/global/SearchMenu.astro b/source/src/components/global/SearchMenu.astro new file mode 100644 index 0000000..a97b2e8 --- /dev/null +++ b/source/src/components/global/SearchMenu.astro @@ -0,0 +1,51 @@ +--- +// Properties +const {Type} = Astro.props + +// Highlight Type +--- + +
+ Web + Images + Videos + News + Map +
+ + + +{ + ()=> { + if (Type === "Web") { + return + } else if (Type === "Images") { + return + } else if (Type === "Videos") { + return + } else if (Type === "News") { + return + } else if (Type === "Map") { + return + } + } + } \ No newline at end of file diff --git a/source/src/components/search/Correction.astro b/source/src/components/search/Correction.astro new file mode 100644 index 0000000..31fb1b4 --- /dev/null +++ b/source/src/components/search/Correction.astro @@ -0,0 +1,24 @@ +--- +// Properties +const { + DidYouMean, + ActualQuery +} = Astro.props +--- + +
+

Did you mean "{DidYouMean}"?

+

Search for "{ActualQuery}" instead.

+
+ + diff --git a/source/src/components/search/RelatedSearches.astro b/source/src/components/search/RelatedSearches.astro new file mode 100644 index 0000000..d0f9b23 --- /dev/null +++ b/source/src/components/search/RelatedSearches.astro @@ -0,0 +1,23 @@ +

Related searches

+ + + \ No newline at end of file diff --git a/source/src/components/search/WebLink.astro b/source/src/components/search/WebLink.astro new file mode 100644 index 0000000..8c698b3 --- /dev/null +++ b/source/src/components/search/WebLink.astro @@ -0,0 +1,43 @@ +--- +// Properties +const { + Title, + Description, + Link +} = Astro.props +--- + +
+ +

{Title}

+

{Link}

+
+

{Description}

+
+ + \ No newline at end of file