feat: add beginnings of settings page

This commit is contained in:
Spectralitree
2021-12-11 15:56:47 +01:00
parent deead94c08
commit 1418d7e7d2
3 changed files with 60 additions and 1 deletions

View File

@@ -30,6 +30,8 @@
navigate("/");
}
let settings = JSON.parse(localStorage.getItem("pk-settings"));
async function login(token: string) {
const api = new PKAPI();
try {
@@ -53,7 +55,8 @@
</script>
{#if user && user.banner}
<!-- display the banner if there's a banner set, and if the current settings allow for it-->
{#if user && user.banner && settings && settings.appearance.banner_top}
<div class="banner" style="background-image: url({user.banner})" />
{/if}
<Container>