Giter Site home page Giter Site logo

felixs8696 / github-cards Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lepture/github-cards

0.0 2.0 0.0 110 KB

The unofficial GitHub Cards. Card for your GitHub profile, card for your GitHub repositories.

Home Page: http://lab.lepture.com/github-cards/

License: BSD 3-Clause "New" or "Revised" License

Makefile 0.92% Python 4.99% HTML 48.44% CSS 20.58% JavaScript 25.07%

github-cards's Introduction

Unofficial GitHub Cards

Card for your GitHub profile, card for your GitHub repositories.

Donate lepture

GitHub Cards Preview

New theme available

GitHub Cards Medium Theme

Usage

The cards are hosted via GitHub Pages.

Visit card generator: http://lab.lepture.com/github-cards/

widget.js

You can include the widget.js script, it will create the embed iframes for you.

Example of user card:

<div class="github-card" data-user="lepture"></div>
<script src="//cdn.jsdelivr.net/github-cards/latest/widget.js"></script>

Example of repo card:

<div class="github-card" data-user="lepture" data-repo="github-cards"></div>
<script src="//cdn.jsdelivr.net/github-cards/latest/widget.js"></script>

Data parameters:

  • user: GitHub username
  • repo: GitHub repository name
  • width: Embed width you want, default is 400
  • height: Embed height you want, default is 200
  • theme: GitHub card theme, default is default
  • target: If you want to open links in new tab, set it to blank
  • client_id: Your app client_id, optional
  • client_secret: Your app client_secret, optional

You can also define in meta tags:

<meta name="gc:base" content="http://lab.lepture.com/github-cards/cards/">
<meta name="gc:theme" content="medium">
<meta name="gc:client-id" content="client id string">
<meta name="gc:client-secret" content="client secret string">

Limitation

There are some limitations for github cards.

  1. GitHub API rate limitation
  2. No interaction. You can't actually follow someone

SSL support

GitHub Cards is available on jsdelivr now. Use widget hosted on jsdelivr:

<div class="github-card" data-user="lepture" data-repo="github-cards"></div>
<script src="https://cdn.jsdelivr.net/github-cards/latest/widget.js"></script>

Contribution

This project is under the BSD License.

github-cards's People

Contributors

lepture avatar davidcelis avatar software-opal avatar manuelmeurer avatar nmai avatar nakajima avatar

Watchers

James Cloos avatar Felix Su 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.