minimal svelte template
This commit is contained in:
+7
-7
@@ -1,11 +1,11 @@
|
||||
<script lang="ts">
|
||||
import CreateTodo from "$lib/components/todos/CreateTodo.svelte";
|
||||
import ListTodos from "$lib/components/todos/ListTodos.svelte";
|
||||
import type { PageProps } from './$types'
|
||||
let { data }:PageProps = $props();
|
||||
<script>
|
||||
import CreateTodo from "$lib/components/CreateTodo.svelte";
|
||||
import ListTodos from "$lib/components/ListTodos.svelte";
|
||||
</script>
|
||||
|
||||
<main class="flex justify-center items-center flex-col gap-5 h-screen">
|
||||
<main class="flex flex-col items-center gap-2 py-5">
|
||||
<title>Todos</title>
|
||||
<h1 class="text-5xl"> Todos </h1>
|
||||
<CreateTodo/>
|
||||
<ListTodos initialTodos={data.todos}/>
|
||||
<ListTodos/>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user