Files
radicle-desktop/src/components/RepoTeaser.svelte
T
Rūdolfs Ošiņš bb38192b7e Implement repo home page
- by default open repos on the home view
- show a rendered README on the repo home page
- show repo metadata: visibility, canonical branch, threshold, delegates
  and allow list with aliases
- make layout responsive on repo home
- add copy button to code blocks in markdown
2025-05-06 10:11:01 +02:00

36 lines
655 B
Svelte

<script lang="ts">
import Icon from "@app/components/Icon.svelte";
interface Props {
name: string;
seeding: number;
}
const { name, seeding }: Props = $props();
</script>
<style>
.teaser {
align-items: center;
width: 100%;
}
.seeding {
margin-left: auto;
padding: 0 0.375rem;
background-color: var(--color-fill-ghost);
gap: 0.25rem;
}
</style>
<div class="global-flex teaser">
<Icon name="repo" />
<span title={name} class="txt-small txt-overflow txt-semibold">
{name}
</span>
<div class="global-counter txt-small seeding">
<Icon name="seedling-filled" />
{seeding}
</div>
</div>