From 0566cde54040310a8a838bc85bf3fd8ea4e3b58a Mon Sep 17 00:00:00 2001 From: afornerot Date: Sat, 24 Feb 2024 16:34:16 +0100 Subject: [PATCH] svg --- src/app.css | 1 - src/routes/game/+page.svelte | 180 +++++++++++++++-------------------- 2 files changed, 76 insertions(+), 105 deletions(-) diff --git a/src/app.css b/src/app.css index 8ea294a..874302b 100644 --- a/src/app.css +++ b/src/app.css @@ -325,7 +325,6 @@ border: 1px red solid; } -.tile, .tilenone { width: 33.33333333333333333333333% } .tilenone {border: none;} .rencontre{border: 1px 5px} .sortable > span { diff --git a/src/routes/game/+page.svelte b/src/routes/game/+page.svelte index e89a40d..137cdf8 100644 --- a/src/routes/game/+page.svelte +++ b/src/routes/game/+page.svelte @@ -273,37 +273,6 @@ {#if data.party }
- -
- {#each data.players as player} - {#if player._id===data.party.playercurrent._id && data.party.status!="partyend"} -
- - - Joueur
{(player._id==my._id?"MOI":player.name)}
- - {#if my._id===data.party.playerid && my._id!==player._id} - - {/if} -
- {:else} -
- - - Joueur
{(player._id==my._id?"MOI":player.name)}
- - {#if my._id===data.party.playerid && my._id!==player._id} - - {/if} -
- {/if} - {/each} -
- {#if data.party.status==="playerwait"}
@@ -377,84 +346,87 @@
{/if} {/if} -
- {#if data.party.playertile } - Nom = {data.party.playertile.name}
- Position = {data.party.playertile.position}
- Cash = {data.party.playerparty.cash}
- - {/if} -
{#key data.party.playertile.position} -
+
- -
- -
- -
- -
- -
-
- -
- -
-
- -
- -
-
- -
- -
-
- -
- -
-
- -
- -
-
- -
- -
-
- -
- -
-
- -
- -
-
- -
- -
-
- -
- -
-
- -
- +
+ + + + + + + + + + + + + +
+ +
+ {#if data.party } + {#if data.party.playertile } +
+ Nom = {data.party.playertile.name}
+ Position = {data.party.playertile.position}
+ Cash = {data.party.playerparty.cash}
+
+ {/if} + + +
+ {#each data.players as player} + {#if player._id===data.party.playercurrent._id && data.party.status!="partyend"} +
+ + + Joueur
{(player._id==my._id?"MOI":player.name)}
+ + {#if my._id===data.party.playerid && my._id!==player._id} + + {/if} +
+ {:else} +
+ + + Joueur
{(player._id==my._id?"MOI":player.name)}
+ + {#if my._id===data.party.playerid && my._id!==player._id} + + {/if} +
+ {/if} + {/each} +
+ {/if} + +
+ +
+ + + + + + + + + + + + + +