-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Showcase comp to website out of lib - fix layout
- Loading branch information
Showing
7 changed files
with
49 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2353,4 +2353,4 @@ input::placeholder { | |
.nav-footer .social { | ||
padding: 5px 0; | ||
} | ||
/* End of Footer */ | ||
/* End of Footer */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/** | ||
* Copyright (c) 2017-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
const React = require('react'); | ||
const PropTypes = require('prop-types'); | ||
|
||
const UserLink = ({infoLink, image, caption}) => ( | ||
<a className="link" href={infoLink} key={infoLink}> | ||
<img src={image} alt={caption} title={caption} /> | ||
<span className="caption">{caption}</span> | ||
</a> | ||
); | ||
|
||
UserLink.propTypes = { | ||
infoLink: PropTypes.string.isRequired, | ||
image: PropTypes.string.isRequired, | ||
caption: PropTypes.string.isRequired, | ||
}; | ||
|
||
const Showcase = ({users}) => ( | ||
<div className="showcase"> | ||
{users.map(user => ( | ||
<UserLink key={user.infoLink} {...user} /> | ||
))} | ||
</div> | ||
); | ||
|
||
Showcase.propTypes = { | ||
users: PropTypes.array.isRequired, | ||
}; | ||
|
||
Showcase.defaultProps = { | ||
users: [], | ||
}; | ||
|
||
module.exports = Showcase; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters