Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Commit 9fe8378

Browse files
committed
add padding-bottom to team members, align photos left on large screens
1 parent 99355ee commit 9fe8378

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

src/components/Team.js

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,36 @@ const AvatarLarge = styled(Image)`
99
width: 100px;
1010
height: 100px;
1111
border-radius: 99px;
12-
margin-left:auto;
13-
margin-right:auto;
14-
display:block;
15-
text-align:center;
12+
@media(max-width:1100px){
13+
margin-left:auto;
14+
margin-right:auto;
15+
display:block;
16+
text-align:center;
17+
}
1618
`
1719
const Titles = styled.div`
18-
@media(max-width:960px) {
20+
@media(max-width:1100px) {
1921
text-align:center;
2022
}
2123
`
24+
const Member = styled(Card)`
25+
padding-bottom: 4rem;
26+
`
2227

2328
export default () => (
2429
<WhoWeArePageQuery
2530
render={(content) => (
2631
<Grid spacing={4} container>
2732
{content.team.map((member) => {
2833
return (
29-
<Grid item xs={6} key={member.name}>
30-
<Card elevation={2}>
34+
<Grid item sm={6} xs={12} pb={5} key={member.name}>
35+
<Member pb={5} elevation={2}>
3136
<CardContent>
3237
<Grid container>
33-
<Grid item sm={4} xs={12}>
38+
<Grid item md={3} sm={12} xs={12}>
3439
<AvatarLarge fluid={member.avatar.childImageSharp.fluid} />
3540
</Grid>
36-
<Grid item sm={8} xs={12}>
41+
<Grid item md={9} sm={12} xs={12}>
3742
<Titles>
3843
<Typography gutterBottom variant='h5' component='h2'>
3944
{member.name}
@@ -53,7 +58,7 @@ export default () => (
5358
</Grid>
5459
</Grid>
5560
</CardContent>
56-
</Card>
61+
</Member>
5762
</Grid>
5863
)
5964
})

0 commit comments

Comments
 (0)