2024-10-01 21:55:33 +00:00
|
|
|
<script lang="ts">
|
2025-09-10 22:26:39 +00:00
|
|
|
import UserCircle from "@assets/icons/user-circle.svg?dataurl"
|
2024-11-14 23:43:55 +00:00
|
|
|
import Icon from "@lib/components/Icon.svelte"
|
2026-06-18 10:52:04 +00:00
|
|
|
import Link from "@lib/components/Link.svelte"
|
2024-10-01 21:55:33 +00:00
|
|
|
import Profile from "@app/components/Profile.svelte"
|
2026-07-03 00:01:31 +00:00
|
|
|
import ProfileAbout from "@app/components/ProfileAbout.svelte"
|
2025-06-05 20:01:36 +00:00
|
|
|
import ProfileBadges from "@app/components/ProfileBadges.svelte"
|
2026-06-18 10:52:04 +00:00
|
|
|
import {makeProfilePath} from "@app/routes"
|
2024-10-01 21:55:33 +00:00
|
|
|
|
2025-04-15 18:03:27 +00:00
|
|
|
type Props = {
|
|
|
|
|
pubkey: string
|
|
|
|
|
url?: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const {pubkey, url}: Props = $props()
|
2024-10-01 21:55:33 +00:00
|
|
|
</script>
|
|
|
|
|
|
2026-06-24 20:56:53 +00:00
|
|
|
<div class="card card-interactive flex flex-col gap-4">
|
2024-11-14 23:43:55 +00:00
|
|
|
<div class="flex justify-between">
|
2025-04-15 18:03:27 +00:00
|
|
|
<Profile {pubkey} {url} />
|
2026-06-18 10:52:04 +00:00
|
|
|
<Link href={makeProfilePath(pubkey)} class="button button-primary hidden sm:flex">
|
2025-09-10 22:26:39 +00:00
|
|
|
<Icon icon={UserCircle} />
|
2025-06-05 19:25:55 +00:00
|
|
|
View Profile
|
2026-06-18 10:52:04 +00:00
|
|
|
</Link>
|
2024-11-14 23:43:55 +00:00
|
|
|
</div>
|
2026-07-03 00:01:31 +00:00
|
|
|
<ProfileAbout {pubkey} {url} />
|
2025-06-05 20:01:36 +00:00
|
|
|
<ProfileBadges {pubkey} {url} />
|
2026-06-18 10:52:04 +00:00
|
|
|
<Link href={makeProfilePath(pubkey)} class="button button-primary sm:hidden">
|
2025-09-10 22:26:39 +00:00
|
|
|
<Icon icon={UserCircle} />
|
2025-06-05 19:25:55 +00:00
|
|
|
View Profile
|
2026-06-18 10:52:04 +00:00
|
|
|
</Link>
|
2024-10-21 20:18:48 +00:00
|
|
|
</div>
|