You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 
 

42 lines
792 B

<script lang="ts">
import Graph from "./Graph.svelte";
import GraphNode from "./GraphNode.svelte";
import { loadTasks } from "./task-loader";
import type { TasksFile } from "./task-loader";
import TasksLoader from "./TasksLoader.svelte";
const tasksPromise: Promise<TasksFile> = loadTasks();
</script>
<style>
main {
text-align: center;
padding: 1em;
max-width: 240px;
margin: 0 auto;
}
h1 {
color: #ff3e00;
text-transform: uppercase;
font-size: 4em;
font-weight: 100;
}
@media (min-width: 640px) {
main {
max-width: none;
}
}
</style>
<main>
<!--
<svg height=200 width=200>
<GraphNode task="null" />
</svg>
-->
<TasksLoader promise={tasksPromise} let:data={t}>
<Graph tasks={t} />
</TasksLoader>
</main>