add mock settings page
This commit is contained in:
parent
c0b9ad57db
commit
f6cb4fed12
3 changed files with 25 additions and 0 deletions
21
src/routes/settings/+layout.svelte
Normal file
21
src/routes/settings/+layout.svelte
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
|
||||||
|
<script lang="ts">
|
||||||
|
import MenuLink from "$lib/MenuLink.svelte";
|
||||||
|
import SLayout from "$lib/SLayout.svelte";
|
||||||
|
import { RiBrush2Line } from "svelte-remixicon";
|
||||||
|
|
||||||
|
let { children } = $props();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<SLayout title="Settings">
|
||||||
|
{@render children()}
|
||||||
|
{#snippet left()}
|
||||||
|
<ul class="column">
|
||||||
|
<MenuLink href="/settings/appearance" icon={RiBrush2Line} label="Appearance" />
|
||||||
|
</ul>
|
||||||
|
{/snippet}
|
||||||
|
{#snippet right()}
|
||||||
|
<button class="primary card">Save</button>
|
||||||
|
{/snippet}
|
||||||
|
</SLayout>
|
||||||
2
src/routes/settings/+page.svelte
Normal file
2
src/routes/settings/+page.svelte
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
|
||||||
|
Select a setting from the left menu to change its settings
|
||||||
2
src/routes/settings/appearance/+page.svelte
Normal file
2
src/routes/settings/appearance/+page.svelte
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
|
||||||
|
TODO
|
||||||
Loading…
Add table
Add a link
Reference in a new issue