chadtmiller.com/monolith
An atproto PDS
0
0
<script lang="ts">
import Avatar from '#lib/atoms/Avatar.svelte';
import type { Client } from '#lib/data';
// A client: its logo when it has one, its name, and its host under it.
let { client }: { client: Client } = $props();
</script>
<span class="client">
<Avatar
src={client.logo}
shape="square"
fallback={client.loopback ? 'device-desktop' : 'globe'}
/>
<span class="names">
<span class="name">{client.name}</span>
<span class="host">{client.host}</span>
</span>
</span>
<style>
.client {
display: flex;
align-items: center;
gap: var(--space-3);
min-width: 0;
}
.names {
display: flex;
flex-direction: column;
gap: var(--space-0-5);
min-width: 0;
line-height: var(--leading-tight);
}
.name {
font-weight: var(--weight-medium);
overflow-wrap: anywhere;
}
.host {
color: var(--mute);
font-size: var(--text-sm);
overflow-wrap: anywhere;
}
</style>