Skip to content

Commit

Permalink
Merge pull request #60 from Joseonpaldo/minseok
Browse files Browse the repository at this point in the history
Minseok
  • Loading branch information
themerous authored Sep 9, 2024
2 parents 0447c88 + 65b11f8 commit 462fb8e
Show file tree
Hide file tree
Showing 30 changed files with 1,772 additions and 144 deletions.
4 changes: 2 additions & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ const config = {
},
{
source: '/nws/:path*',
destination: 'http://localhost:4000/nws/:path*',
destination: 'http://localhost:4000/nws/?:path*',
},
{
source: '/socket.io/:path*',
destination: 'http://localhost:4000/socket.io/:path*',
destination: 'http://localhost:4000/socket.io/?:path*',
},
]
},
Expand Down
5 changes: 3 additions & 2 deletions src/app/mini-game/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ import Stack from '@mui/material/Stack';

import { config } from '@/config';
import Lobby from "@/components/game/Lobby";
import App from "@/components/mini-game/App";
import App from "@/components/mini-game/snake/App";
import useWindowSizeCustom from "@/hooks/useWindowSizeCustom";
import GameMap from "@/components/mini-game/snake/components/GameMap";



Expand All @@ -22,7 +23,7 @@ export default function Page(): React.JSX.Element {
// scale: 0.3,
// width: windowSizeCustom.width / ,
}}>
<App/>
<GameMap roomId={11} />
</div>


Expand Down
3 changes: 2 additions & 1 deletion src/components/dashboard/layout/side-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { Logo } from '@/components/core/logo';

import { navItems } from './config';
import { navIcons } from './nav-icons';
import FriendList from "@/components/friend-list/FriendList";

export function SideNav(): React.JSX.Element {
const pathname = usePathname();
Expand Down Expand Up @@ -71,7 +72,7 @@ export function SideNav(): React.JSX.Element {
{renderNavItems({ pathname, items: navItems })}
</Box>
<Divider sx={{ borderColor: 'var(--mui-palette-neutral-700)' }} />

<FriendList/>
</Box>
);
}
Expand Down
116 changes: 116 additions & 0 deletions src/components/friend-list/Friend.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
.friend-list-container {
padding: 20px;
}

.button {
padding: 10px 20px;
background-color: #dca371;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}

.button:hover {
background-color: #dd8b44;
}

.friend-list {
list-style: none;
padding: 0;
}

.friend-list-item {
margin-bottom: 10px;
}

.friend-button {
padding: 10px;
background-color: #f8f9fa;
border: 1px solid #ddd;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}

.friend-button:hover {
background-color: #e1b389; /* 좋아하는 색상으로 변경 */
}

.chat-room {
padding: 20px;
border: 2px solid #ddd;
border-radius: 10px;
background-color: #f4d3a1; /* 더 부드러운 배경색 */
}
.chat-room h3{
color: black;
}

.chat-messages {
width: 400px;
height: 300px;
overflow-y: auto;
border: 1px solid #ddd;
padding: 10px;
margin-bottom: 10px;
background-color: #efe9e3; /* 메시지 영역 배경 흰색 */
border-radius: 10px;
}

.chat-message {
padding: 8px 12px;
margin-bottom: 8px;
border-radius: 10px;
max-width: 70%;
}

.chat-message.sent {
background-color: #e1b389; /* 보낸 메시지 배경 */
margin-left: auto;
text-align: right;
color: white;
}

.chat-message.received {
background-color: #f1f1f1; /* 받은 메시지 배경 */
text-align: left;
}

.chat-message p {
margin: 0;
}

.chat-input {
align-items: center;
}

.input {
flex: 1;
padding: 8px;
border: 1px solid #ddd;
border-radius: 5px;
outline: none;
font-size: 14px;
transition: border-color 0.3s;
width: 300px;
}

.input:focus {
border-color: #007bff;
}

.send-button {
padding: 10px 20px;
background-color: #8B6B4F;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
margin-left: 20px;
transition: background-color 0.3s;
}

.send-button:hover {
background-color: #218838;
}
Loading

0 comments on commit 462fb8e

Please sign in to comment.