Showing
4 changed files
with
0 additions
and
91 deletions
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 | - box-shadow: 1px 1px 7px #8395a7; | ||
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 IncomingMsg from "../IncomingMsg"; | ||
4 | -import OutcomingMsg from "../OutcomingMsg"; | ||
5 | - | ||
6 | -const ChatScreen = styled.div``; | ||
7 | - | ||
8 | -export default () => { | ||
9 | - return ( | ||
10 | - <ChatScreen> | ||
11 | - <IncomingMsg /> | ||
12 | - <OutcomingMsg /> | ||
13 | - </ChatScreen> | ||
14 | - ); | ||
15 | -}; |
1 | -import React from "react"; | ||
2 | -import styled from "styled-components"; | ||
3 | -import ChatHeader from "./ChatHeader"; | ||
4 | -import ChatScreen from "./ChatScreen"; | ||
5 | -import ChatFooter from "./ChatFooter"; | ||
6 | - | ||
7 | -const MainScreen = styled.div` | ||
8 | - display: flex; | ||
9 | - flex-direction: column; | ||
10 | - width: 55%; | ||
11 | -`; | ||
12 | - | ||
13 | -export default () => { | ||
14 | - return ( | ||
15 | - <MainScreen> | ||
16 | - <ChatHeader /> | ||
17 | - <ChatScreen /> | ||
18 | - <ChatFooter /> | ||
19 | - </MainScreen> | ||
20 | - ); | ||
21 | -}; |
-
Please register or login to post a comment