Add 3 files
Browse files- README.md +7 -5
- index.html +377 -19
- prompts.txt +1 -0
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: code
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: pink
|
| 5 |
+
colorTo: purple
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,377 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Robinhood Clone</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<script src="https://cdn.plot.ly/plotly-2.14.0.min.js"></script>
|
| 9 |
+
<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">
|
| 10 |
+
<style>
|
| 11 |
+
body {
|
| 12 |
+
font-family: 'Inter', sans-serif;
|
| 13 |
+
background-color: #0c1b2a;
|
| 14 |
+
color: #f8f9fa;
|
| 15 |
+
}
|
| 16 |
+
.garamond {
|
| 17 |
+
font-family: 'EB Garamond', serif;
|
| 18 |
+
}
|
| 19 |
+
.search-bar {
|
| 20 |
+
backdrop-filter: blur(10px);
|
| 21 |
+
background-color: rgba(255, 255, 255, 0.1);
|
| 22 |
+
}
|
| 23 |
+
.chart-container {
|
| 24 |
+
height: 300px;
|
| 25 |
+
}
|
| 26 |
+
.sidebar-item:hover {
|
| 27 |
+
background-color: rgba(255, 255, 255, 0.05);
|
| 28 |
+
}
|
| 29 |
+
.sidebar-item.active {
|
| 30 |
+
border-left: 3px solid #00c805;
|
| 31 |
+
font-weight: 500;
|
| 32 |
+
}
|
| 33 |
+
.stock-card {
|
| 34 |
+
transition: all 0.2s ease;
|
| 35 |
+
}
|
| 36 |
+
.stock-card:hover {
|
| 37 |
+
transform: translateY(-2px);
|
| 38 |
+
box-shadow: 0 10px 15px -3px rgba(0, 200, 5, 0.1);
|
| 39 |
+
}
|
| 40 |
+
.time-tab.active {
|
| 41 |
+
color: #00c805;
|
| 42 |
+
border-bottom: 2px solid #00c805;
|
| 43 |
+
}
|
| 44 |
+
@media (max-width: 768px) {
|
| 45 |
+
.sidebar {
|
| 46 |
+
transform: translateX(-100%);
|
| 47 |
+
transition: transform 0.3s ease;
|
| 48 |
+
}
|
| 49 |
+
.sidebar.open {
|
| 50 |
+
transform: translateX(0);
|
| 51 |
+
}
|
| 52 |
+
.mobile-menu-btn {
|
| 53 |
+
display: block;
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
</style>
|
| 57 |
+
</head>
|
| 58 |
+
<body class="min-h-screen">
|
| 59 |
+
<!-- Top Navigation Bar -->
|
| 60 |
+
<nav class="fixed top-0 left-0 right-0 bg-[#0c1b2a] border-b border-gray-800 z-50 px-4 py-3">
|
| 61 |
+
<div class="max-w-7xl mx-auto flex items-center justify-between">
|
| 62 |
+
<!-- Logo and Mobile Menu Button -->
|
| 63 |
+
<div class="flex items-center">
|
| 64 |
+
<button id="mobileMenuBtn" class="md:hidden mr-4 text-gray-300">
|
| 65 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 66 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
|
| 67 |
+
</svg>
|
| 68 |
+
</button>
|
| 69 |
+
<div class="flex items-center">
|
| 70 |
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
| 71 |
+
<path d="M12 2L3 7L12 12L21 7L12 2Z" fill="#00C805"/>
|
| 72 |
+
<path d="M3 12L12 17L21 12" stroke="#00C805" stroke-width="2" stroke-linecap="round"/>
|
| 73 |
+
<path d="M3 17L12 22L21 17" stroke="#00C805" stroke-width="2" stroke-linecap="round"/>
|
| 74 |
+
</svg>
|
| 75 |
+
<span class="ml-2 text-xl font-semibold text-white">Legend</span>
|
| 76 |
+
</div>
|
| 77 |
+
</div>
|
| 78 |
+
|
| 79 |
+
<!-- Search Bar -->
|
| 80 |
+
<div class="hidden md:flex flex-1 max-w-md mx-4">
|
| 81 |
+
<div class="relative w-full search-bar rounded-lg">
|
| 82 |
+
<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">
|
| 83 |
+
<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">
|
| 84 |
+
<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" />
|
| 85 |
+
</svg>
|
| 86 |
+
</div>
|
| 87 |
+
</div>
|
| 88 |
+
|
| 89 |
+
<!-- User Profile -->
|
| 90 |
+
<div class="flex items-center">
|
| 91 |
+
<button class="p-1 rounded-full hover:bg-gray-700">
|
| 92 |
+
<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">
|
| 93 |
+
<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" />
|
| 94 |
+
</svg>
|
| 95 |
+
</button>
|
| 96 |
+
<div class="ml-4 relative">
|
| 97 |
+
<button class="flex items-center focus:outline-none">
|
| 98 |
+
<div class="h-8 w-8 rounded-full bg-gray-600 flex items-center justify-center text-white">JD</div>
|
| 99 |
+
</button>
|
| 100 |
+
</div>
|
| 101 |
+
</div>
|
| 102 |
+
</div>
|
| 103 |
+
</nav>
|
| 104 |
+
|
| 105 |
+
<!-- Sidebar -->
|
| 106 |
+
<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">
|
| 107 |
+
<div class="h-full overflow-y-auto">
|
| 108 |
+
<nav class="px-4 py-6">
|
| 109 |
+
<ul class="space-y-2">
|
| 110 |
+
<li>
|
| 111 |
+
<a href="#" class="sidebar-item active flex items-center px-4 py-3 text-white rounded-lg">
|
| 112 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 113 |
+
<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" />
|
| 114 |
+
</svg>
|
| 115 |
+
<span class="ml-3">Home</span>
|
| 116 |
+
</a>
|
| 117 |
+
</li>
|
| 118 |
+
<li>
|
| 119 |
+
<a href="#" class="sidebar-item flex items-center px-4 py-3 text-gray-300 hover:text-white rounded-lg">
|
| 120 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 121 |
+
<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" />
|
| 122 |
+
</svg>
|
| 123 |
+
<span class="ml-3">Portfolio</span>
|
| 124 |
+
</a>
|
| 125 |
+
</li>
|
| 126 |
+
<li>
|
| 127 |
+
<a href="#" class="sidebar-item flex items-center px-4 py-3 text-gray-300 hover:text-white rounded-lg">
|
| 128 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 129 |
+
<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" />
|
| 130 |
+
</svg>
|
| 131 |
+
<span class="ml-3">Cash</span>
|
| 132 |
+
</a>
|
| 133 |
+
</li>
|
| 134 |
+
<li>
|
| 135 |
+
<a href="#" class="sidebar-item flex items-center px-4 py-3 text-gray-300 hover:text-white rounded-lg">
|
| 136 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 137 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7h8m0 0v8m0-8l-8 8-4-4-6 6" />
|
| 138 |
+
</svg>
|
| 139 |
+
<span class="ml-3">Markets</span>
|
| 140 |
+
</a>
|
| 141 |
+
</li>
|
| 142 |
+
<li>
|
| 143 |
+
<a href="#" class="sidebar-item flex items-center px-4 py-3 text-gray-300 hover:text-white rounded-lg">
|
| 144 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 145 |
+
<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" />
|
| 146 |
+
</svg>
|
| 147 |
+
<span class="ml-3">News</span>
|
| 148 |
+
</a>
|
| 149 |
+
</li>
|
| 150 |
+
</ul>
|
| 151 |
+
</nav>
|
| 152 |
+
</div>
|
| 153 |
+
</aside>
|
| 154 |
+
|
| 155 |
+
<!-- Main Content -->
|
| 156 |
+
<main class="pt-16 md:ml-64 min-h-screen">
|
| 157 |
+
<div class="max-w-7xl mx-auto px-4 py-6">
|
| 158 |
+
<!-- Stock Card -->
|
| 159 |
+
<div class="stock-card bg-[#142736] rounded-xl p-6 mb-6 shadow-lg border border-gray-800">
|
| 160 |
+
<div class="flex flex-col md:flex-row md:items-center md:justify-between">
|
| 161 |
+
<div>
|
| 162 |
+
<div class="flex items-center">
|
| 163 |
+
<h2 class="text-2xl font-bold text-white">AAPL</h2>
|
| 164 |
+
<span class="ml-2 text-gray-400">Apple Inc.</span>
|
| 165 |
+
</div>
|
| 166 |
+
<div class="mt-2 flex items-center">
|
| 167 |
+
<span class="text-3xl font-bold text-white">$172.57</span>
|
| 168 |
+
<span class="ml-3 px-2 py-1 rounded text-sm font-medium bg-green-900 text-green-400">+2.45%</span>
|
| 169 |
+
</div>
|
| 170 |
+
</div>
|
| 171 |
+
<div class="mt-4 md:mt-0 flex space-x-3">
|
| 172 |
+
<button class="px-4 py-2 bg-green-600 hover:bg-green-700 text-white rounded-lg font-medium transition-colors">
|
| 173 |
+
Buy
|
| 174 |
+
</button>
|
| 175 |
+
<button class="px-4 py-2 bg-gray-700 hover:bg-gray-600 text-white rounded-lg font-medium transition-colors">
|
| 176 |
+
Sell
|
| 177 |
+
</button>
|
| 178 |
+
</div>
|
| 179 |
+
</div>
|
| 180 |
+
</div>
|
| 181 |
+
|
| 182 |
+
<!-- Chart -->
|
| 183 |
+
<div class="bg-[#142736] rounded-xl p-6 mb-6 shadow-lg border border-gray-800">
|
| 184 |
+
<div id="chart" class="chart-container"></div>
|
| 185 |
+
|
| 186 |
+
<!-- Time Tabs -->
|
| 187 |
+
<div class="flex overflow-x-auto mt-4 pb-2 space-x-4">
|
| 188 |
+
<button class="time-tab px-3 py-1 text-sm font-medium text-gray-400 hover:text-white whitespace-nowrap">1D</button>
|
| 189 |
+
<button class="time-tab px-3 py-1 text-sm font-medium text-gray-400 hover:text-white whitespace-nowrap">1W</button>
|
| 190 |
+
<button class="time-tab px-3 py-1 text-sm font-medium text-gray-400 hover:text-white whitespace-nowrap">1M</button>
|
| 191 |
+
<button class="time-tab active px-3 py-1 text-sm font-medium whitespace-nowrap">3M</button>
|
| 192 |
+
<button class="time-tab px-3 py-1 text-sm font-medium text-gray-400 hover:text-white whitespace-nowrap">1Y</button>
|
| 193 |
+
<button class="time-tab px-3 py-1 text-sm font-medium text-gray-400 hover:text-white whitespace-nowrap">All</button>
|
| 194 |
+
</div>
|
| 195 |
+
</div>
|
| 196 |
+
|
| 197 |
+
<!-- Stats -->
|
| 198 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
|
| 199 |
+
<!-- Key Stats -->
|
| 200 |
+
<div class="bg-[#142736] rounded-xl p-6 shadow-lg border border-gray-800">
|
| 201 |
+
<h3 class="text-lg font-semibold text-white mb-4">Key Stats</h3>
|
| 202 |
+
<div class="grid grid-cols-2 gap-4">
|
| 203 |
+
<div>
|
| 204 |
+
<p class="text-gray-400 text-sm">Market Cap</p>
|
| 205 |
+
<p class="text-white font-medium">$2.78T</p>
|
| 206 |
+
</div>
|
| 207 |
+
<div>
|
| 208 |
+
<p class="text-gray-400 text-sm">P/E Ratio</p>
|
| 209 |
+
<p class="text-white font-medium">28.74</p>
|
| 210 |
+
</div>
|
| 211 |
+
<div>
|
| 212 |
+
<p class="text-gray-400 text-sm">Volume</p>
|
| 213 |
+
<p class="text-white font-medium">58.24M</p>
|
| 214 |
+
</div>
|
| 215 |
+
<div>
|
| 216 |
+
<p class="text-gray-400 text-sm">52W High</p>
|
| 217 |
+
<p class="text-white font-medium">$198.23</p>
|
| 218 |
+
</div>
|
| 219 |
+
<div>
|
| 220 |
+
<p class="text-gray-400 text-sm">52W Low</p>
|
| 221 |
+
<p class="text-white font-medium">$143.90</p>
|
| 222 |
+
</div>
|
| 223 |
+
<div>
|
| 224 |
+
<p class="text-gray-400 text-sm">Avg Volume</p>
|
| 225 |
+
<p class="text-white font-medium">62.14M</p>
|
| 226 |
+
</div>
|
| 227 |
+
</div>
|
| 228 |
+
</div>
|
| 229 |
+
|
| 230 |
+
<!-- About -->
|
| 231 |
+
<div class="bg-[#142736] rounded-xl p-6 shadow-lg border border-gray-800">
|
| 232 |
+
<h3 class="text-lg font-semibold text-white mb-4">About</h3>
|
| 233 |
+
<p class="text-gray-300 text-sm mb-4">
|
| 234 |
+
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.
|
| 235 |
+
</p>
|
| 236 |
+
<div class="grid grid-cols-2 gap-4">
|
| 237 |
+
<div>
|
| 238 |
+
<p class="text-gray-400 text-sm">CEO</p>
|
| 239 |
+
<p class="text-white font-medium">Tim Cook</p>
|
| 240 |
+
</div>
|
| 241 |
+
<div>
|
| 242 |
+
<p class="text-gray-400 text-sm">Employees</p>
|
| 243 |
+
<p class="text-white font-medium">164,000</p>
|
| 244 |
+
</div>
|
| 245 |
+
<div>
|
| 246 |
+
<p class="text-gray-400 text-sm">Headquarters</p>
|
| 247 |
+
<p class="text-white font-medium">Cupertino, CA</p>
|
| 248 |
+
</div>
|
| 249 |
+
<div>
|
| 250 |
+
<p class="text-gray-400 text-sm">Founded</p>
|
| 251 |
+
<p class="text-white font-medium">1976</p>
|
| 252 |
+
</div>
|
| 253 |
+
</div>
|
| 254 |
+
</div>
|
| 255 |
+
</div>
|
| 256 |
+
|
| 257 |
+
<!-- News -->
|
| 258 |
+
<div class="bg-[#142736] rounded-xl p-6 shadow-lg border border-gray-800">
|
| 259 |
+
<h3 class="text-lg font-semibold text-white mb-4">News</h3>
|
| 260 |
+
<div class="space-y-4">
|
| 261 |
+
<div class="p-4 hover:bg-gray-800 rounded-lg transition-colors cursor-pointer">
|
| 262 |
+
<div class="flex items-start">
|
| 263 |
+
<div class="flex-1">
|
| 264 |
+
<h4 class="text-white font-medium">Apple announces new AI features coming to iOS 18</h4>
|
| 265 |
+
<p class="text-gray-400 text-sm mt-1">Bloomberg - 2 hours ago</p>
|
| 266 |
+
</div>
|
| 267 |
+
<div class="ml-4 w-16 h-16 bg-gray-700 rounded-md flex-shrink-0"></div>
|
| 268 |
+
</div>
|
| 269 |
+
</div>
|
| 270 |
+
<div class="p-4 hover:bg-gray-800 rounded-lg transition-colors cursor-pointer">
|
| 271 |
+
<div class="flex items-start">
|
| 272 |
+
<div class="flex-1">
|
| 273 |
+
<h4 class="text-white font-medium">Apple Vision Pro sales slow as consumers wait for cheaper model</h4>
|
| 274 |
+
<p class="text-gray-400 text-sm mt-1">CNBC - 5 hours ago</p>
|
| 275 |
+
</div>
|
| 276 |
+
<div class="ml-4 w-16 h-16 bg-gray-700 rounded-md flex-shrink-0"></div>
|
| 277 |
+
</div>
|
| 278 |
+
</div>
|
| 279 |
+
<div class="p-4 hover:bg-gray-800 rounded-lg transition-colors cursor-pointer">
|
| 280 |
+
<div class="flex items-start">
|
| 281 |
+
<div class="flex-1">
|
| 282 |
+
<h4 class="text-white font-medium">Apple supplier Foxconn reports strong Q2 earnings</h4>
|
| 283 |
+
<p class="text-gray-400 text-sm mt-1">Reuters - 8 hours ago</p>
|
| 284 |
+
</div>
|
| 285 |
+
<div class="ml-4 w-16 h-16 bg-gray-700 rounded-md flex-shrink-0"></div>
|
| 286 |
+
</div>
|
| 287 |
+
</div>
|
| 288 |
+
</div>
|
| 289 |
+
</div>
|
| 290 |
+
</div>
|
| 291 |
+
</main>
|
| 292 |
+
|
| 293 |
+
<script>
|
| 294 |
+
// Mobile menu toggle
|
| 295 |
+
document.getElementById('mobileMenuBtn').addEventListener('click', function() {
|
| 296 |
+
document.getElementById('sidebar').classList.toggle('open');
|
| 297 |
+
});
|
| 298 |
+
|
| 299 |
+
// Time tab selection
|
| 300 |
+
const timeTabs = document.querySelectorAll('.time-tab');
|
| 301 |
+
timeTabs.forEach(tab => {
|
| 302 |
+
tab.addEventListener('click', function() {
|
| 303 |
+
timeTabs.forEach(t => t.classList.remove('active', 'text-green-500'));
|
| 304 |
+
this.classList.add('active', 'text-green-500');
|
| 305 |
+
});
|
| 306 |
+
});
|
| 307 |
+
|
| 308 |
+
// Sidebar item selection
|
| 309 |
+
const sidebarItems = document.querySelectorAll('.sidebar-item');
|
| 310 |
+
sidebarItems.forEach(item => {
|
| 311 |
+
item.addEventListener('click', function() {
|
| 312 |
+
sidebarItems.forEach(i => i.classList.remove('active', 'text-white'));
|
| 313 |
+
this.classList.add('active', 'text-white');
|
| 314 |
+
});
|
| 315 |
+
});
|
| 316 |
+
|
| 317 |
+
// Generate stock chart data
|
| 318 |
+
function generateStockData() {
|
| 319 |
+
const data = [];
|
| 320 |
+
const now = new Date();
|
| 321 |
+
const oneDay = 24 * 60 * 60 * 1000;
|
| 322 |
+
|
| 323 |
+
for (let i = 90; i >= 0; i--) {
|
| 324 |
+
const date = new Date(now - i * oneDay);
|
| 325 |
+
const price = 150 + Math.random() * 50;
|
| 326 |
+
data.push({
|
| 327 |
+
date: date,
|
| 328 |
+
price: price
|
| 329 |
+
});
|
| 330 |
+
}
|
| 331 |
+
|
| 332 |
+
return data;
|
| 333 |
+
}
|
| 334 |
+
|
| 335 |
+
// Create the chart
|
| 336 |
+
function createChart() {
|
| 337 |
+
const stockData = generateStockData();
|
| 338 |
+
const dates = stockData.map(item => item.date);
|
| 339 |
+
const prices = stockData.map(item => item.price);
|
| 340 |
+
|
| 341 |
+
const trace = {
|
| 342 |
+
x: dates,
|
| 343 |
+
y: prices,
|
| 344 |
+
type: 'scatter',
|
| 345 |
+
mode: 'lines',
|
| 346 |
+
line: {
|
| 347 |
+
color: '#00c805',
|
| 348 |
+
width: 2
|
| 349 |
+
},
|
| 350 |
+
fill: 'tozeroy',
|
| 351 |
+
fillcolor: 'rgba(0, 200, 5, 0.1)'
|
| 352 |
+
};
|
| 353 |
+
|
| 354 |
+
const layout = {
|
| 355 |
+
plot_bgcolor: 'rgba(0,0,0,0)',
|
| 356 |
+
paper_bgcolor: 'rgba(0,0,0,0)',
|
| 357 |
+
margin: { t: 0, r: 0, b: 30, l: 40 },
|
| 358 |
+
xaxis: {
|
| 359 |
+
showgrid: false,
|
| 360 |
+
color: '#6b7280'
|
| 361 |
+
},
|
| 362 |
+
yaxis: {
|
| 363 |
+
showgrid: true,
|
| 364 |
+
gridcolor: '#1f2937',
|
| 365 |
+
color: '#6b7280'
|
| 366 |
+
},
|
| 367 |
+
showlegend: false
|
| 368 |
+
};
|
| 369 |
+
|
| 370 |
+
Plotly.newPlot('chart', [trace], layout);
|
| 371 |
+
}
|
| 372 |
+
|
| 373 |
+
// Initialize chart when page loads
|
| 374 |
+
document.addEventListener('DOMContentLoaded', createChart);
|
| 375 |
+
</script>
|
| 376 |
+
<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>
|
| 377 |
+
</html>
|
prompts.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
// Build a React + Tailwind CSS web page that mimics the design of Robinhood’s Legend dashboard: // 1. Use a dark background (#0c1b2a) with green accents (#00c805) and white/light-gray text. // 2. Add a fixed top nav bar with: // - A Robinhood-style logo on the left // - A centered search bar with a rounded input and glassy blur effect // - A profile picture or user avatar icon on the right // 3. Add a vertical left sidebar with icons and labels for: // - Home, Portfolio, Cash, Markets, News // - Highlight the selected menu item with a green bar and bold text // 4. In the main area, include: // - A card showing the current stock (e.g., AAPL) with name, price, and % change (green/red) // - An embedded interactive line chart using Plotly or Chart.js to show stock price movement // - Tabs under the chart: 1D, 1W, 1M, 3M, 1Y, All // - A section below showing key stats: PE Ratio, Market Cap, Volume, etc. // 5. Use hover transitions and subtle shadows for cards and buttons // 6. Use Tailwind's typography and spacing utilities to keep the layout tight and modern // 7. Ensure mobile responsiveness and stick to a max-width of 1440px on large screens // 8. Use El Garamond or Inter font to match Robinhood's feel
|