working on vcard display

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-10-07 08:55:30 +02:00
parent e39ae982f4
commit 0ceeba0701
6 changed files with 147 additions and 49 deletions

View File

@@ -0,0 +1,23 @@
<script>
import { name } from '../../vcard.js';
let { vcard } = $props();
let n = $derived(name(vcard));
</script>
{#if n.prefix}
<span class="name prefix">{n.prefix}</span>
{/if}
{#if n.given}
<span class="given name">{n.given}</span>
{/if}
{#if n.family}
<span class="family name">{n.family}</span>
{/if}
{#if n.additional}
<span class="additional name">{n.additional}</span>
{/if}
{#if n.suffix}
<span class="name suffix">{n.suffix}</span>
{/if}