-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathisacard.js
85 lines (75 loc) · 1.63 KB
/
isacard.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import React from 'react';
import styled from 'styled-components';
const StyledCard = styled.div`
width: 80%;
height: 100%;
margin: 0 auto;
padding-bottom: 2%;
text-align: justify;
margin-top: -4rem;
margin-bottom: 2rem;
@media only screen and (max-width : 460px) {
width: 80%;
padding-bottom: 1rem;
};
`;
const StyledTitleCard = styled.h3`
color: white;
font-size: 3rem;
padding: 1%;
font-family: Bebas Neue, sans-serif;
letter-spacing: 5px;
margin-bottom: 1.75rem;
text-align: center;
@media only screen and (max-width : 460px) {
font-size: 1.5rem;
margin-top: 5rem;
margin-bottom: 3rem;
};
`;
const StyledSubtitleCard = styled.h4`
color: white;
font-size: 2.5rem;
font-family: Kristi;
color: #C76BBE;
height: 10%;
width: 55%;
margin-top: -3.75rem;
margin-left: 27rem;
text-align: center;
margin-bottom: 1rem;
@media only screen and (max-width : 460px) {
font-size: 1.5rem;
margin-left: 4rem;
margin-bottom: .5rem;
};
`;
const StyledCardInfo = styled.span`
color: white;
font-size: 1rem;
padding: 1rem;
font-family: Lexend, sans-serif;
letter-spacing: 2px;
@media only screen and (max-width : 460px) {
font-size: .75rem;
};
`;
export default class IsaCard extends React.Component {
constructor(props) {
super(props);
this.title = props.title;
this.subtitle = props.subtitle;
this.info = props.info;
}
render() {
return (
<div>
<StyledCard>
<StyledTitleCard>{this.props.title}</StyledTitleCard>
<StyledSubtitleCard>{this.props.subtitle}</StyledSubtitleCard>
<StyledCardInfo>{this.props.info}</StyledCardInfo>
</StyledCard>
</div>
);
}
}