GithubHelp home page GithubHelp logo

2ykwang / solvedac-readme-badge Goto Github PK

View Code? Open in Web Editor NEW
14.0 1.0 3.0 186 KB

백준 solvec.ac 사용자의 프로필 카드, 뱃지를 생성합니다

Home Page: https://solvedac-readme-badge.vercel.app

Python 81.12% CSS 2.10% JavaScript 2.72% HTML 14.06%
github readme-badges readme-card baekjoon solved-ac flask python solvedac

solvedac-readme-badge's Introduction

solvedac-readme-badge

solved.ac 유저 정보를 이용해 README.md에 사용 가능한 뱃지 또는 카드를 만들어주는 프로젝트 입니다.


뱃지 생성하기

TOC


사용법

user= 값에 사용자의 solvedac 계정을 입력하여 사용합니다.

  • Badge
[![solvedac badge](https://solvedac-readme-badge.vercel.app/api/v1/badge?user=baekjoon_id_here)](https://github.com/2ykwang/solvedac-readme-badge)
  • Badge (compact)
[![solvedac badge](https://solvedac-readme-badge.vercel.app/api/v1/badge?user=baekjoon_id_here&compact=1)](https://github.com/2ykwang/solvedac-readme-badge)

설치

$ git clone https://github.com/2ykwang/solvedac-readme-badge .
$ poetry install

# make .env
$ touch .env
$ echo API_HOST="solved.ac" >> .env

$ flask run

뱃지

ruby diamond platinum
ruby diamond platinum
gold silver bronze
hun3555 2ykwang leaisrevolution

설정 가능한 변수

매개변수를 이용해 뱃지 또는 카드를 사용자 정의할 수 있습니다.

e.g) badge?user?(parameter)=(value)

매개변수 타입 설명 기본 값
user string solved.ac 에 등록된 아이디를 입력합니다. None username,2ykwang
theme string 색 테마를 설정합니다. default 테마 항목 참고 default, dark, ...
compact boolean 뱃지의 모양을 설정합니다 true true or false
size string 뱃지 또는 카드의 크기 입니다. medium 사이즈 항목 참고 small or medium or large
back_color hex color 배경 색을 설정합니다. 기본값은 테마 색을 따릅니다. theme Hex Color code 333,939584
use_back_color boolean 배경색을 사용할지 설정합니다. true true or false
common_color hex color 메인 글씨색을 설정합니다. 기본값은 테마 색을 따릅니다. theme Hex Color code 333,efefef
sub_color hex color 보조 글씨색을 설정합니다. 기본값은 테마 색을 따릅니다. theme Hex Color code 333,efefef
border_color hex color 테두리 색을 설정합니다. 기본값은 테마 색을 따릅니다. theme Hex Color code 333,efefef
use_border boolean 테두리를 사용할지 설정합니다. True true or false
use_shadow boolean 그림자를 사용할지 설정합니다. True true or false

모양

compact 파라미터를 사용해 모양을 설정할 수 있습니다.

e.g) compact=true or compact=false

compact
True preview
False (default) preview

기본값은 false 입니다.


테마

theme 파라미터를 사용해 테마를 설정할 수 있습니다.

e.g:) theme=onedark, theme=dark, ...

default swift dark
default default default
onedark github-dark
onedark onedark

사이즈

size 파라미터를 사용해 사이즈를 설정 할 수 있습니다.

입력 가능한 값은 small, medium, large 입니다.

미리보기
small(default) small
medium medium
large large

기본값은 small 입니다.


solvedac-readme-badge's People

Contributors

2ykwang avatar

Stargazers

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

Watchers

 avatar

solvedac-readme-badge's Issues

깃허브에서 뱃지가 Unknown으로 표시됨

오늘 아침까지 괜찮았던 것 같습니다.
큰 뱃지의 유저 레이팅이 Unknown으로 바뀌었고,
Compact 버전에서도 U로 바뀌었습니다.
당연히 큰 뱃지에서 다른 유저 정보도 나오지 않습니다.
api 변경이 있나 해서 노션에 넣어봤는데 노션에서는 정상 작동 합니다.
깃허브에서 뭔가 업데이트를 한 듯 한데 확인 부탁드립니다.

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.