-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
68 lines (62 loc) · 2.5 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Raydium Clone</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body class="bg-gray-900 text-white font-sans">
<!-- Main Container -->
<div class="min-h-screen flex flex-col items-center justify-center space-y-6 p-4">
<!-- Header -->
<header class="flex justify-between items-center w-full max-w-3xl">
<h1 class="text-xl font-bold">Raydium</h1>
<button class="text-sm bg-blue-500 py-2 px-4 rounded-lg hover:bg-blue-600">Connect Wallet</button>
</header>
<!-- Swap Section -->
<section class="bg-gray-800 rounded-lg p-6 shadow-md w-full max-w-3xl">
<div class="space-y-4">
<!-- Token Input: From -->
<div class="flex items-center justify-between">
<label class="block font-bold">From</label>
<select class="bg-gray-700 p-2 rounded-lg">
<option>SOL</option>
<option>ETH</option>
<option>BTC</option>
</select>
</div>
<input type="text" placeholder="0.0" class="w-full bg-gray-700 p-3 rounded-lg">
<!-- Token Input: To -->
<div class="flex items-center justify-between">
<label class="block font-bold">To</label>
<select class="bg-gray-700 p-2 rounded-lg">
<option>RAY</option>
<option>USDC</option>
<option>BNB</option>
</select>
</div>
<input type="text" placeholder="0.0" class="w-full bg-gray-700 p-3 rounded-lg">
<!-- Swap Button -->
<button class="w-full bg-blue-500 py-3 rounded-lg hover:bg-blue-600">Swap</button>
</div>
</section>
<!-- Chart Section -->
<section class="w-full max-w-3xl text-center mt-4">
<button id="toggleChart" class="text-blue-400 underline">Show Chart</button>
<div id="chartContainer" class="mt-4 hidden">
<canvas id="swapChart"></canvas>
</div>
</section>
<!-- Footer Navigation -->
<footer class="w-full max-w-3xl bg-gray-800 rounded-lg p-4 flex justify-around text-sm">
<a href="#" class="hover:text-blue-400">Swap</a>
<a href="#" class="hover:text-blue-400">Liquidity</a>
<a href="#" class="hover:text-blue-400">Portfolio</a>
<a href="#" class="hover:text-blue-400">More</a>
</footer>
</div>
<script src="script.js"></script>
</body>
</html>