Other useful pages

This commit is contained in:
Maurice
2024-02-01 16:11:09 +01:00
parent a1b5c513ea
commit 95466ae31e
6 changed files with 57 additions and 2 deletions

View File

@@ -3,8 +3,10 @@
import Router from 'svelte-spa-router'
import Home from './lib/pages/Home.svelte';
import Viewer from "./lib/pages/Viewer.svelte";
import About from "./lib/pages/About.svelte";
const routes = {
'/about': About,
'/:id': Viewer,
'*': Home
};
@@ -16,7 +18,12 @@
<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>
<i>Fast and free pastebin alternative brought to you by the Plabble team</i><br/>
<div>
<a class="font-medium text-blue-600 dark:text-blue-500 hover:underline" href="/#/">Home</a>
-
<a class="font-medium text-blue-600 dark:text-blue-500 hover:underline" href="/#/about">About / using from terminal</a>
</div>
<Router {routes} />
</main>