Skip to content

Commit 3164c85

Browse files
committed
Merge branch 'dev-fe' of https://github.com/boostcampwm-2024/web22-LiBoo into dev-fe
2 parents d97b789 + 7a9d117 commit 3164c85

File tree

8 files changed

+29
-12
lines changed

8 files changed

+29
-12
lines changed

frontend/src/components/client/ClientView.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ const ClientView = () => {
1818
export default ClientView;
1919

2020
const ClientViewContainer = styled.main`
21-
padding: 0 24px;
21+
flex: 1;
22+
overflow-y: auto;
23+
padding: 0 60px;
2224
background-color: ${({ theme }) => theme.tokenColors['surface-default']};
25+
scrollbar-width: none;
2326
`;

frontend/src/components/client/Header.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ const Header = () => {
77
export default Header;
88

99
const HeaderContainer = styled.div`
10-
display: flex;
10+
width: 100%;
1111
height: 60px;
12-
padding: 0 60px;
12+
position: fixed;
13+
display: flex;
1314
background-color: ${({ theme }) => theme.tokenColors['surface-default']};
15+
z-index: 11000;
1416
`;

frontend/src/components/client/Player.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import CustomPlayIcon from '@assets/custom_play_icon.svg';
77
import PauseIcon from '@assets/icons/pause_icon.svg';
88
import PlayIcon from '@assets/icons/play_icon.svg';
99

10-
const Player = ({ videoUrl }: { videoUrl: string; }) => {
10+
const Player = ({ videoUrl }: { videoUrl: string }) => {
1111
const [onHLSReady, setOnHLSReady] = useState(false);
1212
const [isPaused, setIsPaused] = useState(false);
1313
const [showIcon, setShowIcon] = useState(false);

frontend/src/components/host/Header.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ export default function Header() {
99
}
1010

1111
const Container = styled.header`
12+
width: 100%;
13+
height: 60px;
14+
position: fixed;
1215
background-color: #222222;
13-
padding: 10px 20px;
1416
color: #fff;
1517
font-weight: bold;
18+
z-index: 11000;
1619
`;

frontend/src/components/host/Setting.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ export default function Setting() {
1818
}
1919

2020
const Container = styled.main`
21-
flex: 7;
21+
flex: 1;
22+
overflow-y: auto;
2223
`;

frontend/src/index.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ body,
1717
#root {
1818
height: 100%;
1919
margin: 0;
20+
background-color: #141517;
2021
}
2122

2223
body {

frontend/src/pages/ClientPage.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
import styled from 'styled-components';
22

3-
import { Chat, ClientView, Header } from '@components/client';
3+
import { ClientView, Header } from '@components/client';
4+
import { ChatRoom } from '@components/chat';
45

56
export default function ClientPage() {
67
return (
78
<>
89
<Header />
910
<ClientContainer>
1011
<ClientView />
11-
<Chat />
12+
<ChatRoom />
1213
</ClientContainer>
1314
</>
1415
);
1516
}
1617

1718
const ClientContainer = styled.div`
19+
box-sizing: border-box;
20+
padding: 60px 10px 0 10px;
21+
height: 100%;
1822
display: flex;
19-
justify-content: center;
20-
background-color: ${({ theme }) => theme.tokenColors['surface-default']};
23+
background-color: ${({ theme }) => theme.tokenColors['susrface-default']};
2124
`;

frontend/src/pages/HostPage.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { Setting, Chat, Header } from '@components/host';
1+
import { ChatRoom } from '@components/chat';
2+
import { Setting, Header } from '@components/host';
23
import styled from 'styled-components';
34

45
export default function HostPage() {
@@ -7,12 +8,15 @@ export default function HostPage() {
78
<Header />
89
<FlexContainer>
910
<Setting />
10-
<Chat />
11+
<ChatRoom />
1112
</FlexContainer>
1213
</>
1314
);
1415
}
1516

1617
const FlexContainer = styled.div`
18+
box-sizing: border-box;
19+
height: 100%;
1720
display: flex;
21+
padding-top: 60px;
1822
`;

0 commit comments

Comments
 (0)