diff options
author | mat <github@matdoes.dev> | 2022-11-19 16:11:47 -0600 |
---|---|---|
committer | mat <github@matdoes.dev> | 2022-11-19 16:11:47 -0600 |
commit | d8128fea3079a6d5058671fa13fd93da809e8bad (patch) | |
tree | e68ff0537771a7bd170730af0d11b1e2dfcebcbb | |
parent | 1dff278a16ce98145e18955152b5e98a40c80449 (diff) | |
download | skyblock-stats-d8128fea3079a6d5058671fa13fd93da809e8bad.tar.gz skyblock-stats-d8128fea3079a6d5058671fa13fd93da809e8bad.tar.bz2 skyblock-stats-d8128fea3079a6d5058671fa13fd93da809e8bad.zip |
make fairy souls clickable in infobox
-rw-r--r-- | src/lib/sections/Infobox.svelte | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/lib/sections/Infobox.svelte b/src/lib/sections/Infobox.svelte index c524ca1..f8d2889 100644 --- a/src/lib/sections/Infobox.svelte +++ b/src/lib/sections/Infobox.svelte @@ -14,7 +14,14 @@ : data.member.profileName}) </h2> {#each generateInfobox(data) as item} - <p><Emoji value={item} /></p> + <!-- hack so fairy souls is clickable to get to the leaderboards --> + {#if item.includes('Fairy souls')} + <a href="/leaderboards/fairy_souls" class="fairy-souls-leaderboard" + ><p><Emoji value={item} /></p></a + > + {:else} + <p><Emoji value={item} /></p> + {/if} {/each} </div> <div id="infobox-extra"> @@ -48,6 +55,10 @@ p { margin: 0 0 0.25em 0; } + .fairy-souls-leaderboard { + color: inherit; + text-decoration: none; + } @media only screen and (max-width: 600px) { #infobox { position: relative; |