flotilla/src/app/components/PeopleItem.svelte

33 lines
1,020 B
Svelte
Raw Normal View History

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"
import Icon from "@lib/components/Icon.svelte"
import Link from "@lib/components/Link.svelte"
2024-10-01 21:55:33 +00:00
import Profile from "@app/components/Profile.svelte"
import ProfileInfo from "@app/components/ProfileInfo.svelte"
2025-06-05 20:01:36 +00:00
import ProfileBadges from "@app/components/ProfileBadges.svelte"
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>
<div class="card card-interactive flex flex-col gap-4">
<div class="flex justify-between">
2025-04-15 18:03:27 +00:00
<Profile {pubkey} {url} />
<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
</Link>
</div>
2025-04-15 18:03:27 +00:00
<ProfileInfo {pubkey} {url} />
2025-06-05 20:01:36 +00:00
<ProfileBadges {pubkey} {url} />
<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
</Link>
</div>