Skip to content

Commit 3924686

Browse files
committed
[FE] feat: 음성 채널 컨트롤러 컴포넌트 상단 UI 구현 (#74)
1 parent 969cd74 commit 3924686

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { BsFillTelephoneXFill } from 'react-icons/bs';
2+
3+
import { useChannelInfoStore } from '@/stores/channelInfo';
4+
import { useGuildInfoStore } from '@/stores/guildInfo';
5+
6+
import * as S from './styles';
7+
8+
const VoiceChannelController = () => {
9+
const { selectedChannel } = useChannelInfoStore();
10+
const { guildName } = useGuildInfoStore();
11+
12+
return (
13+
<S.VoiceChannelController>
14+
<S.ConnectStatusWrapper>
15+
<S.InfoText>
16+
<S.ConnectStatusText>음성 연결됨</S.ConnectStatusText>
17+
<S.ChannelInfoText>
18+
{selectedChannel?.name} / {guildName}
19+
</S.ChannelInfoText>
20+
</S.InfoText>
21+
<BsFillTelephoneXFill size={20} />
22+
</S.ConnectStatusWrapper>
23+
</S.VoiceChannelController>
24+
);
25+
};
26+
27+
export default VoiceChannelController;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import styled from 'styled-components';
2+
3+
import { ChipText, SmallText } from '@/styles/Typography';
4+
5+
export const VoiceChannelController = styled.div`
6+
display: flex;
7+
flex-direction: column;
8+
9+
padding: 1rem;
10+
border-bottom: 1px solid ${({ theme }) => theme.colors.dark[450]};
11+
12+
background-color: ${({ theme }) => theme.colors.dark[750]};
13+
`;
14+
15+
export const InfoText = styled.div`
16+
display: flex;
17+
flex-direction: column;
18+
`;
19+
20+
export const ConnectStatusText = styled(ChipText)`
21+
font-size: 1.5rem;
22+
color: ${({ theme }) => theme.colors.lightGreen};
23+
`;
24+
25+
export const ChannelInfoText = styled(SmallText)`
26+
color: ${({ theme }) => theme.colors.dark[350]};
27+
`;
28+
29+
export const ConnectStatusWrapper = styled.div`
30+
display: flex;
31+
align-items: center;
32+
justify-content: space-between;
33+
34+
svg {
35+
color: ${({ theme }) => theme.colors.white};
36+
}
37+
`;

0 commit comments

Comments
 (0)