Skip to content

Commit

Permalink
fix: respnsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
Raj Nandan Sharma authored and Raj Nandan Sharma committed Nov 15, 2024
1 parent 0f5dd0f commit a9602f5
Show file tree
Hide file tree
Showing 11 changed files with 313 additions and 364 deletions.
19 changes: 0 additions & 19 deletions config/monitors.example.yaml

This file was deleted.

50 changes: 0 additions & 50 deletions config/site.example.yaml

This file was deleted.

14 changes: 11 additions & 3 deletions docs/embed.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,18 @@ Here is an example
```html
<script
async
src="https://kener.ing/embed-okbookmarks/js?theme=light&monitor=http://localhost:3000/embed-okbookmarks"
src="https://kener.ing/embed-okbookmarks/js?theme=light&monitor=https://kener.ing/embed-okbookmarks"
></script>
```

### Parameters

You can pass the following parameters to the embed code

- `theme`: You can pass `light` or `dark` theme
- `monitor`: The monitor url
- `bgc`: Background color of the monitor. Only supports hex color codes. DO NOT include the `#` symbol

Replace `[hostname]` with your kener hostname and `[tag]` with your monitor tag.

## Iframe
Expand All @@ -48,7 +56,7 @@ Here is an example

```html
<iframe
src="http://localhost:3000/embed-okbookmarks?theme=light"
src="https://kener.ing/embed-okbookmarks?theme=light"
width="100%"
height="200"
allowfullscreen="allowfullscreen"
Expand All @@ -64,4 +72,4 @@ Replace `[hostname]` with your kener hostname and `[tag]` with your monitor tag.
You can pass the following parameters to the embed code

- `theme`: You can pass `light` or `dark` theme
- `monitor`: The monitor url
- `bgc`: Background color of the monitor. Only supports hex color codes. DO NOT include the `#` symbol
4 changes: 4 additions & 0 deletions src/kener.css
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ section {
.monitors-card .monitor:last-child {
border-bottom: none;
}
.monitors-card.embed .monitor {
padding: 0em 0.87em 0.875em 0.87em;
border-bottom: none;
}

/*Tag Color*/
.tag-maintenance {
Expand Down
Loading

0 comments on commit a9602f5

Please sign in to comment.