🚀 Init

This commit is contained in:
Korbs 2025-03-07 17:16:54 -05:00
commit 46d260516f
Signed by: Korbs
SSH key fingerprint: SHA256:Q0b0KraMldpAO9oKa+w+gcsXsOTykQ4UkAKn0ByGn5U
41 changed files with 2813 additions and 0 deletions

27
README.md Normal file
View 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`:
![JSON Response](https://ocean.sudovanilla.org/media/images/Screenshot-From-2025-03-06-23-35-18.png)