something

This commit is contained in:
2025-08-04 00:16:33 -04:00
parent 0dc0a9ce62
commit 5527506cb9
12 changed files with 184 additions and 26 deletions

View File

@@ -1,5 +1,15 @@
import { A } from "@solidjs/router";
import Game from "../components/Game";
import { createResource, For } from "solid-js";
import { db } from "../db";
export default () => {
return <Game />;
const [games] = createResource(() => db().then((data) => data.games));
return (
<div style={{ padding: "20px" }}>
<For each={Object.entries(games() ?? {})}>
{([gameId, game]) => <A href={`/${gameId}`}>{game.name}</A>}
</For>
</div>
);
};