From a501052d59bd0bd6569ccf6d72e0fc725d69d032 Mon Sep 17 00:00:00 2001 From: Bailey Townsend Date: Fri, 16 Oct 2026 16:48:27 -0500 Subject: [PATCH] more moo --- .../lib/components/og/GenericOgCard.svelte | 70 +++++++--- web-ui/src/lib/components/og/PdsCard.svelte | 123 +++++++++++------- web-ui/src/lib/components/og/cards.test.ts | 3 - .../src/routes/og/pds/[hostname]/+server.ts | 1 - 4 files changed, 123 insertions(+), 74 deletions(-) diff --git a/web-ui/src/lib/components/og/GenericOgCard.svelte b/web-ui/src/lib/components/og/GenericOgCard.svelte index f515c83..b48bb69 100644 --- a/web-ui/src/lib/components/og/GenericOgCard.svelte +++ b/web-ui/src/lib/components/og/GenericOgCard.svelte @@ -1,45 +1,75 @@
-
-
- -
-
PDS MOOver
-
+
+
+
-
-
- Move your Atmosphere account +
+
+ +
+
+ PDS MOOVER +
-
- Migrate between PDS hosts, keep your handle, and take your data with you. + +
+
+ Move your Atmosphere account +
+
+ Migrate between PDS hosts, keep your handle, and take your data with you. +
-
-
-
- {#each highlights as highlight, index (highlight)} +
+ {#each highlights as highlight (highlight)}
{highlight}
{/each} +
+ {domain} +
-
{siteUrl}
diff --git a/web-ui/src/lib/components/og/PdsCard.svelte b/web-ui/src/lib/components/og/PdsCard.svelte index 9f142df..9e9fb6d 100644 --- a/web-ui/src/lib/components/og/PdsCard.svelte +++ b/web-ui/src/lib/components/og/PdsCard.svelte @@ -1,9 +1,16 @@
-
+
+
+
+
-
+
-
PDS MOOver
+
+ PDS MOOVER +
-
- Move your Atmosphere account to {shownName} + +
+
+ {#if avatar} + + {:else} +
{initial}
+ {/if} +
+
+
+ {shownName} +
+
+ {hostname} +
+
-
-
-
- {#if avatar} - - {:else} -
{initial}
+
+ {#if stats} +
+ {stats} +
{/if} -
-
- {shownName} + Move your account here
-
{hostname}
- -
-
{stats}
-
{siteUrl}/moover/{hostname}
-
diff --git a/web-ui/src/lib/components/og/cards.test.ts b/web-ui/src/lib/components/og/cards.test.ts index dee26a3..1a863b4 100644 --- a/web-ui/src/lib/components/og/cards.test.ts +++ b/web-ui/src/lib/components/og/cards.test.ts @@ -27,8 +27,6 @@ describe('share cards', () => { avatar: AVATAR_PIXEL, initial: 'C', accountCount: 12345, - status: 'active', - siteUrl: 'https://pdsmoover.com', }) expect(response.headers.get('content-type')).toBe('image/png') @@ -41,7 +39,6 @@ describe('share cards', () => { hostname: 'pds.creators.example', avatar: null, initial: 'C', - siteUrl: 'https://pdsmoover.com', }) expect(isPng(Buffer.from(await response.arrayBuffer()))).toBe(true) diff --git a/web-ui/src/routes/og/pds/[hostname]/+server.ts b/web-ui/src/routes/og/pds/[hostname]/+server.ts index 9488d4a..dfa5b5c 100644 --- a/web-ui/src/routes/og/pds/[hostname]/+server.ts +++ b/web-ui/src/routes/og/pds/[hostname]/+server.ts @@ -93,7 +93,6 @@ export const GET: RequestHandler = async ({ params, url }) => { avatar, initial: initialOf(name), accountCount: entry.accountCount, - siteUrl, }, ) } catch (error) { -- knotmirror 0.0.1