From 0f5155811d7975eeddc15c26b746e982450c8087 Mon Sep 17 00:00:00 2001
From: liyunze <50455574+liyunze-coding@users.noreply.github.com>
Date: Thu, 5 Nov 2026 22:52:40 +0800
Subject: [PATCH] updated services
---
.../ui/AnimatedTooltip/AnimatedTooltip.svelte | 198 +++----
frontend/src/lib/api.ts | 1 +
frontend/src/routes/Admin.svelte | 545 ++++++++++--------
frontend/src/routes/MediaKit.svelte | 399 +++++++------
frontend/src/routes/MediaKit_copy.svelte | 236 ++++----
5 files changed, 743 insertions(+), 636 deletions(-)
diff --git a/frontend/src/components/ui/AnimatedTooltip/AnimatedTooltip.svelte b/frontend/src/components/ui/AnimatedTooltip/AnimatedTooltip.svelte
index c4acf02..eb7bb8c 100644
--- a/frontend/src/components/ui/AnimatedTooltip/AnimatedTooltip.svelte
+++ b/frontend/src/components/ui/AnimatedTooltip/AnimatedTooltip.svelte
@@ -1,106 +1,106 @@
- {#each items as item, idx (item.name)}
-
- {/each}
+ {#each items as item, idx (item.name)}
+
+ {/each}
diff --git a/frontend/src/lib/api.ts b/frontend/src/lib/api.ts
index 474207c..c89f328 100644
--- a/frontend/src/lib/api.ts
+++ b/frontend/src/lib/api.ts
@@ -83,3 +83,4 @@ export async function updatePlatforms(
const data = await res.json();
return data.platforms;
}
+
diff --git a/frontend/src/routes/Admin.svelte b/frontend/src/routes/Admin.svelte
index 71c5b22..4be3b63 100644
--- a/frontend/src/routes/Admin.svelte
+++ b/frontend/src/routes/Admin.svelte
@@ -1,275 +1,316 @@
-
-
-
-
CMS
-
- RythonDev media kit
-
-
-
-
+
+
+
+
+ CMS
+
+
+ RythonDev media kit
+
+
+
+
- {#if loading}
- Loading…
- {:else if !authed}
-
- {:else}
-
-
-
-
Text content
-
-
+
+
+ {:else}
+
+
+
+
+ Text content
+
+
+
-
-
+
+
-
-
-
Follower counts
-
-
+
+
+
+ Follower counts
+
+
+
-
- {#each platforms as platform, index (platform.name)}
-
- {/each}
-
-
-
+
+ {#each platforms as platform, index (platform.name)}
+
+ {/each}
+
+
+
- {#if message}
-
- {message}
-
- {/if}
- {#if error}
-
- {error}
-
- {/if}
- {/if}
+ {#if message}
+
+ {message}
+
+ {/if}
+ {#if error}
+
+ {error}
+
+ {/if}
+ {/if}
diff --git a/frontend/src/routes/MediaKit.svelte b/frontend/src/routes/MediaKit.svelte
index afca832..069a9d9 100644
--- a/frontend/src/routes/MediaKit.svelte
+++ b/frontend/src/routes/MediaKit.svelte
@@ -1,196 +1,231 @@
{#if error}
-
-
- {error}
-
-
+
+
+ {error}
+
+
{:else if !data}
-
- Loading…
-
+
+ Loading…
+
{:else}
-
-
-
-
- {#if content.profile_image_url}
-

- {/if}
-
-
-
-
-
-

-
-
- Twitch
-
-
-
{twitch?.display_name}
-
- {formatCount(twitch?.followers)}
- followers
-
-
-
-
- {#each platforms as platform (platform.name)}
-
-
-

-
-
- {platform.name}
-
-
-
{platform.handle}
-
- {formatCount(platform.followers)}
-
- {#if platform.name != "youtube"}
- followers
- {:else}
- subscribers
- {/if}
-
-
-
-
-
- {/each}
-
-
-
-
-
-
-
- Hi there, I'm
- RythonDev
-
-
-
-
About Me
-
- {content.about ?? ""}
-
-
-
-
-
+
+
+
+
+ {#if content.profile_image_url}
+

+ {/if}
+
+
+
+
+
+

+
+
+ Twitch
+
+
+
{twitch?.display_name}
+
+ {formatCount(twitch?.followers)}
+ followers
+
+
+
+
+ {#each platforms as platform (platform.name)}
+
+
+

+
+
+ {platform.name}
+
+
+
{platform.handle}
+
+ {formatCount(platform.followers)}
+
+ {#if platform.name != "youtube"}
+ followers
+ {:else}
+ subscribers
+ {/if}
+
+
+
+
+
+ {/each}
+
+
+
+
+
+
+
+ Hi there, I'm
+ RythonDev
+
+ {#if content.tagline}
+
+ {content.tagline}
+
+ {/if}
+
+
+
About Me
+
+ {content.about ?? ""}
+
+
+
+ {#if services.length}
+
+
+ Services
+
+
+
+ {#each services.slice(0, 3) as service}
+ - {service}
+ {/each}
+
+
+ {#each services.slice(3, 6) as service}
+ - {service}
+ {/each}
+
+
+
+ {/if}
+
+
{/if}