Overnap
Builds for 1 pipeline passed in 8 minutes 15 seconds

Rooms 컴포넌트에 Create 컴포넌트 추가 및 css 폴리싱

...@@ -20,10 +20,10 @@ export const Create: React.FC = () => { ...@@ -20,10 +20,10 @@ export const Create: React.FC = () => {
20 }, [roomName]); 20 }, [roomName]);
21 21
22 return ( 22 return (
23 - <div> 23 + <div className="flex items-center">
24 <input type="text" 24 <input type="text"
25 - placeholder="Username" 25 + placeholder="Room name"
26 - className="px-3 py-1.5 bg-white 26 + className="h-8 px-3 py-1.5 bg-white
27 placeholder-gray-400 text-gray-700 text-sm 27 placeholder-gray-400 text-gray-700 text-sm
28 rounded shadow outline-none focus:outline-none" 28 rounded shadow outline-none focus:outline-none"
29 value={roomName} 29 value={roomName}
......
...@@ -8,7 +8,7 @@ export const Refresh: React.FC<RefreshProps> = ({ refreshRooms }) => { ...@@ -8,7 +8,7 @@ export const Refresh: React.FC<RefreshProps> = ({ refreshRooms }) => {
8 return ( 8 return (
9 <button className="bg-green-500 active:bg-green-600 9 <button className="bg-green-500 active:bg-green-600
10 text-white uppercase text-xl 10 text-white uppercase text-xl
11 - w-10 h-8 pb-0.5 ml-3 rounded shadow round 11 + w-10 h-8 pb-0.5 mr-2 rounded shadow round
12 outline-none focus:outline-none hover:shadow-md 12 outline-none focus:outline-none hover:shadow-md
13 ease-linear transition-all duration-100" 13 ease-linear transition-all duration-100"
14 type="button" 14 type="button"
......
...@@ -2,6 +2,7 @@ import React, { useCallback, useContext, useEffect, useState } from 'react'; ...@@ -2,6 +2,7 @@ import React, { useCallback, useContext, useEffect, useState } from 'react';
2 import { useHistory } from 'react-router'; 2 import { useHistory } from 'react-router';
3 import { Main } from '../components/common/Main'; 3 import { Main } from '../components/common/Main';
4 import { MessageResponse, MessageType, RawMessage } from '../components/common/types'; 4 import { MessageResponse, MessageType, RawMessage } from '../components/common/types';
5 +import { Create } from '../components/rooms/Create';
5 import { Refresh } from '../components/rooms/Refrsh'; 6 import { Refresh } from '../components/rooms/Refrsh';
6 import { RoomBlock } from '../components/rooms/RoomBlock'; 7 import { RoomBlock } from '../components/rooms/RoomBlock';
7 import { Room } from '../components/rooms/types'; 8 import { Room } from '../components/rooms/types';
...@@ -31,8 +32,9 @@ export const Rooms: React.FC = () => { ...@@ -31,8 +32,9 @@ export const Rooms: React.FC = () => {
31 32
32 return ( 33 return (
33 <Main> 34 <Main>
34 - <div className='mt-8'> 35 + <div className='mt-8 flex'>
35 <Refresh refreshRooms={refreshRooms}/> 36 <Refresh refreshRooms={refreshRooms}/>
37 + <Create />
36 </div> 38 </div>
37 <div className='mt-auto w-screen flex flex-col items-center'> 39 <div className='mt-auto w-screen flex flex-col items-center'>
38 {rooms.map((room) => (<RoomBlock key={room.uuid} room={room} />))} 40 {rooms.map((room) => (<RoomBlock key={room.uuid} room={room} />))}
......