Add initial codebase
This commit is contained in:
parent
5fb2b8a791
commit
2bd81f859e
24 changed files with 2603 additions and 0 deletions
9
frontend/src/routes/+layout.svelte
Normal file
9
frontend/src/routes/+layout.svelte
Normal file
|
@ -0,0 +1,9 @@
|
|||
<script lang="ts">
|
||||
import "../app.css"
|
||||
|
||||
let { children } = $props()
|
||||
</script>
|
||||
|
||||
<div class="bg-red-500 w-full h-max">
|
||||
{@render children()}
|
||||
</div>
|
12
frontend/src/routes/+page.svelte
Normal file
12
frontend/src/routes/+page.svelte
Normal file
|
@ -0,0 +1,12 @@
|
|||
<script lang="ts">
|
||||
import { onMount } from "svelte"
|
||||
|
||||
let text = $state("...")
|
||||
onMount(async () => {
|
||||
let res = await fetch("/api")
|
||||
text = await res.text()
|
||||
})
|
||||
</script>
|
||||
|
||||
<h1>Welcome to SvelteKit</h1>
|
||||
<p class="text-2xl text-red-500">{text}</p>
|
Loading…
Add table
Add a link
Reference in a new issue