Giter VIP home page Giter VIP logo

leetcode-badge-showcase's Introduction


Logo

LeetCode Badge Showcase

Showcase your LeetCode badges on your Github README page ๐Ÿคฉ
โœจ View Demo ยท ๐Ÿ› Report Bug ยท ๐Ÿ’๐Ÿฝ Request Feature

โญ Add to your README page โญ


Add the following line to your Github README.md page and replace {your-leetcode-username} โคต๏ธ

<img src="https://leetcode-badge-showcase.vercel.app/api?username={your-leetcode-username}" alt="LeetCode Badges"/>

Or even this way โคต๏ธ

![LeetCode Badges](https://leetcode-badge-showcase.vercel.app/api?username={your-leetcode-username})

For example, if your Leetcode username is "kevzpeter", add the following line:

![LeetCode Badges](https://leetcode-badge-showcase.vercel.app/api?username=kevzpeter)`

๐Ÿ‘‰๐Ÿผ Image not rendering? Simply refresh the page!

๐ŸŽจ THEMES ๐ŸŽจ

Want to spice up the look and feel of your badge showcase? You can choose your favorite among 16 different themes!

Simply add the theme parameter to the url like so:

<img src="https://leetcode-badge-showcase.vercel.app/api?username={your-leetcode-username}&theme={your-theme}" alt="LeetCode Badges"/>

light
light
dark
dark
github-dark
github-dark
monokai
monokai
tokyonight
tokyonight
nightowl
nightowl
onedark
onedark
shades-of-purple
shades-of-purple
dracula
dracula
cobalt2
cobalt2
sky
sky
beach
beach
purple-gang
purple-gang
mint
mint
leafy
leafy
black
black

โœ‚๏ธ FILTERS โœ‚๏ธ

Wanna only show a specific set of badges ? Add a filter parameter like so :

  • Competitive: &filter=comp
  • Daily Challenge: &filter=daily
  • Study Plan: &filter=study

๐Ÿ”ง Built With ๐Ÿ”ง


  • Next
  • React

(back to top)

๐Ÿ—๏ธ Set Up your own Server ๐Ÿ—๏ธ

  • Make sure you have Node.js installed
  • Clone the repository
  • Run npm i in the root directory
  • Run npm run dev to make sure everything's working fine
  • Replace BASEURL in utils/config.ts to the deployment url of your choice
  • Deploy to Vercel with the same deployment url
  • Head over to https://{your-vercel-deployment-url}/api?username={your-leetcode-username} to view the results
  • Oh, and make sure to update the links in your README file as well :P

๐Ÿ™Œ๐Ÿผ Contributing ๐Ÿ™Œ๐Ÿผ

If you wanna add your custom theme or suggest enhancements, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

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.