Skip to content

saurabhdaware/github-profile-card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Profile Card

Unofficial Github profile card for your websites / blogs

How to use

  • Enter your username, repository names(seprated by ",") and paste wherever you want your card to appear
    <div username='saurabhdaware' repos='github-profile-card, storm, stormv2,planetZerugoria' class='github-card' id="card"></div>
  • If you want to add all your repositories
    <div username='saurabhdaware' repos='all' class='github-card' id='card'>
  • Paste following code before the end of body tag </body> or in between your <head></head> tags
    <script src='https://saurabhdaware.github.io/github-profile-card/card.js'></script>
  • If you dont want to show repositories you can simply remove those attributes
    <div username='saurabhdaware' class='github-card' id="card"></div>

How to customize

  • These are the original styles of outer div
.github-profile{
    margin:0 !important;
    padding:0;
    display:inline-block;
    border:1px solid black;
    width:300px;
    font-family: 'Play', sans-serif;
    box-shadow:0 4px 10px 0 rgba(0,0,0,0.2),0 4px 20px 0 rgba(0,0,0,0.19)
}
  • If your name doesn't fit perfectly in the card you can adjust the width of that card with
.github-profile{
    width:400px !important;
}
  • Adding more than 3 repositories will add a scrollbar in the card if you want to remove that scrollbar you can put following in your css
.github-card-repos{
    max-height:none !important;
    overflow-y: visible !important;
}
  • You can see full css file here If you want to change any style just overwrite them with your css

Example

  • Input
<html>
    <head>
    </head>
    <body>
        <!-- Other html -->
        <div username='saurabhdaware' repos='github-profile-card,storm,stormv2,planetZerugoria' class='github-card' id="card"></div>
        <!-- More html -->
        <script src='https://saurabhdaware.github.io/github-profile-card/card.js'></script>
    </body>
</html>
  • Output

  • Let me know if you find any bug.