-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.js
More file actions
64 lines (54 loc) · 1.42 KB
/
index.js
File metadata and controls
64 lines (54 loc) · 1.42 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
61
62
63
64
import { rem } from 'polished'
import styled, { css } from 'styled-components'
import { TABLET_LARGE_SIZE, MOBILE_SIZE } from 'styles/constants'
const StyledText = styled.p`
font-family: lato;
font-size: ${rem('16px')};
font-weight: 500;
line-height: ${rem('24px')};
letter-spacing: 0rem;
text-align: left;
margin-top: ${rem('16px')};
@media only screen and (max-width: ${TABLET_LARGE_SIZE}) {
text-align: center;
}
${(props) =>
props.successText &&
css`
font-weight: normal;
font-size: 21px;
line-height: 26px;
margin-top: ${rem('24px')};
margin-bottom: ${rem('24px')};
`}
${(props) =>
props.errorText &&
css`
font-size: 21px;
line-height: 26px;
color: #ff4545;
margin-top: ${rem('24px')};
margin-bottom: ${rem('24px')};
`}
${(props) =>
props.sectionText &&
css`
font-weight: 600;
font-size: ${rem('20px')};
line-height: ${rem('32px')};
text-align: center;
margin-top: ${rem('24px')};
margin-top: ${rem('64px')};
color: #8493b0;
@media only screen and (max-width: ${TABLET_LARGE_SIZE}) {
}
@media only screen and (max-width: ${MOBILE_SIZE}) {
font-weight: 700;
font-size: ${rem('16px')};
line-height: ${rem('24px')};
margin-top: ${rem('80px')};
}
`}
`
const Text = (props) => <StyledText {...props} />
export default Text