-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.tsx
61 lines (50 loc) · 1 KB
/
index.tsx
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
61
import { FunctionComponent } from 'react'
import styled from 'styled-components'
interface Props {
data: Element
}
const Message:FunctionComponent<Props> = ({ data }) => {
return (
<Wrapper>
<Content dangerouslySetInnerHTML={{__html: data.outerHTML}}></Content>
<span>00:00</span>
</Wrapper>
)
}
const Wrapper = styled.div`
width: 95%;
display: flex;
flex-grow: 1;
position: relative;
position:relative;
display: flex;
background: #fff;
border-radius: 7.5px;
padding: 6px 7px 8px 9px;
box-shadow: 0 1px 0.5px rgba(11,20,26, .13);
margin: 4px 0;
margin-right: 10px;
> span {
font-size: 9px;
align-self: flex-end;
color: #667781;
padding-left: 22px;
font-weight: 200;
margin-bottom: -2px;
}
`
const Content = styled.div`
position: relative;
display: inline;
text-align: left;
font-size: 12px;
color: #111b21;
h1, h2, h3, h4, h5 {
font-size: 12px;
margin: 0.8px;
}
p {
margin: 0.8px;
}
`
export default Message