TextBox.js
696 Bytes
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
import React from "react";
import styled from "styled-components";
const TextBox = styled.div`
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
padding: 0px 15px;
`;
const NickNameBox = styled.div`
display: flex;
margin-bottom: 5px;
`;
const NickName = styled.span`
opacity: 0.8;
`;
const MsgPreviewBox = styled.div`
display: flex;
`;
const MsgPreview = styled.span`
opacity: 0.5;
`;
export default () => {
return (
<TextBox>
<NickNameBox>
<NickName>NickName</NickName>
</NickNameBox>
<MsgPreviewBox>
<MsgPreview>MsgPreview...</MsgPreview>
</MsgPreviewBox>
</TextBox>
);
};