-
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 #6 from SWM-FIRE/FIRE-181-기획-fe-screen-share-페이지-u…
…i-설계 Fire 181 기획 fe screen share 페이지 UI 설계
- Loading branch information
Showing
8 changed files
with
103 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import styled from 'styled-components'; | ||
import screenInterface from '../../screen.interface'; | ||
|
||
export default function RoomBlock({ name, id }: screenInterface) { | ||
return ( | ||
<Container> | ||
<div>{name}</div> | ||
<div>{id}</div> | ||
</Container> | ||
); | ||
} | ||
|
||
const Container = styled.video` | ||
border: 3px solid red; | ||
height: 46%; | ||
width: 46%; | ||
`; |
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,24 @@ | ||
import styled from 'styled-components'; | ||
import screenAPI from '../../screens.json'; | ||
import Screen from './Screen'; | ||
import screenInterface from '../../screen.interface'; | ||
|
||
export default function Screens() { | ||
return ( | ||
<Container> | ||
{screenAPI.map(({ name, id }: screenInterface) => { | ||
return <Screen key={id} name={name} id={id} />; | ||
})} | ||
</Container> | ||
); | ||
} | ||
|
||
const Container = styled.div` | ||
display: flex; | ||
flex-flow: row wrap; | ||
justify-content: space-around; | ||
align-content: space-around; | ||
margin: 0 auto; | ||
width: 86%; | ||
height: 86%; | ||
`; |
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,35 @@ | ||
import styled from 'styled-components'; | ||
import Screens from '../components/room/Screens'; | ||
|
||
export default function MainPage() { | ||
return ( | ||
<Component> | ||
<Header>방번호</Header> | ||
<Screens /> | ||
<Button>화면 공유 ON</Button> | ||
</Component> | ||
); | ||
} | ||
|
||
const Component = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
width: 100vw; | ||
height: 100vh; | ||
color: white; | ||
`; | ||
|
||
const Header = styled.header` | ||
font-size: 5rem; | ||
`; | ||
|
||
const Button = styled.button` | ||
color: white; | ||
cursor: pointer; | ||
padding: 2rem; | ||
width: 15rem; | ||
margin: 0 auto; | ||
font-size: 2rem; | ||
background-color: gray; | ||
border-radius: 1rem; | ||
`; |
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,4 @@ | ||
export default interface screenInterface { | ||
name: string; | ||
id: 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,18 @@ | ||
[ | ||
{ | ||
"name": "screen1", | ||
"id": 1 | ||
}, | ||
{ | ||
"name": "screen1", | ||
"id": 1 | ||
}, | ||
{ | ||
"name": "screen1", | ||
"id": 1 | ||
}, | ||
{ | ||
"name": "screen1", | ||
"id": 1 | ||
} | ||
] |
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