Code Monkey home page Code Monkey logo

fork-corner's Introduction

Fork Corner Featured on Openbase

created by release star Size NPM jsdelivr license

Banner

A modern and global open source fork corner label for your project's landing page.

What is Fork Corner

A modern approach to the old style of adding "Fork Me" ribbon or label in an open source project's landing page.

๐Ÿ˜Ž Demo

Visit fork-corner.warengonzaga.com for the demo. Watch the video demo via Waren Gonzaga's YouTube Channel.

Fork corner generator page coming soon...

๐Ÿ“– Documentation

The complete documentation can be found here:

docs

โšก Features

Modern Design

The Fork Corner design inspired by Tholman's GitHub Corners, I made my own version by adding more control to it using CSS and JS. Instead of using SVG I use icons from Devicons.

Responsive

Fork Corner is responsive to any screen sizes. Focus on your landing page while fork corner do the rest of responsive design.

Customizable

It uses class to quickly customize your Fork Corner. It allows you to change themes, animations, and which want you want to position your Fork Corner. You can edit the source file if you want more advance customization.

Lightweight

Fork Corner is very lightweight and optimized so don't worry about the performance of your landing page.

CSS3 Animations

Fork Corner author is a core contributor to the popular animate.css. You can customize your Fork Corner animations by using utility classes just like using animate.css utility classes.


๐Ÿ“ฆ Installation

Install with npm:

$ npm i fork-corner --save

or add it directly to your webpage using a CDN:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-corner/dist/fork-corner.min.css">
<script src="https://cdn.jsdelivr.net/npm/fork-corner/dist/fork-corner.min.js" defer></script>

๐Ÿ•น๏ธ Usage

After installing Fork Corner simply add this one line of code to the <body> of your webpage:

<a href="https://github.com/user/repo" target="_blank" id="fork-corner" class="fork-corner fc-pos-tr fc-animate fc-theme-git"></a>

Fork Corner uses fork-corner as ID to identify which element should be use in creating the fork corner. The class fork-corner is use to identify which element to be controlled by the class. We have few important classes to quickly customize the fork corner's look and feel.

Position Class

Class to position the Fork Corner on your webpage. By default, the position is top right.

Class Position
fc-pos-tr Top, Right
fc-pos-tl Top, Left
fc-pos-tr-sticky Top, Right, Sticky
fc-pos-tl-sticky Top, Left, Sticky
fc-pos-br Bottom, Right (sticky by default)
fc-pos-bl Bottom, Left (sticky by default)

Animation Class

Class to animate the Fork Corner on your webpage. By default, when you hover your mouse to the icon it will rotate.

Class Animation
fc-animate Icon rotation on cursor hover
fc-animate-slideup Icon slide up on cursor hover
fc-animate-slidedown Icon slide down on cursor hover
fc-animate-grow Icon grow on cursor hover
fc-animate-shrink Icon shrink on cursor hover
fc-animate-fade Icon fade out on cursor hover

More animation will come, have animation in mind? Contribute today!

Theme Class

Class to select pre-defined theme or style you want to use. By default, it will show the official Git logo.

Class Theme/Brand
fc-theme-animate Git Logo
fc-theme-github GitHub Logo
fc-theme-gitlab Gitlab Logo
fc-theme-bitbucket Bitbucket Logo

More theme and brand will come, have one in mind? Contribute today!

Size Class

Class to select pre-defined corner size. By default, it is set as 200px. To set the default size just don't add the size class.

Class Corner Size
fc-size-small 150px corner size
fc-size-medium 250px corner size
fc-size-large 300px corner size

If you're looking for specific size please edit the source file and build it.

๐ŸŽฏ Contributing

Contributions are welcome, create a pull request to this repo and I will review your code. Please consider to submit your pull request to the dev branch. Thank you!

Read the project's contributing guide for more info.

๐Ÿ’ฌ Discussions

For any questions, suggestions, ideas, or simply you want to share your experience in using this project, feel free to share and discuss it to the community!

๐Ÿ› Issues

If you're facing a problem in using Fork Corner please let me know by creating an issue here. I'm here to help you!

๐Ÿ€ Sponsors and Supporters

BuyMeaCoffee Vercel CircleCI GitBook Digital Ocean Deepware NOWPayments StackHawk

Love what I do? Send me some coffees!

Your coffee donation and support will help me to continue working on open-source projects like this.

๐ŸŒ Community

Join to my growing tech community and get the latest updates!

community community

๐Ÿ“‹ Code of Conduct

Read the project's code of conduct.

๐Ÿ“ƒ License

Fork Corner is licensed under The MIT License.

๐Ÿ“ Author

Fork Corner is created by Waren Gonzaga, with the help of awesome contributors.


๐Ÿ’ป Made with ๐Ÿ’– and โ˜• by Waren Gonzaga with YHWH ๐Ÿ™ | Citizen of Heaven

fork-corner's People

Contributors

junsantilla avatar warengonzaga 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

Watchers

 avatar  avatar  avatar  avatar

fork-corner's Issues

Icons not showing

I'm seeing some of my landing pages missing icons. Will investigate the issue.

use SVG instead of PNG for themes

Convert the current setup to SVG instead of using PNG for the icons. Also move the themes from DOM to normal CSS so no need to reload when changing a theme.

migrate to snowpack

Since optimization is my priority, I will try to implement webpack in the current version so the JS and CSS will be more compact for browser use.

unwanted content rotation issue

If you load the page quickly the whole content will rotate a moment before showing it on correct position. Kind of weird but I will still investigate on this issue. If you can fix this please let me know so I can assign this issue to you!

More Animations

I will add the following animations.

  • opposite rotation
  • slide up animation
  • bounce animation

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.