react-icons/go#GoGist JavaScript Examples

The following examples show how to use react-icons/go#GoGist. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: UserStats.js    From tuliofaria.dev with MIT License 6 votes vote down vote up
UserStats = ({ user }) => {
  return(
    <p className='text-center'>
      Github stats: 
      <RiGitRepositoryLine className='inline-block' /> {user.public_repos} / 
      <GoGist className='inline-block' /> {user.public_gists} / 
      <FiUsers className='inline-block' /> {user.followers}
    </p>
  )
}
Example #2
Source File: Info.js    From js-code with ISC License 5 votes vote down vote up
UserInfo = () => {
	const { githubUser } = React.useContext(GithubContext);
	const { public_repos, followers, following, public_gists } = githubUser;

	const items = [
		{
			id: 1,
			icon: <GoRepo className='icon'></GoRepo>,
			label: 'repos',
			value: public_repos,
			color: 'pink',
		},
		{
			id: 2,
			icon: <FiUsers className='icon'></FiUsers>,
			label: 'followers',
			value: followers,
			color: 'green',
		},
		{
			id: 3,
			icon: <FiUserPlus className='icon'></FiUserPlus>,
			label: 'following',
			value: following,
			color: 'purple',
		},
		{
			id: 4,
			icon: <GoGist className='icon'></GoGist>,
			label: 'gists',
			value: public_gists,
			color: 'yellow',
		},
	];

	return (
		<section className='section'>
			<Wrapper className='section-center'>
				{items.map((item) => {
					return <Item key={item.id} {...item}></Item>;
				})}
			</Wrapper>
		</section>
	);
}