From e87c9a5ae4519f342851dc05292e81d82d33d870 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Tue, 28 Jul 2020 14:03:59 -0400 Subject: [PATCH] ShipSpecs --- src/components/App.svelte | 8 +- src/components/ShipCost.svelte | 58 --------------- .../{ => ShipSpecs}/Identification.svelte | 14 ++-- src/components/ShipSpecs/ShipCost.svelte | 73 +++++++++++++++++++ src/components/ShipSpecs/index.svelte | 16 ++++ 5 files changed, 97 insertions(+), 72 deletions(-) delete mode 100644 src/components/ShipCost.svelte rename src/components/{ => ShipSpecs}/Identification.svelte (85%) create mode 100644 src/components/ShipSpecs/ShipCost.svelte create mode 100644 src/components/ShipSpecs/index.svelte 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 @@ + + + + + + + +