From 37d9182af74635e948e8092a7336907704f8a93e Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Wed, 20 Sep 2023 02:01:02 -0700 Subject: Implement about page - Discord Status component --- src/components/DiscordStatus.astro | 49 +++++++++++++++ src/pages/about.astro | 78 +++++++++++++++++++++++ src/pages/projects.astro | 124 +++++++++++++++++++++++++++++++++++++ 3 files changed, 251 insertions(+) create mode 100644 src/components/DiscordStatus.astro create mode 100644 src/pages/projects.astro diff --git a/src/components/DiscordStatus.astro b/src/components/DiscordStatus.astro new file mode 100644 index 0000000..8365418 --- /dev/null +++ b/src/components/DiscordStatus.astro @@ -0,0 +1,49 @@ +--- +const API_URL = "https://api.lanyard.rest/v1/users/246787839570739211"; +const response = await fetch(API_URL); +const data = await response.json(); + +const discordUser = data.data.discord_user; +const discordStatus = data.data.discord_status; + +const statusColors = { + online: "#43b581", + idle: "#faa61a", + dnd: "#f04747", + offline: "#747f8d", +}; + +--- + +
+ {`${discordUser.username}'s +

Status: {discordStatus}

+
+ \ No newline at end of file diff --git a/src/pages/about.astro b/src/pages/about.astro index e69de29..bff10d8 100644 --- a/src/pages/about.astro +++ b/src/pages/about.astro @@ -0,0 +1,78 @@ +--- +import Layout from "../layouts/Layout.astro"; +import SocialNavbar from "../components/SocialNavbar.astro"; +import ShapesBackground from "../components/ShapesBackground.astro"; +import DiscordStatus from "../components/DiscordStatus.astro"; +--- + + +
+
+

About Me

+
+
+

+ I'm am avid virtual youtuber (vtuber) + anime enjoyer so you may see a + trend in what my projects. Programming stuff is one of my hobbies but I + also spend my time playing video games although admittedly its pretty + much just MMOs, JRPGs, and Visual Novels. +

+
+
Github Language Stats
+
+ + +
+ +
+

+ + +

+
+
+ +
+
+ +
+ + diff --git a/src/pages/projects.astro b/src/pages/projects.astro new file mode 100644 index 0000000..0fe7e5d --- /dev/null +++ b/src/pages/projects.astro @@ -0,0 +1,124 @@ +--- +import Layout from "../layouts/Layout.astro"; +import SocialNavbar from "../components/SocialNavbar.astro"; +import Card from "../components/Card.astro"; +import ShapesBackground from "../components/ShapesBackground.astro"; +--- + + +
+

Projects

+ +
+ + + +
-- cgit v1.2.3