Toggle navigation
Toggle navigation
This project
Loading...
Sign in
강동현
/
nodejs-game
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Overnap
2021-06-10 07:06:38 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2a6c77458b80b4492456977acf3c40a1b1653492
2a6c7745
1 parent
9469b35b
css 폴리싱
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
4 deletions
web/src/components/room/Chat.tsx
web/src/components/room/RoundInfo.tsx
web/src/components/room/UserRole.tsx
web/src/pages/Room.tsx
web/tailwind.config.js
web/src/components/room/Chat.tsx
View file @
2a6c774
...
...
@@ -49,7 +49,7 @@ export const Chat: React.FC<ChatProps> = (props) => {
return (
<div className={props.w}>
<div className={`${props.h} w-full rounded shadow flex flex-col overflow-y-scroll`}>
<div className={`${props.h} w-full
py-2
rounded shadow flex flex-col overflow-y-scroll`}>
{chatLines.map((line, i) => (<ChatLine key={16383+i} chatData={line}/>))}
<div ref={messageEndRef} />
</div>
...
...
web/src/components/room/RoundInfo.tsx
View file @
2a6c774
...
...
@@ -9,7 +9,7 @@ interface RoundInfoProps {
export const RoundInfo: React.FC<RoundInfoProps> = ({ round, wordChosen }) => {
return (
<div className='
w-full p-3
flex items-center place-content-between'>
<div className='
p-3 m-3 h-14 rounded shadow
flex items-center place-content-between'>
<div>대충 타이머 위치</div>
<div>{wordChosen}</div>
<div>R{round}</div>
...
...
web/src/components/room/UserRole.tsx
View file @
2a6c774
...
...
@@ -26,7 +26,7 @@ export const UserRole: React.FC<UserRoleProps> = ({ isInGame }) => {
}, []);
return (
<div className={`w-40 h-14
4
rounded shadow flex flex-col items-center ${isInGame ? '' : 'hidden'}`}>
<div className={`w-40 h-14
0
rounded shadow flex flex-col items-center ${isInGame ? '' : 'hidden'}`}>
<div className='mt-3' />
{roles.map(x => (
<div key={x.username} className={`my-5 ease-linear transition-all duration-100
...
...
web/src/pages/Room.tsx
View file @
2a6c774
...
...
@@ -111,7 +111,7 @@ export const Room: React.FC = () => {
<GameBoard isInGame={isInGame} />
{
isInGame ? (
<Chat w='w-4/12' h='h-
80
' />
<Chat w='w-4/12' h='h-
132
' />
) : (
<div className='w-full flex flex-col justify-center items-center'>
<UserInfo users={roomData.users}/>
...
...
web/tailwind.config.js
View file @
2a6c774
...
...
@@ -5,6 +5,13 @@ module.exports = {
extend
:
{
spacing
:
{
120
:
'30rem'
,
124
:
'31rem'
,
128
:
'32rem'
,
132
:
'33rem'
,
136
:
'34rem'
,
140
:
'35rem'
,
160
:
'40rem'
,
200
:
'50rem'
,
},
},
},
...
...
Please
register
or
login
to post a comment