Skip to content

nebil/hypercat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hypercat

🔗 + :octocat: = an SVG-based octocat-flavored hyperlink to your GitHub repository.

Usage

To put a hypercat in a document, please follow these simple steps.

  1. Copy the hypercat.svg file into your project.

  2. Adapt the href value, and (maybe) the title one.

    <a xlink:href='https://github.com/<username>/<repository>'
      xlink:title='Check the source code on GitHub!'
      target='_top'>
      ...
    </a>
  3. Add the following line into your HTML document, after the opening <body> tag.
    (This is just one way—of a handful of different approaches—to embed an SVG file.
     You can learn more in this short tutorial—or maybe, you’d rather read a somewhat extended one.)

    <object data='hypercat.svg' type='image/svg+xml'></object>
  4. Finally, attach this CSS rule into your stylesheet.

    object[data='hypercat.svg'] {
      position: absolute;
        top: 0px;
      right: 0px;
    }

Design

This repository was inspired by Tim Holman’s approach.
I created a slightly different design, offering some round corners and a colorful animation. 🎨

You can check a live demo.

Credits

This little project was made possible with the help of

  • GitHub’s octocat,
  • the fresh and original design made by @tholman,
  • and Inkscape, the open-source vector graphics editor.

And the demo was built with normalize.css, highlight.js, and two aesthetic type families: Fira & Roboto.

License

Copyright © 2017, Nebil Kawas García
This project is subject to the terms of the Mozilla Public License.

About

:octocat: An octocat-flavored hyperlink to GitHub

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published