From 1fd02567cab1cfd8d22149d735fb28730c1f814a Mon Sep 17 00:00:00 2001 From: zeudev Date: Fri, 14 Nov 2025 15:00:07 -0800 Subject: [PATCH] style server messages --- client-src/routes/index.tsx | 9 ++++----- client-src/views/room/UserMessage.tsx | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 client-src/views/room/UserMessage.tsx diff --git a/client-src/routes/index.tsx b/client-src/routes/index.tsx index e192b0b..c53e16d 100644 --- a/client-src/routes/index.tsx +++ b/client-src/routes/index.tsx @@ -3,6 +3,7 @@ import UserToolbar from "../views/room/UserToolbar"; import usePartySocket from "partysocket/react"; import { useState } from "react"; import { FromServerSocketMessage } from "../../isomophic-src/isomorphic"; +import UserMessage from "../views/room/UserMessage"; export const Route = createFileRoute("/")({ component: Index, @@ -26,13 +27,11 @@ function Index() { }); return ( -
+

Welcome Home!

-
    +
      {images.map((image, index) => ( -
    • - {`Uploaded -
    • + ))}
    diff --git a/client-src/views/room/UserMessage.tsx b/client-src/views/room/UserMessage.tsx new file mode 100644 index 0000000..fe1ce6a --- /dev/null +++ b/client-src/views/room/UserMessage.tsx @@ -0,0 +1,21 @@ +type UserMessageProps = { + name: string; + frog: string; + hat: string; + image: string; +} + +export default function UserMessage({ name, frog, hat, image }: UserMessageProps) { + return ( +
  • +
    + + + + +

    {name}

    +
    + +
  • + ); +} -- 2.51.2