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
60 lines
2.3 KiB
Plaintext
60 lines
2.3 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Profile Customization</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">Customize Profile</h2>
|
|
|
|
<!-- Avatar Preview -->
|
|
<div class="flex flex-col items-center mt-4">
|
|
<img id="avatar-preview" 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">
|
|
</div>
|
|
|
|
<!-- Upload Avatar -->
|
|
<label class="mt-4 cursor-pointer text-green-500 underline block">
|
|
Change Avatar
|
|
<input type="file" id="avatar-upload" class="hidden" accept="image/*">
|
|
</label>
|
|
|
|
<!-- Username Input -->
|
|
<input type="text" id="username" placeholder="Enter username"
|
|
class="mt-4 w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500">
|
|
|
|
<!-- Skin Upload -->
|
|
<label class="mt-4 cursor-pointer text-green-500 underline block">
|
|
Upload Skin (.png)
|
|
<input type="file" id="skin-upload" class="hidden" accept="image/png">
|
|
</label>
|
|
|
|
<!-- Save Button -->
|
|
<button onclick="saveProfile()"
|
|
class="mt-4 w-full bg-green-500 hover:bg-green-600 text-white font-bold py-2 px-4 rounded transition">
|
|
Save Changes
|
|
</button>
|
|
|
|
<p class="mt-4 text-sm text-gray-500">Minecraft Launcher v1.0</p>
|
|
</div>
|
|
|
|
<script>
|
|
document.getElementById('avatar-upload').addEventListener('change', function(event) {
|
|
const file = event.target.files[0];
|
|
if (file) {
|
|
document.getElementById('avatar-preview').src = URL.createObjectURL(file);
|
|
}
|
|
});
|
|
|
|
function saveProfile() {
|
|
const username = document.getElementById('username').value;
|
|
alert(Profile Updated: ${username});
|
|
}
|
|
</script>
|
|
|
|
</body>
|
|
</html> |