diff --git a/src/client/GamePage.tsx b/src/client/GamePage.tsx index e4c533a..37b9841 100644 --- a/src/client/GamePage.tsx +++ b/src/client/GamePage.tsx @@ -4,6 +4,8 @@ import { css } from "@emotion/css"; import { useWebsocket } from "./hooks/useWebsocket"; import { Pico8Player } from "@athingperday/react-pico-player"; +// type ConsoleRef = Parameters["0"]["consoleRef"]; + type Game = { carts: Parameters["0"]["carts"]; }; @@ -12,7 +14,7 @@ export const GamePage = () => { const { author, slug } = useParams(); // const [searchParams, setSearchParams] = useSearchParams(); // const room = searchParams.get('room'); - // const picoRef = useRef(null); + // const picoRef = useRef(null); // const socket = useWebsocket({ // url: `/api/ws/room?room=${room}`, // // url: "wss://echo.websocket.org", @@ -89,7 +91,7 @@ export const GamePage = () => { `} > { // console.log("sending gpio"); diff --git a/src/client/HomePage.tsx b/src/client/HomePage.tsx index 0fe54a6..8de291a 100644 --- a/src/client/HomePage.tsx +++ b/src/client/HomePage.tsx @@ -1,3 +1,15 @@ +import { Link } from "react-router-dom"; +import { authors } from "../data/authors"; + export const HomePage = () => { - return
Welcome to Picobook!
-} \ No newline at end of file + return ( +
+

Welcome to Picobook!

+ {authors.map((author) => ( + +

{author.username}

+ + ))} +
+ ); +};