Compare commits

...

2 Commits

Author SHA1 Message Date
59fbfb685d Merge pull request 'grid layout' (#2) from grid into main
Reviewed-on: #2
2025-08-16 12:15:31 -04:00
439d555979 grid layout 2025-08-16 12:14:11 -04:00
2 changed files with 26 additions and 67 deletions

View File

@@ -3,13 +3,13 @@
//Offline servers will splash error text. That is why error_reporting(0); is set.
include('minecraft_status.php');
$ServerList[1]=new Server('Server 1', 'kokorogamers.com', 35566);
$ServerList[2]=new Server('Server 2', 'kokorogamers.com', 35567);
$ServerList[3]=new Server('Server 3', 'kokorogamers.com', 35568);
$ServerList[4]=new Server('Server 4', 'kokorogamers.com', 35569);
$ServerList[5]=new Server('Wonderbit', 'wonderbit.xyz', 25500);
$ServerList[6]=new Server('Blockgame', 'mc.blockgame.info', 25565);
$ServerList[1]=new Server(NAME:'Server 1', HOST:'kokorogamers.com', PORT:35566);
$ServerList[2]=new Server(NAME:'Server 2', HOST:'kokorogamers.com', PORT:35567);
$ServerList[3]=new Server(NAME:'Server 3', HOST:'kokorogamers.com', PORT:35568);
$ServerList[4]=new Server(NAME:'Server 4', HOST:'kokorogamers.com', PORT:35569);
$ServerList[5]=new Server(NAME:'Wonderbit', HOST:'wonderbit.xyz', PORT:25500);
$ServerList[6]=new Server(NAME:'Blockgame', HOST:'mc.blockgame.info', PORT:25565);
function displayserver($s){
$status = new ServerStatusQuery();
@@ -34,27 +34,27 @@
<html>
<head>
<title>Minecraft Server Status</title>
<link rel="stylesheet" href="styles.css?v=<?php echo time();?>">
<style>.info{vertical-align:top; padding:25px 0 25px 0; width:50%;}</style>
<style>
html,body {background-color:#222; color:#CCC; margin:0;}
h1,h2,h3{color:#EFEF88;}
.center{width:50vw; margin:auto;}
.container{display: grid; grid-template-columns: auto auto;}
.content{margin-right: 60px;}
</style>
</head>
<body>
<div align=center><div style='width:50vw;' align=left>
<br><br>
<div class="banner">
<h1>Minecraft Server Status</h1>
</div>
<table style='border-spacing: 30px;'><tr>
<td class='info'><?php displayserver(1); ?></td>
<td class='info'><?php displayserver(2); ?></td>
</tr><tr>
<td class='info'><?php displayserver(3); ?></td>
<td class='info'><?php displayserver(4); ?></td>
</tr><tr>
<td class='info'><?php displayserver(5); ?></td>
<td class='info'><?php displayserver(6); ?></td>
</tr></table>
<br><br>
<div class='center'>
<br><br>
<h1>Minecraft Server Status</h1>
<div class='container'>
<div class='contnent'><?php displayserver(1); ?></div>
<div class='contnent'><?php displayserver(2); ?></div>
<div class='contnent'><?php displayserver(3); ?></div>
<div class='contnent'><?php displayserver(4); ?></div>
<div class='contnent'><?php displayserver(5); ?></div>
<div class='contnent'><?php displayserver(6); ?></div>
</div>
<br><br>
</div>
</body>
</html>

View File

@@ -1,41 +0,0 @@
h1{color:#EFEF88;}
h2{color:#EFEF88;}
a:link{color:#8888EF;}
a:visited{color:#8888EF;}
a:hover{color:#8888EF;}
a:active{color:#8888EF;}
body {background-color:#222; color:#CCC; margin:0;}
.banner{display:block;}
.banner img {
float: left;
width: 100px;
height: 100px;
}
.banner h1 {
position: relative;
top: 18px;
left: 10px;
}
.banner h2 {
position: relative;
top: 2px;
left: 10px;
}
.banner h3 {
color:#EFEF88;
position: relative;
top: 2px;
left: 10px;
}
.banner a:link{text-decoration: none;position: relative;}
.banner a:visited{text-decoration: none;position: relative;}
.banner a:hover{text-decoration: none;position: relative;}
.banner a:active{text-decoration: none;position: relative;}
.notice{display: block;}
.notice{background-color: #EFEF88;color: #000000;}
.warning{display: block}
.warning{background-color: #efaf88;color: #000000;}
input{background-color: #555555; color: #CCC;}
textarea{background-color: #555555; color: #CCC;}
select{background-color: #555555; color: #CCC;}