Add initial codebase
This commit is contained in:
parent
5fb2b8a791
commit
2bd81f859e
24 changed files with 2603 additions and 0 deletions
1
frontend/src/app.css
Normal file
1
frontend/src/app.css
Normal file
|
@ -0,0 +1 @@
|
|||
@import 'tailwindcss';
|
13
frontend/src/app.d.ts
vendored
Normal file
13
frontend/src/app.d.ts
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
// See https://svelte.dev/docs/kit/types#app.d.ts
|
||||
// for information about these interfaces
|
||||
declare global {
|
||||
namespace App {
|
||||
// interface Error {}
|
||||
// interface Locals {}
|
||||
// interface PageData {}
|
||||
// interface PageState {}
|
||||
// interface Platform {}
|
||||
}
|
||||
}
|
||||
|
||||
export {};
|
15
frontend/src/app.html
Normal file
15
frontend/src/app.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="%sveltekit.assets%/favicon.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
%sveltekit.head%
|
||||
</head>
|
||||
|
||||
<body data-sveltekit-preload-data="hover" class="h-max">
|
||||
<div style="display: contents">%sveltekit.body%</div>
|
||||
</body>
|
||||
|
||||
</html>
|
1
frontend/src/lib/index.ts
Normal file
1
frontend/src/lib/index.ts
Normal file
|
@ -0,0 +1 @@
|
|||
// place files you want to import through the `$lib` alias in this folder.
|
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