-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from SWM-FIRE/FIRE-132-아이디-입력해서-세션-정보-저장
FIRE-132 - FIRE-132-아이디-입력해서-세션-정보-저장
- Loading branch information
Showing
11 changed files
with
1,367 additions
and
1,266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import roomAPI from '../../rooms.json'; | ||
import RoomBlock from './RoomBlock'; | ||
import roomInterface from '../../room.interface'; | ||
|
||
export default function Room() { | ||
return ( | ||
<> | ||
{roomAPI.map(({ name, total, current }: roomInterface) => { | ||
return ( | ||
<RoomBlock key={name} name={name} total={total} current={current} /> | ||
); | ||
})} | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import styled from 'styled-components'; | ||
import oc from '../../styles/openColor'; | ||
import roomInterface from '../../room.interface'; | ||
|
||
export default function RoomBlock({ name, total, current }: roomInterface) { | ||
return ( | ||
<Container> | ||
<div>{name}</div> | ||
<div> | ||
{current} / {total} | ||
</div> | ||
</Container> | ||
); | ||
} | ||
|
||
const Container = styled.div` | ||
text-align: center; | ||
width: 10rem; | ||
height: 5rem; | ||
background-color: ${oc.gray2}; | ||
margin-top: 1rem; | ||
border-radius: 2rem; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import styled from 'styled-components'; | ||
import Rooms from '../components/lobby/Room'; | ||
|
||
export default function Lobby() { | ||
return ( | ||
<Container> | ||
<Header>Lobby</Header> | ||
<Rooms /> | ||
</Container> | ||
); | ||
} | ||
|
||
const Header = styled.div` | ||
margin-top: 5rem; | ||
width: 20rem; | ||
height: 10rem; | ||
font-size: 10rem; | ||
`; | ||
|
||
const Container = styled.div` | ||
width: 100vw; | ||
height: 100vh; | ||
background: linear-gradient(113deg, #9f9f9f 0%, #636363 100%); | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: flex-start; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default interface roomInterface { | ||
name: string; | ||
total: number; | ||
current: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[ | ||
{ | ||
"name": "room1", | ||
"total": 4, | ||
"current": 0 | ||
}, | ||
{ | ||
"name": "room2", | ||
"total": 4, | ||
"current": 0 | ||
}, | ||
{ | ||
"name": "room3", | ||
"total": 4, | ||
"current": 0 | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.