Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Settings - AlgoGenius TraderBot</title> | |
| <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <style> | |
| .sidebar { | |
| transition: all 0.3s ease; | |
| } | |
| .sidebar-collapsed { | |
| width: 5rem; | |
| } | |
| .sidebar-collapsed .nav-text { | |
| display: none; | |
| } | |
| .content { | |
| transition: margin-left 0.3s ease; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <div class="flex h-screen overflow-hidden"> | |
| <!-- Sidebar --> | |
| <div class="sidebar bg-white w-64 border-r border-gray-200 flex flex-col"> | |
| <div class="flex items-center justify-center h-16 px-4 border-b border-gray-200"> | |
| <div class="flex items-center"> | |
| <i data-feather="activity" class="h-6 w-6 text-primary-500"></i> | |
| <span class="ml-2 text-lg font-semibold text-gray-900">AlgoGenius</span> | |
| </div> | |
| </div> | |
| <div class="flex-grow overflow-y-auto"> | |
| <nav class="px-2 py-4"> | |
| <div class="space-y-1"> | |
| <a href="dashboard.html" class="text-gray-600 hover:bg-gray-50 hover:text-gray-900 group flex items-center px-2 py-2 text-sm font-medium rounded-md"> | |
| <i data-feather="home" class="text-gray-400 group-hover:text-gray-500 mr-3 h-5 w-5"></i> | |
| <span class="nav-text">Dashboard</span> | |
| </a> | |
| <a href="strategies.html" class="text-gray-600 hover:bg-gray-50 hover:text-gray-900 group flex items-center px-2 py-2 text-sm font-medium rounded-md"> | |
| <i data-feather="bar-chart-2" class="text-gray-400 group-hover:text-gray-500 mr-3 h-5 w-5"></i> | |
| <span class="nav-text">Strategies</span> | |
| </a> | |
| <a href="telegram.html" class="text-gray-600 hover:bg-gray-50 hover:text-gray-900 group flex items-center px-2 py-2 text-sm font-medium rounded-md"> | |
| <i data-feather="download" class="text-gray-400 group-hover:text-gray-500 mr-3 h-5 w-5"></i> | |
| <span class="nav-text">Telegram Feeds</span> | |
| </a> | |
| <a href="models.html" class="text-gray-600 hover:bg-gray-50 hover:text-gray-900 group flex items-center px-2 py-2 text-sm font-medium rounded-md"> | |
| <i data-feather="cpu" class="text-gray-400 group-hover:text-gray-500 mr-3 h-5 w-5"></i> | |
| <span class="nav-text">AI Models</span> | |
| </a> | |
| <a href="backtesting.html" class="text-gray-600 hover:bg-gray-50 hover:text-gray-900 group flex items-center px-2 py-2 text-sm font-medium rounded-md"> | |
| <i data-feather="clock" class="text-gray-400 group-hover:text-gray-500 mr-3 h-5 w-5"></i> | |
| <span class="nav-text">Backtesting</span> | |
| </a> | |
| <a href="settings.html" class="bg-primary-50 text-primary-600 group flex items-center px-2 py-2 text-sm font-medium rounded-md"> | |
| <i data-feather="settings" class="text-primary-500 mr-3 h-5 w-5"></i> | |
| <span class="nav-text">Settings</span> | |
| </a> | |
| </div> | |
| </nav> | |
| </div> | |
| </div> | |
| <!-- Main content --> | |
| <div class="content flex-1 overflow-auto"> | |
| <!-- Top navigation --> | |
| <header class="bg-white shadow-sm"> | |
| <div class="px-4 py-4 sm:px-6 lg:px-8 flex justify-between items-center"> | |
| <div class="flex items-center"> | |
| <button class="mr-4 text-gray-500 hover:text-gray-600 focus:outline-none"> | |
| <i data-feather="menu"></i> | |
| </button> | |
| <h1 class="text-lg font-semibold leading-6 text-gray-900">Settings</h1> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Main content area --> | |
| <main class="p-4 sm:p-6 lg:p-8"> | |
| <div class="bg-white shadow rounded-lg overflow-hidden"> | |
| <div class="divide-y divide-gray-200"> | |
| <!-- Account Section --> | |
| <div class="px-4 py-5 sm:px-6"> | |
| <h3 class="text-lg leading-6 font-medium text-gray-900">Account Settings</h3> | |
| <p class="mt-1 text-sm text-gray-500">Manage your account information and preferences</p> | |
| </div> | |
| <div class="px-4 py-5 sm:p-6"> | |
| <div class="grid grid-cols-1 gap-6 sm:grid-cols-2"> | |
| <div> | |
| <label for="name" class="block text-sm font-medium text-gray-700">Full name</label> | |
| <input type="text" name="name" id="name" autocomplete="name" value="John Doe" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-primary-500 focus:border-primary-500 sm:text-sm"> | |
| </div> | |
| <div> | |
| <label for="email" class="block text-sm font-medium text-gray-700">Email address</label> | |
| <input type="email" name="email" id="email" autocomplete="email" value="john@example.com" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-primary-500 focus:border-primary-500 sm:text-sm"> | |
| </div> | |
| <div> | |
| <label for="timezone" class="block text-sm font-medium text-gray-700">Timezone</label> | |
| <select id="timezone" name="timezone" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-primary-500 focus:border-primary-500 sm:text-sm rounded-md"> | |
| <option>(GMT-12:00) International Date Line West</option> | |
| <option>(GMT-11:00) Midway Island, Samoa</option> | |
| <option selected>(GMT-07:00) Mountain Time (US & Canada)</option> | |
| <option>(GMT-06:00) Central Time (US & Canada)</option> | |
| <option>(GMT-05:00) Eastern Time (US & Canada)</option> | |
| <option>(GMT) Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700">Photo</label> | |
| <div class="mt-1 flex items-center"> | |
| <span class="inline-block h-12 w-12 rounded-full overflow-hidden bg-gray-100"> | |
| <img src="http://static.photos/people/200x200/1" alt="User profile" class="h-full w-full text-gray-300"> | |
| </span> | |
| <button type="button" class="ml-5 bg-white py-2 px-3 border border-gray-300 rounded-md shadow-sm text-sm leading-4 font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500"> | |
| Change | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Notifications Section --> | |
| <div class="px-4 py-5 sm:px-6"> | |
| <h3 class="text-lg leading-6 font-medium text-gray-900">Notifications</h3> | |
| <p class="mt-1 text-sm text-gray-500">Configure how you receive notifications</p> | |
| </div> | |
| <div class="px-4 py-5 sm:p-6"> | |
| <div class="space-y-4"> | |
| <div class="flex items-start"> | |
| <div class="flex items-center h-5"> | |
| <input id="email-notifications" name="email-notifications" type="checkbox" checked class="focus:ring-primary-500 h-4 w-4 text-primary-600 border-gray-300 rounded"> | |
| </div> | |
| <div class="ml-3 text-sm"> | |
| <label for="email-notifications" class="font-medium text-gray-700">Email notifications</label> | |
| <p class="text-gray-500">Get notified via email about important changes</p> | |
| </div> | |
| </div> | |
| <div class="flex items-start"> | |
| <div class="flex items-center h-5"> | |
| <input id="push-notifications" name="push-notifications" type="checkbox" checked class="focus:ring-primary-500 h-4 w-4 text-primary-600 border-gray-300 rounded"> | |
| </div> | |
| <div class="ml-3 text-sm"> | |
| <label for="push-notifications" class="font-medium text-gray-700">Push notifications</label> | |
| <p class="text-gray-500">Receive real-time alerts on your devices</p> | |
| </div> | |
| </div> | |
| <div class="flex items-start"> | |
| <div class="flex items-center h-5"> | |
| <input id="trade-alerts" name="trade-alerts" type="checkbox" checked class="focus:ring-primary-500 h-4 w-4 text-primary-600 border-gray-300 rounded"> | |
| </div> | |
| <div class="ml-3 text-sm"> | |
| <label for="trade-alerts" class="font-medium text-gray-700">Trade alerts</label> | |
| <p class="text-gray-500">Get notified when trades are executed</p> | |
| </div> | |
| </div> | |
| <div class="flex items-start"> | |
| <div class="flex items-center h-5"> | |
| <input id="newsletter" name="newsletter" type="checkbox" class="focus:ring-primary-500 h-4 w-4 text-primary-600 border-gray-300 rounded"> | |
| </div> | |
| <div class="ml-3 text-sm"> | |
| <label for="newsletter" class="font-medium text-gray-700">Product newsletter</label> | |
| <p class="text-gray-500">Receive our monthly product updates</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- API Keys Section --> | |
| <div class="px-4 py-5 sm:px-6"> | |
| <h3 class="text-lg leading-6 font-medium text-gray-900">API Keys</h3> | |
| <p class="mt-1 text-sm text-gray-500">Manage your exchange API connections</p> | |
| </div> | |
| <div class="px-4 py-5 sm:p-6"> | |
| <div class="overflow-hidden shadow ring-1 ring-black ring-opacity-5 rounded-md"> | |
| <table class="min-w-full divide-y divide-gray-300"> | |
| <thead class="bg-gray-50"> | |
| <tr> | |
| <th scope="col" class="py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6">Exchange</th> | |
| <th scope="col" class="px-3 py-3.5 text-left text-sm font-semibold text-gray-900">Status</th> | |
| <th scope="col" class="px-3 py-3.5 text-left text-sm font-semibold text-gray-900">Last Used</th> | |
| <th scope="col" class="relative py-3.5 pl-3 pr-4 sm:pr-6"> | |
| <span class="sr-only">Edit</span> | |
| </th> | |
| </tr> | |
| </thead> | |
| <tbody class="divide-y divide-gray-200 bg-white"> | |
| <tr> | |
| <td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6">Binance</td> | |
| <td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Connected</span> | |
| </td> | |
| <td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">2 hours ago</td> | |
| <td class="relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6"> | |
| <a href="#" class="text-primary-600 hover:text-primary-900">Edit</a> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6">FTX</td> | |
| <td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">Disconnected</span> | |
| </td> | |
| <td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">1 month ago</td> | |
| <td class="relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6"> | |
| <a href="#" class="text-primary-600 hover:text-primary-900">Edit</a> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6">Kraken</td> | |
| <td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Limited</span> | |
| </td> | |
| <td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">1 week ago</td> | |
| <td class="relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6"> | |
| <a href="#" class="text-primary-600 hover:text-primary-900">Edit</a> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| <div class="mt-4"> | |
| <button class="inline-flex items-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-primary-500 hover:bg-primary-600"> | |
| <i data-feather="plus" class="mr-2 h-4 w-4"></i> Add Exchange | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Danger Zone --> | |
| <div class="px-4 py-5 sm:px-6"> | |
| <h3 class="text-lg leading-6 font-medium text-gray-900">Danger Zone</h3> | |
| <p class="mt-1 text-sm text-gray-500">These actions are irreversible</p> | |
| </div> | |
| <div class="px-4 py-5 sm:p-6"> | |
| <div class="bg-red-50 border-l-4 border-red-400 p-4"> | |
| <div class="flex"> | |
| <div class="flex-shrink-0"> | |
| <i data-feather="alert-triangle" class="h-5 w-5 text-red-400"></i> | |
| </div> | |
| <div class="ml-3"> | |
| <p class="text-sm text-red-700"> | |
| Be careful with these settings. Deleting data or your account cannot be undone. | |
| </p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mt-6 space-y-4"> | |
| <div> | |
| <button class="inline-flex items-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-red-600 hover:bg-red-700"> | |
| <i data-feather="trash-2" class="mr-2 h-4 w-4"></i> Delete All Data | |
| </button> | |
| <p class="mt-1 text-sm text-gray-500">Permanently remove all your trading data and settings</p> | |
| </div> | |
| <div> | |
| <button class="inline-flex items-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-red-600 hover:bg-red-700"> | |
| <i data-feather="x" class="mr-2 h-4 w-4"></i> Deactivate Account | |
| </button> | |
| <p class="mt-1 text-sm text-gray-500">Temporarily disable your account</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="px-4 py-4 sm:px-6 border-t border-gray-200 bg-gray-50 flex justify-end"> | |
| <button class="bg-white py-2 px-4 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 hover:bg-gray-50 mr-3"> | |
| Cancel | |
| </button> | |
| <button class="inline-flex items-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-primary-500 hover:bg-primary-600"> | |
| <i data-feather="save" class="mr-2 h-4 w-4"></i> Save Changes | |
| </button> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| </div> | |
| <script> | |
| // Initialize feather icons | |
| feather.replace(); | |
| // Collapse sidebar functionality | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const sidebar = document.querySelector('.sidebar'); | |
| const toggleBtn = document.querySelector('header button'); | |
| toggleBtn.addEventListener('click', function() { | |
| sidebar.classList.toggle('sidebar-collapsed'); | |
| document.querySelector('.content').classList.toggle('ml-20'); | |
| document.querySelector('.content').classList.toggle('ml-64'); | |
| }); | |
| }); | |
| </script> | |
| </body> | |
| </html> |