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-09 21:51:47 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
15bccaf080f0d3b21cffe1416ea881c60fbbc29e
15bccaf0
1 parent
4f33df40
Builds for 1 pipeline
passed
in 8 minutes 15 seconds
Rooms 컴포넌트에 Create 컴포넌트 추가 및 css 폴리싱
Changes
3
Builds
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
web/src/components/rooms/Create.tsx
web/src/components/rooms/Refrsh.tsx
web/src/pages/Rooms.tsx
web/src/components/rooms/Create.tsx
View file @
15bccaf
...
...
@@ -20,10 +20,10 @@ export const Create: React.FC = () => {
}, [roomName]);
return (
<div>
<div
className="flex items-center"
>
<input type="text"
placeholder="
User
name"
className="px-3 py-1.5 bg-white
placeholder="
Room
name"
className="
h-8
px-3 py-1.5 bg-white
placeholder-gray-400 text-gray-700 text-sm
rounded shadow outline-none focus:outline-none"
value={roomName}
...
...
web/src/components/rooms/Refrsh.tsx
View file @
15bccaf
...
...
@@ -8,7 +8,7 @@ export const Refresh: React.FC<RefreshProps> = ({ refreshRooms }) => {
return (
<button className="bg-green-500 active:bg-green-600
text-white uppercase text-xl
w-10 h-8 pb-0.5 m
l-3
rounded shadow round
w-10 h-8 pb-0.5 m
r-2
rounded shadow round
outline-none focus:outline-none hover:shadow-md
ease-linear transition-all duration-100"
type="button"
...
...
web/src/pages/Rooms.tsx
View file @
15bccaf
...
...
@@ -2,6 +2,7 @@ import React, { useCallback, useContext, useEffect, useState } from 'react';
import { useHistory } from 'react-router';
import { Main } from '../components/common/Main';
import { MessageResponse, MessageType, RawMessage } from '../components/common/types';
import { Create } from '../components/rooms/Create';
import { Refresh } from '../components/rooms/Refrsh';
import { RoomBlock } from '../components/rooms/RoomBlock';
import { Room } from '../components/rooms/types';
...
...
@@ -31,8 +32,9 @@ export const Rooms: React.FC = () => {
return (
<Main>
<div className='mt-8'>
<div className='mt-8
flex
'>
<Refresh refreshRooms={refreshRooms}/>
<Create />
</div>
<div className='mt-auto w-screen flex flex-col items-center'>
{rooms.map((room) => (<RoomBlock key={room.uuid} room={room} />))}
...
...
Please
register
or
login
to post a comment