Skip to content

Commit

Permalink
Updated styling per review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Manjiri Tapaswi committed Oct 25, 2018
1 parent e2d4915 commit 6f23219
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
10 changes: 6 additions & 4 deletions v1/examples/basics/pages/en/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ class Users extends React.Component {
const editUrl = `${siteConfig.repoUrl}/edit/master/website/siteConfig.js`;
const showcase = siteConfig.users.map(user => (
<div>
<a href={user.infoLink} key={user.infoLink}>
<img src={user.image} alt={user.caption} title={user.caption} />
</a>
<h4>{user.caption}</h4>
<div className="wrapperDiv">
<a href={user.infoLink} key={user.infoLink}>
<img src={user.image} alt={user.caption} title={user.caption} />
</a>
</div>
<p>{user.caption}</p>
</div>
));

Expand Down
13 changes: 11 additions & 2 deletions v1/lib/static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2219,15 +2219,24 @@ input::placeholder {
justify-content: center;
}

.showcaseSection .logos img {
.showcaseSection .logos .wrapperDiv {
height: 128px;
width: 128px;
}

.showcaseSection .logos img {
max-height: 128px;
padding: 20px;
width: 128px;
}

@media only screen and (max-width: 735px) {
.showcaseSection .logos img {
.showcaseSection .logos .wrapperDiv {
height: 64px;
width: 64px;
}
.showcaseSection .logos img {
max-height: 64px;
padding: 20px;
width: 64px;
}
Expand Down
10 changes: 6 additions & 4 deletions v1/website/pages/en/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ class Users extends React.Component {
renderUser(user) {
return (
<div>
<a href={user.infoLink} key={user.infoLink}>
<img src={user.image} alt={user.caption} title={user.caption} />
</a>
<h4>{user.caption}</h4>
<div className="wrapperDiv">
<a href={user.infoLink} key={user.infoLink}>
<img src={user.image} alt={user.caption} title={user.caption} />
</a>
</div>
<p{user.caption}</p>
</div>
);
}
Expand Down

0 comments on commit 6f23219

Please sign in to comment.