Remove intro popup, show username on home button

This commit is contained in:
2023-11-15 13:12:10 +01:00
parent fa0029eeb0
commit 326e77b6bf
4 changed files with 45 additions and 30 deletions

View File

@@ -0,0 +1,41 @@
<script>
import PixeldrainLogo from "../util/PixeldrainLogo.svelte";
export let embedded_viewer = false
</script>
{#if window.user.username === ""}
<a
href="/"
class="button button_home round"
target={embedded_viewer ? "_blank" : ""}
title="Go to the pixeldrain home page">
<PixeldrainLogo style="height: 1.6em; width: 1.6em; margin: 0 4px 0 0;"></PixeldrainLogo>
</a>
{:else}
<a
href="/user"
class="button round"
target={embedded_viewer ? "_blank" : ""}
title="My account">
<PixeldrainLogo style="height: 1.6em; width: 1.6em; margin: 0;"></PixeldrainLogo>
<span class="username">
{window.user.username}
</span>
</a>
{/if}
<style>
.button_home::after {
content: "pixeldrain";
}
@media (max-width: 600px) {
.button_home::after {
content: "pd";
}
.username {
display: none;
}
}
</style>