Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2020-05-22 15:49:10 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cd162d5125c4bbbfc25651ef0ba5e7687ef707fd
cd162d51
1 parent
79a85d15
update ChatScreen style
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
82 additions
and
2 deletions
front/src/Components/ChatScreen.js
front/src/Components/ChatScreen.js
View file @
cd162d5
import
React
from
"react"
;
export
default
()
=>
{
return
<
div
>
Chat
screen
<
/div>
;
import
styled
from
"styled-components"
;
import
Header
from
"./Header"
;
import
Input
from
"./Input"
;
import
Button
from
"./Button"
;
import
{
FontAwesomeIcon
}
from
"@fortawesome/react-fontawesome"
;
import
{
faAddressBook
,
faMusic
}
from
"@fortawesome/free-solid-svg-icons"
;
const
Wrapper
=
styled
.
div
`
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
`
;
const
ChatWrapper
=
styled
.
div
`
display: flex;
flex-direction: row;
width: 100%;
`
;
const
ChatMenuContainer
=
styled
.
div
`
display: flex;
flex-direction: column;
height: 100%;
`
;
const
TitleContainer
=
styled
.
div
`
display: flex;
justify-content: center;
align-items: center;
`
;
const
Title
=
styled
.
span
`
font-family: "Chelsea Market", cursive;
`
;
const
ItemText
=
styled
.
span
`
font-family: "Ubuntu", sans-serif;
`
;
const
PeopleContainer
=
styled
.
div
`
display: flex;
justify-content: center;
align-items: center;
`
;
const
CategoryContainer
=
styled
.
div
`
display: flex;
justify-content: center;
align-items: center;
`
;
const
ChatScreenContainer
=
styled
.
div
`
display: flex;
flex-direction: column;
`
;
export
default
({
data
})
=>
{
return
(
<
Wrapper
>
<
Header
/>
<
ChatWrapper
>
<
ChatMenuContainer
>
<
TitleContainer
>
<
Title
>
{
data
}
<
/Title
>
<
/TitleContainer
>
<
PeopleContainer
>
<
FontAwesomeIcon
icon
=
{
faAddressBook
}
/
>
<
ItemText
>
People
<
/ItemText
>
<
/PeopleContainer
>
<
CategoryContainer
>
<
FontAwesomeIcon
icon
=
{
faMusic
}
/
>
<
ItemText
>
Music
<
/ItemText
>
<
/CategoryContainer
>
<
/ChatMenuContainer
>
<
ChatScreenContainer
>
<
Input
placeholder
=
{
"Enter any words"
}
/
>
<
Button
text
=
{
"Submit"
}
/
>
<
/ChatScreenContainer
>
<
/ChatWrapper
>
<
/Wrapper
>
);
};
...
...
Please
register
or
login
to post a comment