-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathButtonPDF.js
48 lines (36 loc) · 871 Bytes
/
ButtonPDF.js
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
import React from 'react';
import styled from 'styled-components';
import { Link } from 'react-router-dom';
const ButtonPDF = (props) => {
return (
<ContainerButton>
{ props.href ?
<A href={props.href} target="_blank" src="/src/images/Transparência-ÉPossívelSonhar.pdf">{props.title}</A> :
<StyledLink to={props.to}>{props.title}</StyledLink>
}
</ContainerButton>
)
}
export default ButtonPDF;
const A = styled.a`
color: #FFFFFF !important;
text-decoration: none !important;
`
const StyledLink = styled(Link)`
color: #FFFFFF !important;
text-decoration: none !important;
`
const ContainerButton = styled.button`
padding: 0.5em 1em;
margin-left:1em;
text-decoration: none;
background: #d33b3f;
color: #FFFFFF;
border: 0;
border-radius: 40px;
width: 112px;
height: 36px;
&:hover {
background: #ff0040;
}
`