- This is a
Qwik
migrate version of theskill-icons
project. - The
endpoint
is the same as the original project, but with additional query params.
GET
/icons
(get skill icons)
param data type type value description i
String
required
can be all
,js
, orhtml,css
name of icon(s) to be render, t
,theme
String
default: dark
icon theme to be light
ordark
perline
Int
default: 15
min: 1
max: 50
num icons per line gap
Int
default: 0
min: 0
max: 100
gap between icons p
,padding
Int
default: 0
min: 0
max: 100
padding around wrapper px
Int
default: 0
min: 0
max: 100
horizontal padding (will be overwritten when padding
is set)py
Int
default: 0
min: 0
max: 100
vertical padding (will be overwritten when padding
is set)
http code content-type response 200
image/svg+xml
400
application/json
{ msg: "You didn't specify any icons!" }
400
application/json
{ msg: '"theme" must be either "light" or "dark"' }
400
application/json
{ msg: '"perline" must be a number in range [1..50]' }
400
application/json
{ msg: '"gap" must be a number in range [0..100]' }
400
application/json
{ msg: '"padding" must be a number in range [0..100]' }
400
application/json
{ msg: '"px" must be a number in range [0..100]' }
400
application/json
{ msg: '"py" must be a number in range [0..100]' }
400
application/json
{ msg: "You didn't format the icons param correctly!" }
500
application/json
{ err: any }
http://localhost:5173/icons?i=html,css,js&theme=light&perline=5&gap=5&padding=10
- Run
yarn
to install the dependencies
yarn
- If you get error with
sharp
package, just follow the instruction or run this command
yarn add sharp --ignore-engines
- Just run
yarn build
and theicons.json
file will be generated in thepublic/icons
folder.
yarn build
- Deploy with Vercel
yarn deploy