mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-04 03:42:34 +02:00
chore: move to monorepo (#1297)
* chore: move to monorepo * lint all js file * simplify circleCI * fix failing tests * fix tests due to folder rename * fix test since v1 website is renamed
This commit is contained in:
parent
6b1d2e8c9c
commit
1f91d19a8c
619 changed files with 12713 additions and 26817 deletions
36
website-1.x/core/Showcase.js
Normal file
36
website-1.x/core/Showcase.js
Normal file
|
@ -0,0 +1,36 @@
|
|||
/**
|
||||
* 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,
|
||||
};
|
||||
|
||||
module.exports = Showcase;
|
Loading…
Add table
Add a link
Reference in a new issue