diff --git a/src/components/App.svelte b/src/components/App.svelte index 4dc6778..0742f09 100644 --- a/src/components/App.svelte +++ b/src/components/App.svelte @@ -2,10 +2,7 @@
- - - - + -
- - -
- -
- {#if within_budget} - mass unused: { mass_unused } - {:else} - excessive mass: { -mass_unused } - - {/if} -
- -
-
- -
- -
{$ship.general.cost}
-
- - - - - diff --git a/src/components/Identification.svelte b/src/components/ShipSpecs/Identification.svelte similarity index 85% rename from src/components/Identification.svelte rename to src/components/ShipSpecs/Identification.svelte index b02b1ea..b050eb8 100644 --- a/src/components/Identification.svelte +++ b/src/components/ShipSpecs/Identification.svelte @@ -1,5 +1,4 @@ -
- +
@@ -10,13 +9,12 @@ {/each} -
diff --git a/src/components/ShipSpecs/ShipCost.svelte b/src/components/ShipSpecs/ShipCost.svelte new file mode 100644 index 0000000..a5f0360 --- /dev/null +++ b/src/components/ShipSpecs/ShipCost.svelte @@ -0,0 +1,73 @@ +
+ + + + +
+ {#if within_budget} + mass unused: {mass_unused} + {:else}excessive mass: {-mass_unused}{/if} +
+
+
+ +
+ + {$ship.general.cost} +
+ + + + diff --git a/src/components/ShipSpecs/index.svelte b/src/components/ShipSpecs/index.svelte new file mode 100644 index 0000000..87d0d57 --- /dev/null +++ b/src/components/ShipSpecs/index.svelte @@ -0,0 +1,16 @@ + + + + + + + +