Podcast player components (#37)

This commit is contained in:
Ollie Taylor
2023-03-06 15:25:34 +00:00
committed by GitHub
parent 47aabda96d
commit 9232f4d52e
37 changed files with 1375 additions and 156 deletions
@@ -0,0 +1,19 @@
<script lang="ts">
import { secondsToTimestamp } from '../../utility';
export let value: number;
export let force_hours = false;
$: timestamp = secondsToTimestamp(value, force_hours);
</script>
<style>
span {
letter-spacing: 0.5px;
font-size: 0.8em;
display: block;
width: 8ch;
}
</style>
<span style="width:{timestamp.length}ch">{timestamp}</span>