algogenius-traderbot / telegram.html
Alexo19's picture
finish the app
c11753d verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Telegram Feeds - 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;
}
.card-hover {
transition: all 0.3s ease;
}
.card-hover:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
</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="bg-primary-50 text-primary-600 group flex items-center px-2 py-2 text-sm font-medium rounded-md">
<i data-feather="download" class="text-primary-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="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="settings" class="text-gray-400 group-hover:text-gray-500 mr-3 h-5 w-5"></i>
<span class="nav-text">Settings</span>
</a>
</div>
</nav>
</div>
<div class="p-4 border-t border-gray-200">
<button class="w-full flex items-center justify-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>
<span class="nav-text">Add Feed</span>
</button>
</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">Telegram Feeds</h1>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<i data-feather="search" class="h-5 w-5 text-gray-400"></i>
</div>
<input type="text" class="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-md leading-5 bg-white placeholder-gray-500 focus:outline-none focus:ring-primary-500 focus:border-primary-500 sm:text-sm" placeholder="Search feeds...">
</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-primary-500 hover:bg-primary-600">
<i data-feather="plus" class="mr-2 h-4 w-4"></i> New Feed
</button>
</div>
</div>
</header>
<!-- Main content area -->
<main class="p-4 sm:p-6 lg:p-8">
<div class="mb-6">
<h2 class="text-lg font-medium text-gray-900">Connected Telegram Channels</h2>
<p class="mt-1 text-sm text-gray-500">These channels are being monitored for trading signals and resources</p>
</div>
<div class="grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3">
<!-- Feed Card 1 -->
<div class="card-hover bg-white overflow-hidden shadow rounded-lg">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-blue-500 rounded-md p-3">
<i data-feather="message-square" class="h-6 w-6 text-white"></i>
</div>
<div class="ml-5">
<h3 class="text-lg leading-6 font-medium text-gray-900">SMC Advanced</h3>
<p class="mt-1 text-sm text-gray-500">@smc_advanced</p>
</div>
</div>
<div class="mt-5 grid grid-cols-2 gap-4">
<div>
<p class="text-sm font-medium text-gray-500">Last Updated</p>
<p class="mt-1 text-sm font-semibold text-gray-900">2 min ago</p>
</div>
<div>
<p class="text-sm font-medium text-gray-500">Resources</p>
<p class="mt-1 text-sm font-semibold text-gray-900">12 PDFs</p>
</div>
<div>
<p class="text-sm font-medium text-gray-500">Signals</p>
<p class="mt-1 text-sm font-semibold text-gray-900">3 today</p>
</div>
<div>
<p class="text-sm font-medium text-gray-500">Status</p>
<span class="mt-1 px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Active</span>
</div>
</div>
<div class="mt-6 flex space-x-3">
<button class="flex-1 inline-flex justify-center items-center px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">
<i data-feather="edit-2" class="mr-2 h-4 w-4"></i> Edit
</button>
<button class="flex-1 inline-flex justify-center 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="eye" class="mr-2 h-4 w-4"></i> View
</button>
</div>
</div>
</div>
<!-- Feed Card 2 -->
<div class="card-hover bg-white overflow-hidden shadow rounded-lg">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-green-500 rounded-md p-3">
<i data-feather="message-square" class="h-6 w-6 text-white"></i>
</div>
<div class="ml-5">
<h3 class="text-lg leading-6 font-medium text-gray-900">Crypto Signals Pro</h3>
<p class="mt-1 text-sm text-gray-500">@crypto_signals_pro</p>
</div>
</div>
<div class="mt-5 grid grid-cols-2 gap-4">
<div>
<p class="text-sm font-medium text-gray-500">Last Updated</p>
<p class="mt-1 text-sm font-semibold text-gray-900">15 min ago</p>
</div>
<div>
<p class="text-sm font-medium text-gray-500">Resources</p>
<p class="mt-1 text-sm font-semibold text-gray-900">8 PDFs</p>
</div>
<div>
<p class="text-sm font-medium text-gray-500">Signals</p>
<p class="mt-1 text-sm font-semibold text-gray-900">5 today</p>
</div>
<div>
<p class="text-sm font-medium text-gray-500">Status</p>
<span class="mt-1 px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Active</span>
</div>
</div>
<div class="mt-6 flex space-x-3">
<button class="flex-1 inline-flex justify-center items-center px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">
<i data-feather="edit-2" class="mr-2 h-4 w-4"></i> Edit
</button>
<button class="flex-1 inline-flex justify-center 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="eye" class="mr-2 h-4 w-4"></i> View
</button>
</div>
</div>
</div>
<!-- Feed Card 3 -->
<div class="card-hover bg-white overflow-hidden shadow rounded-lg">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-purple-500 rounded-md p-3">
<i data-feather="message-square" class="h-6 w-6 text-white"></i>
</div>
<div class="ml-5">
<h3 class="text-lg leading-6 font-medium text-gray-900">Forex Masters</h3>
<p class="mt-1 text-sm text-gray-500">@forex_masters</p>
</div>
</div>
<div class="mt-5 grid grid-cols-2 gap-4">
<div>
<p class="text-sm font-medium text-gray-500">Last Updated</p>
<p class="mt-1 text-sm font-semibold text-gray-900">1 hour ago</p>
</div>
<div>
<p class="text-sm font-medium text-gray-500">Resources</p>
<p class="mt-1 text-sm font-semibold text-gray-900">3 PDFs</p>
</div>
<div>
<p class="text-sm font-medium text-gray-500">Signals</p>
<p class="mt-1 text-sm font-semibold text-gray-900">2 today</p>
</div>
<div>
<p class="text-sm font-medium text-gray-500">Status</p>
<span class="mt-1 px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Limited</span>
</div>
</div>
<div class="mt-6 flex space-x-3">
<button class="flex-1 inline-flex justify-center items-center px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">
<i data-feather="edit-2" class="mr-2 h-4 w-4"></i> Edit
</button>
<button class="flex-1 inline-flex justify-center 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="eye" class="mr-2 h-4 w-4"></i> View
</button>
</div>
</div>
</div>
<!-- Feed Card 4 -->
<div class="card-hover bg-white overflow-hidden shadow rounded-lg">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-red-500 rounded-md p-3">
<i data-feather="message-square" class="h-6 w-6 text-white"></i>
</div>
<div class="ml-5">
<h3 class="text-lg leading-6 font-medium text-gray-900">Stock Alerts</h3>
<p class="mt-1 text-sm text-gray-500">@stock_alerts</p>
</div>
</div>
<div class="mt-5 grid grid-cols-2 gap-4">
<div>
<p class="text-sm font-medium text-gray-500">Last Updated</p>
<p class="mt-1 text-sm font-semibold text-gray-900">3 hours ago</p>
</div>
<div>
<p class="text-sm font-medium text-gray-500">Resources</p>
<p class="mt-1 text-sm font-semibold text-gray-900">5 PDFs</p>
</div>
<div>
<p class="text-sm font-medium text-gray-500">Signals</p>
<p class="mt-1 text-sm font-semibold text-gray-900">1 today</p>
</div>
<div>
<p class="text-sm font-medium text-gray-500">Status</p>
<span class="mt-1 px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Active</span>
</div>
</div>
<div class="mt-6 flex space-x-3">
<button class="flex-1 inline-flex justify-center items-center px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">
<i data-feather="edit-2" class="mr-2 h-4 w-4"></i> Edit
</button>
<button class="flex-1 inline-flex justify-center 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="eye" class="mr-2 h-4 w-4"></i> View
</button>
</div>
</div>
</div>
<!-- Feed Card 5 -->
<div class="card-hover bg-white overflow-hidden shadow rounded-lg">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-yellow-500 rounded-md p-3">
<i data-feather="message-square" class="h-6 w-6 text-white"></i>
</div>
<div class="ml-5">
<h3 class="text-lg leading-6 font-medium text-gray-900">Options Flow</h3>
<p class="mt-1 text-sm text-gray-500">@options_flow</p>
</div>
</div>
<div class="mt-5 grid grid-cols-2 gap-4">
<div>
<p class="text-sm font-medium text-gray-500">Last Updated</p>
<p class="mt-1 text-sm font-semibold text-gray-900">6 hours ago</p>
</div>
<div>
<p class="text-sm font-medium text-gray-500">Resources</p>
<p class="mt-1 text-sm font-semibold text-gray-900">7 PDFs</p>
</div>
<div>
<p class="text-sm font-medium text-gray-500">Signals</p>
<p class="mt-1 text-sm font-semibold text-gray-900">4 today</p>
</div>
<div>
<p class="text-sm font-medium text-gray-500">Status</p>
<span class="mt-1 px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Active</span>
</div>
</div>
<div class="mt-6 flex space-x-3">
<button class="flex-1 inline-flex justify-center items-center px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">
<i data-feather="edit-2" class="mr-2 h-4 w-4"></i> Edit
</button>
<button class="flex-1 inline-flex justify-center 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="eye" class="mr-2 h-4 w-4"></i> View
</button>
</div>
</div>
</div>
<!-- Add New Feed Card -->
<div class="card-hover bg-gray-50 overflow-hidden shadow rounded-lg border-2 border-dashed border-gray-300 hover:border-primary-500">
<div class="px-4 py-5 sm:p-6 h-full flex flex-col items-center justify-center">
<div class="mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-white border-2 border-gray-300">
<i data-feather="plus" class="h-6 w-6 text-gray-400"></i>
</div>
<div class="mt-3 text-center">
<h3 class="text-lg font-medium text-gray-900">Add Telegram Feed</h3>
<p class="mt-1 text-sm text-gray-500">Connect a new Telegram channel or group</p>
</div>
<div class="mt-6">
<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">
Connect Channel
</button>
</div>
</div>
</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>