sdy

update ChatScreen style

1 import React from "react"; 1 import React from "react";
2 -export default () => { 2 +import styled from "styled-components";
3 - return <div>Chat screen</div>; 3 +import Header from "./Header";
4 +import Input from "./Input";
5 +import Button from "./Button";
6 +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
7 +import { faAddressBook, faMusic } from "@fortawesome/free-solid-svg-icons";
8 +
9 +const Wrapper = styled.div`
10 + display: flex;
11 + flex-direction: column;
12 + width: 100%;
13 + height: 100%;
14 +`;
15 +
16 +const ChatWrapper = styled.div`
17 + display: flex;
18 + flex-direction: row;
19 + width: 100%;
20 +`;
21 +
22 +const ChatMenuContainer = styled.div`
23 + display: flex;
24 + flex-direction: column;
25 + height: 100%;
26 +`;
27 +
28 +const TitleContainer = styled.div`
29 + display: flex;
30 + justify-content: center;
31 + align-items: center;
32 +`;
33 +
34 +const Title = styled.span`
35 + font-family: "Chelsea Market", cursive;
36 +`;
37 +
38 +const ItemText = styled.span`
39 + font-family: "Ubuntu", sans-serif;
40 +`;
41 +
42 +const PeopleContainer = styled.div`
43 + display: flex;
44 + justify-content: center;
45 + align-items: center;
46 +`;
47 +
48 +const CategoryContainer = styled.div`
49 + display: flex;
50 + justify-content: center;
51 + align-items: center;
52 +`;
53 +
54 +const ChatScreenContainer = styled.div`
55 + display: flex;
56 + flex-direction: column;
57 +`;
58 +
59 +export default ({ data }) => {
60 + return (
61 + <Wrapper>
62 + <Header />
63 + <ChatWrapper>
64 + <ChatMenuContainer>
65 + <TitleContainer>
66 + <Title>{data}</Title>
67 + </TitleContainer>
68 + <PeopleContainer>
69 + <FontAwesomeIcon icon={faAddressBook} />
70 + <ItemText>People</ItemText>
71 + </PeopleContainer>
72 + <CategoryContainer>
73 + <FontAwesomeIcon icon={faMusic} />
74 + <ItemText>Music</ItemText>
75 + </CategoryContainer>
76 + </ChatMenuContainer>
77 + <ChatScreenContainer>
78 + <Input placeholder={"Enter any words"} />
79 + <Button text={"Submit"} />
80 + </ChatScreenContainer>
81 + </ChatWrapper>
82 + </Wrapper>
83 + );
4 }; 84 };
......