File size: 20,143 Bytes
33de34b | 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 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Robinhood Clone</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.plot.ly/plotly-2.14.0.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600&family=Inter:wght@300;400;500;600&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Inter', sans-serif;
background-color: #0c1b2a;
color: #f8f9fa;
}
.garamond {
font-family: 'EB Garamond', serif;
}
.search-bar {
backdrop-filter: blur(10px);
background-color: rgba(255, 255, 255, 0.1);
}
.chart-container {
height: 300px;
}
.sidebar-item:hover {
background-color: rgba(255, 255, 255, 0.05);
}
.sidebar-item.active {
border-left: 3px solid #00c805;
font-weight: 500;
}
.stock-card {
transition: all 0.2s ease;
}
.stock-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(0, 200, 5, 0.1);
}
.time-tab.active {
color: #00c805;
border-bottom: 2px solid #00c805;
}
@media (max-width: 768px) {
.sidebar {
transform: translateX(-100%);
transition: transform 0.3s ease;
}
.sidebar.open {
transform: translateX(0);
}
.mobile-menu-btn {
display: block;
}
}
</style>
</head>
<body class="min-h-screen">
<!-- Top Navigation Bar -->
<nav class="fixed top-0 left-0 right-0 bg-[#0c1b2a] border-b border-gray-800 z-50 px-4 py-3">
<div class="max-w-7xl mx-auto flex items-center justify-between">
<!-- Logo and Mobile Menu Button -->
<div class="flex items-center">
<button id="mobileMenuBtn" class="md:hidden mr-4 text-gray-300">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
</svg>
</button>
<div class="flex items-center">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12 2L3 7L12 12L21 7L12 2Z" fill="#00C805"/>
<path d="M3 12L12 17L21 12" stroke="#00C805" stroke-width="2" stroke-linecap="round"/>
<path d="M3 17L12 22L21 17" stroke="#00C805" stroke-width="2" stroke-linecap="round"/>
</svg>
<span class="ml-2 text-xl font-semibold text-white">Legend</span>
</div>
</div>
<!-- Search Bar -->
<div class="hidden md:flex flex-1 max-w-md mx-4">
<div class="relative w-full search-bar rounded-lg">
<input type="text" placeholder="Search stocks, ETFs, crypto" class="w-full bg-transparent border border-gray-700 rounded-lg py-2 px-4 pl-10 text-white focus:outline-none focus:ring-1 focus:ring-green-500">
<svg class="absolute left-3 top-2.5 h-5 w-5 text-gray-400" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
</svg>
</div>
</div>
<!-- User Profile -->
<div class="flex items-center">
<button class="p-1 rounded-full hover:bg-gray-700">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-gray-300" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9" />
</svg>
</button>
<div class="ml-4 relative">
<button class="flex items-center focus:outline-none">
<div class="h-8 w-8 rounded-full bg-gray-600 flex items-center justify-center text-white">JD</div>
</button>
</div>
</div>
</div>
</nav>
<!-- Sidebar -->
<aside id="sidebar" class="fixed top-0 left-0 bottom-0 w-64 bg-[#0c1b2a] border-r border-gray-800 z-40 pt-16 transform md:translate-x-0 transition-transform duration-300">
<div class="h-full overflow-y-auto">
<nav class="px-4 py-6">
<ul class="space-y-2">
<li>
<a href="#" class="sidebar-item active flex items-center px-4 py-3 text-white rounded-lg">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" />
</svg>
<span class="ml-3">Home</span>
</a>
</li>
<li>
<a href="#" class="sidebar-item flex items-center px-4 py-3 text-gray-300 hover:text-white rounded-lg">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" />
</svg>
<span class="ml-3">Portfolio</span>
</a>
</li>
<li>
<a href="#" class="sidebar-item flex items-center px-4 py-3 text-gray-300 hover:text-white rounded-lg">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
<span class="ml-3">Cash</span>
</a>
</li>
<li>
<a href="#" class="sidebar-item flex items-center px-4 py-3 text-gray-300 hover:text-white rounded-lg">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7h8m0 0v8m0-8l-8 8-4-4-6 6" />
</svg>
<span class="ml-3">Markets</span>
</a>
</li>
<li>
<a href="#" class="sidebar-item flex items-center px-4 py-3 text-gray-300 hover:text-white rounded-lg">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z" />
</svg>
<span class="ml-3">News</span>
</a>
</li>
</ul>
</nav>
</div>
</aside>
<!-- Main Content -->
<main class="pt-16 md:ml-64 min-h-screen">
<div class="max-w-7xl mx-auto px-4 py-6">
<!-- Stock Card -->
<div class="stock-card bg-[#142736] rounded-xl p-6 mb-6 shadow-lg border border-gray-800">
<div class="flex flex-col md:flex-row md:items-center md:justify-between">
<div>
<div class="flex items-center">
<h2 class="text-2xl font-bold text-white">AAPL</h2>
<span class="ml-2 text-gray-400">Apple Inc.</span>
</div>
<div class="mt-2 flex items-center">
<span class="text-3xl font-bold text-white">$172.57</span>
<span class="ml-3 px-2 py-1 rounded text-sm font-medium bg-green-900 text-green-400">+2.45%</span>
</div>
</div>
<div class="mt-4 md:mt-0 flex space-x-3">
<button class="px-4 py-2 bg-green-600 hover:bg-green-700 text-white rounded-lg font-medium transition-colors">
Buy
</button>
<button class="px-4 py-2 bg-gray-700 hover:bg-gray-600 text-white rounded-lg font-medium transition-colors">
Sell
</button>
</div>
</div>
</div>
<!-- Chart -->
<div class="bg-[#142736] rounded-xl p-6 mb-6 shadow-lg border border-gray-800">
<div id="chart" class="chart-container"></div>
<!-- Time Tabs -->
<div class="flex overflow-x-auto mt-4 pb-2 space-x-4">
<button class="time-tab px-3 py-1 text-sm font-medium text-gray-400 hover:text-white whitespace-nowrap">1D</button>
<button class="time-tab px-3 py-1 text-sm font-medium text-gray-400 hover:text-white whitespace-nowrap">1W</button>
<button class="time-tab px-3 py-1 text-sm font-medium text-gray-400 hover:text-white whitespace-nowrap">1M</button>
<button class="time-tab active px-3 py-1 text-sm font-medium whitespace-nowrap">3M</button>
<button class="time-tab px-3 py-1 text-sm font-medium text-gray-400 hover:text-white whitespace-nowrap">1Y</button>
<button class="time-tab px-3 py-1 text-sm font-medium text-gray-400 hover:text-white whitespace-nowrap">All</button>
</div>
</div>
<!-- Stats -->
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
<!-- Key Stats -->
<div class="bg-[#142736] rounded-xl p-6 shadow-lg border border-gray-800">
<h3 class="text-lg font-semibold text-white mb-4">Key Stats</h3>
<div class="grid grid-cols-2 gap-4">
<div>
<p class="text-gray-400 text-sm">Market Cap</p>
<p class="text-white font-medium">$2.78T</p>
</div>
<div>
<p class="text-gray-400 text-sm">P/E Ratio</p>
<p class="text-white font-medium">28.74</p>
</div>
<div>
<p class="text-gray-400 text-sm">Volume</p>
<p class="text-white font-medium">58.24M</p>
</div>
<div>
<p class="text-gray-400 text-sm">52W High</p>
<p class="text-white font-medium">$198.23</p>
</div>
<div>
<p class="text-gray-400 text-sm">52W Low</p>
<p class="text-white font-medium">$143.90</p>
</div>
<div>
<p class="text-gray-400 text-sm">Avg Volume</p>
<p class="text-white font-medium">62.14M</p>
</div>
</div>
</div>
<!-- About -->
<div class="bg-[#142736] rounded-xl p-6 shadow-lg border border-gray-800">
<h3 class="text-lg font-semibold text-white mb-4">About</h3>
<p class="text-gray-300 text-sm mb-4">
Apple Inc. designs, manufactures, and markets smartphones, personal computers, tablets, wearables, and accessories worldwide. The company offers iPhone, Mac, iPad, and wearables including Apple Watch and AirPods.
</p>
<div class="grid grid-cols-2 gap-4">
<div>
<p class="text-gray-400 text-sm">CEO</p>
<p class="text-white font-medium">Tim Cook</p>
</div>
<div>
<p class="text-gray-400 text-sm">Employees</p>
<p class="text-white font-medium">164,000</p>
</div>
<div>
<p class="text-gray-400 text-sm">Headquarters</p>
<p class="text-white font-medium">Cupertino, CA</p>
</div>
<div>
<p class="text-gray-400 text-sm">Founded</p>
<p class="text-white font-medium">1976</p>
</div>
</div>
</div>
</div>
<!-- News -->
<div class="bg-[#142736] rounded-xl p-6 shadow-lg border border-gray-800">
<h3 class="text-lg font-semibold text-white mb-4">News</h3>
<div class="space-y-4">
<div class="p-4 hover:bg-gray-800 rounded-lg transition-colors cursor-pointer">
<div class="flex items-start">
<div class="flex-1">
<h4 class="text-white font-medium">Apple announces new AI features coming to iOS 18</h4>
<p class="text-gray-400 text-sm mt-1">Bloomberg - 2 hours ago</p>
</div>
<div class="ml-4 w-16 h-16 bg-gray-700 rounded-md flex-shrink-0"></div>
</div>
</div>
<div class="p-4 hover:bg-gray-800 rounded-lg transition-colors cursor-pointer">
<div class="flex items-start">
<div class="flex-1">
<h4 class="text-white font-medium">Apple Vision Pro sales slow as consumers wait for cheaper model</h4>
<p class="text-gray-400 text-sm mt-1">CNBC - 5 hours ago</p>
</div>
<div class="ml-4 w-16 h-16 bg-gray-700 rounded-md flex-shrink-0"></div>
</div>
</div>
<div class="p-4 hover:bg-gray-800 rounded-lg transition-colors cursor-pointer">
<div class="flex items-start">
<div class="flex-1">
<h4 class="text-white font-medium">Apple supplier Foxconn reports strong Q2 earnings</h4>
<p class="text-gray-400 text-sm mt-1">Reuters - 8 hours ago</p>
</div>
<div class="ml-4 w-16 h-16 bg-gray-700 rounded-md flex-shrink-0"></div>
</div>
</div>
</div>
</div>
</div>
</main>
<script>
// Mobile menu toggle
document.getElementById('mobileMenuBtn').addEventListener('click', function() {
document.getElementById('sidebar').classList.toggle('open');
});
// Time tab selection
const timeTabs = document.querySelectorAll('.time-tab');
timeTabs.forEach(tab => {
tab.addEventListener('click', function() {
timeTabs.forEach(t => t.classList.remove('active', 'text-green-500'));
this.classList.add('active', 'text-green-500');
});
});
// Sidebar item selection
const sidebarItems = document.querySelectorAll('.sidebar-item');
sidebarItems.forEach(item => {
item.addEventListener('click', function() {
sidebarItems.forEach(i => i.classList.remove('active', 'text-white'));
this.classList.add('active', 'text-white');
});
});
// Generate stock chart data
function generateStockData() {
const data = [];
const now = new Date();
const oneDay = 24 * 60 * 60 * 1000;
for (let i = 90; i >= 0; i--) {
const date = new Date(now - i * oneDay);
const price = 150 + Math.random() * 50;
data.push({
date: date,
price: price
});
}
return data;
}
// Create the chart
function createChart() {
const stockData = generateStockData();
const dates = stockData.map(item => item.date);
const prices = stockData.map(item => item.price);
const trace = {
x: dates,
y: prices,
type: 'scatter',
mode: 'lines',
line: {
color: '#00c805',
width: 2
},
fill: 'tozeroy',
fillcolor: 'rgba(0, 200, 5, 0.1)'
};
const layout = {
plot_bgcolor: 'rgba(0,0,0,0)',
paper_bgcolor: 'rgba(0,0,0,0)',
margin: { t: 0, r: 0, b: 30, l: 40 },
xaxis: {
showgrid: false,
color: '#6b7280'
},
yaxis: {
showgrid: true,
gridcolor: '#1f2937',
color: '#6b7280'
},
showlegend: false
};
Plotly.newPlot('chart', [trace], layout);
}
// Initialize chart when page loads
document.addEventListener('DOMContentLoaded', createChart);
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=SaiBB/code" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |