|
@ -168,11 +168,17 @@ |
|
|
<button on:click={() => setAppState(APPSTATE.CREATE_GAME)} |
|
|
<button on:click={() => setAppState(APPSTATE.CREATE_GAME)} |
|
|
>Play with a friend</button |
|
|
>Play with a friend</button |
|
|
> |
|
|
> |
|
|
<label for="colorPicker">Elements color:</label> |
|
|
<div> |
|
|
<ColorPicker bind:color={elementsColor} /> |
|
|
<h3>Color your game!</h3> |
|
|
<label for="colorPicker">Background color:</label> |
|
|
<div> |
|
|
<ColorPicker bind:color={backgroundColor} /> |
|
|
<label class="color-label" for="colorPicker">Elements color:</label> |
|
|
|
|
|
<ColorPicker bind:color={elementsColor} /> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div> |
|
|
|
|
|
<label class="color-label" for="colorPicker">Background color:</label> |
|
|
|
|
|
<ColorPicker bind:color={backgroundColor} /> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
{#if appState === APPSTATE.MATCHMAKING} |
|
|
{#if appState === APPSTATE.MATCHMAKING} |
|
|
<div on:click={stopMatchmaking} on:keydown={stopMatchmaking}> |
|
|
<div on:click={stopMatchmaking} on:keydown={stopMatchmaking}> |
|
|
<Matchmaking {stopMatchmaking} /> |
|
|
<Matchmaking {stopMatchmaking} /> |
|
@ -211,4 +217,8 @@ |
|
|
padding: 1rem 2rem; |
|
|
padding: 1rem 2rem; |
|
|
margin-bottom: 1rem; |
|
|
margin-bottom: 1rem; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.color-label { |
|
|
|
|
|
display: inline; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |
|
|