Giter Club home page Giter Club logo

github-badges's People

Contributors

ddavison avatar naturalclar avatar silverwind avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

github-badges's Issues

Use Image

Put image inside of the star/fork buttons.

Text Alignment, Flat style, Text-shadow

Few requests:

  1. It looks like the text isn't correctly aligned yet, at least not on 200% zoom. The baseline of the number is like 1px too high:

buttons

To fix, change 'y' => '12', to 'y' => '13', on line 46 of the HAML.

  1. Also, I'd be great to see a ?style=flat option, as seen on these buttons here:

buttons-flat

  1. A slight "text-shadow" would be nice too. Could be done like this:
<text x="45" y="15" fill="#010101" fill-opacity=".3">dependencies</text>
<text x="45" y="14">dependencies</text>

Allow custom background colors

It'd be ✨ super cool ✨ if you could choose custom background and text colors, e.g.

http://github-svg-buttons.herokuapp.com/star.svg?background=<HEX-COLOR>&color=<HEX-COLOR>&user=<USERNAME>&repo=<REPONAME>

Fail to load the number of Star / Fork

Hi !
When I created the badges like this:
[![star this repo](http://githubbadges.com/star.svg?user=Yaoshicn&repo=awesome-music-for-programming&background=007ecg&color=bbb&style=flat)](https://github.com/Yaoshicn/awesome-music-for-programming)
It didn't work, just like star this repo

Design index page

app.rb

get '/' do
  haml :index
end

views/index.haml

!!!
%html
  %head
    %title Title
  %body
    ...

Different button height for non-flat buttons

You may have missed my previous comment. Here's what needs to be done:

Regular style: button height = 18 px, rx = 4, font y = 13, shadow y = 14
Flat style: button height = 20 px, rx = 3, font y = 14, shadow y = 15

It's probably better to have two Haml files for these styles, to keep things readable.

`issues` svg

add an issues badge in addition to the stars and forks

Add caching headers

I think it's safe to assume that GitHub's caching assumes a pretty long caching duration when no headers are present.

This cached content shows a 130 hour-long Age header, which I think is when the content will be re-requested. Following examples of other badges, they provide these cache headers, which pretty much disables any caching:

Cache-Control: no-cache, no-store, must-revalidate
Date: Sun, 24 Aug 2014 09:02:42 GMT
Expires: Sun, 24 Aug 2014 09:02:42 GMT

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.