1.1.3 • Published 4 years ago

gitcardjs v1.1.3

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Gitcard

Template cards to showcase your GitHub proficiency on blogs and websites :bowtie: npm

Gitcard

Installation </>

npm install gitcardjs --save

Usage

  1. Download the desired CSS theme (Light or Dark) from here and link it as a Stylesheet.
import './gitcard-light.css'; 
  1. Require the Package
const Gitcard = require('gitcardjs');
  1. Call the package by passing github authorization token with scope read:user from here and github username
Gitcard('token', 'capturemathan').then(function(res){
    console.log(res)
    /*
    <div class="column is-one-quarter"><div class="card" id="cardfolio"><div class="card-image" id="profilepic"><figure class="image container is-128x128"><img class="is-rounded" src="https://avatars2.githubusercontent.com/u/36666781?v=4"></figure></div><div class="has-text-centered" id="name"><a href="https://github.com/capturemathan" target="_blank">Mathana Kumar S</a></div><div class="has-text-centered" id="languages"><span class="is-info tag" id="item">Java</span><span class="is-info tag" id="item">Python</span><span class="is-info tag" id="item">JavaScript</span></div><div class="has-text-centered" id="repos"><img style="vertical-align:middle" src= "https://raw.githubusercontent.com/capturemathan/Gitcard/master/assets/images/cloud.png" height="40" width="40"><span id="repotext">22 Repositories</span></div><div class="has-text-centered" id="contributions"><img style="vertical-align:middle" src= "https://raw.githubusercontent.com/capturemathan/Gitcard/master/assets/images/graph.png" height="40" width="40"><span id="contribtext">557 Contributions</span></div><footer class="card-footer" id="follow"><div class="card-footer-item">27 Followers</div><div class="card-footer-item">15 Following</div></footer></div></div>
    */
   Pass the res to any of the container tags using `innerHTML` methods like `dangerouslySetInnerHTML` in REACT
})

Open Source License

Read the license here

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago