-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: manually scouting + extra timeline safeguard + styling
- Loading branch information
1 parent
f3ce9ad
commit e1980cc
Showing
6 changed files
with
104 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
<script lang="ts"> | ||
import { browser } from '$app/environment'; | ||
import { onMount } from 'svelte'; | ||
let name: string = (browser && window.localStorage.getItem('name')) || ''; | ||
let username: string = (browser && window.localStorage.getItem('username')) || ''; | ||
</script> | ||
|
||
<div class="flex h-dvh flex-col items-center justify-evenly"> | ||
<h1 class="text-text_red text-center text-5xl font-bold"> | ||
Welcome <br /><span class="text-text_yellow">{name}</span> | ||
<h1 class="text-center text-5xl font-bold"> | ||
Welcome, <br /><span class="text-yellow-400">{username}</span> | ||
</h1> | ||
<a | ||
class="text-text_yellow text-l bg-btn_grey border-text_red rounded border-2 border-solid px-4 py-2 text-center" | ||
class="w-9/12 rounded-full border-4 border-solid p-4 pb-16 pt-16 text-center text-2xl" | ||
href="/queue" | ||
> | ||
Scout | ||
</a> | ||
<a | ||
class="w-9/12 rounded-full border-4 border-solid p-4 pb-16 pt-16 text-center text-2xl" | ||
href="/manual_scout" | ||
> | ||
Manual Scout | ||
</a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<script lang="ts"> | ||
import { goto } from '$app/navigation'; | ||
let match_key: string = ''; | ||
let team_key: string = ''; | ||
let color: string = ''; | ||
function scout() { | ||
color = color.toLowerCase(); | ||
if (color !== 'red' && color !== 'blue') { | ||
alert('Invalid color, please select red or blue'); | ||
return; | ||
} | ||
goto(`/scout/${match_key}-${team_key}-${color}`); | ||
} | ||
</script> | ||
|
||
<div class="grid grid-cols-1 grid-rows-4 gap-4 pr-4 pt-4 text-center text-xl"> | ||
<div class="grid grid-cols-3"> | ||
<span class="col-span-1 flex items-center justify-center">Match Key</span> | ||
<input | ||
class="col-span-2 rounded p-4 text-black" | ||
bind:value={match_key} | ||
type="text" | ||
placeholder="2024orbb_qm1" | ||
/> | ||
</div> | ||
|
||
<div class="grid grid-cols-3"> | ||
<span class="col-span-1 flex items-center justify-center">Team Key</span> | ||
<input | ||
class="col-span-2 rounded p-4 text-black" | ||
bind:value={team_key} | ||
type="text" | ||
placeholder="1540" | ||
/> | ||
</div> | ||
<div class="grid grid-cols-3"> | ||
<span class="col-span-1 flex items-center justify-center">Color</span> | ||
<input | ||
class="col-span-2 rounded p-4 text-black" | ||
bind:value={color} | ||
type="text" | ||
placeholder="Red" | ||
/> | ||
</div> | ||
|
||
<button class="ml-4 rounded border p-4" onclick={scout}>Scout</button> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters