);
};
-const BasicActivityDisplay = ({
- activity,
+const BannerAvatar = ({
+ discordData,
+ discordUser,
+ dcdnUser,
}: {
- activity: Activity;
-}): ReactElement => {
- const prefix =
- activity.type === 0
- ? "Playing"
- : activity.type === 1
- ? "Streaming"
- : "Listening to";
-
- return (
-
-
{prefix} {activity.name}{" "}
-
+ discordData: Data;
+ discordUser: DiscordUser;
+ dcdnUser: DCDNUser;
+}): ReactElement => (
+
+);
+
+const Bio = ({ dcdnUser }: { dcdnUser: DCDNUser }): ReactElement => (
+
+ {dcdnUser.bio}
+
+);
+
+const Badges = ({ dcdnUser }: { dcdnUser: DCDNUser }): ReactElement => (
+
+ {Object.entries(userBadges)
+ .filter(([_, predicate]) => predicate(dcdnUser))
+ .map(([badge], index) => (
+
+ ))}
+
+);
+
+const Username = ({
+ discordUser,
+}: {
+ discordUser: DiscordUser;
+}): ReactElement => (
+
+
+ {discordUser.global_name}
+
+ {discordUser.username}
+
+);
export default DiscordStatus;
diff --git a/src/components/landing/nav-content/my-work.tsx b/src/components/landing/nav-content/my-work.tsx
index 6617cd9..7aa98e1 100644
--- a/src/components/landing/nav-content/my-work.tsx
+++ b/src/components/landing/nav-content/my-work.tsx
@@ -74,7 +74,7 @@ const MyWork = (): ReactElement => {
target="_blank"
>
(
{skillset.map((skill, index) => (
diff --git a/src/components/landing/navbar.tsx b/src/components/landing/navbar.tsx
index 7cd61cc..4fff87a 100644
--- a/src/components/landing/navbar.tsx
+++ b/src/components/landing/navbar.tsx
@@ -33,7 +33,7 @@ const Navbar = (): ReactElement => (
const Branding = (): ReactElement => (
(
{/* Git */}
-