Spaces:
Running
Running
Download index.html from toppshutter/testxone: direct link, hf CLI and curl.
- Browser
- Download file 42.3 kB
-
https://huggingface.co/spaces/toppshutter/testxone/resolve/main/index.html
- Command line
-
hf download hf://spaces/toppshutter/testxone/index.html
-
curl -L -o index.html https://huggingface.co/spaces/toppshutter/testxone/resolve/main/index.html
42.3 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>FinTrack Pro - Accounting Solution</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| .gradient-bg { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| } | |
| .sidebar-item:hover .sidebar-icon { | |
| transform: translateX(5px); | |
| } | |
| .chart-container { | |
| height: 300px; | |
| } | |
| .animated-fade-in { | |
| animation: fadeIn 0.5s ease-in-out; | |
| } | |
| @keyframes fadeIn { | |
| from { opacity: 0; transform: translateY(10px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| .transaction-list li:nth-child(even) { | |
| background-color: rgba(243, 244, 246, 0.5); | |
| } | |
| .dashboard-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 font-sans"> | |
| <div class="flex h-screen overflow-hidden"> | |
| <!-- Sidebar --> | |
| <div class="hidden md:flex md:flex-shrink-0"> | |
| <div class="flex flex-col w-64 gradient-bg text-white"> | |
| <div class="flex items-center justify-center h-16 px-4"> | |
| <h1 class="text-2xl font-bold"><i class="fas fa-calculator mr-2"></i> FinTrack Pro</h1> | |
| </div> | |
| <div class="flex-1 overflow-y-auto"> | |
| <nav class="px-4 py-6"> | |
| <div class="space-y-2"> | |
| <div class="sidebar-item flex items-center px-4 py-3 rounded-lg bg-white bg-opacity-10 cursor-pointer"> | |
| <i class="sidebar-icon fas fa-tachometer-alt mr-3 transition-transform"></i> | |
| <span>Dashboard</span> | |
| </div> | |
| <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer"> | |
| <i class="sidebar-icon fas fa-file-invoice-dollar mr-3 transition-transform"></i> | |
| <span>Invoices</span> | |
| </div> | |
| <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer"> | |
| <i class="sidebar-icon fas fa-receipt mr-3 transition-transform"></i> | |
| <span>Expenses</span> | |
| </div> | |
| <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer"> | |
| <i class="sidebar-icon fas fa-university mr-3 transition-transform"></i> | |
| <span>Bank Reconciliation</span> | |
| </div> | |
| <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer"> | |
| <i class="sidebar-icon fas fa-chart-line mr-3 transition-transform"></i> | |
| <span>Reports</span> | |
| </div> | |
| <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer"> | |
| <i class="sidebar-icon fas fa-percent mr-3 transition-transform"></i> | |
| <span>Tax Management</span> | |
| </div> | |
| <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer"> | |
| <i class="sidebar-icon fas fa-users mr-3 transition-transform"></i> | |
| <span>Payroll</span> | |
| </div> | |
| <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer"> | |
| <i class="sidebar-icon fas fa-globe mr-3 transition-transform"></i> | |
| <span>Multi-Currency</span> | |
| </div> | |
| <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer"> | |
| <i class="sidebar-icon fas fa-boxes mr-3 transition-transform"></i> | |
| <span>Inventory</span> | |
| </div> | |
| <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer"> | |
| <i class="sidebar-icon fas fa-plug mr-3 transition-transform"></i> | |
| <span>Integrations</span> | |
| </div> | |
| </div> | |
| <div class="mt-6"> | |
| <h3 class="px-4 text-gray-300 uppercase text-xs font-semibold">Advanced Tools</h3> | |
| <div class="mt-2"> | |
| <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer"> | |
| <i class="sidebar-icon fas fa-chart-bar mr-3 transition-transform"></i> | |
| <span>Cash Flow Forecasting</span> | |
| </div> | |
| <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer"> | |
| <i class="sidebar-icon fas fa-bell mr-3 transition-transform"></i> | |
| <span>Proactive Alerts</span> | |
| </div> | |
| <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer"> | |
| <i class="sidebar-icon fas fa-lightbulb mr-3 transition-transform"></i> | |
| <span>Optimization Tips</span> | |
| </div> | |
| <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer"> | |
| <i class="sidebar-icon fas fa-robot mr-3 transition-transform"></i> | |
| <span>AI Assistant</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mt-10"> | |
| <h3 class="px-4 text-gray-300 uppercase text-xs font-semibold">Settings</h3> | |
| <div class="mt-2"> | |
| <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer"> | |
| <i class="sidebar-icon fas fa-user-shield mr-3 transition-transform"></i> | |
| <span>User Access</span> | |
| </div> | |
| <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer"> | |
| <i class="sidebar-icon fas fa-cog mr-3 transition-transform"></i> | |
| <span>Preferences</span> | |
| </div> | |
| </div> | |
| </div> | |
| </nav> | |
| </div> | |
| <div class="p-4 border-t border-gray-700"> | |
| <div class="flex items-center"> | |
| <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Profile" class="rounded-full h-10 w-10 object-cover"> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium">Sarah Johnson</p> | |
| <p class="text-xs text-gray-300">Admin</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Mobile sidebar --> | |
| <div class="md:hidden fixed inset-0 z-40" id="mobileSidebar" style="display: none;"> | |
| <div class="fixed inset-0 bg-gray-600 bg-opacity-75" id="mobileSidebarBackdrop"></div> | |
| <div class="relative flex flex-col w-72 max-w-xs h-full gradient-bg"> | |
| <div class="flex items-center justify-between h-16 px-4"> | |
| <h1 class="text-xl font-bold text-white"><i class="fas fa-calculator mr-2"></i> FinTrack Pro</h1> | |
| <button class="text-white" id="closeMobileSidebar"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div class="flex-1 overflow-y-auto py-4"> | |
| <!-- Same sidebar content as desktop --> | |
| <nav class="px-4"> | |
| <div class="space-y-2"> | |
| <div class="sidebar-item flex items-center px-4 py-3 rounded-lg bg-white bg-opacity-10 cursor-pointer"> | |
| <i class="sidebar-icon fas fa-tachometer-alt mr-3 transition-transform"></i> | |
| <span class="text-white">Dashboard</span> | |
| </div> | |
| <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer"> | |
| <i class="sidebar-icon fas fa-file-invoice-dollar mr-3 transition-transform"></i> | |
| <span class="text-white">Invoices</span> | |
| </div> | |
| <div class="sidebar-item flex items-center px-4 py-3 rounded-lg hover:bg-white hover:bg-opacity-10 cursor-pointer"> | |
| <i class="sidebar-icon fas fa-receipt mr-3 transition-transform"></i> | |
| <span class="text-white">Expenses</span> | |
| </div> | |
| <!-- Add other menu items as needed --> | |
| </div> | |
| </nav> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main content --> | |
| <div class="flex-1 overflow-auto"> | |
| <!-- Top navigation --> | |
| <div class="bg-white border-b border-gray-200"> | |
| <div class="flex items-center justify-between px-4 py-3"> | |
| <div class="flex items-center"> | |
| <button class="md:hidden text-gray-600 mr-4" id="openMobileSidebar"> | |
| <i class="fas fa-bars"></i> | |
| </button> | |
| <h1 class="text-xl font-semibold text-gray-800">Dashboard</h1> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <div class="relative"> | |
| <button class="text-gray-600 focus:outline-none"> | |
| <i class="fas fa-bell"></i> | |
| <span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span> | |
| </button> | |
| </div> | |
| <div class="relative"> | |
| <button class="text-gray-600 focus:outline-none"> | |
| <i class="fas fa-envelope"></i> | |
| <span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-blue-500"></span> | |
| </button> | |
| </div> | |
| <div class="relative"> | |
| <button class="flex items-center focus:outline-none" id="userMenuButton"> | |
| <span class="hidden md:inline-block mr-2 text-gray-700">Sarah Johnson</span> | |
| <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Profile" class="rounded-full h-8 w-8 object-cover"> | |
| </button> | |
| <div class="hidden absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-50" id="userMenu"> | |
| <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Profile</a> | |
| <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Settings</a> | |
| <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Sign out</a> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main content area --> | |
| <div class="p-6"> | |
| <!-- Quick Stats --> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6"> | |
| <div class="dashboard-card bg-white rounded-lg shadow p-6 transition-all duration-300"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-gray-500 text-sm font-medium">Total Revenue</p> | |
| <h3 class="text-2xl font-bold text-gray-800 mt-1">$24,780<sup class="text-green-500 text-sm ml-1">+12%</sup></h3> | |
| </div> | |
| <div class="bg-blue-100 p-3 rounded-full"> | |
| <i class="fas fa-dollar-sign text-blue-600 text-xl"></i> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="h-2 w-full bg-gray-200 rounded-full overflow-hidden"> | |
| <div class="h-full bg-blue-500 rounded-full" style="width: 70%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="dashboard-card bg-white rounded-lg shadow p-6 transition-all duration-300"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-gray-500 text-sm font-medium">Outstanding Invoices</p> | |
| <h3 class="text-2xl font-bold text-gray-800 mt-1">$8,450<sup class="text-red-500 text-sm ml-1">-5%</sup></h3> | |
| </div> | |
| <div class="bg-purple-100 p-3 rounded-full"> | |
| <i class="fas fa-file-invoice text-purple-600 text-xl"></i> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="h-2 w-full bg-gray-200 rounded-full overflow-hidden"> | |
| <div class="h-full bg-purple-500 rounded-full" style="width: 45%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="dashboard-card bg-white rounded-lg shadow p-6 transition-all duration-300"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-gray-500 text-sm font-medium">Expenses This Month</p> | |
| <h3 class="text-2xl font-bold text-gray-800 mt-1">$5,230<sup class="text-green-500 text-sm ml-1">-3%</sup></h3> | |
| </div> | |
| <div class="bg-green-100 p-3 rounded-full"> | |
| <i class="fas fa-receipt text-green-600 text-xl"></i> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="h-2 w-full bg-gray-200 rounded-full overflow-hidden"> | |
| <div class="h-full bg-green-500 rounded-full" style="width: 35%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main Content Grid --> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-6"> | |
| <!-- Left Column --> | |
| <div class="lg:col-span-2 space-y-6"> | |
| <!-- Cash Flow Forecast --> | |
| <div class="bg-white rounded-lg shadow p-6 mb-6 animated-fade-in"> | |
| <div class="flex items-center justify-between mb-6"> | |
| <h2 class="text-lg font-semibold text-gray-800 flex items-center"> | |
| <i class="fas fa-chart-bar text-blue-500 mr-2"></i> | |
| Cash Flow Forecast | |
| </h2> | |
| <div class="flex space-x-2"> | |
| <div class="flex items-center"> | |
| <div class="w-2 h-2 bg-red-500 rounded-full mr-1"></div> | |
| <span class="text-xs">Predicted Shortfall</span> | |
| </div> | |
| <div class="flex items-center"> | |
| <div class="w-2 h-2 bg-green-500 rounded-full mr-1"></div> | |
| <span class="text-xs">Healthy Cash Flow</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="chart-container"> | |
| <div class="flex items-end h-64 border-b border-l border-gray-200"> | |
| <div class="flex-1 flex items-end justify-around"> | |
| <div class="bg-green-500 w-6 rounded-t" style="height: 40%"> | |
| <div class="text-xs text-center -mb-6">$12k</div> | |
| </div> | |
| <div class="bg-green-500 w-6 rounded-t" style="height: 35%"> | |
| <div class="text-xs text-center -mb-6">$10k</div> | |
| </div> | |
| <div class="bg-green-500 w-6 rounded-t" style="height: 55%"> | |
| <div class="text-xs text-center -mb-6">$16k</div> | |
| </div> | |
| <div class="bg-red-500 w-6 rounded-t" style="height: 20%"> | |
| <div class="text-xs text-center -mb-6">$5k</div> | |
| </div> | |
| <div class="bg-green-500 w-6 rounded-t" style="height: 45%"> | |
| <div class="text-xs text-center -mb-6">$14k</div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="flex justify-around text-xs text-gray-500 mt-2"> | |
| <span>Sep</span> | |
| <span>Oct</span> | |
| <span>Nov</span> | |
| <span>Dec</span> | |
| <span>Jan</span> | |
| </div> | |
| </div> | |
| <div class="mt-4 p-3 bg-yellow-50 rounded-lg flex items-start"> | |
| <i class="fas fa-exclamation-triangle text-yellow-500 mt-1 mr-2"></i> | |
| <div> | |
| <p class="text-sm font-medium">Alert: Potential cash shortfall detected in December</p> | |
| <p class="text-xs mt-1">Solution: Consider delaying non-essential purchases or accelerating invoice payments</p> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Financial Overview Chart --> | |
| <div class="bg-white rounded-lg shadow p-6 animated-fade-in"> | |
| <div class="flex items-center justify-between mb-6"> | |
| <h2 class="text-lg font-semibold text-gray-800">Financial Overview</h2> | |
| <select class="border border-gray-300 rounded-lg px-3 py-1 text-sm focus:outline-none"> | |
| <option>Last 7 Days</option> | |
| <option>This Month</option> | |
| <option selected>Last 3 Months</option> | |
| <option>This Year</option> | |
| </select> | |
| </div> | |
| <div class="chart-container"> | |
| <!-- This would be replaced with a real chart in production --> | |
| <div class="flex items-end h-64 border-b border-l border-gray-200"> | |
| <div class="flex-1 flex items-end justify-around"> | |
| <div class="bg-blue-500 w-8 rounded-t" style="height: 60%"></div> | |
| <div class="bg-blue-500 w-8 rounded-t" style="height: 80%"></div> | |
| <div class="bg-blue-500 w-8 rounded-t" style="height: 75%"></div> | |
| <div class="bg-purple-500 w-8 rounded-t" style="height: 45%"></div> | |
| <div class="bg-purple-500 w-8 rounded-t" style="height: 55%"></div> | |
| <div class="bg-purple-500 w-8 rounded-t" style="height: 65%"></div> | |
| <div class="bg-green-500 w-8 rounded-t" style="height: 40%"></div> | |
| <div class="bg-green-500 w-8 rounded-t" style="height: 35%"></div> | |
| </div> | |
| </div> | |
| <div class="flex justify-around text-xs text-gray-500 mt-2"> | |
| <span>Jan</span> | |
| <span>Feb</span> | |
| <span>Mar</span> | |
| <span>Apr</span> | |
| <span>May</span> | |
| <span>Jun</span> | |
| <span>Jul</span> | |
| <span>Aug</span> | |
| </div> | |
| <div class="flex justify-center mt-4 space-x-4"> | |
| <div class="flex items-center"> | |
| <div class="w-3 h-3 bg-blue-500 rounded-full mr-2"></div> | |
| <span class="text-xs">Income</span> | |
| </div> | |
| <div class="flex items-center"> | |
| <div class="w-3 h-3 bg-purple-500 rounded-full mr-2"></div> | |
| <span class="text-xs">Invoices</span> | |
| </div> | |
| <div class="flex items-center"> | |
| <div class="w-3 h-3 bg-green-500 rounded-full mr-2"></div> | |
| <span class="text-xs">Expenses</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Recent Transactions --> | |
| <div class="bg-white rounded-lg shadow overflow-hidden animated-fade-in"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <div class="flex items-center justify-between"> | |
| <h2 class="text-lg font-semibold text-gray-800">Recent Transactions</h2> | |
| <button class="text-blue-600 text-sm font-medium">View All</button> | |
| </div> | |
| </div> | |
| <div class="divide-y divide-gray-200"> | |
| <ul class="divide-y divide-gray-200" id="transactionsList"> | |
| <!-- Transactions will be added here by JavaScript --> | |
| </ul> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Right Column --> | |
| <div class="space-y-6"> | |
| <!-- Quick Actions --> | |
| <div class="bg-white rounded-lg shadow p-6 animated-fade-in"> | |
| <h2 class="text-lg font-semibold text-gray-800 mb-4">Quick Actions</h2> | |
| <div class="grid grid-cols-2 gap-4"> | |
| <button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:bg-blue-50 hover:border-blue-200 transition-colors"> | |
| <div class="bg-blue-100 p-3 rounded-full mb-2"> | |
| <i class="fas fa-file-invoice text-blue-600"></i> | |
| </div> | |
| <span class="text-sm font-medium">New Invoice</span> | |
| </button> | |
| <button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:bg-purple-50 hover:border-purple-200 transition-colors"> | |
| <div class="bg-purple-100 p-3 rounded-full mb-2"> | |
| <i class="fas fa-receipt text-purple-600"></i> | |
| </div> | |
| <span class="text-sm font-medium">Record Expense</span> | |
| </button> | |
| <button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:bg-green-50 hover:border-green-200 transition-colors"> | |
| <div class="bg-green-100 p-3 rounded-full mb-2"> | |
| <i class="fas fa-users text-green-600"></i> | |
| </div> | |
| <span class="text-sm font-medium">Run Payroll</span> | |
| </button> | |
| <button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:bg-orange-50 hover:border-orange-200 transition-colors"> | |
| <div class="bg-orange-100 p-3 rounded-full mb-2"> | |
| <i class="fas fa-chart-pie text-orange-600"></i> | |
| </div> | |
| <span class="text-sm font-medium">View Reports</span> | |
| </button> | |
| </div> | |
| </div> | |
| <!-- AI Assistant --> | |
| <div class="bg-white rounded-lg shadow overflow-hidden animated-fade-in"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <h2 class="text-lg font-semibold text-gray-800 flex items-center"> | |
| <i class="fas fa-robot text-blue-500 mr-2"></i> | |
| AI Assistant | |
| </h2> | |
| </div> | |
| <div class="p-4"> | |
| <div class="bg-gray-50 rounded-lg p-4 mb-4" style="min-height: 120px;"> | |
| <p class="text-sm text-gray-600 mb-2">Ask me anything, like:</p> | |
| <ul class="text-xs text-blue-600 space-y-1"> | |
| <li>"Why did my expenses spike last month?"</li> | |
| <li>"How can I increase profit next quarter?"</li> | |
| <li>"Show upcoming cash flow issues"</li> | |
| </ul> | |
| <p class="text-sm mt-3 text-gray-400 italic" id="aiResponse">Waiting for your question...</p> | |
| </div> | |
| <div class="flex"> | |
| <input type="text" placeholder="Ask a question..." class="flex-1 border border-gray-300 rounded-l-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 text-sm"> | |
| <button class="bg-blue-500 text-white px-4 rounded-r-lg hover:bg-blue-600"> | |
| <i class="fas fa-paper-plane"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Upcoming Tasks --> | |
| <div class="bg-white rounded-lg shadow overflow-hidden animated-fade-in"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <div class="flex items-center justify-between"> | |
| <h2 class="text-lg font-semibold text-gray-800">Upcoming Tasks</h2> | |
| <button class="text-blue-600 text-sm font-medium">Add New</button> | |
| </div> | |
| </div> | |
| <div class="divide-y divide-gray-200"> | |
| <div class="p-4 hover:bg-gray-50"> | |
| <div class="flex items-center"> | |
| <input type="checkbox" class="rounded text-blue-600 mr-3"> | |
| <div class="flex-1"> | |
| <p class="text-sm font-medium">Follow up on unpaid invoices</p> | |
| <p class="text-xs text-gray-500 mt-1">Due tomorrow</p> | |
| </div> | |
| <button class="text-gray-400 hover:text-gray-600"> | |
| <i class="fas fa-ellipsis-v"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="p-4 hover:bg-gray-50"> | |
| <div class="flex items-center"> | |
| <input type="checkbox" class="rounded text-blue-600 mr-3"> | |
| <div class="flex-1"> | |
| <p class="text-sm font-medium">Submit quarterly tax report</p> | |
| <p class="text-xs text-gray-500 mt-1">Due in 3 days</p> | |
| </div> | |
| <button class="text-gray-400 hover:text-gray-600"> | |
| <i class="fas fa-ellipsis-v"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="p-4 hover:bg-gray-50"> | |
| <div class="flex items-center"> | |
| <input type="checkbox" class="rounded text-blue-600 mr-3"> | |
| <div class="flex-1"> | |
| <p class="text-sm font-medium">Reconcile bank account</p> | |
| <p class="text-xs text-gray-500 mt-1">Due in 5 days</p> | |
| </div> | |
| <button class="text-gray-400 hover:text-gray-600"> | |
| <i class="fas fa-ellipsis-v"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="p-4 hover:bg-gray-50 text-sm text-blue-600 font-medium"> | |
| <button class="flex items-center justify-center w-full"> | |
| <i class="fas fa-plus mr-2"></i> | |
| <span>Add Task</span> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Invoice Status --> | |
| <div class="bg-white rounded-lg shadow p-6 animated-fade-in"> | |
| <h2 class="text-lg font-semibold text-gray-800 mb-4">Invoice Status</h2> | |
| <div class="space-y-4"> | |
| <div> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span class="font-medium">Paid</span> | |
| <span>18 ($14.2K)</span> | |
| </div> | |
| <div class="h-2 w-full bg-gray-200 rounded-full overflow-hidden"> | |
| <div class="h-full bg-green-500 rounded-full" style="width: 75%"></div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span class="font-medium">Pending</span> | |
| <span>5 ($3.5K)</span> | |
| </div> | |
| <div class="h-2 w-full bg-gray-200 rounded-full overflow-hidden"> | |
| <div class="h-full bg-yellow-500 rounded-full" style="width: 20%"></div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span class="font-medium">Overdue</span> | |
| <span>3 ($1.2K)</span> | |
| </div> | |
| <div class="h-2 w-full bg-gray-200 rounded-full overflow-hidden"> | |
| <div class="h-full bg-red-500 rounded-full" style="width: 12%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // Mobile sidebar toggle | |
| document.getElementById('openMobileSidebar').addEventListener('click', function() { | |
| document.getElementById('mobileSidebar').style.display = 'block'; | |
| }); | |
| document.getElementById('closeMobileSidebar').addEventListener('click', function() { | |
| document.getElementById('mobileSidebar').style.display = 'none'; | |
| }); | |
| document.getElementById('mobileSidebarBackdrop').addEventListener('click', function() { | |
| document.getElementById('mobileSidebar').style.display = 'none'; | |
| }); | |
| // User menu toggle | |
| document.getElementById('userMenuButton').addEventListener('click', function() { | |
| const menu = document.getElementById('userMenu'); | |
| menu.classList.toggle('hidden'); | |
| }); | |
| // Close user menu when clicking outside | |
| document.addEventListener('click', function(event) { | |
| const userMenuButton = document.getElementById('userMenuButton'); | |
| const userMenu = document.getElementById('userMenu'); | |
| if (!userMenuButton.contains(event.target) && !userMenu.contains(event.target)) { | |
| userMenu.classList.add('hidden'); | |
| } | |
| }); | |
| // Sample transactions data | |
| const transactions = [ | |
| { | |
| id: 1, | |
| name: "Web Design Project", | |
| date: "2023-08-15", | |
| amount: 1200, | |
| type: "income", | |
| status: "completed" | |
| }, | |
| { | |
| id: 2, | |
| name: "Office Supplies", | |
| date: "2023-08-14", | |
| amount: 256.50, | |
| type: "expense", | |
| status: "completed" | |
| }, | |
| { | |
| id: 3, | |
| name: "Monthly Retainer (Client X)", | |
| date: "2023-08-10", | |
| amount: 3000, | |
| type: "income", | |
| status: "completed" | |
| }, | |
| { | |
| id: 4, | |
| name: "Cloud Hosting", | |
| date: "2023-08-05", | |
| amount: 89.99, | |
| type: "expense", | |
| status: "pending" | |
| }, | |
| { | |
| id: 5, | |
| name: "Consulting Session", | |
| date: "2023-08-01", | |
| amount: 450, | |
| type: "income", | |
| status: "completed" | |
| } | |
| ]; | |
| // Render transactions | |
| const transactionsList = document.getElementById('transactionsList'); | |
| transactions.forEach(transaction => { | |
| const listItem = document.createElement('li'); | |
| listItem.className = 'p-4 hover:bg-gray-50 transition-colors'; | |
| const isIncome = transaction.type === 'income'; | |
| const statusClass = transaction.status === 'completed' ? 'bg-green-100 text-green-800' : 'bg-yellow-100 text-yellow-800'; | |
| listItem.innerHTML = ` | |
| <div class="flex items-center justify-between"> | |
| <div class="flex items-center"> | |
| <div class="p-2 rounded-full mr-3 ${isIncome ? 'bg-blue-100 text-blue-600' : 'bg-purple-100 text-purple-600'}"> | |
| <i class="fas ${isIncome ? 'fa-arrow-down' : 'fa-arrow-up'}"></i> | |
| </div> | |
| <div> | |
| <p class="text-sm font-medium text-gray-800">${transaction.name}</p> | |
| <p class="text-xs text-gray-500 mt-1">${new Date(transaction.date).toLocaleDateString('en-US', { month: 'short', day: 'numeric' })}</p> | |
| </div> | |
| </div> | |
| <div class="text-right"> | |
| <p class="text-sm font-medium ${isIncome ? 'text-blue-600' : 'text-purple-600'}">${isIncome ? '+' : '-'}$${transaction.amount.toFixed(2)}</p> | |
| <span class="inline-block px-2 py-1 text-xs rounded-full ${statusClass} mt-1">${transaction.status}</span> | |
| </div> | |
| </div> | |
| `; | |
| transactionsList.appendChild(listItem); | |
| }); | |
| // AI Assistant | |
| document.querySelector('#aiAssistant button').addEventListener('click', function() { | |
| const question = document.querySelector('#aiAssistant input').value; | |
| const responseEl = document.getElementById('aiResponse'); | |
| responseEl.innerHTML = '<i class="fas fa-spinner fa-spin"></i> Analyzing...'; | |
| // Simulate AI response after delay | |
| setTimeout(() => { | |
| if (question.toLowerCase().includes('expens') && question.toLowerCase().includes('spike')) { | |
| responseEl.innerHTML = 'Your office supplies expense was 40% higher than usual last month due to a bulk order of equipment. I suggest spacing out these purchases next time to smooth cash flow.'; | |
| } else if (question.toLowerCase().includes('profit') || question.toLowerCase().includes('increase')) { | |
| responseEl.innerHTML = 'To increase profits next quarter: 1) Renegotiate web hosting contract (could save $120/mo) 2) Follow up on 3 late invoices totaling $2,400 3) Reduce color printing by 30% (could save ~$75/mo)'; | |
| } else { | |
| responseEl.innerHTML = 'Based on your current cash flow trends and upcoming invoices, your account is projected to maintain a healthy balance. No immediate actions needed.'; | |
| } | |
| }, 1500); | |
| }); | |
| // Animation on page load | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const animatedElements = document.querySelectorAll('.animated-fade-in'); | |
| animatedElements.forEach((el, index) => { | |
| setTimeout(() => { | |
| el.style.opacity = 1; | |
| }, index * 100); | |
| }); | |
| }); | |
| </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=toppshutter/testxone" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |