Add router and tailwind

This commit is contained in:
2024-08-09 17:03:54 +02:00
parent 9c6ac0ef51
commit ddbc935e20
6 changed files with 1658 additions and 23 deletions

View File

@@ -1,5 +1,6 @@
<script lang="ts">
import Header from "$lib/components/Header.svelte";
import Router from "$lib/router/Router.svelte";
import { Greet } from "../wailsjs/go/main/App.js";
let resultText: string = "Please enter your name below 👇";
@@ -15,4 +16,4 @@
<main class="flex-1">
<Router />
</main>
</template>
</template>

View File

@@ -0,0 +1,10 @@
<script lang="ts">
import Router from 'svelte-spa-router'
import Energy from '$lib/components/Energy/Energy.svelte'
const routes = {
'/': Energy,
}
</script>
<Router {routes} />