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-14 22:34:16 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b268bb18d8d3bba4df1552df0c8f773f267f41ec
b268bb18
1 parent
1f018cfa
create incomingMsg.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
0 deletions
front/src/Components/Main/IncomingMsg.js
front/src/Components/Main/IncomingMsg.js
0 → 100644
View file @
b268bb1
import
React
from
"react"
;
import
styled
from
"styled-components"
;
import
ImgIconBox
from
"../SubMenuList/ImgIconBox"
;
const
IncomingBox
=
styled
.
div
`
display: flex;
flex-direction: row;
width: 100%;
padding: 20px 10px;
margin-top: 20px;
margin-left: 10px;
`
;
const
MsgContainer
=
styled
.
div
`
display: flex;
flex-direction: column;
margin-left: 10px;
`
;
const
MsgBox
=
styled
.
div
`
background-color: #20bf6b;
color: white;
display: flex;
justify-content: center;
align-items: center;
border-radius: 20px;
margin-bottom: 10px;
`
;
const
Msg
=
styled
.
span
`
font-size: 20px;
padding: 20px 10px;
`
;
const
TimeBox
=
styled
.
div
`
display: flex;
justify-content: flex-start;
align-items: center;
opacity: 0.7;
`
;
const
Time
=
styled
.
span
`
font-size: 15px;
`
;
export
default
()
=>
{
return
(
<
IncomingBox
>
<
ImgIconBox
/>
<
MsgContainer
>
<
MsgBox
>
<
Msg
/>
Incoming
Message
<
/MsgBox
>
<
TimeBox
>
<
Time
/>
Monday
00
:
00
<
/TimeBox
>
<
/MsgContainer
>
<
/IncomingBox
>
);
};
Please
register
or
login
to post a comment