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 + - Based on <a href="https://nextjs.org/">Next.js13</a>, - <a href="https://mantine.dev/">Mantine</a>, - <a href="https://socket.io/">Socket.io</a>, - <a href="https://zustand-demo.pmnd.rs/">Zustand</a>. + Based on{" "} + <Text + component="a" + td="underline" + href="https://nextjs.org/" + variant="gradient" + gradient={{ from: "yellow", to: "red", deg: 105 }} + > + Next.js13,{" "} + </Text> + <Text + component="a" + href="https://mantine.dev/" + variant="gradient" + gradient={{ from: "red", to: "purple", deg: 105 }} + > + Mantine,{" "} + </Text> + <Text + component="a" + href="https://socket.io/" + variant="gradient" + gradient={{ from: "purple", to: "blue", deg: 105 }} + > + Socket.io,{" "} + </Text> + <Text + component="a" + href="https://zustand-demo.pmnd.rs/" + variant="gradient" + gradient={{ from: "blue", to: "green", deg: 105 }} + > + Zustand. + </Text> - + This repo implements a simple chat app with Socket.io and Next.js 13.
You can use npm run dev to access