UNPKG

react-profiles

Version:

A collection of Profile components with automatic data filling using public apis.

109 lines (67 loc) 2.34 kB
# react-profiles **A collection various Profile components with auto data retrieval using public APIs and auto cache management of profile data. You wanna showcase your profile ? Style it up with react-profiles :)** ## Features : + Profile components for lot of common sites. + Compressed SVG icons for scalability. + Uses public APIs to fetch data based on given username + Manages caching of API data automatically with appropriate refresh frequency. + Material ui components for visual treat. + Tooltip customization. [![](https://i.imgur.com/Y6zaXQp.gif)](#) ## Usage : ```npm npm install react-profiles ``` ```js import { GitHub, HackerRank, Facebook, StackOverflow, LinkedIn, Instagram, GooglePlus, Youtube, Yahoo, Twitch, Twitter, Skype } from 'react-profiles'; ``` #### **NOTE : DONT FORGET to include fontawesome css in your index.html** ```html <link href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.css" rel="stylesheet" type='text/css'> ``` ### Profile Bars : #### GitHub (auto fetch data) : [![](https://i.imgur.com/6Rmbhqe.png)](#) ```js <GitHub username="nateshmbhat" /> ``` #### StackOverflow (auto fetch data) : [![Imgur](https://imgur.com/LB4rfpI.png)](#) ```js <StackOverflow userid="6665568" tooltip="custom tooltip" /> ``` #### LinkedIn (no auto fetch): [![](https://i.imgur.com/AypR95e.png)](#) ```js <LinkedIn username="nateshmbhat" organization="Google" role="Developer" /> ``` #### HackerRank (no auto fetch): [![](https://i.imgur.com/AKEDXii.png)](#) ```js <HackerRank username="nateshmbhat1" rank={4900} category="Algorithm Practice" competitions="13" contestRating="1500" gold="1" silver="2" bronze="3" /> ``` ### Profile Chips : [![](https://imgur.com/XZ2S0JX.png)](#) ```js <Instagram link="https://www.instagram.com/nateshmbhat/" /> <Facebook link="" newPage{false}/> <GooglePlus link="" newPage={false} /> <Youtube link="" /> <Twitch link="" /> <Twitter link="" /> <Skype link="" /> <Yahoo link="" tooltip="My tooltip" /> ``` Props : + newPage = open new page on clicking link (default = true) + link = profile link + tooltip = tooltip to be shown on mouse hover ## Links : + **Homepage :** https://github.com/nateshmbhat/react-profiles/ + **npm install page :** https://www.npmjs.com/package/react-profiles