This badge-maker-service
is designed for customized badges which are not provided by simpleicons.org
or other services. For example, somebody may want to make unique badges for schools, clubs, or events. In this sense, this service make it possible to make customized badge with special icon, text and color.
- Prepare query for
logo
, name
, color
.
Query |
DType |
logo |
string |
name |
string |
color |
string |
- Complete below tag.
<img src="https://github-badge-maker.herokuapp.com/badge?logo=likelion&name=Likelion&color=232F3E"/>
- Prepare
.svg
file.
- Choose
Data URI
option at Dropbox menu.
- Encode the
.svg
file into base64
.
- Put the encoded
base64
file in src/badge/assets
folder.
- Add script to read asset file.
switch(logo) {
...
case 'queryName':
var logoDir = `./src/badge/assets/fileName.txt`;
break;
...
}