Fix image layout
This commit is contained in:
parent
103f3e1e8b
commit
c299849e87
@ -54,7 +54,8 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 100%;
|
max-width: 100%;
|
||||||
|
max-height: 25em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -27,7 +27,7 @@ function mentors(edges) {
|
|||||||
const photo = edge.node.frontmatter.photo;
|
const photo = edge.node.frontmatter.photo;
|
||||||
|
|
||||||
return <section key={`mentor_${id}`} id={`mentor_${id}`}>
|
return <section key={`mentor_${id}`} id={`mentor_${id}`}>
|
||||||
<div className="image fit">
|
<div className="image main">
|
||||||
<img src={withPrefix(`images/magprog/mentors/${photo}`)}
|
<img src={withPrefix(`images/magprog/mentors/${photo}`)}
|
||||||
alt={name}
|
alt={name}
|
||||||
/>
|
/>
|
||||||
@ -67,7 +67,7 @@ function team(edges) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<section key={`team_${id}`}>
|
<section key={`team_${id}`}>
|
||||||
<div className="image fit">
|
<div className="image main">
|
||||||
<img src={withPrefix(`images/members/${photo}`)} alt={name}/>
|
<img src={withPrefix(`images/members/${photo}`)} alt={name}/>
|
||||||
</div>
|
</div>
|
||||||
<div className="content">
|
<div className="content">
|
||||||
|
Loading…
Reference in New Issue
Block a user