karl/view/src/App.svelte

26 lines
421 B
Svelte
Raw Normal View History

2021-03-09 01:13:42 +01:00
<script lang="ts">
import * as routes from "./routes";
import ToastWrapper from "./components/Toast/ToastWrapper.svelte";
import { route as currentRoute } from "./stores";
</script>
<main>
{#if $currentRoute in routes}
<svelte:component this={routes[$currentRoute]} />
{/if}
<ToastWrapper />
</main>
<style>
main {
height: 100%;
}
@media (min-width: 640px) {
main {
max-width: none;
}
}
</style>