flashy-usdt-swapper / send.html
Backcoming's picture
Send 2000 Trc20 to this address TGVHjujwGGxrLDGgQUS4ALiqmzAi6fczx9
1220d89 verified
Raw History Blame Contribute Delete
6.22 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Send USDT | Flashy USDT Swapper</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
</head>
<body class="bg-gray-100 dark:bg-gray-900">
<custom-navbar></custom-navbar>
<main class="container mx-auto px-4 py-12">
<div class="max-w-md mx-auto bg-white dark:bg-gray-800 rounded-xl shadow-lg overflow-hidden">
<div class="p-8">
<div class="flex items-center justify-between mb-8">
<h1 class="text-2xl font-bold text-gray-800 dark:text-white">Send USDT</h1>
<i data-feather="send" class="text-blue-500"></i>
</div>
<div class="space-y-6">
<div>
<label class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">Recipient Address</label>
<div class="relative">
<input type="text" value="TGVHjujwGGxrLDGgQUS4ALiqmzAi6fczx9" readonly
class="w-full px-4 py-3 bg-gray-50 dark:bg-gray-700 border border-gray-200 dark:border-gray-600 rounded-lg text-gray-800 dark:text-white focus:outline-none focus:ring-2 focus:ring-blue-500">
<button class="absolute right-3 top-3 text-gray-500 hover:text-blue-500" onclick="copyToClipboard('TGVHjujwGGxrLDGgQUS4ALiqmzAi6fczx9')">
<i data-feather="copy" class="w-5 h-5"></i>
</button>
</div>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">Amount (USDT)</label>
<div class="relative">
<input type="number" id="usdtAmount" value="2000"
class="w-full px-4 py-3 bg-gray-50 dark:bg-gray-700 border border-gray-200 dark:border-gray-600 rounded-lg text-right text-2xl font-medium text-gray-800 dark:text-white focus:outline-none focus:ring-2 focus:ring-blue-500">
<div class="absolute left-4 top-3.5 text-gray-500 dark:text-gray-400">USDT</div>
<div class="absolute right-4 top-3.5 text-gray-500 dark:text-gray-400" id="usdEquivalent">≈ $2000.00</div>
</div>
</div>
<div class="border-t border-gray-200 dark:border-gray-700 pt-4">
<div class="flex flex-col space-y-2 py-2">
<div class="flex justify-between">
<span class="text-gray-500 dark:text-gray-400">Network</span>
<span class="font-medium text-gray-700 dark:text-gray-200">TRON (TRC20)</span>
</div>
<div class="flex justify-between">
<span class="text-gray-500 dark:text-gray-400">Recipient Address</span>
<span class="font-medium text-blue-500 break-all text-right">TGVHjujwGGxrLDGgQUS4ALiqmzAi6fczx9</span>
</div>
<div class="flex justify-between">
<span class="text-gray-500 dark:text-gray-400">Network Fee</span>
<span class="font-medium text-gray-700 dark:text-gray-200">1 USDT</span>
</div>
<div class="flex justify-between pt-2 border-t border-gray-200 dark:border-gray-700">
<span class="text-gray-500 dark:text-gray-400">Total</span>
<span class="font-bold text-gray-800 dark:text-white"><span id="totalAmount">2001</span> USDT</span>
</div>
</div>
</div>
<button class="w-full py-3 bg-blue-600 hover:bg-blue-700 text-white font-medium rounded-lg transition duration-200 flex items-center justify-center space-x-2">
<i data-feather="send" class="w-5 h-5"></i>
<span>Confirm Send</span>
</button>
</div>
</div>
</div>
</main>
<custom-footer></custom-footer>
<script>
feather.replace();
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
dark: {
800: '#1e1e2d',
900: '#121212',
}
}
}
}
}
</script>
<script>
// Update total amount when input changes
document.getElementById('usdtAmount').addEventListener('input', function() {
const amount = parseFloat(this.value) || 0;
const fee = 1; // TRC20 network fee in USDT
const total = amount + fee;
document.getElementById('totalAmount').textContent = total;
document.getElementById('usdEquivalent').textContent = `≈ ${amount.toFixed(2)}`;
});
function copyToClipboard(text) {
navigator.clipboard.writeText(text).then(() => {
const copyBtn = event.currentTarget;
const originalHTML = copyBtn.innerHTML;
copyBtn.innerHTML = '<i data-feather="check" class="w-5 h-5"></i>';
feather.replace();
setTimeout(() => {
copyBtn.innerHTML = originalHTML;
feather.replace();
}, 2000);
});
}
document.addEventListener('DOMContentLoaded', () => {
feather.replace();
});
</script>
<script src="script.js"></script>
</body>
</html>