-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinvest-test.html
267 lines (244 loc) · 12.6 KB
/
invest-test.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
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Stock Portfolio</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
</head>
<style>
/* Untuk menyembunyikan scrollbar pada div dengan class coins-list */
.coins-list::-webkit-scrollbar {
display: none;
}
.coins-list {
-ms-overflow-style: none; /* Internet Explorer 10+ */
scrollbar-width: none; /* Firefox */
}
</style>
<body class="bg-gray-100">
<!-- Header -->
<div class="p-4">
<h1 class="text-3xl font-bold">Investing</h1>
<div class="flex justify-between mt-4">
<button id="shares-tab" onclick="showTab('shares')" class="text-blue-500 border-b-2 border-blue-500">Shares</button>
<button id="realEstate-tab" onclick="showTab('realEstate')" class="text-gray-500">Real Estate</button>
<button id="crypto-tab" onclick="showTab('crypto')" class="text-gray-500">Cryptocurrency</button>
</div>
</div>
<div id="shares" class="py-6">
<!-- Portfolio -->
<div class="p-4">
<div class="bg-blue-500 text-white rounded-t-lg p-4">
<div class="flex items-center">
<i class="fas fa-briefcase text-2xl"></i>
<span class="ml-2 font-semibold">My stock portfolio</span>
</div>
</div>
<div class="bg-white shadow-md rounded-b-lg p-4">
<p class="text-2xl font-bold">$ 0,00</p>
<p class="text-green-500">+ $0.00 (0.00%) <a href="myshares.html" class="text-blue-500">for all time</a></p>
<p class="mt-4 text-gray-500">Estimated yield per hour</p>
<p class="text-2xl font-bold">$ 0,00</p>
</div>
</div>
<!-- Market Button -->
<div class="p-4">
<a href="stockmarket.html">
<div class="bg-blue-500 text-white shadow-md rounded-lg p-4 flex justify-between items-center">
<div class="flex items-center">
<i class="fas fa-chart-line text-2xl"></i>
<span class="ml-2 font-semibold">Stock market</span>
</div>
<i class="fas fa-chevron-right"></i>
</div>
</a>
</div>
<!-- My Shares Button -->
<div class="p-4">
<a href="myshares.html">
<div class="bg-gray-200 text-gray-500 shadow-md rounded-lg p-4 flex justify-between items-center">
<div class="flex items-center">
<i class="fas fa-briefcase text-2xl"></i>
<span class="ml-2 font-semibold">My shares</span>
</div>
<i class="fas fa-chevron-right"></i>
</div>
</a>
</div>
</div>
<!-- Real Estate -->
<div id="realEstate" class="py-6 hidden">
<!-- Add real estate content here -->
<div class="p-4">
<p class="text-gray-600 text-center">Real Estate Comming Soon!</p>
</div>
</div>
<!-- Crypto -->
<div id="crypto" class="py-6 hidden">
<div class="p-4">
<div class="bg-white shadow-md rounded-lg p-4">
<div class="text-blue-500 flex items-center space-x-2">
<i class="fas fa-chart-line text-lg"></i>
<h2 class="font-bold">Total cryptocurrency value</h2>
</div>
<p class="text-3xl font-bold mt-2">$ 0.00</p>
<p class="text-green-500 text-sm">+ $0.00 (0.00%)</p>
<button class="bg-gray-300 text-gray-700 py-2 px-4 mt-4 rounded-lg shadow-md w-full">Buy</button>
</div>
</div>
<div class="p-4">
<div class="mt-4 coins-list max-h-64 overflow-y-scroll">
<h3 class="font-bold text-gray-600">Coins</h3>
<div class="flex justify-between py-2" data-aos="fade-up" data-aos-duration="3000">
<div class="flex items-center space-x-2">
<img src="https://cryptologos.cc/logos/bitcoin-btc-logo.png" alt="Bitcoin" class="w-6 h-6">
<div>
<p>Bitcoin</p>
<p class="text-sm text-gray-400">0.0001 BTC</p>
</div>
</div>
<p class="text-green-500">$3.80 (+25.16%)</p>
</div>
<div class="flex justify-between py-2" data-aos="fade-up" data-aos-duration="3000">
<div class="flex items-center space-x-2">
<img src="https://cryptologos.cc/logos/ethereum-eth-logo.png" alt="Ethereum" class="w-6 h-6">
<div>
<p>Ethereum</p>
<p class="text-sm text-gray-400">200.00 ETH</p>
</div>
</div>
<p class="text-red-500">$719.3k (-0.99%)</p>
</div>
<div class="flex justify-between py-2" data-aos="fade-up" data-aos-duration="3000">
<div class="flex items-center space-x-2">
<img src="https://cryptologos.cc/logos/solana-sol-logo.png" alt="Solana" class="w-6 h-6">
<div>
<p>Solana</p>
<p class="text-sm text-gray-400">453.42 SOL</p>
</div>
</div>
<p class="text-red-500">$10.3k (-0.99%)</p>
</div>
<div class="flex justify-between py-2" data-aos="fade-up" data-aos-duration="3000">
<div class="flex items-center space-x-2">
<img src="https://cryptologos.cc/logos/binance-coin-bnb-logo.png" alt="Binance Coin" class="w-6 h-6">
<div>
<p>Binance Coin</p>
<p class="text-sm text-gray-400">10.75 BNB</p>
</div>
</div>
<p class="text-green-500">$3.8k (+12.47%)</p>
</div>
<div class="flex justify-between py-2" data-aos="fade-up" data-aos-duration="3000">
<div class="flex items-center space-x-2">
<img src="https://cryptologos.cc/logos/cardano-ada-logo.png" alt="Cardano" class="w-6 h-6">
<div>
<p>Cardano</p>
<p class="text-sm text-gray-400">1000 ADA</p>
</div>
</div>
<p class="text-red-500">$400 (-2.45%)</p>
</div>
<div class="flex justify-between py-2" data-aos="fade-up" data-aos-duration="3000">
<div class="flex items-center space-x-2">
<img src="https://cryptologos.cc/logos/book-of-meme-bome-logo.png" alt="Bome" class="w-6 h-6">
<div>
<p>Book Of Meme</p>
<p class="text-sm text-gray-400">500 BOME</p>
</div>
</div>
<p class="text-green-500">$550 (+5.12%)</p>
</div>
<div class="flex justify-between py-2" data-aos="fade-up" data-aos-duration="3000">
<div class="flex items-center space-x-2">
<img src="https://cryptologos.cc/logos/shiba-inu-shib-logo.png" alt="Shiba" class="w-6 h-6">
<div>
<p>Shiba</p>
<p class="text-sm text-gray-400">300 SHIB</p>
</div>
</div>
<p class="text-green-500">$1.5k (+8.32%)</p>
</div>
<div class="flex justify-between py-2" data-aos="fade-up" data-aos-duration="3000">
<div class="flex items-center space-x-2">
<img src="https://cryptologos.cc/logos/chainlink-link-logo.png" alt="Chainlink" class="w-6 h-6">
<div>
<p>Chainlink</p>
<p class="text-sm text-gray-400">100 LINK</p>
</div>
</div>
<p class="text-red-500">$350 (-1.92%)</p>
</div>
<div class="flex justify-between py-2" data-aos="fade-up" data-aos-duration="3000">
<div class="flex items-center space-x-2">
<img src="https://cryptologos.cc/logos/litecoin-ltc-logo.png" alt="Litecoin" class="w-6 h-6">
<div>
<p>Litecoin</p>
<p class="text-sm text-gray-400">50 LTC</p>
</div>
</div>
<p class="text-green-500">$4k (+3.58%)</p>
</div>
</div>
</div>
</div>
<!-- Footer Button -->
<footer class="mt-5 bg-white shadow-inner w-full fixed bottom-0">
<div class="flex justify-around py-2 border-t">
<!-- Investing -->
<a href="investing.html" class="flex flex-col items-center text-blue-600 hover:text-blue-500">
<i class="fas fa-chart-line text-xl"></i>
<span class="text-xs">Investing</span>
</a>
<!-- Business -->
<a href="#business" class="flex flex-col items-center text-gray-600 hover:text-blue-500">
<i class="fas fa-city text-xl"></i>
<span class="text-xs">Business</span>
</a>
<!-- Earnings -->
<a href="dashboard.html" class="flex flex-col items-center text-gray-600 hover:text-blue-500">
<i class="fas fa-dollar-sign text-xl"></i>
<span class="text-xs">Earnings</span>
</a>
<!-- Items -->
<a href="#items" class="flex flex-col items-center text-gray-600 hover:text-blue-500">
<i class="fas fa-th-large text-xl"></i>
<span class="text-xs">Items</span>
</a>
<!-- Profile -->
<a href="#profile" class="flex flex-col items-center text-gray-600 hover:text-blue-500">
<i class="fas fa-user text-xl"></i>
<span class="text-xs">Profile</span>
</a>
</div>
</footer>
<!-- JavaScript Animation-->
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script>
AOS.init();
</script>
<script>
function showTab(tabName) {
// Hide all tabs
document.getElementById('shares').classList.add('hidden');
document.getElementById('realEstate').classList.add('hidden');
document.getElementById('crypto').classList.add('hidden');
// Show the selected tab
document.getElementById(tabName).classList.remove('hidden');
// Reset all tab buttons to default (gray)
document.getElementById('shares-tab').classList.remove('text-blue-500', 'border-b-2', 'border-blue-500');
document.getElementById('shares-tab').classList.add('text-gray-500');
document.getElementById('realEstate-tab').classList.remove('text-blue-500', 'border-b-2', 'border-blue-500');
document.getElementById('realEstate-tab').classList.add('text-gray-500');
document.getElementById('crypto-tab').classList.remove('text-blue-500', 'border-b-2', 'border-blue-500');
document.getElementById('crypto-tab').classList.add('text-gray-500');
// Set the active tab button to blue and add border
document.getElementById(`${tabName}-tab`).classList.remove('text-gray-500');
document.getElementById(`${tabName}-tab`).classList.add('text-blue-500', 'border-b-2', 'border-blue-500');
}
</script>
</body>
</html>