|
|
@ -9,40 +9,75 @@ |
|
|
|
export let fixed = false; |
|
|
|
export let fixed = false; |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<style> |
|
|
|
|
|
|
|
#logo { |
|
|
|
|
|
|
|
font-family: fancy; |
|
|
|
|
|
|
|
font-size: 2em; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
header { |
|
|
|
|
|
|
|
background-color: var(--value0); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
header a { |
|
|
|
|
|
|
|
color: var(--value7); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nav { |
|
|
|
|
|
|
|
background-color: var(--value0); |
|
|
|
|
|
|
|
color: var(--value7); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nav * { |
|
|
|
|
|
|
|
color: var(--value7); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@media only screen and (max-width: 600px) { |
|
|
|
|
|
|
|
#logo { |
|
|
|
|
|
|
|
font-size: 1.5em; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@media only screen and (max-width: 390px) { |
|
|
|
|
|
|
|
#logo { |
|
|
|
|
|
|
|
font-size: 1.4em; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</style> |
|
|
|
|
|
|
|
|
|
|
|
<header class:fixed> |
|
|
|
<header class:fixed> |
|
|
|
<nav> |
|
|
|
<nav> |
|
|
|
{#if $user.authenticated} |
|
|
|
{#if $user.authenticated} |
|
|
|
<a href="/" use:link><Icon name="home" tooltip="Home." size="36" /></a> |
|
|
|
<a href="/intro/" use:link id="logo">The Bandolier</a> |
|
|
|
<ul> |
|
|
|
<ul> |
|
|
|
<li><a href="/" on:click|preventDefault={ logout_user } data-testid="logout-link"><Icon name="log-out" tooltip="Log out."/></a></li> |
|
|
|
<li><a href="/" on:click|preventDefault={ logout_user } data-testid="logout-link"><Icon color="var(--value7)" name="log-out" tooltip="Log out."/></a></li> |
|
|
|
<li><a data-testid="user-profile-button" href="/profile/" use:link><Icon name="settings" tooltip="Settings."/></a></li> |
|
|
|
<li><a data-testid="user-profile-button" href="/profile/" use:link><Icon color="var(--value7)" name="settings" tooltip="Settings."/></a></li> |
|
|
|
<li><a href="/live/" use:link><Icon name="video" tooltip="Past/Present streams."/></a></li> |
|
|
|
<li><a href="/feed.rss"><Icon color="var(--value7)" name="rss" tooltip="RSS Feed." tip_position="bottom-left" /></a></li> |
|
|
|
<li><a href="/feed.rss"><Icon name="rss" tooltip="RSS Feed." tip_position="bottom-left" /></a></li> |
|
|
|
|
|
|
|
{#if $user.admin } |
|
|
|
{#if $user.admin } |
|
|
|
<li><a href="/admin/#/"><Icon name="keyboard" tooltip="Admin database."/></a></li> |
|
|
|
<li><a href="/admin/#/"><Icon color="var(--value7)" name="keyboard" tooltip="Admin database."/></a></li> |
|
|
|
{/if} |
|
|
|
{/if} |
|
|
|
<li><Darkmode /></li> |
|
|
|
<li><Darkmode dark_icon_color="var(--value7)" light_icon_color="var(--value7)" /></li> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
{:else} |
|
|
|
{:else} |
|
|
|
<!-- don't use:link because we want them to go to the landing page if they aren't logged in. --> |
|
|
|
<!-- don't use:link because we want them to go to the landing page if they aren't logged in. --> |
|
|
|
<a href="/"><Icon name="home" size="36" /></a> |
|
|
|
<a href="/intro/" use:link id="logo">The Bandolier</a> |
|
|
|
<ul> |
|
|
|
<ul> |
|
|
|
{#if register_enabled} |
|
|
|
{#if register_enabled} |
|
|
|
<li><a id="register-button" href="/client/#/register/"> |
|
|
|
<li><a id="register-button" href="/client/#/register/"> |
|
|
|
<span class="mobile"> |
|
|
|
<span class="mobile"> |
|
|
|
<Icon name="dollar-sign" tooltip="Register."/> |
|
|
|
<Icon color="var(--value7)" name="dollar-sign" tooltip="Register."/> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
|
|
|
|
|
|
|
|
<span class="mobile-hide"> |
|
|
|
<span class="mobile-hide"> |
|
|
|
<button type="button">Register</button> |
|
|
|
<button type="button" class="inverted">Register</button> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
{/if} |
|
|
|
{/if} |
|
|
|
<li><a href="/login/" use:link><Icon name="log-in" tooltip="Log in." /></a></li> |
|
|
|
<li><a href="/login/" use:link><Icon color="var(--value7)" name="log-in" tooltip="Log in." /></a></li> |
|
|
|
<li><a href="/blog/"><Icon name="book" tooltip="Blog posts." /></a></li> |
|
|
|
<li><a href="/client/#/"><Icon color="var(--value7)" name="book" tooltip="Docs" /></a></li> |
|
|
|
<li><a href="/live/" use:link><Icon name="video" tooltip="Livestreams." /></a></li> |
|
|
|
<li><Darkmode dark_icon_color="var(--value7)" light_icon_color="var(--value7)" /></li> |
|
|
|
<li><Darkmode /></li> |
|
|
|
|
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
{/if} |
|
|
|
{/if} |
|
|
|
</nav> |
|
|
|
</nav> |
|
|
|