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

53 lines
1.1 KiB
Svelte
Raw Normal View History

2022-03-26 18:24:57 +00:00
<div class="print-output">
<Identification
{...ship.identification}
reqs={ship.reqs}
/>
2022-03-26 15:47:10 +00:00
2022-03-26 18:24:57 +00:00
<div class="section-2">
<Hull
structure={ship.structure}
shipMass={ship.identification.mass}
/>
2020-07-29 20:09:05 +00:00
2022-03-26 18:24:57 +00:00
<Systems
firecons={ship.weaponry.firecons.nbr}
screens={ship.structure.screens}
/>
</div>
2020-07-29 21:08:52 +00:00
2022-03-26 18:24:57 +00:00
<Weapons weapons={ship.weaponry.weapons} />
2020-07-29 23:17:25 +00:00
2022-03-26 18:24:57 +00:00
<MainSystems
ftl={ship?.propulsion?.ftl}
engine={ship?.propulsion?.drive?.rating}
2022-03-01 17:42:33 +00:00
/>
2022-03-26 18:24:57 +00:00
</div>
2020-07-29 18:05:55 +00:00
<script>
2022-03-26 18:24:57 +00:00
import Identification from "./Identification/index.svelte";
import MainSystems from "./MainSystems/index.svelte";
import Hull from "./Hull/index.svelte";
import Weapons from "./Weapons/index.svelte";
import Systems from "./Systems/index.svelte";
2020-07-29 23:17:25 +00:00
2022-03-26 18:24:57 +00:00
export let ship = {};
2020-07-29 18:05:55 +00:00
</script>
<style>
2022-03-26 18:24:57 +00:00
.print-output {
width: 4.25in;
height: 5.5in;
border: 1px solid black;
padding: 1em;
margin: 0px auto;
}
.section-2 {
display: flex;
align-items: start;
margin-right: 2em;
margin-left: 2em;
}
2020-07-29 18:05:55 +00:00
</style>