GithubHelp home page GithubHelp logo

saurabhdaware / github-profile-card Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 7.0 192 KB

Unofficial Github profile card made using github api

Home Page: https://apps.saurabhdaware.in/github-profile-card

License: MIT License

JavaScript 70.01% CSS 23.77% HTML 6.23%
javascript github-profile-card github-profile css

github-profile-card's Introduction

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.

github-profile-card's People

Contributors

aks13raut avatar saurabhdaware avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.