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

46 lines
801 B
Svelte
Raw Normal View History

2020-07-29 20:39:20 +00:00
<div class="main_systems">
2022-03-01 17:42:33 +00:00
{#if ftl !== "none"}
2020-07-29 20:39:20 +00:00
<img class="ftl" src="icons/ftl-drive.svg" alt="ftl drive" />
{/if}
{#if engine > 0}
<div class="thrust">{engine}</div>
{/if}
2022-03-01 17:42:33 +00:00
<img
class="internal"
src="icons/internal-systems.svg"
alt="internal systems"
/>
</div>
2020-07-29 20:39:20 +00:00
<script>
2022-03-01 17:42:33 +00:00
export let ftl = "none";
2020-07-29 20:39:20 +00:00
export let engine = 0;
</script>
<style>
.thrust {
background-image: url(icons/standard-drive.svg);
width: 2em;
background-size: 2em;
background-repeat: no-repeat;
height: 2em;
line-height: 2em;
text-align: center;
}
2022-03-01 17:42:33 +00:00
.main_systems {
display: flex;
align-items: center;
gap: 1em;
justify-content: space-evenly;
margin-top: 1em;
}
img.ftl {
height: 2em;
}
2020-07-29 20:39:20 +00:00
img.internal {
height: 2em;
}
</style>