feat: task page

This commit is contained in:
2025-01-07 15:05:40 +01:00
parent 609716a296
commit 74080ffceb
5 changed files with 35 additions and 7 deletions

View File

@@ -0,0 +1,8 @@
import { db, tasks } from "$lib/db/schema"
import { eq } from "drizzle-orm"
export const load = async ({ params }) => {
return {
task: (await db.select().from(tasks).where(eq(tasks.id, params.id)))[0]
}
}

View File

@@ -0,0 +1,5 @@
<script lang="ts">
let { data } = $props();
</script>
<h1 class="my-4 text-2xl font-bold text-center">{data.task.name}</h1>