mastoradio/src/components/App.svelte

36 lines
738 B
Svelte
Raw Normal View History

2020-02-13 20:15:52 +01:00
<svelte:head>
<title>{`${ $current ? `${$current.metadata.title} ` : ''}Eldritch Radio`}</title>
</svelte:head>
2020-01-10 03:02:46 +01:00
<main class="app">
<header class="header">
<h1>Eldritch Radio</h1>
</header>
<section class="viewer">
2020-01-16 20:10:40 +01:00
{#if $current}
<Viewer></Viewer>
2020-01-20 04:49:38 +01:00
<Controls></Controls>
2020-01-16 20:10:40 +01:00
{/if}
2020-01-10 03:02:46 +01:00
</section>
<section class="queue">
2020-01-13 14:39:22 +01:00
<Queue></Queue>
2020-01-10 03:02:46 +01:00
</section>
</main>
<script>
import Controls from '/components/Controls.svelte'
2020-01-13 14:39:22 +01:00
import Queue from '/components/Queue.svelte'
2020-01-10 03:02:46 +01:00
import Viewer from '/components/Viewer.svelte'
2020-01-16 20:10:40 +01:00
import { current } from '/store.js'
2020-01-10 03:02:46 +01:00
</script>
<style>
.app {
min-width: 100%;
min-height: 100%;
}
</style>