aotds-docks/src/lib/components/Output/Print/Identification/index.svelte

52 lines
932 B
Svelte
Raw Normal View History

2022-03-01 17:42:33 +00:00
<h1>
2022-03-22 21:38:54 +00:00
ship name: <div class="fill" />
2022-03-01 17:42:33 +00:00
</h1>
2020-07-29 18:05:55 +00:00
<div class="details">
2022-03-26 18:37:34 +00:00
<h2>
{#if shipClass}
{shipClass}-class,
{/if}
{shipType}</h2>
2022-03-22 21:38:54 +00:00
<div class="reqs">
2022-03-26 18:37:34 +00:00
<Cost cost={cost} />
2022-03-22 21:38:54 +00:00
&nbsp;
2022-03-26 18:37:34 +00:00
<Mass mass={mass} />
2022-03-22 21:38:54 +00:00
</div>
2020-07-29 18:05:55 +00:00
</div>
<script>
2022-03-22 21:38:54 +00:00
import Cost from "../../../Cost.svelte";
import Mass from "$lib/components/Mass.svelte";
2020-07-29 18:05:55 +00:00
2022-03-22 21:38:54 +00:00
export let shipClass;
export let shipType;
2022-03-26 18:37:34 +00:00
export let cost = 0;
export let mass = 0;
2020-07-29 18:05:55 +00:00
</script>
<style>
2022-03-22 21:38:54 +00:00
h1 {
width: 100%;
display: flex;
font-size: var(--font-scale-8);
}
h2 {
font-size: var(--font-scale-7);
flex: 1;
}
.fill {
margin-left: 0.5em;
display: inline-block;
flex: 1;
border-bottom: 1px solid black;
}
.details {
display: flex;
align-items: baseline;
}
.reqs {
display: flex;
}
2020-07-29 18:05:55 +00:00
</style>