nicco.io/src/components/SpacedLetters.svelte

25 lines
333 B
Svelte
Raw Normal View History

2020-07-24 11:10:01 +02:00
<script>
export let letters = []
</script>
<style>
span {
font-size: 8vw;
text-transform: uppercase;
user-select: none;
width: 1em;
text-align: center;
display: inline-block;
}
div {
margin-left: -0.5em;
}
</style>
<div>
{#each letters as letter}
<span>{letter}</span>
{/each}
</div>