From d73d59ad80ed768b33d9419452c9144dd351a3c5 Mon Sep 17 00:00:00 2001 From: vvandenb Date: Mon, 13 Mar 2023 12:25:45 +0100 Subject: [PATCH] * Some CSS --- front/volume/src/App.svelte | 27 ++++++++++++++++--- front/volume/src/assets/svelte.svg | 1 - .../src/components/Pong/ColorPicker.svelte | 4 +-- .../src/components/Pong/GameCreation.svelte | 10 ++++--- .../components/Pong/MapCustomization.svelte | 16 ++++++++--- front/volume/src/components/Pong/Pong.svelte | 20 ++++++++++---- 6 files changed, 60 insertions(+), 18 deletions(-) delete mode 100644 front/volume/src/assets/svelte.svg diff --git a/front/volume/src/App.svelte b/front/volume/src/App.svelte index 7ee70c2..2726401 100644 --- a/front/volume/src/App.svelte +++ b/front/volume/src/App.svelte @@ -191,10 +191,15 @@ } -
{#if $store === null} -

+ {:else if $store.twoFA === true && $store.isVerified === false}

{:else} @@ -275,7 +280,23 @@ {/if} {/if}
-
diff --git a/front/volume/src/assets/svelte.svg b/front/volume/src/assets/svelte.svg deleted file mode 100644 index c5e0848..0000000 --- a/front/volume/src/assets/svelte.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/front/volume/src/components/Pong/ColorPicker.svelte b/front/volume/src/components/Pong/ColorPicker.svelte index 6bd6d9a..0b468cb 100644 --- a/front/volume/src/components/Pong/ColorPicker.svelte +++ b/front/volume/src/components/Pong/ColorPicker.svelte @@ -2,9 +2,7 @@ export let color: string; -
- -
+ diff --git a/front/volume/src/components/Pong/GameCreation.svelte b/front/volume/src/components/Pong/GameCreation.svelte index 8c598d0..5eff17c 100644 --- a/front/volume/src/components/Pong/GameCreation.svelte +++ b/front/volume/src/components/Pong/GameCreation.svelte @@ -23,7 +23,7 @@
Friend: - + @@ -50,7 +50,11 @@ border: 1px solid #ccc; border-radius: 5px; padding: 1rem; - width: 80vw; - height: 80vh; + width: 50vw; + } + + .name-input { + max-width: 100%; + margin-bottom: 1rem; } diff --git a/front/volume/src/components/Pong/MapCustomization.svelte b/front/volume/src/components/Pong/MapCustomization.svelte index a2be58c..fde5f37 100644 --- a/front/volume/src/components/Pong/MapCustomization.svelte +++ b/front/volume/src/components/Pong/MapCustomization.svelte @@ -81,13 +81,19 @@
-

Map Customization:

- Right click to add walls, left click to remove walls. (Max {MAX_WALLS} walls) +
Map Customization:
+
+ PC: Right click to add walls, left click to remove walls. +
+ Mobile: Click to add walls +
+ (Maximum {MAX_WALLS} walls) +
Clear all walls diff --git a/front/volume/src/components/Pong/Pong.svelte b/front/volume/src/components/Pong/Pong.svelte index c4bbce0..5e2095a 100644 --- a/front/volume/src/components/Pong/Pong.svelte +++ b/front/volume/src/components/Pong/Pong.svelte @@ -168,11 +168,17 @@ - - - - - +
+

Color your game!

+
+ + +
+
+ + +
+
{#if appState === APPSTATE.MATCHMAKING}
@@ -211,4 +217,8 @@ padding: 1rem 2rem; margin-bottom: 1rem; } + + .color-label { + display: inline; + }