IncomingMsg.js
1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import React from "react";
import styled from "styled-components";
import ImgIconBox from "./ProfileIcon";
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>
);
};