new file: Cargo.lock new file: Cargo.toml new file: html new file: loading_screen new file: log_screen new file: logged_in new file: main_screen new file: profile_customization new file: public_release new file: settings new file: sign_in new file: src/main.rs
64 lines
2.2 KiB
Plaintext
64 lines
2.2 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Minecraft Logs</title>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
</head>
|
|
<body class="bg-gray-100 flex justify-center items-center h-screen">
|
|
|
|
<div class="bg-white shadow-lg rounded-xl p-6 w-96 text-center">
|
|
<h2 class="text-2xl font-semibold text-gray-700">Minecraft Logs</h2>
|
|
|
|
<!-- Log Output -->
|
|
<div id="log-container" class="mt-4 p-2 h-48 overflow-auto bg-gray-200 rounded text-left text-sm text-gray-800 font-mono">
|
|
<p>[INFO] Initializing Minecraft...</p>
|
|
</div>
|
|
|
|
<!-- Stop & Back Buttons -->
|
|
<div class="mt-4 flex gap-2">
|
|
<button onclick="stopMinecraft()"
|
|
class="w-full bg-red-500 hover:bg-red-600 text-white font-bold py-2 px-4 rounded transition">
|
|
❌ Stop
|
|
</button>
|
|
<button onclick="goBack()"
|
|
class="w-full bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-2 px-4 rounded transition">
|
|
⬅ Back
|
|
</button>
|
|
</div>
|
|
|
|
<p class="mt-4 text-sm text-gray-500">Minecraft Launcher v1.0</p>
|
|
</div>
|
|
|
|
<script>
|
|
function addLog(message) {
|
|
const logContainer = document.getElementById("log-container");
|
|
const newLog = document.createElement("p");
|
|
newLog.innerText = message;
|
|
logContainer.appendChild(newLog);
|
|
logContainer.scrollTop = logContainer.scrollHeight;
|
|
}
|
|
|
|
function stopMinecraft() {
|
|
addLog("[ERROR] Minecraft process terminated.");
|
|
}
|
|
|
|
function goBack() {
|
|
window.location.href = "index.html"; // Back to launcher
|
|
}
|
|
|
|
// Simulating logs
|
|
setInterval(() => {
|
|
const messages = [
|
|
"[INFO] Loading assets...",
|
|
"[INFO] Connecting to server...",
|
|
"[WARN] High memory usage detected...",
|
|
"[INFO] Game launched successfully!",
|
|
];
|
|
addLog(messages[Math.floor(Math.random() * messages.length)]);
|
|
}, 2000);
|
|
</script>
|
|
|
|
</body>
|
|
</html> |