diff --git a/src/app.pcss b/src/app.pcss index f7ccc71..cae70c2 100644 --- a/src/app.pcss +++ b/src/app.pcss @@ -71,7 +71,7 @@ --background: 0 0% 0%; /* #000000 */ --foreground: 183 100% 96%; /* #14b8a6 */ - --muted: 183 100% 96%; /* #ecfeff */ + --muted: 180 10% 66%; /* #ecfeff */ --muted-foreground: 176 61% 19%; /* #134e4a */ --popover: 0 0% 0%; /* #000000 */ diff --git a/src/lib/components/Emfed.svelte b/src/lib/components/Emfed.svelte new file mode 100644 index 0000000..1ec81f6 --- /dev/null +++ b/src/lib/components/Emfed.svelte @@ -0,0 +1,173 @@ + + + + +{#snippet avatar(toot)} + + {toot.account.username} avatar +
+ {toot.account.display_name} + @{toot.account.username} +
+
+{/snippet} + +{#snippet body(toot)} +
+
+ {@html sanitizeHtml(toot.content)} +
+ {#each toot.media_attachments.filter((att) => att.type === "image") as image} + + {image.description}/ + + {/each} +
+{/snippet} + + + +
    + {#if loading} + {#each Array(maxToots ?? 5) as placeholder} +
  1. +
    +
    + +
    + + +
    +
    + +
    + +
  2. + {/each} + {:else} + {#each toots as toot} +
  3. + {#if toot.reblog} + + {@render body(toot.reblog)} + {:else} + + {@render body(toot)} + {/if} +
  4. + {/each} + {/if} +
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 5593da6..b07e9c3 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,6 +1,7 @@ - @@ -32,8 +33,8 @@ import {OpenInNewWindow} from "radix-icons-svelte"; -

Subsection

+

Mastodon Feed

-

Link 4

+ diff --git a/tailwind.config.js b/tailwind.config.js index 6c83ff9..01a33cf 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -4,7 +4,7 @@ import { fontFamily } from "tailwindcss/defaultTheme"; const config = { darkMode: ["class"], content: ["./src/**/*.{html,js,svelte,ts}"], - safelist: ["dark"], + safelist: ["dark", "nordlys"], theme: { container: { center: true, @@ -68,6 +68,9 @@ const config = { }, fontFamily: { sans: [...fontFamily.sans] + }, + aspectRatio: { + '16/9': '16 / 9', } } },