No description
api | ||
src | ||
test | ||
.gitignore | ||
index.ts | ||
LICENSE | ||
package.json | ||
README.md | ||
tsconfig.json |
Pingweak Badges
Pingweak badges, built for Astro.
Usage
Static
Using the API, you can get an image returned. SudoVanilla has a domain you can use.
Example for status.netweak.com
:
<img alt="Status" src="https://netweak.badges.sudovanilla.org/api/get/status.netweak.com"/>
Pattern:
https://netweak.badges.sudovanilla.org/api/get/STATUS_PAGE.EXAMPLE.ORG
SSR
Import component:
import {SmallBadge} from "@sudovanilla/netweak-badges"
Create badge for overall status:
<SmallBadge Page="status.example.org"/>
Create badge for specific service:
<SmallBadge Page="status.example.org" Service="2"/>
To assign it to a specific service, take a look at your JSON response and use the number assigned to the service under services
: