Download wallets.html from Meech888/malipo: direct link, hf CLI and curl.
- Browser
- Download file 32.6 kB
-
https://huggingface.co/spaces/Meech888/malipo/resolve/main/wallets.html
- Command line
-
hf download hf://spaces/Meech888/malipo/wallets.html
-
curl -L -o wallets.html https://huggingface.co/spaces/Meech888/malipo/resolve/main/wallets.html
32.6 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Wallets | MALiPo</title> | |
| <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <style> | |
| .wallet-gradient { | |
| background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); | |
| } | |
| .wallet-card { | |
| transition: all 0.3s ease; | |
| } | |
| .wallet-card:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); | |
| } | |
| .wallet-btc { border-left: 4px solid #f59e0b; } | |
| .wallet-eth { border-left: 4px solid #8b5cf6; } | |
| .wallet-bnb { border-left: 4px solid #f59e0b; } | |
| .wallet-sol { border-left: 4px solid #3b82f6; } | |
| .wallet-matic { border-left: 4px solid #ec4899; } | |
| .sidebar { | |
| height: calc(100vh - 4rem); | |
| position: fixed; | |
| top: 4rem; | |
| left: 0; | |
| width: 250px; | |
| background-color: #f8fafc; | |
| border-right: 1px solid #e2e8f0; | |
| overflow-y: auto; | |
| } | |
| .main-content { | |
| margin-left: 250px; | |
| padding-top: 4rem; | |
| } | |
| .active-link { | |
| background-color: #dbeafe; | |
| border-left: 4px solid #3b82f6; | |
| color: #1d4ed8; | |
| font-weight: 600; | |
| } | |
| .table-row:hover { | |
| background-color: #f1f5f9; | |
| } | |
| .qr-modal { | |
| display: none; | |
| position: fixed; | |
| z-index: 100; | |
| left: 0; | |
| top: 0; | |
| width: 100%; | |
| height: 100%; | |
| background-color: rgba(0,0,0,0.5); | |
| } | |
| .qr-content { | |
| background-color: white; | |
| margin: 10% auto; | |
| padding: 20px; | |
| border-radius: 8px; | |
| width: 300px; | |
| text-align: center; | |
| } | |
| </style> | |
| </head> | |
| <body class="font-sans antialiased text-gray-900"> | |
| <!-- Navigation --> | |
| <nav class="bg-white shadow-sm fixed w-full z-50"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="flex justify-between h-16"> | |
| <div class极速flex items-center"> | |
| <div class="flex-shrink-0 flex items-center"> | |
| <i data-feather="zap" class="h-8 w-8 text-indigo-600"></i> | |
| <span class="ml-2 text-xl font-bold text-gray-900">MALiPo</span> | |
| </div> | |
| </div> | |
| <div class="hidden md:ml-6 md:flex md:items-center md:space-x-8"> | |
| <a href="dashboard.html" class="text-gray-500 hover:text-indigo-600 px-3 py-2 text-sm font-medium">Dashboard</a> | |
| <a href="markets.html" class="text-gray-500 hover:text-indigo-600 px-3 py-2 text-sm font-medium">Markets</a> | |
| <a href="wallets.html" class="text-indigo-600 px-3 py-2 text-sm font-medium">Wallets</a> | |
| <a href="trading.html" class="text-gray-500 hover:text-indigo-600 px-3 py-2 text-sm font-medium">Trading</a> | |
| <a href="transactions.html" class="text-gray-500 hover:text-indigo-600 px-3 py-2 text-sm font-medium">History</a> | |
| <a href="support.html" class="text-gray-500 hover:text-indigo-600 px-3 py-2 text-sm font极速ium">Support</a> | |
| </div> | |
| <div class="flex items-center"> | |
| <div class="relative ml-3"> | |
| <div> | |
| <button type="button" class="flex items-center text-sm rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" id="user-menu-button"> | |
| <span class="sr-only">Open user menu</span> | |
| <div class="h-8 w-8 rounded-full bg-indigo-100 flex items-center justify-center"> | |
| <i data-feather="user极速 class="h-5 w-5 text-indigo-600"></i> | |
| </div> | |
| <span class="ml-2 text-sm font-medium text-gray-700">John Doe</span> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- Sidebar --> | |
| <div class="sidebar hidden md:block"> | |
| <div class="p-4"> | |
| <h3 class="text-xs font-semibold text极速-500 uppercase tracking-wider mb-2">Wallet Categories</h3> | |
| <ul class="space-y-1"> | |
| <li> | |
| <a href="#" class="active-link flex items-center px-3 py-2 text-sm rounded-md"> | |
| <i data-feather="credit-card" class="h-4 w-4 mr-3"></i> | |
| All Wallets | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="flex items-center px-3 py-2 text-sm text-gray-700 rounded-md hover:bg-gray-100"> | |
| <i data-feather="bitcoin" class="h-4 w-4 mr-3"></i> | |
| Bitcoin | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="flex items-center px-3 py-2 text-sm text-gray-700 rounded-md hover:bg-gray-极速> | |
| <i data-feather="database" class="h-4 w-4 mr-3"></极速> | |
| Ethereum | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="flex items-center px-3 py-2 text-sm text-gray-700 rounded-md hover:bg-gray-100"> | |
| <i data-feather="box" class="h-4 w-4 mr-3"></i> | |
| BNB Chain | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="flex items-center px-3 py-2 text-sm text-gray-700 rounded-md hover:bg-gray-100"> | |
| <i data-feather="activity" class="h-4 w-4 mr-3"></i> | |
| Solana | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="flex items-center px-3 py-2 text-sm text-gray-700 rounded-md hover:bg-gray-100"> | |
| <i data-feather="hexagon" class="h-4 w-4 mr-3"></i> | |
| Polygon | |
| </a> | |
| </li> | |
| </ul> | |
| <h3 class="text-xs font-semibold text-gray-500 uppercase tracking-wider mt-6 mb-2">Wallet Actions</h3> | |
| <ul class="space-y-1"> | |
| <li> | |
| <a href="#" class="flex items-center px-3 py-2 text-sm text-gray-700 rounded-md hover:bg-gray-100"> | |
| <i data-feather="refresh-cw" class="h-4 w-4 mr-3"></i> | |
| Cross-Chain Swap | |
| </a> | |
| </li> | |
| <li> | |
| <a href="transactions.html" class="flex items-center px-3 py-2 text-sm text-gray-700 rounded-md hover:bg-gray-100"> | |
| <i data-feather="list" class="h-4 w-4 mr-3"></i> | |
| Transaction History | |
| </a> | |
| </li> | |
| </ul> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="main-content"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"> | |
| <!-- Header --> | |
| <div class="bg-white rounded-lg shadow-md p-6 mb-8"> | |
| <div class="flex flex-col md:flex-row md:items-center md:justify-between"> | |
| <div> | |
| <h1 class="text-2xl font-bold text-gray-900">Wallet Management</h1> | |
| <p class="mt-2 text-gray-600">Manage your multi-chain cryptocurrency wallets</p> | |
| </div> | |
| <div class="mt-4 md:mt-0"> | |
| <button class="px-4 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700"> | |
| <i data-feather="plus" class="h-4 w-4 mr-1"></i> Add Wallet | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Portfolio Overview --> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-8 mb-8"> | |
| <!-- Total Portfolio Value --> | |
| <div class="wallet-card bg-white p-6 rounded-lg shadow-md lg:col-span-2"> | |
| <h2 class="text-xl font-semibold text-gray-900 mb-4">Portfolio Overview</h2> | |
| <div class="flex items-end justify-between"> | |
| <div> | |
| <p class="text-sm text-gray-600">Total Portfolio Value</p> | |
| <p class="text-3xl font-bold text-gray-900">$8,245.67</p> | |
| <p class="text-sm text-green-600 mt-1">+2.3% today</p> | |
| </div> | |
| <div class="w-40 h-40"> | |
| <canvas id="portfolioChart"></canvas> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Chain Allocation --> | |
| <div class="wallet-card bg-white p-6 rounded-lg shadow-md"> | |
| <h2 class="text-xl font-semibold text-gray-900 mb-4">Chain Allocation</h2> | |
| <div class="space-y-3"> | |
| <div class="flex justify-between items-center"> | |
| <span class="text-sm text-gray-600">Bitcoin</span> | |
| <span class="text-sm font-medium text-gray-900">65.8%</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-yellow-600 h-2 rounded-full" style="width: 65.8%"></div> | |
| </div> | |
| <div class="flex justify-between items-center"> | |
| <span class="text-sm text-gray-600">Ethereum</span> | |
| <span class="text-sm font-medium text-gray-900">28.4%</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-purple-600 h-2 rounded-full" style="width: 28.4%"></div> | |
| </div> | |
| <div class="flex justify-between items-center"> | |
| <span class="text-sm text-gray-600">Other Chains</span> | |
| <span class="text-sm font-medium text-gray-900">5.8%</span> | |
| </极速> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-blue-600 h-2 rounded-full" style="width: 5.8%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Wallet Assets --> | |
| <div class="bg-white rounded-lg shadow-md p-6 mb-8"> | |
| <h2 class="text-xl font-semibold text-gray-900 mb-6">Your Assets</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6"> | |
| <!-- Bitcoin Wallet --> | |
| <div class="wallet-card wallet-btc bg-white p-4 rounded-lg border border-gray-200"> | |
| <div class="flex items-center justify-between mb-3"> | |
| <div class="flex items-center"> | |
| <div class="w-8 h-8 bg-orange-100 rounded-full flex items-center justify-center"> | |
| <i data-feather="bitcoin" class="h-4 w-4 text-orange-600"></i> | |
| </div> | |
| <span class="ml-2 font-semibold">BTC</span> | |
| </div> | |
| <span class="text-sm text-gray-500">Bitcoin</span> | |
| </div> | |
| <div class="text-2xl font-bold text-gray-900">0.125</div> | |
| <div class="text-sm text-gray-600">≈ $5,432.10</div> | |
| <div class="flex space-x-2 mt-4"> | |
| <button class="deposit-btn flex-1 px-2 py-1 bg-indigo-600 text-white text-xs rounded hover:bg-indigo-700" data-currency="BTC">Deposit</button> | |
| <button class="withdraw-btn flex-1 px-2 py-1 border border-gray-300 text-xs rounded hover:bg-gray-50" data-currency="BTC">Withdraw</button> | |
| </div> | |
| </div> | |
| <!-- Ethereum Wallet --> | |
| <div class="wallet-card wallet-eth bg-white p-4 rounded-lg border border-gray-200"> | |
| <div class="flex items-center justify-between mb-3"> | |
| <div class="flex items-center"> | |
| <极速 class="w-8 h-8 bg-purple-100 rounded-full flex items-center justify-center"> | |
| <i data-feather="database" class="h-4 w-4 text-purple-600"></i> | |
| </div> | |
| <span class="ml-2 font-semibold">ETH</span> | |
| </div> | |
| <span class="text-sm text-gray-500">Ethereum</span> | |
| </div> | |
| <div class="text-2xl font-bold text-gray-900">1.75</div> | |
| <div class="text-sm text-gray-600">≈ $2,345.67</div> | |
| <div class="flex space-x-2 mt-4"> | |
| <button class="deposit-btn flex-1 px-2 py-1 bg-indigo-600 text-white text-xs rounded hover:bg-indigo-700" data-currency="ETH">Deposit</button> | |
| <button class="withdraw-btn flex-1 px-2 py-1 border border-gray-300 text-xs rounded hover:bg-gray-50" data-currency="ETH">Withdraw</button> | |
| </div> | |
| </div> | |
| <!-- BNB Wallet --> | |
| <div class="wallet-card wallet-bnb bg-white p-4 rounded-lg border border-gray-200"> | |
| <div class="flex items-center justify-between mb-极速 <div class="flex items-center"> | |
| <div class="w-8 h-8 bg-yellow-100 rounded-full flex items-center justify-center"> | |
| <i data-feather="box" class="极速-4 w-4 text-yellow-600"></i> | |
| </div> | |
| <span class="ml-2 font-semibold">BNB</span> | |
| </div> | |
| <span class="text-sm text-gray-500">BNB Chain</span> | |
| </div> | |
| <div class="text-2xl font-bold text-gray-900">4.25</div> | |
| <div class="text-sm text-gray-600">≈ $1,023.50</div> | |
| <div class="flex space-x-2 mt-4"> | |
| <button class="deposit-btn flex-1 px-2 py-1 bg-indigo-600 text-white text-xs rounded hover:bg-indigo-700" data-currency="BNB">Deposit</button> | |
| <button class="withdraw-btn flex-1 px-2 py-1 border border-gray-300 text-xs rounded hover:bg-gray-50" data-currency="BNB">极速draw</button> | |
| </div> | |
| </div> | |
| <!-- Solana Wallet --> | |
| <div class="wallet-card wallet-sol bg-white p-4 rounded-lg border border-gray-200"> | |
| <div class="flex items-center justify-between mb-3"> | |
| <div class="flex items-center"> | |
| <div class="w-8 h-8 bg-blue-100 rounded-full flex items-center justify-center"> | |
| <i data-feather="activity" class="h-4 w-4 text-blue-600"></i> | |
| </div> | |
| <span class="ml-2 font-semibold">SOL</span> | |
| </div> | |
| <span class="text-sm text-gray-500">Solana</span> | |
| </div> | |
| <div class="text-2xl font-bold text极速-900">25.8</div> | |
| <div class="text极速m text-gray-600">≈ $467.90</div> | |
| <div class="flex space-x-2 mt-4"> | |
| <button class="deposit-btn flex-1 px-2 py-1 bg-indigo-600 text-white text-xs rounded hover:bg-indigo-700" data-currency="SOL">Deposit</button> | |
| <button class="withdraw-btn flex-1 px-2 py-1 border border-gray-300 text-xs rounded hover:bg-gray-50" data-currency="SOL">Withdraw</button> | |
| </div> | |
| </div> | |
| <!-- Polygon Wallet --> | |
| <div class="wallet-card wallet-matic bg-white p-4 rounded-lg border border-gray-200"> | |
| <div class="flex items-center justify-between mb-3"> | |
| <div class="flex items-center"> | |
| <div class="w-8 h-8 bg-pink-100 rounded-full flex items-center justify-center"> | |
| <i data-feather="hexagon" class="h-4 w-4 text-pink-600"></i> | |
| </div> | |
| <span class="ml-2 font-semibold">MATIC</span> | |
| </div> | |
| <span class="text-sm text-gray-500">Polygon</极速 </div> | |
| <div class="text-2xl font-bold text-gray-900">450.5</div> | |
| <div class="text-sm text-gray-600">≈ $16.32</div> | |
| <div class="flex space-x-2 mt-4"> | |
| <button class="deposit-btn flex-1 px-2 py-1 bg-indigo-600 text-white text-xs rounded hover:bg-indigo-700" data-currency="MATIC">Deposit</button> | |
| <button class="withdraw-btn flex-1 px-2 py-1 border border-gray-300 text-xs rounded hover:bg-gray-50" data-currency="MATIC">Withdraw</button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Action Buttons --> | |
| <div class="bg-white rounded-lg shadow-md p-6 mb-8"> | |
| <h2 class="text-xl font-semibold text-gray-900 mb-6">Quick Actions</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-4 gap-4"> | |
| <button class="flex flex-col items-center justify-center p-4 border border-gray-200 rounded-lg hover:border-indigo-300 hover:bg-indigo-50 transition-colors"> | |
| <div class="h-10 w-10 rounded-full bg-indigo-100 flex items-center justify-center mb-2"> | |
| <i data-feather="download" class="h-5 w-5 text-indigo-600"></i> | |
| </div> | |
| <span class="text-sm font-medium text-gray-900">Deposit</span> | |
| </button> | |
| <button class="flex flex-col items-center justify-center p-4 border border-gray-200 rounded-lg hover:border-indigo-300 hover:bg-indigo-50 transition-colors"> | |
| <div class="h-10 w-10 rounded-full bg-indigo-100 flex items-center justify-center mb-2"> | |
| <i data-feather="upload" class="h-5 w-5 text-indigo-600"></i> | |
| </div> | |
| <span class="text-sm font-medium text-gray-900">Withdraw</span> | |
| </button> | |
| <button class="flex flex-col items-center justify-center p极速 border border-gray-200 rounded-lg hover:border-indigo-300 hover:bg-indigo-50 transition-colors"> | |
| <div class="h-10 w-10 rounded-full bg-indigo-100 flex items-center justify-center mb-2"> | |
| <i data-feather="send" class="h-5 w-5 text-indigo-600"></i> | |
| </div> | |
| <span class="text-sm font-medium text-gray-900">Send</span> | |
| </button> | |
| <button class="flex flex-col items-center justify-center p-4 border border-gray-200 rounded-lg hover:border-indigo-300 hover:bg-indigo-50 transition-colors"> | |
| <div class="h-10 w-10 rounded-full bg-indigo-100 flex items-center justify-center mb-2"> | |
| <i data-feather="refresh-cw" class="h-5 w-5 text-indigo-600"></i> | |
| </div> | |
| <span class="text-sm font-medium text-gray-900">Swap</极速 </button> | |
| </div> | |
| </div> | |
| <!-- Recent Transactions --> | |
| <div class="bg-white rounded-lg shadow-md p-6"> | |
| <div class="flex items-center justify-between mb-6"> | |
| <h2 class="text-xl font-semibold text-gray-900">Recent Transactions</h2> | |
| <a href="transactions.html" class="text-sm text-indigo-600 hover:text-indigo-500 font-medium"> | |
| View All <i data-feather="arrow-right" class="h-4 w-4 inline"></i> | |
| </a> | |
| </div> | |
| <div class="overflow-x-auto"> | |
| <table class="min-w-full divide-y divide-gray-200"> | |
| <thead class="bg-gray-50"> | |
| <tr> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Asset</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Tx Hash</th> | |
| </tr> | |
| </thead> | |
| <tbody class="bg-white divide-y divide-gray-200"> | |
| <tr class="table-row"> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">Dec 15, 2023</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">BTC</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">Deposit</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">+0.005</td> | |
| <td class="极速-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 py-1 text-xs font-semibold rounded-full bg-green-100 text-green-800">Completed</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900"> | |
| <a href="#" class="text-indigo-600 hover:text-indigo-900">0x4a6e...c82f</a> | |
| </td> | |
| </tr> | |
| <tr class="table-row"> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">Dec 14, 2023</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">ETH</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">Withdrawal</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">-0.5</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 py-1 text-xs font-semibold rounded-full bg-yellow-100 text-yellow-800">Pending</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900"> | |
| <a href="#" class="text-indigo-600 hover:text-indigo-900">0x8d3a...7b1e</a> | |
| </td> | |
| </tr> | |
| <tr class="table-row"> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">Dec 13, 2023</td> | |
| <td class="px-6 py-4 whites极速-nowrap text-sm text-gray-900">SOL</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">Swap</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">ETH→SOL</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 py-1 text-xs font-sem极速old rounded-full bg-green-100 text-green-800">Completed</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900"> | |
| <a href="#" class="text-indigo-600 hover:text-indigo-900">0x2f9c...6d4a</a> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Deposit Modal --> | |
| <div id="depositModal" class="qr-modal"> | |
| <div class="qr-content"> | |
| <h3 class="text-lg font-semibold text-gray-900 mb-4" id="modalTitle">Deposit Bitcoin</h3> | |
| <div id="qrCode" class="w-48 h-48 mx-auto mb-4 bg-white p-2"> | |
| <img src="http://static.photos/abstract/240x240/1" alt="QR Code" class="w-full h-full"> | |
| </div> | |
| <div class="bg-gray-100 p-3 rounded-md mb-4"> | |
| <p class="text-xs text-gray-600 break-all" id="walletAddress">1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa</p> | |
| </div> | |
| <button class="px-4 py-2 bg-gray-200 text-gray-700 rounded-md hover:bg-gray-300" onclick="copyAddress()"> | |
| Copy Address | |
| </button> | |
| <button class="mt-3 px-4 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700" onclick="closeModal()"> | |
| Close | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Footer --> | |
| <footer class="bg-gray-50 mt-12"> | |
| <div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8"> | |
| <div class="text-center"> | |
| <p class="text-sm text-gray-600"> | |
| © 2023 MALiPo. All rights reserved. | |
| <a href="#" class="text-indigo-600 hover:text-indigo-500">Privacy Policy</a> • | |
| <a href="#" class="text-indigo-600 hover:text-indigo-500">Terms of Service</a> | |
| </p> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| feather.replace(); | |
| // Initialize portfolio chart | |
| const portfolioCtx = document.getElementById('portfolioChart').getContext('2d'); | |
| const portfolioChart = new Chart(portfolioCtx, { | |
| type: 'doughnut', | |
| data: { | |
| labels: ['Bitcoin', 'Ethereum', 'BNB', 'Solana', 'Polygon'], | |
| datasets: [{ | |
| data: [65.8, 28.4, 3.2, 1.8, 0.8], | |
| backgroundColor: [ | |
| '#f59e0b', | |
| '#8b5cf6', | |
| '#f59e0b', | |
| '#3b82f6', | |
| '#ec4899' | |
| ], | |
| borderWidth: 0 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: true, | |
| plugins: { | |
| legend: { | |
| display: false | |
| } | |
| }, | |
| cutout: '70%' | |
| } | |
| }); | |
| // Deposit button functionality | |
| document.querySelectorAll('.deposit-btn').forEach(button => { | |
| button.addEventListener('click', function() { | |
| const currency = this.getAttribute('data-currency'); | |
| openDepositModal(currency); | |
| }); | |
| }); | |
| // Withdraw button functionality | |
| document.querySelectorAll('.withdraw-btn').forEach(button => { | |
| button.addEventListener('click', function() { | |
| const currency = this.getAttribute('data-currency'); | |
| alert(`Withdraw ${currency} functionality would open here`); | |
| }); | |
| }); | |
| // Modal functions | |
| function openDepositModal(currency) { | |
| const modal = document.getElementById('depositModal'); | |
| const title = document.getElementById('modalTitle'); | |
| const address = document.getElementById('walletAddress'); | |
| // Set modal content based on currency | |
| title.textContent = `Deposit ${currency}`; | |
| // Generate a sample address based on currency | |
| const addresses = { | |
| 'BTC': '1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa', | |
| 'ETH': '0x742d35Cc6634C0532925a3b844Bc454e4438f44e', | |
| 'BNB': 'bnb1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjfq4ar', | |
| 'SOL': 'HN7cABqLq46Es1jh92dQQisAq662SmxELLLsHHe4YWrH', | |
| 'MATIC': '0x3E6e4D5A4B6B6e5e7C8D9F0A1B2C3D4E5F6G7H8' | |
| }; | |
| address.textContent = addresses[currency] || 'Address not available'; | |
| modal.style.display = 'block'; | |
| } | |
| function closeModal() { | |
| document.getElementById('depositModal').style.display = 'none'; | |
| } | |
| function copyAddress() { | |
| const address = document.getElementById('walletAddress').textContent; | |
| navigator.clipboard.writeText(address).then(() => { | |
| alert('Address copied to clipboard!'); | |
| }); | |
| } | |
| // Close modal if clicked outside | |
| window.onclick = function(event) { | |
| const modal = document.getElementById('depositModal'); | |
| if (event.target == modal) { | |
| closeModal(); | |
| } | |
| }; | |
| // Simulate live balance updates | |
| function updateBalances() { | |
| const prices = { | |
| btc: 43250 + (Math.random() - 0.5) * 200, | |
| eth: 2345 + (Math.random() - 0.5) * 20, | |
| bnb: 240 + (Math.random() - 0.5) * 5, | |
| sol: 98 + (Math.random() - 0.5) * 2, | |
| matic: 0.87 + (Math.random() - 0.5) * 0.02 | |
| }; | |
| // Update BTC balance display | |
| const btcAmount = 0.125; | |
| const btcValue = btcAmount * prices.btc; | |
| document.querySelector('.wallet-btc .text-2xl').nextElementSibling.textContent = `≈ $${btcValue.toFixed(2)}`; | |
| // Update ETH balance display | |
| const ethAmount = 1.75; | |
| const ethValue = ethAmount * prices.eth; | |
| document.querySelector('.wallet-eth .text-2xl').nextElementSibling.textContent = `≈ $${ethValue.toFixed(2)}`; | |
| // Update BNB balance display | |
| const bnbAmount = 4.25; | |
| const bnbValue = bnbAmount * prices.bnb; | |
| document.querySelector('.wallet-bnb .text-2xl').nextElementSibling.textContent = `≈ $${bnbValue.toFixed(2)}`; | |
| // Update SOL balance display | |
| const solAmount = 25.8; | |
| const solValue = solAmount * prices.sol; | |
| document.querySelector('.wallet-sol .text-2xl').nextElementSibling.textContent = `≈ $${solValue.toFixed(2)}`; | |
| // Update MATIC balance display | |
| const maticAmount = 450.5; | |
| const maticValue = maticAmount * prices.matic; | |
| document.querySelector('.wallet-matic .text-2xl').nextElementSibling.textContent = `≈ $${maticValue.toFixed(2)}`; | |
| // Update total portfolio value | |
| const totalValue = btcValue + ethValue + bnbValue + solValue + maticValue; | |
| document.querySelector('.text-3xl.font-bold.text-gray-900').textContent = `$${totalValue.toFixed(2)}`; | |
| } | |
| // Update balances every 15 seconds | |
| setInterval(updateBalances, 15000); | |
| updateBalances(); // Initial update | |
| </script> | |
| </body> | |
| </html> |