add ci and update site
All checks were successful
ci/woodpecker/push/netlify Pipeline was successful

This commit is contained in:
Adora Laura Kalb 2023-08-23 16:17:31 +02:00
parent 5c2eb47f45
commit 82096c62eb
Signed by: adoralaura
GPG key ID: 7A4552166FC8C056
4 changed files with 37 additions and 1 deletions

12
.woodpecker/netlify.yaml Normal file
View file

@ -0,0 +1,12 @@
steps:
deploy:
image: lauralani/netlify-cli:latest
pull: true
when:
- event: push
branch: main
secrets:
- NETLIFY_AUTH_TOKEN
- NETLIFY_SITE_ID
commands:
- netlify deploy --prod --dir ./

View file

@ -13,6 +13,13 @@
"whitelist": true, "whitelist": true,
"password": false "password": false
}, },
{
"id": 16,
"displayname": "Ark Survival Evolved",
"serverurl": "\"Kuschelzone\" im Serverbrowser",
"whitelist": false,
"password": true
},
{ {
"id": 3, "id": 3,
"displayname": "Teamspeak 3", "displayname": "Teamspeak 3",

View file

@ -1,5 +1,5 @@
const badgeurl = "https://uptime-kuma.lauka.net/api/badge/##/status?style=for-the-badge" const badgeurl = "https://uptime-kuma.lauka.net/api/badge/##/status?style=for-the-badge"
const template = document.getElementById("game-template") const template = document.getElementById("game-template").content
const serverdata = "/servers.json" const serverdata = "/servers.json"
var gamecontainer = document.getElementById("gamelist") var gamecontainer = document.getElementById("gamelist")
@ -15,6 +15,7 @@ async function populatePage() {
let url = badgeurl.replace("##", server.id) let url = badgeurl.replace("##", server.id)
clone.querySelector("#game-name").innerHTML = server.displayname clone.querySelector("#game-name").innerHTML = server.displayname
clone.querySelector("#game-badge").src = url clone.querySelector("#game-badge").src = url
clone.querySelector("#game-url").innerHTML = server.serverurl
clone.querySelector("#game-password").innerHTML = server.password ? "ja" : "nein" clone.querySelector("#game-password").innerHTML = server.password ? "ja" : "nein"
clone.querySelector("#game-whitelist").innerHTML = server.whitelist ? "ja" : "nein" clone.querySelector("#game-whitelist").innerHTML = server.whitelist ? "ja" : "nein"

View file

@ -53,3 +53,19 @@ body i {
.game-card { .game-card {
margin: 0 20px; margin: 0 20px;
} }
@media (max-width: 650px) {
body {
font-size: 1em;
}
.status-image {
display: block;
margin-left: 6px;
margin-top: 5px;
}
h2 {
margin-bottom: 7px;
}
}