browser-friendly frontend :3
This commit is contained in:
parent
bac3204572
commit
6bd7379df3
5 changed files with 259 additions and 46 deletions
42
views/index.html
Normal file
42
views/index.html
Normal file
|
@ -0,0 +1,42 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Minecraft Server Query</title>
|
||||
<link href="style/index.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1><a href="/">Crafty McStatusFace</a></h1>
|
||||
</header>
|
||||
<hr/>
|
||||
<main>
|
||||
<p>
|
||||
You can use this website to retrieve query information from a Minecraft server!
|
||||
</p>
|
||||
<p>
|
||||
For more information, see <a href="https://minecraft.wiki/w/Query">https://minecraft.wiki/w/Query</a>.
|
||||
</p>
|
||||
|
||||
<form action="/" method="GET">
|
||||
<label for="s">Server Address</label>
|
||||
<input type="text" name="s" value="" placeholder="e.g. mc.bliss.town or 104.17.17.42">
|
||||
<br/>
|
||||
<button type="submit">Check Status</button>
|
||||
</form>
|
||||
|
||||
<p>
|
||||
Alternatively, you can cURL this website to get a raw JSON response:
|
||||
</p>
|
||||
|
||||
<pre><code>curl 'https://{{host}}?s=<server address>'</code></pre>
|
||||
|
||||
{{response}}
|
||||
</main>
|
||||
<hr/>
|
||||
<footer>
|
||||
<em>made with <span aria-label="love">♥</span> by ari, 2025. <a href="https://git.arimelody.me/ari/mcstatusface" target="_blank">source</a></em>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue