From 36bbe64db012aaed7ff0fadf083f191b122fa4ad Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 16 Feb 2022 00:07:13 -0600 Subject: add files --- src/app.css | 17 +++++++++++++++++ src/lib/Emoji.svelte | 25 +++++++++++++++++++++++++ src/routes/player/[player]/[profile].svelte | 5 ++--- src/routes/player/[player]/index.svelte | 29 +++++++++-------------------- 4 files changed, 53 insertions(+), 23 deletions(-) create mode 100644 src/lib/Emoji.svelte (limited to 'src') diff --git a/src/app.css b/src/app.css index 5e12d43..a338767 100644 --- a/src/app.css +++ b/src/app.css @@ -185,3 +185,20 @@ button { outline: none; font-family: inherit; } + +/* + * this is necessary for background theming, the background can be set through + * the --background css variable + */ +body:before { + content: ''; + display: block; + position: fixed; + left: 0; + top: 0; + width: 100%; + height: 100%; + z-index: -10; + background: var(--background) no-repeat center center; + background-size: cover; +} diff --git a/src/lib/Emoji.svelte b/src/lib/Emoji.svelte new file mode 100644 index 0000000..0e8f4a7 --- /dev/null +++ b/src/lib/Emoji.svelte @@ -0,0 +1,25 @@ + + + + + {@html twemojiHtml(value)} + + + diff --git a/src/routes/player/[player]/[profile].svelte b/src/routes/player/[player]/[profile].svelte index 8c1dcc0..dfb01ab 100644 --- a/src/routes/player/[player]/[profile].svelte +++ b/src/routes/player/[player]/[profile].svelte @@ -18,6 +18,7 @@ - -
+ // cursed svelte :D + $: bodyStyle = `` + - {#if data.customization?.backgroundUrl} - - {/if} + {@html bodyStyle} + + + +
-

's profiles

+

's profiles

    {#each data.profiles as profile} -- cgit