diff --git a/frontend/public/next.svg b/frontend/public/next.svg deleted file mode 100644 index 5174b28..0000000 --- a/frontend/public/next.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/frontend/public/vercel.svg b/frontend/public/vercel.svg deleted file mode 100644 index d2f8422..0000000 --- a/frontend/public/vercel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/frontend/src/app/favicon.ico b/frontend/src/app/favicon.ico index 718d6fe..68cdd69 100644 Binary files a/frontend/src/app/favicon.ico and b/frontend/src/app/favicon.ico differ diff --git a/frontend/src/app/home/page.tsx b/frontend/src/app/home/page.tsx index c245fb5..6b0bb43 100644 --- a/frontend/src/app/home/page.tsx +++ b/frontend/src/app/home/page.tsx @@ -14,7 +14,7 @@ import useSocketStore from "@/store/socket"; import { useEffect, useRef, useState, useLayoutEffect } from "react"; import { MessageWithMe, SocketMessage } from "@/types/next"; import { toast } from "react-hot-toast"; -import ChatroomTitle from "@/components/ChatRoomTitle"; +import ChatroomTitle from "@/components/ChatroomTitle"; const useStyles = createStyles((theme) => ({ rightMessageField: { diff --git a/frontend/src/app/layout.tsx b/frontend/src/app/layout.tsx index d9d4bd1..9ca74b9 100644 --- a/frontend/src/app/layout.tsx +++ b/frontend/src/app/layout.tsx @@ -10,8 +10,8 @@ type Prop = { }; export const metadata = { - title: "Create Next App", - description: "Generated by create next app", + title: "Tiny Socket.io demo", + description: "This repo implements a simple chat app with Socket.io and Next.js 13.", }; export default function RootLayout({ children }: Prop) { diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx index 4b7fcbd..6114785 100644 --- a/frontend/src/app/page.tsx +++ b/frontend/src/app/page.tsx @@ -22,10 +22,12 @@ const useStyles = createStyles((theme) => ({ fontFamily: `Greycliff CF, ${theme.fontFamily}`, fontWeight: 900, fontSize: rem(64), - - [theme.fn.smallerThan("md")]: { + display: "flex", + flexWrap: "nowrap", + + [theme.fn.smallerThan("sm")]: { maxWidth: "100%", - fontSize: rem(34), + fontSize: rem(28), lineHeight: 1.15, }, }, @@ -37,9 +39,9 @@ const useStyles = createStyles((theme) => ({ lineHeight: 1.05, fontSize: rem(40), - [theme.fn.smallerThan("md")]: { + [theme.fn.smallerThan("sm")]: { maxWidth: "100%", - fontSize: rem(26), + fontSize: rem(18), lineHeight: 1.15, }, }, @@ -59,13 +61,44 @@ export default function Home() { > Tiny Socket.io demo +
npm run dev
to access