/* Container Stil Ayarları */ .crypto-converter { max-width: 1200px; max-height: 800px; width: 100%; height: auto; margin: 0 auto; padding: 20px; background-color: rgba(255, 255, 255, 0.1); /* Transparan arka plan */ border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); color: #ffffff; } /* Responsive için */ @media (max-width: 768px) { .crypto-converter { width: 90%; padding: 15px; } } .crypto-converter div { margin-bottom: 15px; } label { display: block; font-weight: bold; margin-bottom: 5px; color: #ffffff; } select, input { width: 100%; padding: 20px; /* Yüksekliği iki kat artırmak için padding eklendi */ font-size: 1rem; border: 1px solid #444; background-color: rgba(255, 255, 255, 0.1); color: #ffffff; border-radius: 5px; box-sizing: border-box; } button { width: 100%; padding: 15px; font-size: 1rem; font-weight: bold; color: #ffffff; background-color: #c1205b; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.3s ease; } button:hover { background-color: #a8194d; } #result { font-size: 1.2rem; font-weight: bold; color: #ffffff; margin-top: 20px; text-align: center; } Cryptocurrency: Bitcoin Ethereum Chainlink Decentraland (MANA) The Sandbox (SAND) Axie Infinity (AXS) Flow Render Token (RNDR) Gala Immutable X (IMX) Theta Token (THETA) Enjin Coin (ENJ) Illuvium (ILV) Polkadot (DOT) NEAR Protocol Hedera (HBAR) Quant (QNT) Internet Computer (ICP) The Graph (GRT) Ocean Protocol Fetch.ai (FET) SingularityNET (AGIX) Infinity (INFI) Covalent (CQT) Origin Protocol (OGN) Siacoin (SC) Helium (HNT) IOTA Chiliz (CHZ) Alien Worlds (TLM) Vulcan Forged (PYR) BORA Rally (RLY) Wilder World (WILD) Fantom (FTM) Solana (SOL) Arweave (AR) Multiverse (AI) NFTX Rarible (RARI) Audius (AUDIO) OriginTrail (TRAC) UXD Protocol Ultra (UOS) Lattice Token (LTX) Power Ledger (POWR) Verasity (VRA) Chromia (CHR) Cartesi (CTSI) Stratis (STRAX) MetisDAO CoinEx Token (CET) PlatON (LAT) Kaspa (KAS) Celo (CELO) Maker (MKR) Luxo (LYXe) Ecomi (OMI) XYO Band Protocol Amount: Fiat Currency: US Dollar (USD) Euro (EUR) Indian Rupee (INR) Nigerian Naira (NGN) Vietnamese Dong (VND) Ukrainian Hryvnia (UAH) Indonesian Rupiah (IDR) Pakistani Rupee (PKR) Russian Ruble (RUB) Thai Baht (THB) Turkish Lira (TRY) Convert function convert() { const crypto = document.getElementById('crypto').value; const amount = document.getElementById('amount').value; const currency = document.getElementById('currency').value; fetch(`https://api.coingecko.com/api/v3/simple/price?ids=${crypto}&vs_currencies=${currency}`) .then(response => response.json()) .then(data => { const price = data[crypto][currency]; const result = amount * price; document.getElementById('result').innerText = `${amount} ${crypto} = ${result.toFixed(2)} ${currency.toUpperCase()}`; }) .catch(error => { document.getElementById('result').innerText = "An error occurred while retrieving data."; console.error('Error:', error); }); }