sdy

remove ChatScreen.js

1 -import React from "react";
2 -import styled from "styled-components";
3 -import Header from "./Header";
4 -import Input from "./Input";
5 -import Button from "./Button";
6 -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
7 -import {
8 - faAddressBook,
9 - faArrowDown,
10 - faPlus,
11 -} from "@fortawesome/free-solid-svg-icons";
12 -
13 -const Wrapper = styled.div`
14 - display: grid;
15 - width: 100%;
16 - height: 100%;
17 - grid-template-rows: 80px auto min-content;
18 - grid-template-areas:
19 - "Header"
20 - "Workspace";
21 - .Header {
22 - box-shadow: none;
23 - }
24 -`;
25 -
26 -const ChatWrapper = styled.div`
27 - display: flex;
28 - flex-direction: row;
29 - width: 100%;
30 - height: 100%;
31 - grid-template-columns: 200px auto;
32 - grid-area: "Workspace";
33 -`;
34 -
35 -const ChatMenuContainer = styled.div`
36 - display: grid;
37 - width: 200px;
38 - height: 100%;
39 - background-color: #667aff;
40 - color: white;
41 - grid-template-rows: 80px 1fr 1fr;
42 -`;
43 -
44 -const TitleContainer = styled.div`
45 - display: flex;
46 - justify-content: center;
47 - align-items: center;
48 - font-size: 20px;
49 - border-top: 1px solid rgba(255, 255, 255, 0.5);
50 -`;
51 -
52 -const Title = styled.span`
53 - font-family: "Chelsea Market", cursive;
54 -`;
55 -
56 -const ItemText = styled.span`
57 - font-family: "Ubuntu", sans-serif;
58 -`;
59 -
60 -const PeopleContainer = styled.div`
61 - display: flex;
62 - justify-content: center;
63 - align-items: center;
64 - svg {
65 - font-size: 20px;
66 - }
67 - span {
68 - margin-left: 10px;
69 - font-size: 20px;
70 - }
71 - border-top: 1px solid rgba(255, 255, 255, 0.5);
72 -`;
73 -
74 -const CategoryContainer = styled.div`
75 - display: flex;
76 - svg {
77 - font-size: 20px;
78 - }
79 - span {
80 - margin-left: 10px;
81 - font-size: 20px;
82 - }
83 - border-top: 1px solid rgba(255, 255, 255, 0.5);
84 -`;
85 -
86 -const ItemListContainer = styled.div`
87 - display: flex;
88 - flex-direction: row;
89 - width: 100%;
90 - padding: 15px;
91 -`;
92 -
93 -const ItemList = styled.ul`
94 - align-items: center;
95 - svg {
96 - margin: 0px 10px;
97 - }
98 -`;
99 -
100 -const Item = styled.li``;
101 -
102 -const ChatScreenContainer = styled.div`
103 - display: grid;
104 - width: 100%;
105 - height: 100%;
106 - grid-template-rows: 70px 1fr;
107 -`;
108 -
109 -const ChatScreenHeader = styled.div`
110 - display: flex;
111 - flex-direction: row;
112 - align-items: center;
113 - padding: 10px;
114 - border-bottom: 1px solid rgba(0, 0, 0, 0.1);
115 -`;
116 -
117 -const ChatScreenBox = styled.div`
118 - display: flex;
119 - flex-direction: column;
120 - width: 100%;
121 - height: 100%;
122 -`;
123 -
124 -const InputWrapper = styled.div`
125 - display: flex;
126 - flex-direction: row;
127 - justify-content: center;
128 - align-items: center;
129 - padding: 10px;
130 - margin-bottom: 10px;
131 - width: 100%;
132 -`;
133 -
134 -const InputContainer = styled.div`
135 - position: fixed;
136 - bottom: 0;
137 - padding: 10px;
138 - margin-bottom: 20px;
139 - display: flex;
140 - flex-direction: row;
141 - width: 70%;
142 - form {
143 - width: 100%;
144 - button {
145 - background-color: #27ae60;
146 - width: 10%;
147 - color: white;
148 - border-radius: 10px;
149 - }
150 - input {
151 - width: 70%;
152 - }
153 - }
154 - border: 1px solid rgba(0, 0, 0, 0.7);
155 - border-radius: 10px;
156 -`;
157 -
158 -export default ({ data }) => {
159 - return (
160 - <Wrapper>
161 - <Header text={"KhuChat"} />
162 - <ChatWrapper className="ChatWrapper">
163 - <ChatMenuContainer>
164 - <TitleContainer>
165 - <Title>First Room</Title>
166 - </TitleContainer>
167 - <PeopleContainer>
168 - <FontAwesomeIcon icon={faAddressBook} />
169 - <ItemText>People</ItemText>
170 - </PeopleContainer>
171 - <CategoryContainer>
172 - <ItemListContainer>
173 - <ItemList>
174 - <FontAwesomeIcon icon={faArrowDown} /> Category
175 - <FontAwesomeIcon icon={faPlus} />
176 - <Item>
177 - <ItemText># Music</ItemText>
178 - </Item>
179 - </ItemList>
180 - </ItemListContainer>
181 - </CategoryContainer>
182 - </ChatMenuContainer>
183 - <ChatScreenContainer>
184 - <ChatScreenHeader>
185 - <Title>Selected Menu Title</Title>
186 - </ChatScreenHeader>
187 - <ChatScreenBox>
188 - <InputWrapper>
189 - <InputContainer>
190 - <form>
191 - <Input placeholder={"Enter any words"} />
192 - <Button text={"Submit"} />
193 - </form>
194 - </InputContainer>
195 - </InputWrapper>
196 - </ChatScreenBox>
197 - </ChatScreenContainer>
198 - </ChatWrapper>
199 - </Wrapper>
200 - );
201 -};