whoa svelte is here

Co-authored-by: Astra <Astrrra@users.noreply.github.com>
This commit is contained in:
Ariadna 2025-04-20 00:18:33 -04:00
parent 76d837320d
commit 3f03c12152
Signed by: ari
SSH key fingerprint: SHA256:j4xpQafvRcIH4rwZqM5aREIogWsCjyYohia7vH0+uZY
24 changed files with 1080 additions and 16 deletions

View file

@ -0,0 +1,21 @@
<script lang="ts">
import { Post } from "./pdsfetch";
let { post } : { post : Post } = $props();
</script>
<div>
<p>{post.displayName} | {post.timenotstamp}</p>
<p>{post.text}</p>
{#if post.replyingDid}
<p>Replying to: {post.replyingDid}</p>
{/if}
{#if post.imagesLinksCid}
{#each post.imagesLinksCid as imageLink}
<img src="https://pds.witchcraft.systems/xrpc/com.atproto.sync.getBlob?did={post.authorDid}&cid={imageLink}" />
{/each}
{/if}
{#if post.videosLinkCid}
<video src="https://pds.witchcraft.systems/xrpc/com.atproto.sync.getBlob?did={post.authorDid}&cid={post.videosLinkCid}" />
{/if}
</div>