From 52c889bb212befca0940e2d15b4e7794fdfda910 Mon Sep 17 00:00:00 2001 From: Korbs Date: Fri, 12 Jul 2024 23:33:58 -0400 Subject: [PATCH] Add search components for Streams --- src/components/search/Creator.astro | 78 +++++++++++++++++++++++++++++ src/components/search/Stream.astro | 69 +++++++++++++++++++++++++ 2 files changed, 147 insertions(+) create mode 100644 src/components/search/Creator.astro create mode 100644 src/components/search/Stream.astro diff --git a/src/components/search/Creator.astro b/src/components/search/Creator.astro new file mode 100644 index 0000000..9afa72e --- /dev/null +++ b/src/components/search/Creator.astro @@ -0,0 +1,78 @@ +--- +const { + Name, + Avatar, + Link, + Platform, + Banner, + Followers +} = Astro.props +--- + + +
+

+ { + ()=> { + if (Platform === "YouTube") { + return Subs: + } else if (Platform === "Twitch") { + return Followers: + } + } + } + {Followers} +

+ {Name + {Name +
+
+

{Name}

+
+
+ + \ No newline at end of file diff --git a/src/components/search/Stream.astro b/src/components/search/Stream.astro new file mode 100644 index 0000000..6fe6264 --- /dev/null +++ b/src/components/search/Stream.astro @@ -0,0 +1,69 @@ +--- +const { + Title, + Creator, + Avatar, + Link, + Thumbnail, + Views +} = Astro.props +--- + + +
+ + Stream Thumbnail +
+
+ {Creator +
+

{Title}

+

{Creator}

+
+
+
+ + \ No newline at end of file