-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.js
More file actions
41 lines (34 loc) · 797 Bytes
/
index.js
File metadata and controls
41 lines (34 loc) · 797 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
41
import { rem } from 'polished'
import styled, { css } from 'styled-components'
const StyledText = styled.p`
font-size: 1rem;
font-weight: 500;
line-height: 1.625rem;
letter-spacing: 0rem;
text-align: left;
margin-top: 0.25rem;
@media only screen and (max-width: 767px) {
text-align: center;
:last-of-type {
margin-bottom: 5.25rem;
}
}
${(props) =>
props.successText &&
css`
font-weight: normal;
font-size: 18px;
margin-top: ${rem('24px')};
margin-bottom: ${rem('24px')};
`}
${(props) =>
props.errorText &&
css`
line-height: 21px;
color: #ff4545;
margin-top: ${rem('24px')};
margin-bottom: ${rem('24px')};
`}
`
const Text = (props) => <StyledText {...props} />
export default Text