Template cards to showcase your GitHub proficiency on blogs and websites
npm install gitcardjs --save
- Download the desired CSS theme (Light or Dark) from here and link it as a Stylesheet, uses Bulma under the hood.
import './gitcard-light.css';
- Require the Package
const Gitcard = require('gitcardjs');
- Call the package by passing
github authorization token
with scoperead:user
from here andgithub username
Gitcard('token', 'capturemathan').then(function(res){
console.log(res)
/*
<div class="columns"><div class="column is-one-quarter">...</div></div>
*/
Pass the res to any of the container tags using `innerHTML` methods like `dangerouslySetInnerHTML` in REACT
})
- Refer to the example directory for further details.
Read the license here