2020-07-28 16:13:04 +00:00
|
|
|
<header>
|
2022-03-22 14:45:33 +00:00
|
|
|
<h1>The Docks</h1>
|
|
|
|
<h2>
|
|
|
|
a <a href="https://shop.groundzerogames.co.uk/rules.html"
|
|
|
|
>Full Thrust</a
|
|
|
|
> ship builder
|
|
|
|
</h2>
|
|
|
|
<a on:click|preventDefault={() => (showAbout = true)}>about the app</a>
|
2022-03-01 17:42:33 +00:00
|
|
|
</header>
|
2020-07-28 16:13:04 +00:00
|
|
|
|
2022-03-22 14:45:33 +00:00
|
|
|
<div>
|
|
|
|
<Tabs bind:active={activeTab}>
|
|
|
|
<Tab tabid="editor">editor</Tab>
|
|
|
|
<Tab tabid="json">json view</Tab>
|
|
|
|
<Tab tabid="print">print view</Tab>
|
|
|
|
</Tabs>
|
|
|
|
</div>
|
2022-03-20 21:48:45 +00:00
|
|
|
|
2022-03-22 14:45:33 +00:00
|
|
|
<Modal bind:open={showAbout}>
|
|
|
|
<About />
|
|
|
|
</Modal>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { createEventDispatcher } from 'svelte';
|
|
|
|
import { Modal, Card, Nav, Tab, Tabs } from "svelte-chota";
|
|
|
|
|
|
|
|
import About from "./About.svelte";
|
|
|
|
let showAbout = false;
|
|
|
|
let activeTab = 'editor';
|
|
|
|
|
|
|
|
const dispatch = createEventDispatcher();
|
|
|
|
$: dispatch( 'changeTab', activeTab );
|
2022-03-20 21:48:45 +00:00
|
|
|
|
|
|
|
</script>
|
|
|
|
|
2022-03-01 17:42:33 +00:00
|
|
|
<style>
|
2022-03-22 14:45:33 +00:00
|
|
|
header {
|
|
|
|
display: flex;
|
|
|
|
align-items: baseline;
|
|
|
|
width: var(--main-width);
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2022-03-22 14:54:07 +00:00
|
|
|
margin-bottom: 1em;
|
2022-03-22 14:45:33 +00:00
|
|
|
}
|
|
|
|
h1,
|
|
|
|
h2 {
|
|
|
|
text-align: left;
|
|
|
|
font-family: Faktos;
|
|
|
|
padding: 0px;
|
|
|
|
margin: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
font-size: var(--font-scale-15);
|
|
|
|
}
|
|
|
|
h2 {
|
|
|
|
flex: 1;
|
|
|
|
padding-left: 1em;
|
|
|
|
font-size: var(--font-scale-13);
|
|
|
|
}
|
|
|
|
header > a {
|
|
|
|
margin: 0px 2em;
|
|
|
|
font-size: var(--font-scale-10);
|
|
|
|
}
|
2022-03-22 14:54:07 +00:00
|
|
|
div :global(nav) {
|
|
|
|
margin-left: 2em;
|
|
|
|
margin-bottom: 2em;
|
|
|
|
}
|
2022-03-22 14:45:33 +00:00
|
|
|
div :global(nav span) {
|
2022-03-22 14:54:07 +00:00
|
|
|
font-weight: bold;
|
|
|
|
font-family: var(--main-font-family);
|
|
|
|
font-size: var(--font-scale-12);
|
2022-03-22 14:45:33 +00:00
|
|
|
margin-right: 1em;
|
|
|
|
padding-bottom: 0.125em !important;
|
|
|
|
}
|
2022-03-01 17:42:33 +00:00
|
|
|
</style>
|