modified: templates/edit_giveaway.html
modified: templates/edit_user.html modified: templates/global_admin_dashboard.html modified: templates/landing.html modified: templates/login.html modified: templates/logs.html modified: templates/navigation.html modified: templates/server_admin_dashboard.html modified: templates/user_dashboard.html modified: templates/user_giveaways.html new file: templates/user_giveaways_old.html modified: templates/user_landing_page.html
This commit is contained in:
@@ -6,38 +6,270 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Global Admin Dashboard</title>
|
||||
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
|
||||
<style>
|
||||
body {
|
||||
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
|
||||
min-height: 100vh;
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
color: #e0e0e0;
|
||||
}
|
||||
|
||||
.admin-navbar {
|
||||
background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
|
||||
backdrop-filter: blur(10px);
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
font-weight: 700;
|
||||
font-size: 1.5rem;
|
||||
color: #f8f9fa !important;
|
||||
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.navbar-nav .nav-link {
|
||||
color: #f8f9fa !important;
|
||||
font-weight: 500;
|
||||
transition: all 0.3s ease;
|
||||
border-radius: 8px;
|
||||
margin: 0 5px;
|
||||
padding: 8px 16px !important;
|
||||
}
|
||||
|
||||
.navbar-nav .nav-link:hover {
|
||||
color: #ffffff !important;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.admin-container {
|
||||
background: rgba(30, 30, 46, 0.95);
|
||||
border-radius: 20px;
|
||||
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
|
||||
backdrop-filter: blur(10px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
padding: 2rem;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.admin-header {
|
||||
text-align: center;
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
.admin-title {
|
||||
color: #f8f9fa;
|
||||
font-weight: 700;
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: 0.5rem;
|
||||
text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.admin-subtitle {
|
||||
color: #a0a0a0;
|
||||
font-size: 1.2rem;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.admin-card {
|
||||
background: rgba(45, 55, 72, 0.8);
|
||||
border-radius: 15px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
|
||||
transition: all 0.3s ease;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.admin-card:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.admin-card .card-body {
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.card-title {
|
||||
color: #f7fafc;
|
||||
font-weight: 600;
|
||||
font-size: 1.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.card-text {
|
||||
color: #cbd5e0;
|
||||
font-size: 1.1rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.status-badge {
|
||||
font-size: 1.1rem;
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 25px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.badge-success-custom {
|
||||
background: linear-gradient(135deg, #48bb78, #38a169);
|
||||
color: white;
|
||||
box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
|
||||
}
|
||||
|
||||
.badge-danger-custom {
|
||||
background: linear-gradient(135deg, #e53e3e, #c53030);
|
||||
color: white;
|
||||
box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
|
||||
}
|
||||
|
||||
.admin-button {
|
||||
border-radius: 25px;
|
||||
padding: 0.75rem 2rem;
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
transition: all 0.3s ease;
|
||||
margin-bottom: 1rem;
|
||||
border: none;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.btn-start {
|
||||
background: linear-gradient(135deg, #48bb78, #38a169);
|
||||
color: white;
|
||||
box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
|
||||
}
|
||||
|
||||
.btn-start:hover:not(.disabled) {
|
||||
background: linear-gradient(135deg, #38a169, #2f855a);
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 20px rgba(72, 187, 120, 0.4);
|
||||
}
|
||||
|
||||
.btn-stop {
|
||||
background: linear-gradient(135deg, #e53e3e, #c53030);
|
||||
color: white;
|
||||
box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
|
||||
}
|
||||
|
||||
.btn-stop:hover:not(.disabled) {
|
||||
background: linear-gradient(135deg, #c53030, #9c2626);
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 20px rgba(229, 62, 62, 0.4);
|
||||
}
|
||||
|
||||
.btn-logs {
|
||||
background: linear-gradient(135deg, #ffa500, #ff8c00);
|
||||
color: white;
|
||||
box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
|
||||
}
|
||||
|
||||
.btn-logs:hover {
|
||||
background: linear-gradient(135deg, #ff8c00, #ff7700);
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 20px rgba(255, 165, 0, 0.4);
|
||||
}
|
||||
|
||||
.disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.crown-icon {
|
||||
color: #ffd700;
|
||||
margin-right: 0.5rem;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
/* Responsive Design */
|
||||
@media (max-width: 768px) {
|
||||
.admin-title {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.admin-container {
|
||||
padding: 1rem;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.admin-card .card-body {
|
||||
padding: 1.5rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
||||
<a class="navbar-brand" href="#">Multus Bot - Global Admin Dashboard</a>
|
||||
<nav class="navbar navbar-expand-lg navbar-dark admin-navbar">
|
||||
<a class="navbar-brand" href="#">
|
||||
<i class="fas fa-crown crown-icon"></i>Multus Bot - Global Admin Dashboard
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarNav">
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ url_for('user_landing_page') }}">Switch to User View</a>
|
||||
<a class="nav-link" href="{{ url_for('user_landing_page') }}">
|
||||
<i class="fas fa-user"></i> Switch to User View
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ url_for('logout') }}">Logout</a>
|
||||
<a class="nav-link" href="{{ url_for('logout') }}">
|
||||
<i class="fas fa-sign-out-alt"></i> Logout
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container mt-5">
|
||||
<h1 class="text-center">Welcome, {{ g.user_info['username'] }} (Admin)</h1>
|
||||
<p class="text-center">Manage global bot settings and controls.</p>
|
||||
<div class="container-fluid">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-8 col-xl-6">
|
||||
<div class="admin-container">
|
||||
<div class="admin-header">
|
||||
<h1 class="admin-title">
|
||||
<i class="fas fa-crown crown-icon"></i>Welcome, {{ g.user_info['username'] }}
|
||||
</h1>
|
||||
<p class="admin-subtitle">Global Administrator Dashboard - Manage bot settings and controls</p>
|
||||
</div>
|
||||
|
||||
<div class="card mt-4">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Bot Status</h5>
|
||||
<p class="card-text">Status:
|
||||
<span class="badge badge-{{ 'success' if g.bot_running else 'danger' }}">
|
||||
{{ "Running" if g.bot_running else "Stopped" }}
|
||||
</span>
|
||||
</p>
|
||||
<a href="{{ url_for('start') }}" class="btn btn-primary btn-block {{ 'disabled' if g.bot_running else '' }}">Start Bot</a>
|
||||
<a href="{{ url_for('stop') }}" class="btn btn-danger btn-block {{ 'disabled' if not g.bot_running else '' }}">Stop Bot</a>
|
||||
<a href="{{ url_for('view_logs') }}" class="btn btn-warning btn-block">View Logs</a>
|
||||
<div class="admin-card">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">
|
||||
<i class="fas fa-robot"></i> Bot Status & Control
|
||||
</h5>
|
||||
<p class="card-text">
|
||||
Current Status:
|
||||
<span class="status-badge {{ 'badge-success-custom' if g.bot_running else 'badge-danger-custom' }}">
|
||||
<i class="fas fa-{{ 'play' if g.bot_running else 'stop' }}"></i>
|
||||
{{ "Running" if g.bot_running else "Stopped" }}
|
||||
</span>
|
||||
</p>
|
||||
|
||||
<a href="{{ url_for('start') }}" class="admin-button btn-start {{ 'disabled' if g.bot_running else '' }}">
|
||||
<i class="fas fa-play"></i> Start Bot
|
||||
</a>
|
||||
|
||||
<a href="{{ url_for('stop') }}" class="admin-button btn-stop {{ 'disabled' if not g.bot_running else '' }}">
|
||||
<i class="fas fa-stop"></i> Stop Bot
|
||||
</a>
|
||||
|
||||
<a href="{{ url_for('view_logs') }}" class="admin-button btn-logs">
|
||||
<i class="fas fa-file-alt"></i> View Logs
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user