• Stars
    star
    178
  • Rank 214,989 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 9 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Add a Github banner to your project page. A React version of: https://github.com/tholman/github-corners / See also: http://projects.skratchdot.com/react-github-corner/

react-github-corner

NPM version Dependency Status devDependency Status

NPM

Description

Add a Github banner to your project page. A React version of:

Getting Started

Install the module with: npm install --save react-github-corner

Usage

import React, { Component } from 'react';
import GithubCorner from 'react-github-corner';
export default class MyApp extends Component {
  render() {
    return (
      <div>
        <header>Wow</header>
        <div>Cool</div>
        <footer>Neat</footer>
        <GithubCorner href="https://github.com/username/repo" />
      </div>
    );
  }
}

Documentation

Here are the props you can pass to the GithubCorner instance:

Property Name Type Default Value Description
href String '/' The link to your project page
size Number or String 80 The width and height of the banner
direction String 'right' Whether the banner shows up on the right or left
octoColor String '#fff' The CSS color of the Octocat
bannerColor String '#151513' The CSS color of the banner
ariaLabel String 'Open GitHub project' The aria-label for a11y support
className String undefined Additional class names to be merged with the github-corner default
svgStyle Object undefined Custom styles to apply to the main svg element

Any additional props will be added to the <a /> tag that is rendered. For instance, you can do:

<GithubCorner style="display:none" />

and the style attribute will be rendered (which will hide the element).

Links

License

Copyright (c) 2015 skratchdot
Licensed under the MIT license.

More Repositories

1

open-golang

Open a file, directory, or URI using the OS's default application for that object type. Optionally, you can specify an application to use.
Go
757
star
2

react-bootstrap-daterangepicker

A date/time picker for react (using bootstrap). This is a react wrapper around the bootstrap-daterangepicker project.
JavaScript
477
star
3

random-useragent

Get a random user agent (with an optional filter to select from a specific set of user agents).
JavaScript
233
star
4

elasticsearch-tools

A collection of elasticsearch command line tools for doing things like bulk importing/exporting and exporting/importing mappings.
JavaScript
189
star
5

react-bootstrap-multiselect

A multiselect component for react (with bootstrap). This is a react port of bootstrap-multiselect.
JavaScript
119
star
6

color-blind

Simulate color blindness by converting RGB hex codes.
JavaScript
94
star
7

random-seed

GRC's UHE PRNG in node (Ultra-High Entropy Pseudo-Random Number Generator by Gibson Research Corporation)
JavaScript
91
star
8

color-harmony

Create color scales by rotating hue
JavaScript
80
star
9

github-code-search.user.js

A user script that adds a search box to repository pages which allows you to search the code in that repository.
JavaScript
53
star
10

github-enhancement-suite

A collection of userscripts specific to Github
JavaScript
43
star
11

open-electribe-editor

Open Electribe Editor (formerly known as ESX Wave Organizer) is a program that allows you to organize, edit, and create .esx files for the Korg ESX-1.
43
star
12

ble-midi

A Bluetooth Low Energy MIDI library written in javascript
JavaScript
39
star
13

audio-sort

A webpage to visualize and audibilize sorting algorithms using javascript.
JavaScript
39
star
14

mesh

An extended shell for MongoDB
JavaScript
37
star
15

audio-editor

An audio editor built with React
JavaScript
35
star
16

npm-dview

Compare current package.json dependency version numbers with latest remote version number.
JavaScript
30
star
17

mongodb-schema

A schema analysis tool for MongoDB
JavaScript
28
star
18

color-matrix

Apply filters to colors to simulate things like color blindness and night vision.
JavaScript
22
star
19

soundfont2mp3

soundfont2mp3 is a command line utility that lets you extract single note mp3s from soundfont files.
JavaScript
15
star
20

infinite-gradients

An HTML experiment for generating randomly created CSS3 gradients (both linear and radial)
JavaScript
12
star
21

colorify

a collection of color tools
JavaScript
12
star
22

audio-grid

A javascript port of the great Tone Matrix tool by Andre Michelle
JavaScript
10
star
23

color-palette

Get a color palette from a uri using phantomjs and color-thief
JavaScript
10
star
24

github-repo-filter-info.user.js

A user script to display some additional info below the repository filter on a user's main GitHub page.
JavaScript
9
star
25

github-get-missing-descriptions.user.js

If there are missing descriptions on a Github profile page, a button will be added. When clicked, ajax requests will be made to grab the descriptions.
JavaScript
8
star
26

github-repo-counts.user.js

A user script to display repo counts when browsing Github repository pages.
JavaScript
7
star
27

color-stats

Generate color information based off of the hash of any object (or a valid color string)
JavaScript
7
star
28

github-pull-request-links.user.js

A user script to "linkify" the to/from branches on Pull Request pages.
JavaScript
6
star
29

amd-to-commonjs-codemod

