diff --git a/src/App.svelte b/src/App.svelte index c51f79c..3ca9778 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,19 +1,35 @@
+

Welcome to the Feed

+ {#await accountsPromise} +

Loading...

+ {:then accountsData} +
+ {#each accountsData as accountObject} + + {/each} +
+ {:catch error} +

Error: {error.message}

+ {/await} + {#await postsPromise}

Loading...

{:then postsData} - {#each postsData as postObject} - - {/each} +
+ {#each postsData as postObject} + + {/each} +
{/await}
diff --git a/src/lib/AccountComponent.svelte b/src/lib/AccountComponent.svelte new file mode 100644 index 0000000..2ad7662 --- /dev/null +++ b/src/lib/AccountComponent.svelte @@ -0,0 +1,27 @@ + +
+ {#if account.avatarCid} + avatar of {account.displayName} + {/if} +

{account.displayName}

+
+ \ No newline at end of file diff --git a/src/lib/PostComponent.svelte b/src/lib/PostComponent.svelte index 051a572..9b4cae1 100644 --- a/src/lib/PostComponent.svelte +++ b/src/lib/PostComponent.svelte @@ -8,6 +8,7 @@ {#if post.authorAvatarCid} avatar of {post.displayName} {/if} @@ -18,13 +19,16 @@ {#if post.replyingDid}

Replying to: {post.replyingDid}

{/if} - {#if post.imagesLinksCid} - {#each post.imagesLinksCid as imageLink} - - {/each} + {#if post.imagesCid} +
+ {#each post.imagesCid as imageLink} + Post Image + {/each} +
{/if} {#if post.videosLinkCid}