Skip to content

Commit

Permalink
fix icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Strehle committed Oct 22, 2023
1 parent 097acb6 commit fe083af
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
10 changes: 4 additions & 6 deletions backend/Map.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// deno-lint-ignore-file require-await
import { Datex } from "datex-core-legacy/datex.ts";
import { Endpoint } from "unyt_core/types/addressing.ts";

export type MapType = Map<number, 'X' | 'O' | ''>;
export type GameType = {
Expand All @@ -21,10 +22,7 @@ export type GameType = {
// join existing game
if (this.list.has(id)) {
const game = this.list.get(id)!;
// for (const player of game.players) {
// if (!await player.isOnline())
// game.players.delete(player);
// }

if (game.players.has(newPlayer) || (
!game.players.has(newPlayer) &&
game.players.size === 1
Expand All @@ -42,8 +40,8 @@ export type GameType = {
const map: MapType = $$(new Map());
for (let i=0; i<9; i++)
map.set(i, '');
const game:GameType = $$({
players: $$(new Set([newPlayer])),
const game = $$({
players: new Set<Endpoint>([newPlayer]),
turn: newPlayer,
host: newPlayer,
map,
Expand Down
10 changes: 5 additions & 5 deletions common/components/GamePage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
*[data-val=''] {
&:hover {
&::after {
content: "\f111";
content: "o";
opacity: 0.5;
}
}
Expand All @@ -54,7 +54,7 @@
*[data-val=''] {
&:hover {
&::after {
content: "\f00d";
content: "x";
font-weight: 900;
}
}
Expand Down Expand Up @@ -94,16 +94,16 @@
align-items: center;
}
&::after {
font-family: 'Font Awesome 6 Free';
font-family: fantasy, sans-serif;
}
&[data-val='O'] {
&::after {
content: "\f111";
content: "o";
}
}
&[data-val='X'] {
&::after {
content: "\f00d";
content: "x";
font-weight: 900;
}
}
Expand Down

0 comments on commit fe083af

Please sign in to comment.