redbot-manager / dashboard.html
FDxMinh's picture
Tạo cogs và webs cho redbot discord như webs dyno của bot dyno trong discord để quản lý redbot với tất cả chức năng của nó có và cóg của nó, chỉnh sửa cấu hình, quản lý server và nhiều chức năng khác như của dyno bit
b154756 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard - RedBot Manager</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
</head>
<body class="bg-gray-900 text-white min-h-screen flex flex-col">
<custom-navbar></custom-navbar>
<!-- Dashboard Header -->
<header class="bg-gray-800 border-b border-gray-700 py-6">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row md:items-center md:justify-between gap-4">
<div>
<h1 class="text-2xl font-bold">Dashboard</h1>
<p class="text-gray-400">Manage your RedBot configuration and settings</p>
</div>
<div class="flex items-center gap-4">
<div class="bg-indigo-600 px-3 py-1 rounded-full text-sm flex items-center gap-2">
<div class="w-2 h-2 bg-green-500 rounded-full"></div>
<span>Online</span>
</div>
<button class="bg-indigo-600 hover:bg-indigo-700 px-4 py-2 rounded-lg flex items-center gap-2">
<i data-feather="refresh-cw"></i>
<span>Sync</span>
</button>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<main class="flex-grow container mx-auto px-4 py-8">
<div class="grid grid-cols-1 lg:grid-cols-4 gap-6">
<!-- Sidebar Navigation -->
<div class="lg:col-span-1">
<div class="bg-gray-800 rounded-xl p-4 sticky top-24">
<nav>
<ul class="space-y-1">
<li>
<a href="#" class="flex items-center gap-3 p-3 rounded-lg bg-indigo-600 text-white">
<i data-feather="home"></i>
<span>Overview</span>
</a>
</li>
<li>
<a href="#" class="flex items-center gap-3 p-3 rounded-lg hover:bg-gray-700 text-gray-300 hover:text-white">
<i data-feather="package"></i>
<span>Cogs</span>
</a>
</li>
<li>
<a href="#" class="flex items-center gap-3 p-3 rounded-lg hover:bg-gray-700 text-gray-300 hover:text-white">
<i data-feather="server"></i>
<span>Servers</span>
</a>
</li>
<li>
<a href="#" class="flex items-center gap-3 p-3 rounded-lg hover:bg-gray-700 text-gray-300 hover:text-white">
<i data-feather="settings"></i>
<span>Settings</span>
</a>
</li>
<li>
<a href="#" class="flex items-center gap-3 p-3 rounded-lg hover:bg-gray-700 text-gray-300 hover:text-white">
<i data-feather="bar-chart-2"></i>
<span>Analytics</span>
</a>
</li>
<li>
<a href="#" class="flex items-center gap-3 p-3 rounded-lg hover:bg-gray-700 text-gray-300 hover:text-white">
<i data-feather="users"></i>
<span>Permissions</span>
</a>
</li>
<li>
<a href="#" class="flex items-center gap-3 p-3 rounded-lg hover:bg-gray-700 text-gray-300 hover:text-white">
<i data-feather="bell"></i>
<span>Notifications</span>
</a>
</li>
</ul>
</nav>
</div>
</div>
<!-- Main Content Area -->
<div class="lg:col-span-3">
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6">
<div class="bg-gray-800 rounded-xl p-5">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400">Total Servers</p>
<p class="text-2xl font-bold mt-1">24</p>
</div>
<div class="w-12 h-12 rounded-full bg-indigo-600 flex items-center justify-center">
<i data-feather="server" class="text-white"></i>
</div>
</div>
</div>
<div class="bg-gray-800 rounded-xl p-5">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400">Active Cogs</p>
<p class="text-2xl font-bold mt-1">18</p>
</div>
<div class="w-12 h-12 rounded-full bg-indigo-600 flex items-center justify-center">
<i data-feather="package" class="text-white"></i>
</div>
</div>
</div>
<div class="bg-gray-800 rounded-xl p-5">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400">Commands Used</p>
<p class="text-2xl font-bold mt-1">1,248</p>
</div>
<div class="w-12 h-12 rounded-full bg-indigo-600 flex items-center justify-center">
<i data-feather="command" class="text-white"></i>
</div>
</div>
</div>
<div class="bg-gray-800 rounded-xl p-5">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400">Uptime</p>
<p class="text-2xl font-bold mt-1">99.8%</p>
</div>
<div class="w-12 h-12 rounded-full bg-indigo-600 flex items-center justify-center">
<i data-feather="clock" class="text-white"></i>
</div>
</div>
</div>
</div>
<!-- Configuration Section -->
<div class="bg-gray-800 rounded-xl p-6 mb-6">
<div class="flex flex-wrap items-center justify-between gap-4 mb-6">
<h2 class="text-xl font-bold">Global Configuration</h2>
<button class="bg-indigo-600 hover:bg-indigo-700 px-4 py-2 rounded-lg flex items-center gap-2">
<i data-feather="save"></i>
<span>Save Changes</span>
</button>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<label class="block text-gray-300 mb-2">Default Prefix</label>
<input type="text" value="!" class="w-full bg-gray-700 border border-gray-600 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<div>
<label class="block text-gray-300 mb-2">Language</label>
<select class="w-full bg-gray-700 border border-gray-600 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500">
<option>English</option>
<option>Spanish</option>
<option>French</option>
<option>German</option>
</select>
</div>
<div>
<label class="block text-gray-300 mb-2">Delete Command Messages</label>
<div class="relative inline-block w-12 h-6">
<input type="checkbox" class="opacity-0 w-0 h-0 peer" id="delete-commands">
<label for="delete-commands" class="absolute cursor-pointer top-0 left-0 right-0 bottom-0 bg-gray-600 rounded-full transition duration-300 before:absolute before:h-4 before:w-4 before:left-1 before:bottom-1 before:bg-white before:rounded-full before:transition before:duration-300 peer-checked:before:translate-x-6 peer-checked:bg-indigo-600"></label>
</div>
</div>
<div>
<label class="block text-gray-300 mb-2">Send Help via DM</label>
<div class="relative inline-block w-12 h-6">
<input type="checkbox" class="opacity-0 w-0 h-0 peer" id="help-dm" checked>
<label for="help-dm" class="absolute cursor-pointer top-0 left-0 right-0 bottom-0 bg-gray-600 rounded-full transition duration-300 before:absolute before:h-4 before:w-4 before:left-1 before:bottom-1 before:bg-white before:rounded-full before:transition before:duration-300 peer-checked:before:translate-x-6 peer-checked:bg-indigo-600"></label>
</div>
</div>
</div>
</div>
<!-- Recent Activity -->
<div class="bg-gray-800 rounded-xl p-6">
<h2 class="text-xl font-bold mb-6">Recent Activity</h2>
<div class="space-y-4">
<div class="flex items-start gap-4 p-4 bg-gray-700 rounded-lg">
<div class="w-10 h-10 rounded-full bg-indigo-600 flex items-center justify-center flex-shrink-0">
<i data-feather="settings" class="text-white text-sm"></i>
</div>
<div>
<p class="font-medium">Configuration Updated</p>
<p class="text-gray-400 text-sm">Changed default prefix to "!" in 3 servers</p>
<p class="text-gray-500 text-xs mt-1">2 hours ago</p>
</div>
</div>
<div class="flex items-start gap-4 p-4 bg-gray-700 rounded-lg">
<div class="w-10 h-10 rounded-full bg-green-600 flex items-center justify-center flex-shrink-0">
<i data-feather="package" class="text-white text-sm"></i>
</div>
<div>
<p class="font-medium">Cog Installed</p>
<p class="text-gray-400 text-sm">Installed "Moderation" cog in Gaming Server</p>
<p class="text-gray-500 text-xs mt-1">5 hours ago</p>
</div>
</div>
<div class="flex items-start gap-4 p-4 bg-gray-700 rounded-lg">
<div class="w-10 h-10 rounded-full bg-red-600 flex items-center justify-center flex-shrink-0">
<i data-feather="alert-triangle" class="text-white text-sm"></i>
</div>
<div>
<p class="font-medium">Error Occurred</p>
<p class="text-gray-400 text-sm">Failed to load "Music" cog in Community Server</p>
<p class="text-gray-500 text-xs mt-1">Yesterday</p>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<custom-footer></custom-footer>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script src="script.js"></script>
<script>
feather.replace();
</script>
</body>
</html>