🚀 Init
This commit is contained in:
commit
46d260516f
41 changed files with 2813 additions and 0 deletions
27
README.md
Normal file
27
README.md
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Netweak Badges
|
||||
|
||||
Netweak badges, built for Astro.
|
||||
|
||||
> [!NOTE]
|
||||
> Your Astro website must output to Server-Side Rendering.
|
||||
|
||||
## Usage
|
||||
|
||||
Import component:
|
||||
```jsx
|
||||
import {SmallBadge} from "@sudovanilla/netweak-badges"
|
||||
```
|
||||
|
||||
Create badge for overall status:
|
||||
```jsx
|
||||
<SmallBadge Page="status.example.org"/>
|
||||
```
|
||||
|
||||
Create badge for specific service:
|
||||
```jsx
|
||||
<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`:
|
||||
|
||||

|
Loading…
Add table
Add a link
Reference in a new issue