Initial commit

This commit is contained in:
ciam 2024-03-14 17:22:46 +01:00
commit 653bd4773e
5 changed files with 84 additions and 0 deletions

10
LICENSE Normal file
View file

@ -0,0 +1,10 @@
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.
In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <http://unlicense.org/>

3
README.md Normal file
View file

@ -0,0 +1,3 @@
# craft.inamatrix.xyz
The craft.inamatrix.xyz website

8
favicon.svg Normal file
View file

@ -0,0 +1,8 @@
<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="64" height="64" fill="black"/>
<path d="M7.375 8.375V55.625H12.4375V59H4V5L12.4375 5V8.375H7.375Z" fill="white"/>
<path d="M56.634 8.375V55.625H54.9465H51.5715V59H60.009V5L51.5715 5V8.375H56.634Z" fill="white"/>
<path d="M32.2852 32.2069L12.9995 21.1752L32.2852 10.1436L51.571 21.1752L32.2852 32.2069Z" fill="white"/>
<path opacity="0.6" d="M32.2866 53.011V32.2084L51.5723 21.1768V41.9794L32.2866 53.011Z" fill="white"/>
<path opacity="0.75" d="M32.2852 53.011L12.9995 41.9794V21.1768L32.2852 32.2084V53.011Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 641 B

63
index.html Normal file
View file

@ -0,0 +1,63 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="Craft in a Matrix is a semi-anarchy Minecraft server.">
<meta name="keywords" content="minecraft, minecraft server, craft in a matrix, deepslate, voxelmp, smp, mc"/>
<title>Craft in a Matrix</title>
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<style>body{background-color:black;color:white;font-family:"Montserrat", sans-serif;background-repeat:no-repeat;background-attachment:fixed;background-size:cover;background-position:center}center{text-align:center;top:50%;left:50%;position:absolute;transform:translate(-50%,-50%)}a{color:#1e6bb8;text-decoration:none}.btn{border:1px solid rgba(255, 255, 255, 0.2);padding:10px 24px;text-align:center;color:white;text-decoration:none;display:inline-block;font-size:20px;border-radius:0.3rem;margin-bottom:15px;transition:color 0.7s, background-color 0.7s, border-color 0.7s;position:relative}.btn:hover{background-color:white;border-color:white;color:black}.logo{max-width:100%;max-height:auto}.tooltip .tooltiptext{visibility:hidden;width:140px;background-color:black;color:white;border:1px solid white;text-align:center;border-radius:6px;padding:5px;position:absolute;z-index:1;bottom:125%;left:50%;margin-left:-75px;opacity:0;transition:opacity 0.3s}.tooltip:hover .tooltiptext{visibility:visible;opacity:1}</style>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.2.0/css/fork-awesome.min.css" integrity="sha256-XoaMnoYC5TH6/+ihMEnospgm0J1PM/nioxbOUdnM8HY=" crossorigin="anonymous">
</head>
<body>
<center>
<header>
<img class="logo" src="logo.webp" width="350px" alt="Craft in a Matrix"></img>
<h2>A semi-anarchy Minecraft server.</h2>
</header>
<a class="btn tooltip" onclick="copyIP()" onmouseout="resetTooltip()"><i class="fa fa-clipboard" aria-hidden="true"></i> <u style="border-bottom: 2px dotted #fff;text-decoration: none;"><b>craft.inamatrix.xyz</b></u><span class="tooltiptext" id="tooltiptext"></span></a>
<nav>
<a class="btn" href="https://matrix.to/#/#minecraft:chatinamatrix.xyz"><i class="fa fa-matrix-org" aria-hidden="true"></i> Matrix chat</a>
<a class="btn" href="https://pad.envs.net/sheet/#/2/sheet/edit/eG0nqXLNUmDBUC-rwwqYQnSL/"><i class="fa fa-map-marker" aria-hidden="true"></i> Coordinates</a>
</nav>
<p id="serverInfo">Version: Java 1.20.4</p>
</center>
<script>
function copyIP() {
navigator.clipboard.writeText("craft.inamatrix.xyz").then(() => {
const tooltip = document.getElementById('tooltiptext');
tooltip.textContent = 'Copied!';
});
}
function showTooltip() {
const tooltip = document.getElementById('tooltiptext');
tooltip.textContent = 'Click to copy';
}
function resetTooltip() {
const tooltip = document.getElementById('tooltiptext');
tooltip.textContent = 'Click to copy';
}
function fetchPlayerCount() {
fetch('https://mc-api.co/v1/ping/craft.inamatrix.xyz')
.then(response => response.json())
.then(data => {
const serverInfoElement = document.getElementById('serverInfo');
const playersOnline = data.players.online;
const playersMax = data.players.max;
const playerCountText = document.createTextNode(`${playersOnline}/${playersMax} players online | `);
serverInfoElement.prepend(playerCountText);
})
.catch(error => console.error('Error fetching player count:', error));
}
window.onload = fetchPlayerCount;
</script>
</body>
</html>

BIN
logo.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB