aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/e
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-01-18 21:42:10 -0800
committerAdam Soltys <[email protected]>2025-01-18 21:42:10 -0800
commit21072daf37f79b9de28203bdefba8c21a55f9233 (patch)
tree4e094763af96ae23b2748fde3b0376b5a94119d4 /src/routes/(app)/e
parent0842349a89c2fa395c1f36b2f1526a1e3fe7111d (diff)
downloadcoinos-ui-21072daf37f79b9de28203bdefba8c21a55f9233.tar.gz
coinos-ui-21072daf37f79b9de28203bdefba8c21a55f9233.zip
event formatting
Diffstat (limited to 'src/routes/(app)/e')
-rw-r--r--src/routes/(app)/e/[id]/+page.svelte26
1 files changed, 22 insertions, 4 deletions
diff --git a/src/routes/(app)/e/[id]/+page.svelte b/src/routes/(app)/e/[id]/+page.svelte
index 15e2be72..53a73ef4 100644
--- a/src/routes/(app)/e/[id]/+page.svelte
+++ b/src/routes/(app)/e/[id]/+page.svelte
@@ -12,17 +12,35 @@
<h1 class="px-3 md:px-0 text-center text-3xl md:text-4xl font-semibold">
Event
</h1>
- <div class="flex gap-2 text-2xl">
- <Avatar user={author} size={16} />
- <div class="space-y-5">
+ <div class="space-y-5">
+ <div class="flex gap-2 items-center">
+ <Avatar user={author} size={16} />
+ <a href={`/${author.pubkey}`} class="contents">
+ <div>
+ <div class="font-bold">{author.display} &mdash; {author.username}</div>
+ <div class="flex items-center">
+ <iconify-icon
+ noobserver
+ icon="ph:lightning-fill"
+ class="text-yellow-300"
+ ></iconify-icon>
+ {author.lud16}
+ </div>
+ </div>
+ </a>
+ </div>
+
+ <div class="text-2xl space-y-5">
{#each parts as { type, value }, i}
{#if type === "text"}
{value}
{:else if type === "link"}
<Media {value} />
{:else if type.match(/^nostr:np(rofile|ub)$/)}
- <a href={`/${value.pubkey}`} class="font-bold">@{names[value.pubkey]}</a>
+ <a href={`/${value.pubkey}`} class="font-bold"
+ >@{names[value.pubkey]}</a
+ >
{/if}
{/each}
</div>