File tree Expand file tree Collapse file tree 5 files changed +18
-18
lines changed Expand file tree Collapse file tree 5 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,6 @@ class TeamComponent extends Component {
50
50
< TeamVerticalCardComponent
51
51
name = { partner . node . frontmatter . name }
52
52
profilePicture = { partner . node . frontmatter . profilePicture . relativePath }
53
- club = { partner . node . frontmatter . club }
54
- role = { partner . node . frontmatter . role }
55
53
/>
56
54
) )
57
55
)
Original file line number Diff line number Diff line change @@ -10,22 +10,28 @@ import Image from '../commons/Image'
10
10
const styles = theme => ( {
11
11
profileImage : {
12
12
borderRadius : '50%' ,
13
- width : '4.5rem ' ,
14
- height : '4.5rem ' ,
13
+ width : '6rem ' ,
14
+ height : '6rem ' ,
15
15
[ theme . breakpoints . up ( 'md' ) ] : {
16
- width : '5.5rem ' ,
17
- height : '5.5rem '
16
+ width : '6.75rem ' ,
17
+ height : '6.75rem '
18
18
} ,
19
19
} ,
20
20
name : {
21
21
fontWeight : 700 ,
22
- marginBottom : '0.75em' ,
23
22
marginTop : '1.5em' ,
24
23
[ theme . breakpoints . up ( 'sm' ) ] : {
25
- marginBottom : '1.25em' ,
26
24
marginTop : 0
27
25
}
28
26
} ,
27
+ role : {
28
+ marginBottom : '0.75em' ,
29
+ color : '#9e9e9e' ,
30
+ fontStyle : 'italic' ,
31
+ [ theme . breakpoints . up ( 'sm' ) ] : {
32
+ marginBottom : '1.25em' ,
33
+ }
34
+ }
29
35
} )
30
36
31
37
class TeamHorizontalCardComponent extends Component {
@@ -34,15 +40,16 @@ class TeamHorizontalCardComponent extends Component {
34
40
35
41
return (
36
42
info . map ( ( i , index ) => (
37
- < Grid item xs = { 12 } sm = { 6 } >
43
+ < Grid item xs = { 12 } sm = { 9 } >
38
44
< div className = { classes . root } >
39
45
< Grid container >
40
46
< Grid item sm = { 4 } lg = { 3 } >
41
47
< Image filename = { i . node . frontmatter . profilePicture . relativePath } classProps = { classes . profileImage } />
42
48
</ Grid >
43
49
44
- < Grid item sm = { 8 } lg = { 9 } className = { classes . info } >
50
+ < Grid item sm = { 8 } lg = { 9 } >
45
51
< Typography variant = "body1" className = { classes . name } > { i . node . frontmatter . name } </ Typography >
52
+ < Typography variant = "subtitle2" className = { classes . role } > { i . node . frontmatter . role } </ Typography >
46
53
< Typography variant = "body2" className = { classes . title } > { i . node . frontmatter . description } </ Typography >
47
54
</ Grid >
48
55
</ Grid >
Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ const styles = theme => ({
36
36
height : '5.5rem'
37
37
} ,
38
38
} ,
39
-
40
39
} )
41
40
42
41
class TeamVerticalCardComponent extends Component {
@@ -47,13 +46,11 @@ class TeamVerticalCardComponent extends Component {
47
46
return (
48
47
< Grid item xs = { 6 } sm = { 3 } className = { classes . root } >
49
48
< div className = { classes . profilePictureContainer } >
50
- < Image filename = { profilePicture } classProps = { classes . profilePicture } />
49
+ < Image filename = { profilePicture } classProps = { classes . profilePicture } classImageStyle = { { objectFit : 'contain' } } />
51
50
</ div >
52
51
53
52
< div className = { classes . description } >
54
53
< Typography variant = "body1" className = { classes . name } gutterBottom > { name } </ Typography >
55
- < Typography variant = "caption" className = { classes . club } gutterBottom > { club } </ Typography >
56
- < Typography variant = "caption" className = { classes . role } gutterBottom > { role } </ Typography >
57
54
</ div >
58
55
</ Grid >
59
56
) ;
@@ -63,8 +60,6 @@ class TeamVerticalCardComponent extends Component {
63
60
TeamVerticalCardComponent . propTypes = {
64
61
profilePicture : PropTypes . string . isRequired ,
65
62
name : PropTypes . string . isRequired ,
66
- role : PropTypes . string . isRequired ,
67
- club : PropTypes . string . isRequired
68
63
} ;
69
64
70
65
export default withStyles ( styles ) ( TeamVerticalCardComponent ) ;
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ export const pageQuery = graphql`
42
42
node {
43
43
frontmatter {
44
44
name
45
+ role
45
46
description
46
47
profilePicture {
47
48
relativePath
@@ -60,6 +61,7 @@ export const pageQuery = graphql`
60
61
node {
61
62
frontmatter {
62
63
name
64
+ role
63
65
description
64
66
profilePicture {
65
67
relativePath
@@ -82,8 +84,6 @@ export const pageQuery = graphql`
82
84
node {
83
85
frontmatter {
84
86
name
85
- club
86
- role
87
87
profilePicture {
88
88
relativePath
89
89
}
You can’t perform that action at this time.
0 commit comments