67 lines
1.2 KiB
Svelte
67 lines
1.2 KiB
Svelte
<header>
|
|
<nav>
|
|
<h1>
|
|
<a>The Docks</a>
|
|
</h1>
|
|
<h3 class="max">a Full Thrust ship builder</h3>
|
|
<div class="tabs in left-align">
|
|
<a
|
|
class="spaced"
|
|
class:active={currentPath.startsWith("/editor")}
|
|
href="/editor">Editor</a
|
|
>
|
|
<!--
|
|
<a
|
|
class="spaced"
|
|
class:active={currentPath.startsWith("/import")}
|
|
href="/import">Import</a
|
|
>
|
|
-->
|
|
<a
|
|
class="spaced"
|
|
class:active={currentPath.startsWith("/export")}
|
|
href="/export/print">Export</a
|
|
>
|
|
<a
|
|
class="spaced"
|
|
class:active={currentPath.startsWith("/about")}
|
|
href="/about">About</a
|
|
>
|
|
</div>
|
|
<span> </span>
|
|
</nav>
|
|
</header>
|
|
<main class="responsive">
|
|
<slot />
|
|
</main>
|
|
|
|
<script>
|
|
import { page } from "$app/stores";
|
|
import "$lib/style/index.js";
|
|
|
|
$: currentPath = $page.url.pathname;
|
|
</script>
|
|
|
|
<style>
|
|
h1 {
|
|
line-height: calc(3 * var(--vertical-rythm));
|
|
}
|
|
header nav {
|
|
align-items: baseline;
|
|
font-family: "Faktos";
|
|
}
|
|
h3 {
|
|
font-size: var(--font-scale-12);
|
|
font-weight: normal;
|
|
}
|
|
a.spaced {
|
|
min-width: 5em;
|
|
}
|
|
span {
|
|
width: 5em;
|
|
}
|
|
.tabs {
|
|
border-bottom: 0px;
|
|
}
|
|
</style>
|