cryptovision-tracker / index.html
JamesJ1995's picture
Make the full fledged website. Add live price with live realtime changes.
2f2e02d verified
Raw History Blame Contribute Delete
10.7 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CryptoVision Tracker - BTC/USD</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="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
</head>
<body class="bg-gray-900 text-white">
<custom-navbar></custom-navbar>
<main class="container mx-auto px-4 py-8">
<section class="mb-12">
<h1 class="text-4xl font-bold mb-6 text-center">BTC/USD Live Tracker</h1>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
<!-- Price Card -->
<div class="bg-gray-800 rounded-xl p-6 shadow-lg">
<div class="flex items-center justify-between mb-4">
<h2 class="text-2xl font-semibold">Bitcoin Price</h2>
<span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-500 text-white">
<i data-feather="activity" class="mr-1"></i> LIVE
</span>
</div>
<div class="flex items-end mb-2">
<span class="text-4xl font-bold" id="btc-price">$--</span>
<span class="ml-2 text-lg" id="price-change">(--%)</span>
</div>
<p class="text-gray-400">Updated: <span id="update-time">Just now</span></p>
</div>
<!-- Market Data Card -->
<div class="bg-gray-800 rounded-xl p-6 shadow-lg">
<h2 class="text-2xl font-semibold mb-4">Market Data</h2>
<div class="grid grid-cols-2 gap-4">
<div>
<p class="text-gray-400">24h High</p>
<p class="text-xl font-medium" id="high-24h">$--</p>
</div>
<div>
<p class="text-gray-400">24h Low</p>
<p class="text-xl font-medium" id="low-24h">$--</p>
</div>
<div>
<p class="text-gray-400">24h Volume</p>
<p class="text-xl font-medium" id="volume-24h">-- BTC</p>
</div>
<div>
<p class="text-gray-400">Market Cap</p>
<p class="text-xl font-medium" id="market-cap">$--</p>
</div>
</div>
</div>
</div>
</section>
<!-- Chart Section -->
<section class="mb-12">
<div class="bg-gray-800 rounded-xl p-6 shadow-lg">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-semibold">Price Chart (24h)</h2>
<div class="flex space-x-2">
<button class="px-3 py-1 rounded-lg bg-gray-700 text-sm" id="1h-btn">1H</button>
<button class="px-3 py-1 rounded-lg bg-gray-700 text-sm" id="24h-btn">24H</button>
<button class="px-3 py-1 rounded-lg bg-gray-700 text-sm" id="7d-btn">7D</button>
<button class="px-3 py-1 rounded-lg bg-blue-500 text-white text-sm" id="30d-btn">30D</button>
</div>
</div>
<div class="h-96">
<canvas id="price-chart"></canvas>
</div>
</div>
</section>
<!-- Trading Insights -->
<section class="mb-12">
<h2 class="text-2xl font-semibold mb-6">Trading Insights</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div class="bg-gray-800 rounded-xl p-6 shadow-lg">
<div class="flex items-center justify-between mb-4">
<h3 class="text-xl font-semibold">Technical Indicators</h3>
<span class="px-3 py-1 rounded-full text-sm font-medium bg-blue-500/20 text-blue-400">
<i data-feather="bar-chart-2" class="mr-1"></i> LIVE
</span>
</div>
<div class="grid grid-cols-2 gap-4">
<div>
<p class="text-gray-400">RSI (14)</p>
<p class="text-xl font-medium" id="rsi-value">--</p>
</div>
<div>
<p class="text-gray-400">MACD</p>
<p class="text-xl font-medium" id="macd-value">--</p>
</div>
<div>
<p class="text-gray-400">SMA (50)</p>
<p class="text-xl font-medium" id="sma50-value">--</p>
</div>
<div>
<p class="text-gray-400">SMA (200)</p>
<p class="text-xl font-medium" id="sma200-value">--</p>
</div>
</div>
</div>
<div class="bg-gray-800 rounded-xl p-6 shadow-lg">
<div class="flex items-center justify-between mb-4">
<h3 class="text-xl font-semibold">Trading Recommendation</h3>
<span class="px-3 py-1 rounded-full text-sm font-medium bg-purple-500/20 text-purple-400">
<i data-feather="alert-circle" class="mr-1"></i> UPDATED
</span>
</div>
<div class="flex items-center mb-3">
<div class="text-3xl font-bold mr-4" id="recommendation">--</div>
<div class="flex-1">
<p class="text-gray-300 text-sm" id="recommendation-reason">Analyzing market conditions...</p>
</div>
</div>
<div class="bg-gray-700/50 rounded-lg p-4">
<div class="flex items-center text-sm text-gray-400">
<i data-feather="info" class="mr-2"></i>
<p>This recommendation is based on technical indicators and market sentiment. Always do your own research.</p>
</div>
</div>
</div>
</div>
</section>
<!-- Market Data -->
<section class="mb-12">
<h2 class="text-2xl font-semibold mb-6">Market Data</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="bg-gray-800 rounded-xl p-6 shadow-lg">
<div class="flex items-center mb-4">
<div class="p-3 rounded-full bg-blue-500/20 mr-4">
<i data-feather="trending-up" class="text-blue-500"></i>
</div>
<h3 class="text-xl font-semibold">Market Sentiment</h3>
</div>
<p class="text-gray-400">Current sentiment is <span class="text-blue-400 font-medium" id="sentiment">loading...</span></p>
</div>
<div class="bg-gray-800 rounded-xl p-6 shadow-lg">
<div class="flex items-center mb-4">
<div class="p-3 rounded-full bg-purple-500/20 mr-4">
<i data-feather="hash" class="text-purple-500"></i>
</div>
<h3 class="text-xl font-semibold">Blockchain Stats</h3>
</div>
<p class="text-gray-400">Hash Rate: <span class="font-medium" id="hash-rate">--</span></p>
<p class="text-gray-400">Difficulty: <span class="font-medium" id="difficulty">--</span></p>
</div>
<div class="bg-gray-800 rounded-xl p-6 shadow-lg">
<div class="flex items-center mb-4">
<div class="p-3 rounded-full bg-green-500/20 mr-4">
<i data-feather="dollar-sign" class="text-green-500"></i>
</div>
<h3 class="text-xl font-semibold">Exchange Data</h3>
</div>
<p class="text-gray-400">Dominance: <span class="font-medium" id="dominance">--%</span></p>
<p class="text-gray-400">Supply: <span class="font-medium" id="supply">-- BTC</span></p>
</div>
</div>
</section>
<!-- News Section -->
<section>
<h2 class="text-2xl font-semibold mb-6">Latest Bitcoin News</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6" id="news-container">
<!-- News items will be loaded here -->
<div class="animate-pulse bg-gray-800 rounded-xl p-6 shadow-lg h-48"></div>
<div class="animate-pulse bg-gray-800 rounded-xl p-6 shadow-lg h-48"></div>
<div class="animate-pulse bg-gray-800 rounded-xl p-6 shadow-lg h-48"></div>
</div>
</section>
</main>
<custom-footer></custom-footer>
<!-- Background Animation -->
<div id="vanta-bg" class="fixed top-0 left-0 w-full h-full -z-10"></div>
<!-- Scripts -->
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script src="script.js"></script>
<script>
feather.replace();
// Initialize Vanta.js background
VANTA.NET({
el: "#vanta-bg",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x3b82f6,
backgroundColor: 0x111827,
points: 10.00,
maxDistance: 25.00,
spacing: 17.00
});
</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>