From ff1d2213dcb771a0fc558507d2d0601bf5a126ec Mon Sep 17 00:00:00 2001 From: SirBlobby Date: Sat, 31 Oct 2026 22:53:17 -0400 Subject: [PATCH] Add donate widget --- content/profile.json | 1 + src/lib/components/shell/Bar.svelte | 2 + src/lib/components/shell/Donate.svelte | 47 ++++ src/lib/components/shell/DonatePopover.svelte | 229 ++++++++++++++++++ src/lib/content/types.ts | 1 + 5 files changed, 280 insertions(+) create mode 100644 src/lib/components/shell/Donate.svelte create mode 100644 src/lib/components/shell/DonatePopover.svelte diff --git a/content/profile.json b/content/profile.json index 5387e14..2c90a2d 100644 --- a/content/profile.json +++ b/content/profile.json @@ -5,6 +5,7 @@ "hostname": "engineering", "title": "Computer Science Student", "email": "sirblob0@gmail.com", + "donateUrl": "https://ko-fi.com/sirblob", "avatar": "/blob_nerd.png", "photo": "/portfolio-photo.jpg", "bio": "An engineer who loves making things. I build fun coding projects, compete in hackathons and robotics competitions, and enjoy games like Minecraft and Pokémon TCG Live. I'm interested in Open Source, Robotics, Embedded Systems, and AI/ML.", diff --git a/src/lib/components/shell/Bar.svelte b/src/lib/components/shell/Bar.svelte index 6e8cdfd..3b2051a 100644 --- a/src/lib/components/shell/Bar.svelte +++ b/src/lib/components/shell/Bar.svelte @@ -7,6 +7,7 @@ import DiscordStatus from './DiscordStatus.svelte'; import Battery from './Battery.svelte'; import Music from './Music.svelte'; + import Donate from './Donate.svelte';
@@ -25,6 +26,7 @@ +
diff --git a/src/lib/components/shell/Donate.svelte b/src/lib/components/shell/Donate.svelte new file mode 100644 index 0000000..74ff44b --- /dev/null +++ b/src/lib/components/shell/Donate.svelte @@ -0,0 +1,47 @@ + + +{#if profile.donateUrl} + +{/if} + + diff --git a/src/lib/components/shell/DonatePopover.svelte b/src/lib/components/shell/DonatePopover.svelte new file mode 100644 index 0000000..e0243fa --- /dev/null +++ b/src/lib/components/shell/DonatePopover.svelte @@ -0,0 +1,229 @@ + + + + + + + + diff --git a/src/lib/content/types.ts b/src/lib/content/types.ts index 077c88c..ccdb912 100644 --- a/src/lib/content/types.ts +++ b/src/lib/content/types.ts @@ -17,6 +17,7 @@ export interface Profile { hostname: string; title: string; email: string; + donateUrl?: string; avatar: string; photo?: string; bio: string;