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)} -
- - {#if hoveredIndex === item.id} - - - - {/if} - - (hoveredIndex = item.id)} - on:mouseleave={() => (hoveredIndex = null)} - on:focus={() => (hoveredIndex = item.id)} - on:blur={() => (hoveredIndex = null)} - aria-describedby={hoveredIndex === item.id - ? `tooltip-${item.id}` - : undefined} - > - {item.name} - -
- {/each} + {#each items as item, idx (item.name)} +
+ + {#if hoveredIndex === item.id} + + + + {/if} + + (hoveredIndex = item.id)} + on:mouseleave={() => (hoveredIndex = null)} + on:focus={() => (hoveredIndex = item.id)} + on:blur={() => (hoveredIndex = null)} + aria-describedby={hoveredIndex === item.id + ? `tooltip-${item.id}` + : undefined} + > + {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 -

-
-
- - View media kit - - {#if authed} - - {/if} -
-
+
+
+
+

+ CMS +

+

+ RythonDev media kit +

+
+
+ + View media kit + + {#if authed} + + {/if} +
+
- {#if loading} -
Loading…
- {:else if !authed} -
-

Sign in

-

Enter the admin credentials configured for this instance.

+ {#if loading} +
Loading…
+ {:else if !authed} + +

Sign in

+

+ Enter the admin credentials configured for this instance. +

- + - + - {#if error} -
- {error} -
- {/if} + {#if error} +
+ {error} +
+ {/if} - -
- {:else} -
-
-
-

Text content

- -
+ + + {:else} +
+
+
+

+ Text content +

+ +
-
- {#each Object.keys(content) as key} - - {/each} -
-
+
+ {#each Object.keys(content) as key} + + {/each} +
+
-
-
-

Follower counts

- -
+
+
+

+ Follower counts +

+ +
-
- {#each platforms as platform, index (platform.name)} -
-
{titleCase(platform.name)}
-
- - - -
-
- {/each} -
-
-
+
+ {#each platforms as platform, index (platform.name)} +
+
+ {titleCase(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} - {content.brand_name - {/if} -
-
- - -
- Twitch -
- - Twitch - -
- {twitch?.display_name} -
- {formatCount(twitch?.followers)} - followers -
-
-
-
- {#each platforms as platform (platform.name)} - -
- Twitch -
- - {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 ?? ""} -

-
-
-
- Collaborations -
- -
-
-
+
+
+
+
+ {#if content.profile_image_url} + {content.brand_name + {/if} +
+
+ + +
+ Twitch +
+ + Twitch + +
+ {twitch?.display_name} +
+ {formatCount(twitch?.followers)} + followers +
+
+
+
+ {#each platforms as platform (platform.name)} + +
+ Twitch +
+ + {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 ?? ""} +

+
+
+
+ Collaborations +
+ +
+ {#if services.length} +
+
+ Services +
+
+
    + {#each services.slice(0, 3) as service} +
  • {service}
  • + {/each} +
+
    + {#each services.slice(3, 6) as service} +
  • {service}
  • + {/each} +
+
+
+ {/if} +
+
{/if}