Showing
1 changed file
with
76 additions
and
8 deletions
... | @@ -4,7 +4,11 @@ import Header from "./Header"; | ... | @@ -4,7 +4,11 @@ import Header from "./Header"; |
4 | import Input from "./Input"; | 4 | import Input from "./Input"; |
5 | import Button from "./Button"; | 5 | import Button from "./Button"; |
6 | import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | 6 | import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; |
7 | -import { faAddressBook, faMusic } from "@fortawesome/free-solid-svg-icons"; | 7 | +import { |
8 | + faAddressBook, | ||
9 | + faArrowDown, | ||
10 | + faPlus, | ||
11 | +} from "@fortawesome/free-solid-svg-icons"; | ||
8 | 12 | ||
9 | const Wrapper = styled.div` | 13 | const Wrapper = styled.div` |
10 | display: grid; | 14 | display: grid; |
... | @@ -69,8 +73,6 @@ const PeopleContainer = styled.div` | ... | @@ -69,8 +73,6 @@ const PeopleContainer = styled.div` |
69 | 73 | ||
70 | const CategoryContainer = styled.div` | 74 | const CategoryContainer = styled.div` |
71 | display: flex; | 75 | display: flex; |
72 | - justify-content: center; | ||
73 | - align-items: center; | ||
74 | svg { | 76 | svg { |
75 | font-size: 20px; | 77 | font-size: 20px; |
76 | } | 78 | } |
... | @@ -81,6 +83,22 @@ const CategoryContainer = styled.div` | ... | @@ -81,6 +83,22 @@ const CategoryContainer = styled.div` |
81 | border-top: 1px solid rgba(255, 255, 255, 0.5); | 83 | border-top: 1px solid rgba(255, 255, 255, 0.5); |
82 | `; | 84 | `; |
83 | 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 | + | ||
84 | const ChatScreenContainer = styled.div` | 102 | const ChatScreenContainer = styled.div` |
85 | display: grid; | 103 | display: grid; |
86 | width: 100%; | 104 | width: 100%; |
... | @@ -96,7 +114,40 @@ const ChatScreenHeader = styled.div` | ... | @@ -96,7 +114,40 @@ const ChatScreenHeader = styled.div` |
96 | border-bottom: 1px solid rgba(0, 0, 0, 0.1); | 114 | border-bottom: 1px solid rgba(0, 0, 0, 0.1); |
97 | `; | 115 | `; |
98 | 116 | ||
99 | -const ChatScreenBox = styled.div``; | 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 | + button { | ||
143 | + width: 10%; | ||
144 | + } | ||
145 | + input { | ||
146 | + width: 70%; | ||
147 | + } | ||
148 | + border: 1px solid rgba(0, 0, 0, 0.7); | ||
149 | + border-radius: 10px; | ||
150 | +`; | ||
100 | 151 | ||
101 | export default ({ data }) => { | 152 | export default ({ data }) => { |
102 | return ( | 153 | return ( |
... | @@ -112,8 +163,21 @@ export default ({ data }) => { | ... | @@ -112,8 +163,21 @@ export default ({ data }) => { |
112 | <ItemText>People</ItemText> | 163 | <ItemText>People</ItemText> |
113 | </PeopleContainer> | 164 | </PeopleContainer> |
114 | <CategoryContainer> | 165 | <CategoryContainer> |
115 | - <FontAwesomeIcon icon={faMusic} /> | 166 | + <ItemListContainer> |
116 | - <ItemText>Music</ItemText> | 167 | + <ItemList> |
168 | + <FontAwesomeIcon icon={faArrowDown} /> Category | ||
169 | + <FontAwesomeIcon icon={faPlus} /> | ||
170 | + <Item> | ||
171 | + <ItemText># Music</ItemText> | ||
172 | + </Item> | ||
173 | + <Item> | ||
174 | + <ItemText># Music</ItemText> | ||
175 | + </Item> | ||
176 | + <Item> | ||
177 | + <ItemText># Music</ItemText> | ||
178 | + </Item> | ||
179 | + </ItemList> | ||
180 | + </ItemListContainer> | ||
117 | </CategoryContainer> | 181 | </CategoryContainer> |
118 | </ChatMenuContainer> | 182 | </ChatMenuContainer> |
119 | <ChatScreenContainer> | 183 | <ChatScreenContainer> |
... | @@ -121,8 +185,12 @@ export default ({ data }) => { | ... | @@ -121,8 +185,12 @@ export default ({ data }) => { |
121 | <Title>Selected Menu Title</Title> | 185 | <Title>Selected Menu Title</Title> |
122 | </ChatScreenHeader> | 186 | </ChatScreenHeader> |
123 | <ChatScreenBox> | 187 | <ChatScreenBox> |
124 | - <Input placeholder={"Enter any words"} /> | 188 | + <InputWrapper> |
125 | - <Button text={"Submit"} /> | 189 | + <InputContainer> |
190 | + <Input placeholder={"Enter any words"} /> | ||
191 | + <Button text={"Submit"} /> | ||
192 | + </InputContainer> | ||
193 | + </InputWrapper> | ||
126 | </ChatScreenBox> | 194 | </ChatScreenBox> |
127 | </ChatScreenContainer> | 195 | </ChatScreenContainer> |
128 | </ChatWrapper> | 196 | </ChatWrapper> | ... | ... |
-
Please register or login to post a comment