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

49 lines
887 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"}
2022-04-05 23:58:32 +00:00
<img class="ftl" src="{base}/icons/ftl-drive.svg" alt="ftl drive" />
2020-07-29 20:39:20 +00:00
{/if}
{#if engine > 0}
2022-04-05 23:58:32 +00:00
<div class="thrust"
style="background-image: url({base}/icons/standard-drive.svg);"
>{engine}</div>
2020-07-29 20:39:20 +00:00
{/if}
2022-03-01 17:42:33 +00:00
<img
class="internal"
2022-04-05 23:58:32 +00:00
src="{base}/icons/internal-systems.svg"
2022-03-01 17:42:33 +00:00
alt="internal systems"
/>
</div>
2020-07-29 20:39:20 +00:00
<script>
2022-04-05 23:58:32 +00:00
import { base } from '$app/paths';
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 {
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>