diff --git a/pages/about.js b/pages/about.js index 136e84a..349f034 100644 --- a/pages/about.js +++ b/pages/about.js @@ -1,6 +1,45 @@ import React from 'react' import Page from '../components/Page' +function Contributors() { + const [contributors, setContributors] = React.useState([]) + + React.useEffect(() => { + fetch('https://api.github.com/repos/carbon-app/carbon/contributors?per_page=100') + .then(response => response.json()) + .then(contributors => + setContributors(contributors.filter(contributor => !contributor.login.endsWith('[bot]'))) + ) + }, []) + + return ( +
+ {contributors.map(contributor => ( + + {contributor.login} + + ))} + +
+ ) +} + export default function About() { return ( @@ -127,6 +166,8 @@ export default function About() { Contributors welcome!

+
+