mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-15 02:00:09 +00:00
feat: add beginnings of settings page
This commit is contained in:
parent
deead94c08
commit
1418d7e7d2
3 changed files with 60 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue