Propulsion

This commit is contained in:
Yanick Champoux 2023-03-21 10:43:26 -04:00
parent 6de297d154
commit 152327aeca
8 changed files with 30 additions and 16 deletions

View File

@ -16,6 +16,8 @@
:root { :root {
--main-font-family: "Dosis", -apple-system, BlinkMacSystemFont, "Segoe UI", --main-font-family: "Dosis", -apple-system, BlinkMacSystemFont, "Segoe UI",
Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
--font-family: "Dosis", -apple-system, BlinkMacSystemFont, "Segoe UI",
Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
--font-scale-9: 0.75rem; --font-scale-9: 0.75rem;
--font-scale-10: 1em; --font-scale-10: 1em;

View File

@ -22,5 +22,6 @@
hr { hr {
flex: 1; flex: 1;
background: #333; background: #333;
border-top: 1px solid black;
} }
</style> </style>

View File

@ -10,7 +10,7 @@
{/each} {/each}
</Section> </Section>
<script> <script lang="ts">
import { getContext } from 'svelte'; import { getContext } from 'svelte';
import Field from '$lib/components/Field/index.svelte'; import Field from '$lib/components/Field/index.svelte';
import ShipItem from '$lib/components/ShipItem/index.svelte'; import ShipItem from '$lib/components/ShipItem/index.svelte';

View File

@ -0,0 +1,8 @@
<Hst.Story>
<Propulsion />
</Hst.Story>
<script>
export let Hst;
import Propulsion from "./Propulsion.svelte";
</script>

View File

@ -0,0 +1,15 @@
<Section label="propulsion">
<Drive {...propulsion.drive} />
<Ftl {...propulsion.ftl} />
</Section>
<script lang="ts">
import Section from "$lib/components/Section.svelte";
import Drive from "./Propulsion/Engine.svelte";
import Ftl from "./Propulsion/Ftl.svelte";
export let propulsion = {
drive: {},
ftl: {},
};
</script>

View File

@ -25,7 +25,7 @@
export let rating = 0; export let rating = 0;
export let api = getContext("api"); export let api = getContext("api");
$: api.dispatch.setEngine({ rating, advanced }); $: api?.dispatch?.setEngine({ rating, advanced });
</script> </script>
<style> <style>
@ -48,7 +48,7 @@
border-bottom: 1px solid var(--indigo-dye); border-bottom: 1px solid var(--indigo-dye);
border-radius: 0px; border-radius: 0px;
height: calc( height: calc(
1rem * var(--line-height) + var(--form-element-spacing-vertical) * 2 1rem * var(--line-height) + var(--form-element-spacing-vertical) * 1
); );
padding: 0 0.5rem; padding: 0 0.5rem;
text-align: center; text-align: center;

View File

@ -21,7 +21,7 @@
const types = ["none", "standard", "advanced"]; const types = ["none", "standard", "advanced"];
$: api.dispatch.setFtl(type); $: api?.dispatch.setFtl(type);
</script> </script>
<style> <style>

View File

@ -1,12 +0,0 @@
<Section label="propulsion">
<Drive { ...propulsion.drive } />
<Ftl { ...propulsion.ftl } />
</Section>
<script>
import Section from "$lib/components/Section/index.svelte";
import Drive from './Drive/index.svelte';
import Ftl from './Ftl.svelte';
export let propulsion = {};
</script>