css file added to tic tac toe

This commit is contained in:
NigeParis 2026-01-03 16:22:42 +01:00 committed by Maix0
parent 97b14815b0
commit 914ef550be
4 changed files with 4344 additions and 14 deletions

View file

@ -1,3 +1,4 @@
import "./ttt.css"
import { addRoute, type RouteHandlerReturn } from "@app/routing";
import tttPage from "./ttt.html?raw";
import { showError, showInfo, showSuccess, showWarn } from "@app/toast";
@ -49,7 +50,7 @@ async function handleTTT(): Promise<RouteHandlerReturn> {
});
socket.emit('enqueue');
const cells = app.querySelectorAll<HTMLDivElement>(".ttt-grid-cell");
const cells = app.querySelectorAll<HTMLDivElement>(".ttt-cell");
const grid = app.querySelector(".ttt-grid"); // Not sure about this one
const updateUI = (boardState: (string | null)[]) => {