From c2c06223cdd39df0a8b06b12cb25ba5614b34437 Mon Sep 17 00:00:00 2001 From: gmrrh Date: Thu, 9 Jan 2025 19:24:35 +0100 Subject: [PATCH] Update Status Update the server status, with the better https://mcstatus.io API --- index.html | 66 +++++++++++-------------- static/css/style.css | 113 ++++++++++++++++++------------------------- 2 files changed, 76 insertions(+), 103 deletions(-) diff --git a/index.html b/index.html index dac52f2..fa063ff 100644 --- a/index.html +++ b/index.html @@ -60,6 +60,18 @@ This Website was developed by TheErrorExe for Blockattack. TheErrorExe is and wi

Verbinde dich jetzt: blockattack.fun

Jetzt die neuesten Features wie das Claimen von Gebieten ausprobieren!

+
+

Server Status

+
Lade Serverstatus...
+ +
+ Server wird überprüft... +
+

Warum Blockattack?

@@ -115,69 +127,50 @@ This Website was developed by TheErrorExe for Blockattack. TheErrorExe is and wi href="https://www.youtube.com/@DrMifo">Dr Mifo auf YouTube -
-

Server Status

-

Lade Serverstatus...

- - - -
@@ -198,7 +191,6 @@ This Website was developed by TheErrorExe for Blockattack. TheErrorExe is and wi
-











diff --git a/static/css/style.css b/static/css/style.css index 714efea..b2703eb 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -206,90 +206,71 @@ input[type="submit"]:hover { } /* Server Status Bereich */ -#online-players { - margin-top: 20px; -} - -#players-list { - display: flex; - flex-wrap: wrap; -} - -#players-list .player { - margin: 10px; - text-align: center; -} - -#players-list .player img { - border-radius: 50%; -} - -#players-list .player span { - display: block; - margin-top: 5px; - font-weight: bold; -} - #server-status { - margin-top: 40px; + font-family: 'Arial', sans-serif; padding: 20px; - background-color: #f4f4f4; - border-radius: 8px; - box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); + background-color: rgba(0, 0, 0, 0.3); + border-radius: 10px; + border: 2px solid #ccc; + max-width: 600px; + margin: 0 auto; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); +} + +#status-message { text-align: center; + font-size: 20px; + margin-bottom: 20px; } -#server-status h2 { - font-size: 2rem; - color: #333; - margin-bottom: 15px; +.online { + color: #28a745; } -#status-message { - font-size: 1.5rem; - color: #333; - font-weight: bold; +.offline { + color: #dc3545; } -#server-status p { - font-size: 1rem; +#server-info { + padding: 20px; + border-radius: 8px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); +} + +#server-info p { + text-align: center; + font-size: 16px; + margin: 10px 0; +} + +#server-info strong { color: #555; - margin-top: 10px; } -#server-ip, -#players-online, -#motd { - font-size: 1.2rem; - color: #333; +#loading-spinner { + text-align: center; + font-size: 18px; } -#server-status p a { - color: #007bff; - text-decoration: none; +.loader { + border: 4px solid #f3f3f3; + border-top: 4px solid #3498db; + border-radius: 50%; + width: 30px; + height: 30px; + animation: spin 1s linear infinite; } -#server-status p a:hover { - text-decoration: underline; +@keyframes spin { + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } } -/* Farbliche Unterschiede für den Status */ -#status-message { - font-size: 1.5rem; - color: #ffffff; - padding: 10px; - border-radius: 5px; -} - -#status-message.online { - background-color: #28a745; - /* Grün für Online */ -} - -#status-message.offline { - background-color: #dc3545; - /* Rot für Offline */ -} /* Stil für den TNT-Block */ .tnt-block {