Add profile detail modal

This commit is contained in:
Jon Staab
2024-12-16 12:54:17 -08:00
parent 3b202b31cb
commit cd8d8b548f
11 changed files with 150 additions and 55 deletions
+7 -2
View File
@@ -1,9 +1,14 @@
<script lang="ts">
import Link from "@lib/components/Link.svelte"
import Button from "@lib/components/Button.svelte"
import Icon from "@lib/components/Icon.svelte"
import {PLATFORM_NAME, pubkeyLink} from "@app/state"
import ProfileDetail from "@app/components/ProfileDetail.svelte"
import {PLATFORM_NAME} from "@app/state"
import {pushModal} from "@app/modal"
const pubkey = "97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322"
const openProfile = () => pushModal(ProfileDetail, {pubkey})
</script>
<div class="mt-8 min-h-screen bg-base-200 sm:hero">
@@ -34,7 +39,7 @@
<p class="text-sm">
Built with 💜 by
<span class="text-primary">
@<Link external href={pubkeyLink(pubkey)} class="link">hodlbod</Link>
@<Button on:click={openProfile} class="link">hodlbod</Button>
</span>
</p>
<p class="text-xs">