XCraft/sign_in
alterwain 495bcca71e new file: .gitignore
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
2025-03-11 14:44:21 +03:00

69 lines
2.8 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 Launcher - Login</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-gray-100 flex justify-center items-center h-screen">
<!-- Container -->
<div id="login-screen" class="bg-white shadow-lg rounded-xl p-6 w-96 text-center">
<h2 class="text-2xl font-semibold text-gray-700">Sign In</h2>
<!-- Username -->
<input type="text" placeholder="Username" class="mt-4 w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500">
<!-- Password -->
<input type="password" placeholder="Password" class="mt-3 w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500">
<!-- Sign In Button -->
<button onclick="showAccountSettings()"
class="mt-4 w-full bg-green-500 hover:bg-green-600 text-white font-bold py-2 px-4 rounded transition">
Sign In
</button>
<!-- Footer -->
<p class="mt-4 text-sm text-gray-500">Minecraft Launcher v1.0</p>
</div>
<!-- Account Settings Screen (Hidden by Default) -->
<div id="account-settings" class="bg-white shadow-lg rounded-xl p-6 w-96 text-center hidden">
<!-- User Avatar -->
<div class="flex flex-col items-center">
<img src="https://www.minecraft.net/etc.clientlibs/minecraft/clientlibs/main/resources/img/minecraft-creeper-face.jpg"
alt="User Avatar" class="w-16 h-16 rounded-full border-4 border-gray-300">
<h2 class="text-lg font-semibold mt-2 text-gray-700">Steve</h2>
</div>
<!-- Change Account Button -->
<button onclick="showLoginScreen()"
class="mt-4 w-full bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-2 px-4 rounded transition">
🔄 Change Account
</button>
<!-- Log Out Button -->
<button onclick="showLoginScreen()"
class="mt-3 w-full bg-red-500 hover:bg-red-600 text-white font-bold py-2 px-4 rounded transition">
🚪 Log Out
</button>
<!-- Footer -->
<p class="mt-4 text-sm text-gray-500">Minecraft Launcher v1.0</p>
</div>
<script>
function showAccountSettings() {
document.getElementById('login-screen').classList.add('hidden');
document.getElementById('account-settings').classList.remove('hidden');
}
function showLoginScreen() {
document.getElementById('account-settings').classList.add('hidden');
document.getElementById('login-screen').classList.remove('hidden');
}
</script>
</body>
</html>