Spaces:
Running

File size: 17,623 Bytes
3dc92ab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
```html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>TaxWizard Pro - Dashboard</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
    <style>
        #vanta-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            opacity: 0.15;
        }
        .sidebar {
            transition: all 0.3s ease;
        }
        .sidebar-collapsed {
            width: 5rem;
        }
        .sidebar-expanded {
            width: 16rem;
        }
        .main-content {
            transition: margin-left 0.3s ease;
        }
        .stat-card {
            transition: transform 0.2s ease;
        }
        .stat-card:hover {
            transform: translateY(-3px);
        }
        .portfolio-card {
            transition: all 0.2s ease;
        }
        .portfolio-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }
        .dark .portfolio-card:hover {
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
        }
        .holding-row:hover {
            background-color: rgba(59, 130, 246, 0.05);
        }
        .dark .holding-row:hover {
            background-color: rgba(59, 130, 246, 0.1);
        }
    </style>
</head>
<body class="bg-gray-50 dark:bg-gray-900 min-h-screen">
    <div id="vanta-bg" class="dark:opacity-30"></div>
    
    <!-- Sidebar -->
    <div class="sidebar sidebar-expanded fixed top-0 left-0 h-full bg-white dark:bg-gray-800 shadow-lg z-40">
        <div class="flex flex-col h-full">
            <!-- Logo/Sidebar Toggle -->
            <div class="flex items-center justify-between p-4 border-b border-gray-200 dark:border-gray-700">
                <div class="flex items-center">
                    <i data-feather="dollar-sign" class="text-blue-600 dark:text-blue-400 w-6 h-6"></i>
                    <span class="ml-2 font-semibold text-lg">TaxWizard</span>
                </div>
                <button id="sidebarToggle" class="text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200">
                    <i data-feather="chevron-left" class="w-5 h-5"></i>
                </button>
            </div>

            <!-- User Profile -->
            <div class="p-4 border-b border-gray-200 dark:border-gray-700 flex items-center">
                <div class="relative">
                    <img src="http://static.photos/people/200x200/1" class="w-10 h-10 rounded-full" alt="User avatar">
                    <span class="absolute bottom-0 right-0 bg-green-500 rounded-full w-3 h-3 border-2 border-white dark:border-gray-800"></span>
                </div>
                <div class="ml-3">
                    <p class="text-sm font-medium">John Doe</p>
                    <span class="text-xs bg-yellow-100 dark:bg-yellow-900 text-yellow-800 dark:text-yellow-200 px-2 py-0.5 rounded-full">Free</span>
                </div>
            </div>

            <!-- Navigation -->
            <nav class="flex-1 overflow-y-auto p-2">
                <ul>
                    <li>
                        <a href="#" class="flex items-center p-2 text-blue-600 dark:text-blue-400 bg-blue-50 dark:bg-blue-900/50 rounded-lg">
                            <i data-feather="home" class="w-5 h-5"></i>
                            <span class="ml-3">Dashboard</span>
                        </a>
                    </li>
                    <li class="mt-1">
                        <a href="#" class="flex items-center p-2 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg">
                            <i data-feather="briefcase" class="w-5 h-5"></i>
                            <span class="ml-3">Portfolios</span>
                        </a>
                    </li>
                    <li class="mt-1">
                        <a href="#" class="flex items-center p-2 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg">
                            <i data-feather="settings" class="w-5 h-5"></i>
                            <span class="ml-3">Settings</span>
                        </a>
                    </li>
                    <li class="mt-1">
                        <a href="#" class="flex items-center p-2 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg">
                            <i data-feather="credit-card" class="w-5 h-5"></i>
                            <span class="ml-3">Billing</span>
                        </a>
                    </li>
                </ul>
            </nav>

            <!-- Bottom Actions -->
            <div class="p-4 border-t border-gray-200 dark:border-gray-700">
                <button class="flex items-center p-2 w-full text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg">
                    <i data-feather="log-out" class="w-5 h-5"></i>
                    <span class="ml-3">Logout</span>
                </button>
            </div>
        </div>
    </div>

    <!-- Main Content -->
    <div class="main-content ml-16 md:ml-64 p-4 pt-20">
        <!-- Header -->
        <header class="fixed top-0 right-0 left-16 md:left-64 bg-white dark:bg-gray-800 shadow-sm z-30 p-4 flex justify-between items-center">
            <h1 class="text-xl font-semibold">Dashboard</h1>
            <div class="flex items-center space-x-4">
                <button id="themeToggle" class="p-2 rounded-full bg-gray-100 dark:bg-gray-700">
                    <i data-feather="moon" class="hidden dark:block text-yellow-300"></i>
                    <i data-feather="sun" class="dark:hidden text-yellow-500"></i>
                </button>
                <button class="p-2 rounded-full bg-gray-100 dark:bg-gray-700 relative">
                    <i data-feather="bell" class="w-5 h-5"></i>
                    <span class="absolute top-0 right-0 bg-red-500 rounded-full w-2 h-2"></span>
                </button>
            </div>
        </header>

        <!-- Dashboard Content -->
        <div id="dashboardContent">
            <!-- Welcome Section -->
            <div class="mb-8">
                <h2 class="text-2xl font-bold mb-2">Welcome back, John!</h2>
                <p class="text-gray-600 dark:text-gray-400">Here's what's happening with your portfolios today.</p>
            </div>

            <!-- Stats Cards -->
            <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
                <div class="stat-card bg-white dark:bg-gray-800 rounded-lg shadow p-6">
                    <div class="flex items-center justify-between">
                        <div>
                            <p class="text-gray-500 dark:text-gray-400 text-sm">Total Portfolios</p>
                            <p class="text-2xl font-bold">1/1</p>
                        </div>
                        <div class="bg-blue-100 dark:bg-blue-900 p-3 rounded-full">
                            <i data-feather="briefcase" class="text-blue-600 dark:text-blue-400 w-5 h-5"></i>
                        </div>
                    </div>
                </div>
                <div class="stat-card bg-white dark:bg-gray-800 rounded-lg shadow p-6">
                    <div class="flex items-center justify-between">
                        <div>
                            <p class="text-gray-500 dark:text-gray-400 text-sm">Last Login</p>
                            <p class="text-2xl font-bold">Today</p>
                        </div>
                        <div class="bg-green-100 dark:bg-green-900 p-3 rounded-full">
                            <i data-feather="clock" class="text-green-600 dark:text-green-400 w-5 h-5"></i>
                        </div>
                    </div>
                </div>
                <div class="stat-card bg-white dark:bg-gray-800 rounded-lg shadow p-6">
                    <div class="flex items-center justify-between">
                        <div>
                            <p class="text-gray-500 dark:text-gray-400 text-sm">Total Tax Savings</p>
                            <p class="text-2xl font-bold">$1,245</p>
                        </div>
                        <div class="bg-purple-100 dark:bg-purple-900 p-3 rounded-full">
                            <i data-feather="dollar-sign" class="text-purple-600 dark:text-purple-400 w-5 h-5"></i>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Quick Actions -->
            <div class="mb-8">
                <h3 class="text-lg font-semibold mb-4">Quick Actions</h3>
                <div class="flex flex-wrap gap-4">
                    <button class="flex items-center bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg">
                        <i data-feather="plus" class="w-4 h-4 mr-2"></i>
                        Create New Portfolio
                    </button>
                    <button class="flex items-center bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700 px-4 py-2 rounded-lg">
                        <i data-feather="upload" class="w-4 h-4 mr-2"></i>
                        Upload Statement
                    </button>
                    <button class="flex items-center bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700 px-4 py-2 rounded-lg">
                        <i data-feather="bar-chart-2" class="w-4 h-4 mr-2"></i>
                        Run Analysis
                    </button>
                </div>
            </div>

            <!-- Recent Activity -->
            <div class="bg-white dark:bg-gray-800 rounded-lg shadow mb-8">
                <div class="p-4 border-b border-gray-200 dark:border-gray-700">
                    <h3 class="font-semibold text-lg flex items-center">
                        <i data-feather="activity" class="w-5 h-5 mr-2 text-blue-600 dark:text-blue-400"></i>
                        Recent Activity
                    </h3>
                </div>
                <div class="p-4">
                    <div class="space-y-4">
                        <div class="flex items-start">
                            <div class="bg-blue-100 dark:bg-blue-900 p-2 rounded-full mr-3">
                                <i data-feather="bar-chart-2" class="text-blue-600 dark:text-blue-400 w-4 h-4"></i>
                            </div>
                            <div>
                                <p class="font-medium">Tax analysis completed</p>
                                <p class="text-sm text-gray-500 dark:text-gray-400">Retirement Portfolio - Saved $342 in taxes</p>
                                <p class="text-xs text-gray-400 dark:text-gray-500">2 hours ago</p>
                            </div>
                        </div>
                        <div class="flex items-start">
                            <div class="bg-green-100 dark:bg-green-900 p-2 rounded-full mr-3">
                                <i data-feather="upload" class="text-green-600 dark:text-green-400 w-4 h-4"></i>
                            </div>
                            <div>
                                <p class="font-medium">Statement uploaded</p>
                                <p class="text-sm text-gray-500 dark:text-gray-400">Fidelity_Statement_Q3_2023.pdf</p>
                                <p class="text-xs text-gray-400 dark:text-gray-500">Yesterday</p>
                            </div>
                        </div>
                        <div class="flex items-start">
                            <div class="bg-purple-100 dark:bg-purple-900 p-2 rounded-full mr-3">
                                <i data-feather="plus" class="text-purple-600 dark:text-purple-400 w-4 h-4"></i>
                            </div>
                            <div>
                                <p class="font-medium">New portfolio created</p>
                                <p class="text-sm text-gray-500 dark:text-gray-400">Retirement Portfolio</p>
                                <p class="text-xs text-gray-400 dark:text-gray-500">3 days ago</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Portfolios Section -->
            <div>
                <div class="flex justify-between items-center mb-4">
                    <h3 class="text-lg font-semibold">Your Portfolios</h3>
                    <div class="relative">
                        <input type="text" placeholder="Search portfolios..." class="bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-lg pl-8 pr-4 py-1 text-sm">
                        <i data-feather="search" class="absolute left-2 top-2 w-4 h-4 text-gray-400"></i>
                    </div>
                </div>

                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
                    <!-- Portfolio Card -->
                    <div class="portfolio-card bg-white dark:bg-gray-800 rounded-lg shadow overflow-hidden border border-gray-200 dark:border-gray-700">
                        <div class="p-4 border-b border-gray-200 dark:border-gray-700">
                            <div class="flex justify-between items-start">
                                <div>
                                    <h4 class="font-semibold text-lg">Retirement Portfolio</h4>
                                    <p class="text-sm text-gray-500 dark:text-gray-400">Last updated: Today</p>
                                </div>
                                <div class="dropdown relative">
                                    <button class="text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200">
                                        <i data-feather="more-vertical" class="w-5 h-5"></i>
                                    </button>
                                    <div class="dropdown-menu absolute right-0 mt-2 w-48 bg-white dark:bg-gray-800 rounded-md shadow-lg z-10 hidden">
                                        <a href="#" class="block px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700">View</a>
                                        <a href="#" class="block px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700">Edit</a>
                                        <a href="#" class="block px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700">Duplicate</a>
                                        <a href="#" class="block px-4 py-2 text-sm text-red-600 hover:bg-gray-100 dark:hover:bg-gray-700">Delete</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="p-4">
                            <div class="flex justify-between items-center mb-4">
                                <div>
                                    <p class="text-sm text-gray-500 dark:text-gray-400">Total Value</p>
                                    <p class="text-xl font-bold">$125,342</p>
                                </div>
                                <div>
                                    <p class="text-sm text-gray-500 dark:text-gray-400">Holdings</p>
                                    <p class="text-xl font-bold">12</p>
                                </div>
                            </div>
                            <button class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 rounded-lg text-sm font-medium">
                                Run Tax Analysis
                            </button>
                        </div>
                    </div>

                    <!-- Empty State or Add New Portfolio -->
                    <div class="portfolio-card bg-white dark:bg-gray-800 rounded-lg shadow overflow-hidden border-2 border-dashed border-gray-300 dark:border-gray-600 flex items-center justify-center min-h-[200px]">
                        <button class="text-center p-6">
                            <i data-feather="plus" class="w-8 h-8 mx-auto text-gray-400 mb-2"></i>
                            <p class="text-gray-600 dark:text-gray-400 font-medium">Create New Portfolio</p>
                        </button>
                    </div>
                </div>
            </div>
        </div>

        <!-- Portfolio Detail View (Hidden by default) -->
        <div id="portfolioDetailView" class="hidden">
            <!-- Portfolio Header -->
            <div class="flex justify-between items-center mb-6">
                <div>
                    <button id="backToDashboard" class="flex items-center text-blue-600 dark:text-blue-400 hover:underline mr-4">
                        <i data-feather="arrow-left" class="w-4 h-4 mr-1"></i>
                        Back to Dashboard
                    </button>
                    <h2 class="text-2xl font-bold mt-2">Retirement Portfolio</h2>
                    <p class="text-gray-500 dark:text-gray-400">Created: Oct 15, 2023 | Last modified: Today</p>