34 lines
677 B
Svelte
34 lines
677 B
Svelte
<script>
|
|
import {locals} from "../../../ts/stores.js";
|
|
|
|
export let noLabel = false;
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
@import "../../../scss/vars";
|
|
|
|
.logo {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
|
|
padding: 0 8px;
|
|
font-size: 24px;
|
|
|
|
img {
|
|
flex-shrink: 0;
|
|
width: initial;
|
|
height: calc(#{$headerHeight} - 16px);
|
|
margin-right: 8px;
|
|
padding: 8px;
|
|
}
|
|
}
|
|
</style>
|
|
|
|
<a href="/" class="logo">
|
|
<img src="/img/logo.svg" alt="{$locals.app.name} logo">
|
|
{#if !noLabel}
|
|
<span class="label">{$locals.app.name}</span>
|
|
{/if}
|
|
</a>
|