From 1056057293f2b29eb9bebe7615bdb2a0717fbc58 Mon Sep 17 00:00:00 2001 From: awwpotato Date: Tue, 19 Nov 2024 10:54:28 -1000 Subject: [PATCH] feat: move page title + styling fixes --- src/routes/scout/+page.svelte | 8 +- src/routes/scout/ActionInputs.svelte | 184 ++++++++++++++------------- 2 files changed, 105 insertions(+), 87 deletions(-) diff --git a/src/routes/scout/+page.svelte b/src/routes/scout/+page.svelte index 7491f7b..7e480ec 100644 --- a/src/routes/scout/+page.svelte +++ b/src/routes/scout/+page.svelte @@ -11,6 +11,7 @@ let actions: AutoActionData[] = $state([]); let timelineExtended = $state(false); + let pageName = $state(''); const match: TeamMatch = $state({ id: 0, @@ -27,9 +28,12 @@
- Team {team_key} +
+ Team {team_key} + {pageName} +
- + {#if held_scorables > 0} @@ -70,75 +84,78 @@ {/if}
{:else if is_intake_state} -
-

Intake

-
- - - - -
+
+ + + (actionState = 'IntakeBalloonCoral')}>Ballon: Coral
+ {:else if is_score_state} -
+
{#if held_bunnies > 0} -

Score Bunny

-
- - - {#if held_totes > 0} +
+

Bunny

+
+ score_bunny('UncontrolledTote')} + >Uncontrolled Tote + {#if held_totes > 0} + + {/if} + - {/if} - +
{/if} {#if held_balloons > 0} -

Score Ballon

-
- - - {#if held_totes > 0} +
+

Ballon

+
+ score_balloon('UncontrolledTote')} + >Uncontrolled Tote - {/if} - + {#if held_totes > 0} + + {/if} + +
{/if}
{:else if is_eject_state} -
-

Eject

-
- {#if held_bunnies > 0} - - {/if} - {#if held_balloons > 0} - - {/if} - {#if held_totes > 0} - - {/if} -
- +
+ {#if held_bunnies > 0} + + {/if} + {#if held_balloons > 0} + + {/if} + {#if held_totes > 0} + + {/if}
+ {:else}