A codemod to transform amd style includes into commonjs includes
JavaScript
6
star
30

object-path-set

set values in javascript objects by specifying a path
JavaScript
5
star
31

skratchdot.com

source code for skratchdot.com
HTML
5
star
32

sox.js

An emscripten port of sox for use in the browser and node
JavaScript
5
star
33

Git-Diff-Build-Script

A shell script to create "deploy" and "restore" folders based off of a git diff of 2 branches.
Shell
5
star
34

binary-format

a typescript library for reading and writing binary files to and from plain javascript objects
TypeScript
5
star
35

vagrant-open-electribe-editor

a vagrant box with open electribe editor installed on it
Shell
5
star
36

object-path-get

get values from javascript objects by specifying a path
JavaScript
4
star
37

color-quantize

Convert colors to websafe / websmart values
JavaScript
4
star
38

random-picker

Randomly pick an item from a set (using the specified probabilities).
JavaScript
4
star
39

react-file-processor

A React component for choosing files
JavaScript
4
star
40

github-fork-count.user.js

A user script to display the fork count underneath the "public" repo count on a user's main GitHub page.
JavaScript
3
star
41

philharmonia-samples

A mirror of the samples from: http://www.philharmonia.co.uk/explore/make_music
3
star
42

esx-files

a collection of esx files
HTML
3
star
43

browsercheck

a tool to check your scripts for browser compatibility
TypeScript
3
star
44

get-object-type

get the type of a javascript object
JavaScript
3
star
45

riff-wav-for-java

This EMF based project was created to allow the reading and writing of .wav files in Java. It attempts to read in well-known RIFF chunks, and provide an API for reading/manipulating those chunks.
Java
3
star
46

sox

A mirror of the sox codebase: https://sourceforge.net/p/sox/code/ci/master/tree/
C
3
star
47

js-playground

benchmark js snippets in a web worker
JavaScript
2
star
48

mongodb-flatten

The flatten() function provides a way to flatten documents into id/key/value pairs.
JavaScript
2
star
49

timbre.soundfont.js

play soundfont urls using timbre.js
JavaScript
2
star
50

github-gh-pages-link.user.js

If a repository has a gh-pages branch, then this will add links to the Github Page, as well as the gh-page source code.
JavaScript
2
star
51

audio-automator

A better way to change AudioParam values
JavaScript
2
star
52

github-editor-theme.user.js

Add a "theme" dropdown when editing files in the Github UI.
JavaScript
2
star
53

svg-react-experiments

A collection of a svg experiments using React
HTML
2
star
54

stats-collector

Collect stats about numbers
JavaScript
2
star
55

mongodb-wild

Adds a wildcard search to the mongodb shell
JavaScript
2
star
56

vagrant-elasticsearch

a vagrant box with elasticsearch tools installed
HTML
2
star
57

framecapture

Take a screenshot of a portion of your screen, and add a border to it in one swoop.
Shell
1
star
58

help.github.com

GitHub help guides
JavaScript
1
star
59

free-midi

a collection of mp3s generated by soundfont2mp3 (see: https://code.google.com/archive/p/free-midi/)
JavaScript
1
star
60

code

a dumping ground for random code snippets and miscellaneous projects
JavaScript
1
star
61

w3c-html-elements.user.js

A user script to display additional information for each html element listed on the W3C elements page.
JavaScript
1
star
62

storybook-7-issue

a reproduction of a potential storybook v7 issue
TypeScript
1
star
63

github-twitter-link.user.js

Adds a twitter link on Github profile pages if a corresponding user name exists at Twitter.
JavaScript
1
star
64

list-tool

a simple web application to compare lists
JavaScript
1
star
65

domFormat

domFormat is a simple javascript library to get DOM nodes as formatted/pretty strings.
JavaScript
1
star
66

grunt-init-react

grunt-init template for a very basic react project
JavaScript
1
star
67

basecamp-search-all.user.js

A user script that displays a "search all projects" form in the header of BaseCamp pages. It only displays when logged in.
JavaScript
1
star
68

skratchdot-codemods

a collection of utility codemods
JavaScript
1
star
69

audio-generation-loss

Evaluating lossless/lossy audio compression and generation loss
JavaScript
1
star
70

bytebeat

a site for live coding bytebeat
TypeScript
1
star
71

rockbox-theme-classic-v2

A Rockbox Theme for the Sansa Clip+
1
star
72

audio-files

a collection of test audio files for my web audio projects
HTML
1
star
73

mongodb-distinct-types

Similar to the db.myCollection.distinct() function, distinctTypes() will return "types" rather than "values"
JavaScript
1
star
74

array-any-index

get values from an array using any index: negative or float
JavaScript
1
star
75

greasemonkey-membase-view-top-key-values

A GreaseMonkey script that linkifies the list of top keys in the Membase admin console.
JavaScript
1
star