forked from Maurice/pastabble
Pastabble frontend
This commit is contained in:
22
pastabble-frontend/src/App.svelte
Normal file
22
pastabble-frontend/src/App.svelte
Normal 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>
|
||||
Reference in New Issue
Block a user