From eba1a4543f6848e6e6c5ab8ca740c8c4f943341e Mon Sep 17 00:00:00 2001 From: Spectralitree <72747870+Spectralitree@users.noreply.github.com> Date: Sat, 11 Dec 2021 12:01:36 +0100 Subject: [PATCH] feat: a whole lot of stuff --- src/App.svelte | 7 +- src/assets/default_avatar.png | Bin 0 -> 3519 bytes src/functions.ts | 23 ++++++ src/lib/CardsHeader.svelte | 32 +++++++++ src/lib/Navigation.svelte | 79 +++++++++++--------- src/lib/cards/PrivateSystem.svelte | 53 ++++++++++++++ src/pages/Dash.svelte | 80 +++++++++++++++++++++ src/pages/Home.svelte | 112 +++++++++++++++++++++++++++++ src/stores.ts | 25 +++++++ style.css | 53 ++++++++++++++ 10 files changed, 428 insertions(+), 36 deletions(-) create mode 100644 src/assets/default_avatar.png create mode 100644 src/functions.ts create mode 100644 src/lib/CardsHeader.svelte create mode 100644 src/lib/cards/PrivateSystem.svelte create mode 100644 src/pages/Dash.svelte create mode 100644 src/pages/Home.svelte create mode 100644 src/stores.ts create mode 100644 style.css diff --git a/src/App.svelte b/src/App.svelte index 2ed49af3..220a6683 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,6 +1,8 @@ + + + +
+
+ +
+ {item.name} ({item.id}) +
+ {#if item && item.avatar_url} + Your system avatar + {:else} + your system avatar (default) + {/if} + +
+ Your system avatar +
+
+
+
\ No newline at end of file diff --git a/src/lib/Navigation.svelte b/src/lib/Navigation.svelte index a9302958..c541dc34 100644 --- a/src/lib/Navigation.svelte +++ b/src/lib/Navigation.svelte @@ -1,42 +1,51 @@ - - pk-webs - - - - - \ No newline at end of file + let loggedIn_value: boolean; + + loggedIn.subscribe(value => { + loggedIn_value = value; + }); + +
+ + pk-webs + + + + + +
\ No newline at end of file diff --git a/src/lib/cards/PrivateSystem.svelte b/src/lib/cards/PrivateSystem.svelte new file mode 100644 index 00000000..0586f9fe --- /dev/null +++ b/src/lib/cards/PrivateSystem.svelte @@ -0,0 +1,53 @@ + + + + + + + + ID: {user.id} + + + Name: {user.name} + + {#if user.tag} + + Tag: {user.tag} + + {/if} + + Timezone: {user.timezone} + + {#if user.color} + + Color: {user.color} + + {/if} + {#if user.banner} + + Banner: + +
+ Your system banner +
+
+ + {/if} +
+ Description:
+ {@html htmlDescription} +
+
+
+
\ No newline at end of file diff --git a/src/pages/Dash.svelte b/src/pages/Dash.svelte new file mode 100644 index 00000000..4bfd8245 --- /dev/null +++ b/src/pages/Dash.svelte @@ -0,0 +1,80 @@ + + +{#if user && user.banner} +