sdy

create components related to chat screen

1 +import React from "react";
2 +import styled from "styled-components";
3 +
4 +const BubbleBox = styled.div``;
5 +
6 +export default () => {
7 + return <BubbleBox />;
8 +};
1 +import React from "react";
2 +import styled from "styled-components";
3 +
4 +const ChatFooter = styled.div`
5 + display: flex;
6 +`;
7 +
8 +export default () => {
9 + return <ChatFooter></ChatFooter>;
10 +};
1 +import React from "react";
2 +import styled from "styled-components";
3 +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
4 +import { faPhone, faEllipsisH } from "@fortawesome/free-solid-svg-icons";
5 +
6 +const ChatHeader = styled.div`
7 + width: 100%;
8 + display: flex;
9 + justify-content: space-around;
10 + align-items: center;
11 + border-bottom: 1px solid;
12 +`;
13 +
14 +const NickNameBox = styled.div`
15 + display: flex;
16 + flex-direction: column;
17 + padding: 10px;
18 + opacity: 0.8;
19 +`;
20 +
21 +const NickName = styled.span`
22 + font-size: 20px;
23 +`;
24 +
25 +const IconBox = styled.div`
26 + display: flex;
27 + flex-direction: row;
28 + justify-content: space-between;
29 + align-items: center;
30 + opacity: 0.8;
31 +`;
32 +
33 +export default () => {
34 + return (
35 + <ChatHeader>
36 + <NickNameBox>
37 + <NickName /> NickName
38 + </NickNameBox>
39 + <IconBox>
40 + <FontAwesomeIcon icon={faPhone} />
41 + <FontAwesomeIcon icon={faEllipsisH} />
42 + </IconBox>
43 + </ChatHeader>
44 + );
45 +};
1 +import React from "react";
2 +import styled from "styled-components";
3 +import ChatListBox from "../SubMenuList/ChatListBox";
4 +
5 +const ChatScreen = styled.div``;
6 +
7 +export default () => {
8 + return (
9 + <ChatScreen>
10 + <ChatListBox />
11 + </ChatScreen>
12 + );
13 +};