diff --git a/src/widgets/Board/ui/CandidateCard/CandidateCard.stories.svelte b/src/widgets/Board/ui/CandidateCard/CandidateCard.stories.svelte new file mode 100644 index 0000000..09c0d6c --- /dev/null +++ b/src/widgets/Board/ui/CandidateCard/CandidateCard.stories.svelte @@ -0,0 +1,36 @@ + + + + + + {#snippet template(args: ComponentProps)} +
+ +
+ {/snippet} +
diff --git a/src/widgets/Board/ui/CandidateCard/CandidateCard.svelte b/src/widgets/Board/ui/CandidateCard/CandidateCard.svelte new file mode 100644 index 0000000..ffb95dd --- /dev/null +++ b/src/widgets/Board/ui/CandidateCard/CandidateCard.svelte @@ -0,0 +1,62 @@ + + + + + +{#snippet name(role: Role, label: string, font: UnifiedFont | undefined)} + {@const size = role === 'header' ? 'clamp(0.9rem, 5cqi, 1.25rem)' : 'clamp(0.75rem, 4cqi, 1rem)'} + {#if font} + + {label} + + {:else} + {label} + {/if} +{/snippet}