diff --git a/src/lib/components/icons/collaborate.svelte b/src/lib/components/icons/collaborate.svelte new file mode 100644 index 0000000..8a13306 --- /dev/null +++ b/src/lib/components/icons/collaborate.svelte @@ -0,0 +1,18 @@ + + + + + + + + + + diff --git a/src/lib/components/icons/send-alt-filled.svelte b/src/lib/components/icons/send-alt-filled.svelte new file mode 100644 index 0000000..2a911e9 --- /dev/null +++ b/src/lib/components/icons/send-alt-filled.svelte @@ -0,0 +1,15 @@ + + + + + diff --git a/src/lib/stores/post.ts b/src/lib/stores/post.ts index e620200..e1efc13 100644 --- a/src/lib/stores/post.ts +++ b/src/lib/stores/post.ts @@ -18,7 +18,7 @@ function createPostStore(): PostStore { return { ...store, add: (post: Post) => { - store.update((posts) => [...posts, post]) + store.update((posts) => [post, ...posts]) }, reset: () => { store.set([]) diff --git a/src/lib/temp/index.svelte b/src/lib/temp/index.svelte index b094c61..d846035 100644 --- a/src/lib/temp/index.svelte +++ b/src/lib/temp/index.svelte @@ -110,7 +110,7 @@ user: { name: 'CoyoteRide', avatar: image1, - address: "We should forgive each other for stupid things we've said in the past.", + address: '0x2d37a46fad14c4fcaba66660da6a5d99af88bf71', }, }, ] diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 931f18c..3065fac 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -26,7 +26,7 @@ on:click={() => goto('/post/new')} /> - {:else if $profile.key === false} + {:else if $profile.key === true}
+ + +
+ goto('/profile')} /> +
{$profile.active?.name}
+
{$profile.active?.address}
+
+ + + + diff --git a/src/routes/profile/+page.svelte b/src/routes/profile/+page.svelte index 27a21f8..3efb25c 100644 --- a/src/routes/profile/+page.svelte +++ b/src/routes/profile/+page.svelte @@ -36,7 +36,6 @@ label="Generate new keypair" on:click={() => { $profile.key = true - goto('profile/new') }} />