Skip to content

Commit bb29891

Browse files
authored
Merge pull request #269 from connect-foundation/feature/snow-gif
방 배경에 눈 내리는 효과 적용
2 parents a43f90b + 95e3cb2 commit bb29891

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

client/src/components/Room/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import GameArea from './GameArea';
44
import ChatArea from './ChatArea';
55
import Alert from '../Alert';
66
import {
7-
Wrapper, RoomWrapper, SoundToggleWrapper, SoundToggle,
7+
RoomBackground, Wrapper, RoomWrapper, SoundToggleWrapper, SoundToggle,
88
} from './style';
99
import socket from '../../modules/socket';
1010
import URL from '../../constants/url';
@@ -79,7 +79,7 @@ const Room = () => {
7979
}, []);
8080

8181
return (
82-
<>
82+
<RoomBackground>
8383
<Wrapper>
8484
<SoundToggleWrapper>
8585
<SoundToggle onClick={toggleSound}>{isSoundOn ? '🔊sound on' : '🔇sound off'}</SoundToggle>
@@ -90,7 +90,7 @@ const Room = () => {
9090
</RoomWrapper>
9191
</Wrapper>
9292
{isExistRoom ? '' : <Alert message={ROOM.PATH_ERROR_MESSAGE} closeCallback={goToLobby} />}
93-
</>
93+
</RoomBackground>
9494
);
9595
};
9696

client/src/components/Room/style.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ import styled from 'styled-components';
22
import { setSize, setFlex } from '../Style/util';
33
import { ROOM, SOUND_TOGGLE } from '../Style/Room';
44

5+
export const RoomBackground = styled.div`
6+
min-width: 100vw;
7+
min-height: 100vh;
8+
background: url(${ROOM.BACKGROUND_GIF});
9+
`;
10+
511
export const Wrapper = styled.div`
612
position: absolute;
713
width: ${ROOM.getWidth()}px;

client/src/components/Style/Room.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ export const ROOM = {
109109
BORDER_RADIUS_BIG: 12,
110110
FONT_FAMILY: 'DungGeunMo',
111111
BUTTON_HOVER_EFFECT: 'linear-gradient(-180deg, rgba(150, 150, 150, 0.1), rgba(150, 150, 150, 0.2) 50%)',
112+
BACKGROUND_GIF: 'https://kr.object.ncloudstorage.com/connect-2019-01/image/transparent-gfllffmJEBXju33FPg.gif',
112113
};
113114

114115
export const ROOM_NAME = {

0 commit comments

Comments
 (0)