diff --git a/bun.lockb b/bun.lockb index ba74147..878b8f1 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/src/components/Service.astro b/src/components/Service.astro new file mode 100644 index 0000000..ee36a45 --- /dev/null +++ b/src/components/Service.astro @@ -0,0 +1,87 @@ +--- +// Properties +const { + Icon, + Title, + Description, + Source, + Link, + Status +} = Astro.props + +// Icons +import {CheckCircleSolid, XmarkCircleSolid} from 'iconoir-react' +--- + +
+
+ + { + ()=> { + if (Status === "online") { + return

Online

+ } else if (Status === "offline") { + return

Offline

+ } + } + } +
+
+
+

{Title}

+

{Description}

+ +
+
+
+ + \ No newline at end of file diff --git a/src/pages/code.astro b/src/pages/code.astro deleted file mode 100644 index 777813c..0000000 --- a/src/pages/code.astro +++ /dev/null @@ -1,37 +0,0 @@ ---- -// Layout -import Default from "@layouts/Default.astro"; - -// Components -import Hero from "@components/Hero.astro"; -import Heading from "@components/Heading.astro"; -import Posts from "@components/blog/posts.astro"; -import LargeCard from "@components/Feature.astro"; - -// Icons -import { BookmarkBook, ReportColumns, Search } from "iconoir-react"; ---- - - - -
-

SudoVanilla Ark

- Search -
-
- Explore - Issues - Pull Requests - Your Account -
-
- - - -
diff --git a/src/pages/instances.astro b/src/pages/instances.astro new file mode 100644 index 0000000..4190e82 --- /dev/null +++ b/src/pages/instances.astro @@ -0,0 +1,124 @@ +--- +// Layout +import Default from "@layouts/Default.astro"; + +// Components +import Hero from "@components/Hero.astro"; +import Heading from "@components/Heading.astro"; +import Posts from "@components/blog/posts.astro"; +import LargeCard from "@components/Feature.astro"; +import Service from "@components/Service.astro"; + +// List Posts +import { getCollection } from "astro:content"; +const posts = await getCollection("posts"); + +// Netweak Status +const NetweakPing = await fetch('https://status.sudovanilla.org/json'); +const NetweakStatus = await NetweakPing.json(); + +var StatusForOpengist = NetweakStatus.services['24'].status +var StatusForPingvin = NetweakStatus.services['22'].status +var StatusFor4Get = NetweakStatus.services['10'].status +var StatusForTeddit = NetweakStatus.services['21'].status +var StatusForSafetwitch = NetweakStatus.services['20'].status +var StatusForRimgo = NetweakStatus.services['16'].status +var StatusForAnonymousoverflow = NetweakStatus.services['17'].status +var StatusForQuetre = NetweakStatus.services['19'].status +var StatusForLibmedium = NetweakStatus.services['23'].status + +console.log(StatusForPingvin) + +// Icons +import { BookmarkBook, ReportColumns } from "iconoir-react"; +--- + + + +

SudoVanilla Instances

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