save100 / index.html
fantom4ik22281's picture
дабавь панель useres что бы можно переходить обратно - Initial Deployment
5672d39 verified
Raw History Blame Contribute Delete
33.2 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>VPN Telegram Bot Admin Panel</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">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#3B82F6',
secondary: '#1E40AF',
dark: '#0F172A',
accent: '#10B981'
}
}
}
}
</script>
<style>
.dashboard-card: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);
}
.stat-card {
transition: all 0.3s ease;
}
.stat-card:hover {
transform: scale(1.03);
}
.sidebar {
transition: all 0.3s ease;
}
.notification-dot {
position: absolute;
top: -5px;
right: -5px;
width: 12px;
height: 12px;
border-radius: 50%;
background-color: #EF4444;
}
@media (max-width: 768px) {
.sidebar {
transform: translateX(-100%);
}
.sidebar.active {
transform: translateX(0);
}
}
</style>
</head>
<body class="bg-gray-100 text-gray-800">
<!-- Mobile Header -->
<div class="md:hidden bg-white shadow-md p-4 flex justify-between items-center">
<button id="menuToggle" class="text-primary">
<i class="fas fa-bars text-2xl"></i>
</button>
<h1 class="text-xl font-bold text-primary">VPN Bot Admin</h1>
<div class="relative">
<i class="fas fa-bell text-xl text-gray-600"></i>
<span class="notification-dot"></span>
</div>
</div>
<!-- Sidebar -->
<div class="sidebar fixed inset-y-0 left-0 w-64 bg-dark text-white z-50">
<div class="p-6 border-b border-gray-700">
<h1 class="text-2xl font-bold flex items-center">
<i class="fas fa-shield-alt mr-3 text-accent"></i>
VPN Bot Admin
</h1>
</div>
<nav class="mt-6">
<a href="#" class="flex items-center p-4 bg-secondary text-white">
<i class="fas fa-chart-line mr-3"></i>
Dashboard
</a>
<a href="#" onclick="showUsersPanel()" class="flex items-center p-4 hover:bg-gray-800">
<i class="fas fa-users mr-3"></i>
Users
</a>
<a href="#" class="flex items-center p-4 hover:bg-gray-800">
<i class="fas fa-money-bill-wave mr-3"></i>
Payments
</a>
<a href="#" class="flex items-center p-4 hover:bg-gray-800">
<i class="fas fa-server mr-3"></i>
VPN Servers
</a>
<a href="#" class="flex items-center p-4 hover:bg-gray-800">
<i class="fas fa-broadcast-tower mr-3"></i>
Broadcast
</a>
<a href="#" class="flex items-center p-4 hover:bg-gray-800">
<i class="fas fa-cog mr-3"></i>
Settings
</a>
</nav>
<div class="absolute bottom-0 w-full p-4 border-t border-gray-700">
<div class="flex items-center">
<div class="bg-gray-200 border-2 border-dashed rounded-xl w-10 h-10"></div>
<div class="ml-3">
<p class="text-sm font-medium">Admin User</p>
<p class="text-xs text-gray-400">admin@vpnbot.com</p>
</div>
</div>
</div>
</div>
<!-- Main Content -->
<div class="md:ml-64">
<!-- Desktop Header -->
<header class="bg-white shadow-md">
<div class="flex justify-between items-center p-4">
<div>
<h1 class="text-2xl font-bold text-primary">Dashboard</h1>
<p class="text-gray-600">Welcome back, Administrator</p>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<i class="fas fa-bell text-xl text-gray-600"></i>
<span class="notification-dot"></span>
</div>
<div class="flex items-center">
<div class="bg-gray-200 border-2 border-dashed rounded-xl w-10 h-10"></div>
<span class="ml-2 font-medium">Admin</span>
</div>
</div>
</div>
</header>
<!-- Stats Cards -->
<div class="p-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
<div class="stat-card bg-white rounded-xl shadow-md p-6 border-l-4 border-primary">
<div class="flex justify-between">
<div>
<p class="text-gray-500">Total Users</p>
<p class="text-3xl font-bold mt-2">1,842</p>
</div>
<div class="bg-blue-100 p-3 rounded-full">
<i class="fas fa-users text-primary text-xl"></i>
</div>
</div>
<div class="mt-4">
<p class="text-green-500 text-sm flex items-center">
<i class="fas fa-arrow-up mr-1"></i> 12.3% from last month
</p>
</div>
</div>
<div class="stat-card bg-white rounded-xl shadow-md p-6 border-l-4 border-accent">
<div class="flex justify-between">
<div>
<p class="text-gray-500">Active Subscriptions</p>
<p class="text-3xl font-bold mt-2">1,254</p>
</div>
<div class="bg-green-100 p-3 rounded-full">
<i class="fas fa-shield-alt text-accent text-xl"></i>
</div>
</div>
<div class="mt-4">
<p class="text-green-500 text-sm flex items-center">
<i class="fas fa-arrow-up mr-1"></i> 8.7% from last month
</p>
</div>
</div>
<div class="stat-card bg-white rounded-xl shadow-md p-6 border-l-4 border-yellow-500">
<div class="flex justify-between">
<div>
<p class="text-gray-500">Monthly Revenue</p>
<p class="text-3xl font-bold mt-2">$3,842</p>
</div>
<div class="bg-yellow-100 p-3 rounded-full">
<i class="fas fa-dollar-sign text-yellow-500 text-xl"></i>
</div>
</div>
<div class="mt-4">
<p class="text-green-500 text-sm flex items-center">
<i class="fas fa-arrow-up mr-1"></i> 5.2% from last month
</p>
</div>
</div>
<div class="stat-card bg-white rounded-xl shadow-md p-6 border-l-4 border-purple-500">
<div class="flex justify-between">
<div>
<p class="text-gray-500">Pending Actions</p>
<p class="text-3xl font-bold mt-2">24</p>
</div>
<div class="bg-purple-100 p-3 rounded-full">
<i class="fas fa-tasks text-purple-500 text-xl"></i>
</div>
</div>
<div class="mt-4">
<p class="text-red-500 text-sm flex items-center">
<i class="fas fa-arrow-down mr-1"></i> 3.1% from last week
</p>
</div>
</div>
</div>
<!-- Main Content Area -->
<div id="dashboardContent" class="p-6 grid grid-cols-1 lg:grid-cols-3 gap-6">
<!-- Recent Payments -->
<div class="lg:col-span-2">
<div class="bg-white rounded-xl shadow-md overflow-hidden">
<div class="border-b border-gray-200 p-4 flex justify-between items-center">
<h2 class="text-lg font-semibold">Recent Payments</h2>
<button class="text-primary hover:text-secondary">
<i class="fas fa-sync-alt"></i>
</button>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">User</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Plan</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="bg-gray-200 border-2 border-dashed rounded-xl w-8 h-8"></div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">user_1245</div>
<div class="text-sm text-gray-500">ID: 123456789</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">3 Months</div>
<div class="text-sm text-gray-500">60 GB</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
$6.99
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
Completed
</span>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="bg-gray-200 border-2 border-dashed rounded-xl w-8 h-8"></div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">user_9876</div>
<div class="text-sm text-gray-500">ID: 987654321</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">1 Month</div>
<div class="text-sm text-gray-500">20 GB</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
$2.99
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">
Pending
</span>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="bg-gray-200 border-2 border-dashed rounded-xl w-8 h-8"></div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">user_5432</div>
<div class="text-sm text-gray-500">ID: 543216789</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">3 Months</div>
<div class="text-sm text-gray-500">60 GB</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
$6.99
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
Completed
</span>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="bg-gray-200 border-2 border-dashed rounded-xl w-8 h-8"></div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">user_7890</div>
<div class="text-sm text-gray-500">ID: 789012345</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">1 Month</div>
<div class="text-sm text-gray-500">20 GB</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
$2.99
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">
Failed
</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- Quick Actions -->
<div>
<div class="bg-white rounded-xl shadow-md overflow-hidden">
<div class="border-b border-gray-200 p-4">
<h2 class="text-lg font-semibold">Quick Actions</h2>
</div>
<div class="p-4 space-y-4">
<button class="w-full flex items-center justify-between p-4 bg-primary hover:bg-secondary text-white rounded-lg transition">
<span>Send Broadcast</span>
<i class="fas fa-bullhorn"></i>
</button>
<button class="w-full flex items-center justify-between p-4 bg-accent hover:bg-green-700 text-white rounded-lg transition">
<span>Add VPN Server</span>
<i class="fas fa-server"></i>
</button>
<button class="w-full flex items-center justify-between p-4 bg-purple-500 hover:bg-purple-700 text-white rounded-lg transition">
<span>View Reports</span>
<i class="fas fa-chart-pie"></i>
</button>
<button class="w-full flex items-center justify-between p-4 bg-yellow-500 hover:bg-yellow-600 text-white rounded-lg transition">
<span>Manage Subscriptions</span>
<i class="fas fa-cog"></i>
</button>
</div>
</div>
<!-- Subscription Plans -->
<div class="bg-white rounded-xl shadow-md overflow-hidden mt-6">
<div class="border-b border-gray-200 p-4">
<h2 class="text-lg font-semibold">Subscription Plans</h2>
</div>
<div class="p-4 space-y-4">
<div class="border border-gray-200 rounded-lg p-4 hover:border-primary transition">
<div class="flex justify-between">
<h3 class="font-semibold">1 Month Plan</h3>
<span class="bg-blue-100 text-primary px-2 py-1 rounded text-sm">Active</span>
</div>
<div class="mt-2 text-gray-600">
<p>20 GB Traffic</p>
<p class="font-bold text-lg mt-1">$2.99</p>
</div>
</div>
<div class="border border-gray-200 rounded-lg p-4 hover:border-primary transition">
<div class="flex justify-between">
<h3 class="font-semibold">3 Months Plan</h3>
<span class="bg-blue-100 text-primary px-2 py-1 rounded text-sm">Active</span>
</div>
<div class="mt-2 text-gray-600">
<p>60 GB Traffic</p>
<p class="font-bold text-lg mt-1">$6.99</p>
</div>
</div>
<div class="border border-gray-200 rounded-lg p-4 hover:border-primary transition">
<div class="flex justify-between">
<h3 class="font-semibold">Annual Plan</h3>
<span class="bg-gray-100 text-gray-500 px-2 py-1 rounded text-sm">Draft</span>
</div>
<div class="mt-2 text-gray-600">
<p>240 GB Traffic</p>
<p class="font-bold text-lg mt-1">$19.99</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Users Panel (hidden by default) -->
<div id="usersPanel" class="p-6 hidden">
<div class="flex items-center mb-6">
<button onclick="showDashboard()" class="mr-4 text-primary hover:text-secondary">
<i class="fas fa-arrow-left text-xl"></i>
</button>
<h2 class="text-2xl font-bold">User Management</h2>
</div>
<div class="bg-white rounded-xl shadow-md overflow-hidden">
<div class="border-b border-gray-200 p-4 flex justify-between items-center">
<div class="flex items-center">
<span class="mr-4">Total: 1,842 users</span>
<div class="relative">
<input type="text" placeholder="Search users..." class="pl-8 pr-4 py-2 border rounded-lg">
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
</div>
</div>
<button class="bg-primary hover:bg-secondary text-white px-4 py-2 rounded-lg">
<i class="fas fa-plus mr-2"></i> Add User
</button>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">User ID</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Plan</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Expires</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Traffic</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="bg-gray-200 border-2 border-dashed rounded-xl w-8 h-8"></div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">@vpn_user1</div>
<div class="text-sm text-gray-500">ID: 123456789</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">
3 Months
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
2023-12-15
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="w-full bg-gray-200 rounded-full h-2.5">
<div class="bg-primary h-2.5 rounded-full" style="width: 45%"></div>
</div>
<span class="text-xs text-gray-500">27/60 GB used</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<button class="text-primary hover:text-secondary mr-3"><i class="fas fa-edit"></i></button>
<button class="text-red-500 hover:text-red-700"><i class="fas fa-ban"></i></button>
</td>
</tr>
<!-- More user rows would go here -->
</tbody>
</table>
</div>
<div class="border-t border-gray-200 px-4 py-3 flex items-center justify-between">
<div class="flex-1 flex justify-between sm:hidden">
<button class="relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">
Previous
</button>
<button class="ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">
Next
</button>
</div>
<div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
<div>
<p class="text-sm text-gray-700">
Showing <span class="font-medium">1</span> to <span class="font-medium">10</span> of <span class="font-medium">1,842</span> results
</p>
</div>
<div>
<nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
<button class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
<span class="sr-only">Previous</span>
<i class="fas fa-chevron-left"></i>
</button>
<button aria-current="page" class="z-10 bg-primary border-primary text-white relative inline-flex items-center px-4 py-2 border text-sm font-medium">
1
</button>
<button class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">
2
</button>
<button class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">
3
</button>
<button class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
<span class="sr-only">Next</span>
<i class="fas fa-chevron-right"></i>
</button>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- Server Status -->
<div class="p-6">
<div class="bg-white rounded-xl shadow-md overflow-hidden">
<div class="border-b border-gray-200 p-4 flex justify-between items-center">
<h2 class="text-lg font-semibold">VPN Server Status</h2>
<button class="text-primary hover:text-secondary">
<i class="fas fa-sync-alt"></i> Refresh
</button>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 p-4">
<div class="border border-gray-200 rounded-lg p-4 hover:shadow-md transition">
<div class="flex justify-between">
<h3 class="font-semibold">USA Server #1</h3>
<span class="bg-green-100 text-green-800 px-2 py-1 rounded text-xs">Online</span>
</div>
<div class="mt-2 text-gray-600">
<p><i class="fas fa-users mr-2"></i> 124 active users</p>
<p class="mt-1"><i class="fas fa-network-wired mr-2"></i> Load: 42%</p>
</div>
</div>
<div class="border border-gray-200 rounded-lg p-4 hover:shadow-md transition">
<div class="flex justify-between">
<h3 class="font-semibold">Germany Server</h3>
<span class="bg-green-100 text-green-800 px-2 py-1 rounded text-xs">Online</span>
</div>
<div class="mt-2 text-gray-600">
<p><i class="fas fa-users mr-2"></i> 89 active users</p>
<p class="mt-1"><i class="fas fa-network-wired mr-2"></i> Load: 28%</p>
</div>
</div>
<div class="border border-gray-200 rounded-lg p-4 hover:shadow-md transition">
<div class="flex justify-between">
<h3 class="font-semibold">Japan Server</h3>
<span class="bg-green-100 text-green-800 px-2 py-1 rounded text-xs">Online</span>
</div>
<div class="mt-2 text-gray-600">
<p><i class="fas fa-users mr-2"></i> 67 active users</p>
<p class="mt-1"><i class="fas fa-network-wired mr-2"></i> Load: 35%</p>
</div>
</div>
<div class="border border-gray-200 rounded-lg p-4 hover:shadow-md transition">
<div class="flex justify-between">
<h3 class="font-semibold">Brazil Server</h3>
<span class="bg-red-100 text-red-800 px-2 py-1 rounded text-xs">Offline</span>
</div>
<div class="mt-2 text-gray-600">
<p><i class="fas fa-users mr-2"></i> 0 active users</p>
<p class="mt-1"><i class="fas fa-network-wired mr-2"></i> Load: 0%</p>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
// Mobile menu toggle
document.getElementById('menuToggle').addEventListener('click', function() {
document.querySelector('.sidebar').classList.toggle('active');
});
// Close sidebar when clicking outside on mobile
document.addEventListener('click', function(event) {
const sidebar = document.querySelector('.sidebar');
const menuToggle = document.getElementById('menuToggle');
if (window.innerWidth <= 768 &&
!sidebar.contains(event.target) &&
!menuToggle.contains(event.target) &&
sidebar.classList.contains('active')) {
sidebar.classList.remove('active');
}
});
// Simulate loading animation
document.querySelectorAll('.stat-card, .dashboard-card').forEach(card => {
card.addEventListener('click', function() {
this.classList.add('opacity-75');
setTimeout(() => {
this.classList.remove('opacity-75');
}, 300);
});
});
</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=fantom4ik22281/save100" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>