File size: 6,217 Bytes
8546898
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1220d89
 
8546898
 
 
 
 
1220d89
8546898
1220d89
8546898
1220d89
 
 
8546898
 
1220d89
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8546898
 
1220d89
8546898
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1220d89
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8546898
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!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>