Pastabble frontend

This commit is contained in:
Maurice
2024-02-01 15:52:03 +01:00
parent 293a0af9c5
commit a1b5c513ea
29 changed files with 2410 additions and 121 deletions

View File

@@ -0,0 +1,22 @@
<script lang="ts">
import ThemeSwitcher from "./lib/components/ThemeSwitcher.svelte";
import Router from 'svelte-spa-router'
import Home from './lib/pages/Home.svelte';
import Viewer from "./lib/pages/Viewer.svelte";
const routes = {
'/:id': Viewer,
'*': Home
};
</script>
<div class="float-right p-5">
<ThemeSwitcher />
</div>
<main class="p-10">
<a href="/#/" class="text-3xl font-bold">Pastabble</a><br/>
<i>Fast and free pastebin alternative brought to you by the Plabble team</i>
<Router {routes} />
</main>