diff --git a/bun.lockb b/bun.lockb index 9926790..1f306b5 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 579d8e0..1b7437f 100755 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "funding": [ { "type": "SudoVanilla", - "url": "https://sudovanilla.org/donate/" + "url": "https://liberapay.com/SudoVanilla/" } ], "keywords": [ diff --git a/source/src/pages/live.astro b/source/src/pages/live.astro index 984df18..449b81b 100755 --- a/source/src/pages/live.astro +++ b/source/src/pages/live.astro @@ -17,11 +17,13 @@ const CreatorName = Astro.url.href.split("live?=").pop(); const Creator = await fetch("https://twitch-backend.sudovanilla.org" + "/api/users/" + CreatorName,).then((response) => response.json()); // Check if the Creator is live -if(Creator.isLive === true) { +if(Creator.data.isLive == true) { var IsLive = true -} else if(Creator.isLive === false) { +} else if(Creator.data.isLive == false) { var IsLive = false } + +console.log(Creator.data.isLive) --- @@ -36,46 +38,80 @@ if(Creator.isLive === true) {

+
-
- -

{Creator.data.username}

- {IsLive ? - | -

{Creator.data.stream.title}

- : - null - } + +
+ {IsLive ? Online : Offline} +

{Creator.data.username}

+

{Creator.data.followers} Followers

+
+

{Creator.data.about}

+
+ {Creator.data.socials.map((social) => + {social.name} + )} +
+
+
-

{Creator.data.followers} Followers

- + {IsLive ? + + : +
+

Offline

+
+ }
- {IsLive ? - - : -
-

They're currently offline.

-
- } +{IsLive ? + +: + +} + +} - +} + \ No newline at end of file