Add initial codebase

This commit is contained in:
Leonardo Segala 2025-08-01 18:07:11 +02:00
parent 5fb2b8a791
commit 2bd81f859e
24 changed files with 2603 additions and 0 deletions

1
frontend/src/app.css Normal file
View file

@ -0,0 +1 @@
@import 'tailwindcss';

13
frontend/src/app.d.ts vendored Normal file
View 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
View 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>

View file

@ -0,0 +1 @@
// place files you want to import through the `$lib` alias in this folder.

View 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>

View 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>