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

60 lines
1.2 KiB
Svelte
Raw Normal View History

2022-03-22 21:38:54 +00:00
<div>
<Identification {...$state.identification} />
2022-03-26 15:47:10 +00:00
2022-03-26 16:15:02 +00:00
<div class="section-2">
<Hull structure={$state.structure} shipMass={$state.identification.mass} />
</div>
2022-03-26 15:47:10 +00:00
<Weapons weapons={$state.weaponry.weapons} />
<MainSystems ftl={$state?.propulsion?.ftl}
engine={$state?.propulsion?.drive?.rating} />
2022-03-22 21:38:54 +00:00
</div>
<!--
2020-07-30 00:29:21 +00:00
<aside class="ship-sheet" transition:fade>
2020-07-29 20:09:05 +00:00
2020-07-29 21:08:52 +00:00
2020-07-29 23:17:25 +00:00
<div class="section-2">
2022-03-01 17:42:33 +00:00
<Hull structure={ship.structure} ship_mass={ship.general.mass} />
2020-07-29 23:17:25 +00:00
2022-03-01 17:42:33 +00:00
<Systems
firecons={ship.weaponry.firecons.nbr}
screens={ship.structure.screens}
/>
</div>
2020-07-29 20:39:20 +00:00
2020-07-30 00:29:21 +00:00
</aside>
2022-03-22 21:38:54 +00:00
-->
2020-07-29 18:05:55 +00:00
<script>
2022-03-22 21:38:54 +00:00
import { getContext } from 'svelte';
/* import _ from "lodash"; */
2020-07-29 23:17:25 +00:00
2022-03-01 17:42:33 +00:00
import Identification from "./Identification/index.svelte";
import MainSystems from "./MainSystems/index.svelte";
2022-03-26 16:15:02 +00:00
import Hull from "./Hull/index.svelte";
2022-03-26 15:47:10 +00:00
import Weapons from "./Weapons/index.svelte";
2022-03-22 21:38:54 +00:00
/* import Systems from "./Systems/index.svelte"; */
2020-07-29 23:17:25 +00:00
2022-03-22 21:38:54 +00:00
/* export let ship; */
const { state } = getContext('ship');
2020-07-29 18:05:55 +00:00
2022-03-22 21:38:54 +00:00
/* import { fly, fade } from "svelte/transition"; */
2020-07-29 18:05:55 +00:00
</script>
<style>
2022-03-26 15:47:10 +00:00
div {
2022-03-01 17:42:33 +00:00
width: 4.25in;
height: 5.5in;
border: 1px solid black;
padding: 1em;
2022-03-26 15:47:10 +00:00
margin: 0px auto;
2022-03-01 17:42:33 +00:00
}
.section-2 {
display: flex;
align-items: start;
}
2022-03-26 15:47:10 +00:00
2020-07-29 18:05:55 +00:00
</style>