Files
Discord-ai-chatbot/templates/user_dashboard.html
SimolZimol 7d3493b3c5 modified: templates/admin_giveaways.html
modified:   templates/edit_giveaway.html
	modified:   templates/edit_user.html
	new file:   templates/footer.html
	modified:   templates/global_admin_dashboard.html
	modified:   templates/leaderboard.html
	modified:   templates/logs.html
	modified:   templates/redeem_giveaway.html
	modified:   templates/server_admin_dashboard.html
	modified:   templates/server_giveaways.html
	modified:   templates/settings.html
	modified:   templates/user_dashboard.html
	modified:   templates/user_giveaways.html
	modified:   templates/user_landing_page.html
	modified:   templates/user_server_data.html
	modified:   templates/users.html
2025-08-24 00:43:13 +02:00

263 lines
9.6 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>User 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;
}
.dashboard-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;
}
.welcome-header {
text-align: center;
margin-bottom: 3rem;
}
.welcome-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);
}
.welcome-subtitle {
color: #a0a0a0;
font-size: 1.1rem;
font-weight: 400;
}
.stat-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;
}
.stat-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
.stat-card .card-body {
padding: 2rem;
text-align: center;
}
.stat-title {
color: #cbd5e0;
font-weight: 600;
font-size: 1.2rem;
margin-bottom: 1rem;
}
.stat-value {
color: #f7fafc;
font-size: 3rem;
font-weight: 700;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
margin-bottom: 1rem;
}
.stat-icon {
font-size: 2rem;
margin-bottom: 1rem;
}
.points-icon { color: #ffd700; }
.level-icon { color: #48bb78; }
.admin-icon { color: #e53e3e; }
.giveaway-icon { color: #4299e1; }
.admin-card {
background: linear-gradient(135deg, rgba(229, 62, 62, 0.2) 0%, rgba(197, 48, 48, 0.2) 100%);
border: 1px solid rgba(229, 62, 62, 0.3);
}
.action-button {
background: linear-gradient(135deg, #4299e1, #3182ce);
border: none;
border-radius: 25px;
padding: 0.75rem 2rem;
color: #ffffff;
font-weight: 600;
text-decoration: none;
display: inline-block;
transition: all 0.3s ease;
box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}
.action-button:hover {
background: linear-gradient(135deg, #3182ce, #2c5282);
color: #ffffff;
text-decoration: none;
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(66, 153, 225, 0.4);
}
.admin-button {
background: linear-gradient(135deg, #e53e3e, #c53030);
box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}
.admin-button:hover {
background: linear-gradient(135deg, #c53030, #9c2626);
box-shadow: 0 8px 25px rgba(229, 62, 62, 0.4);
}
.giveaway-button {
background: linear-gradient(135deg, #38a169, #2f855a);
box-shadow: 0 4px 12px rgba(56, 161, 105, 0.3);
}
.giveaway-button:hover {
background: linear-gradient(135deg, #2f855a, #276749);
box-shadow: 0 8px 25px rgba(56, 161, 105, 0.4);
}
.leaderboard-button {
background: linear-gradient(135deg, #805ad5, #6b46c1);
box-shadow: 0 4px 12px rgba(128, 90, 213, 0.3);
}
.leaderboard-button:hover {
background: linear-gradient(135deg, #6b46c1, #553c9a);
box-shadow: 0 8px 25px rgba(128, 90, 213, 0.4);
}
.additional-options {
background: rgba(45, 55, 72, 0.6);
border-radius: 15px;
padding: 2rem;
margin-top: 2rem;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.section-title {
color: #f7fafc;
font-weight: 600;
font-size: 1.5rem;
margin-bottom: 1.5rem;
text-align: center;
}
/* Responsive Design */
@media (max-width: 768px) {
.welcome-title {
font-size: 2rem;
}
.stat-value {
font-size: 2.5rem;
}
.dashboard-container {
padding: 1rem;
margin-top: 1rem;
}
}
</style>
</head>
<body>
{% include 'navigation.html' %}
<div class="container-fluid">
<div class="row justify-content-center">
<div class="col-lg-10 col-xl-8">
<div class="dashboard-container">
<div class="welcome-header">
<h1 class="welcome-title">
<i class="fas fa-user-circle"></i> Welcome, {{ g.user_info['username'] }}!
</h1>
<p class="welcome-subtitle">Your personalized dashboard for server <strong>{{ g.guild_id }}</strong></p>
</div>
<div class="row">
<!-- User Points Card -->
<div class="col-md-6">
<div class="stat-card">
<div class="card-body">
<i class="fas fa-coins stat-icon points-icon"></i>
<h5 class="stat-title">Your Points</h5>
<p class="stat-value">{{ "{:,}".format(g.user_data['points']) }}</p>
</div>
</div>
</div>
<!-- User Level Card -->
<div class="col-md-6">
<div class="stat-card">
<div class="card-body">
<i class="fas fa-layer-group stat-icon level-icon"></i>
<h5 class="stat-title">Level</h5>
<p class="stat-value">{{ g.user_data['level'] }}</p>
</div>
</div>
</div>
<!-- Server Admin Link Card -->
{% if g.user_data['permission'] >= 8 %}
<div class="col-md-12">
<div class="stat-card admin-card">
<div class="card-body">
<i class="fas fa-crown stat-icon admin-icon"></i>
<h5 class="stat-title">Server Admin Dashboard</h5>
<p class="welcome-subtitle">Manage server-specific settings for server <strong>{{ g.guild_id }}</strong>.</p>
<a href="{{ url_for('server_admin_dashboard', guild_id=g.guild_id) }}" class="action-button admin-button mt-3">
<i class="fas fa-cogs"></i> Go to Admin Dashboard
</a>
</div>
</div>
</div>
{% endif %}
</div>
<!-- Additional Options -->
<div class="additional-options">
<h5 class="section-title">
<i class="fas fa-rocket"></i> Quick Actions
</h5>
<div class="row text-center">
<div class="col-md-4 mb-3">
<a href="{{ url_for('user_giveaways', guild_id=g.guild_id) }}" class="action-button giveaway-button">
<i class="fas fa-gift"></i> View Won Giveaways
</a>
</div>
<div class="col-md-4 mb-3">
<a href="{{ url_for('leaderboard', guild_id=g.guild_id) }}" class="action-button leaderboard-button">
<i class="fas fa-trophy"></i> View Leaderboard
</a>
</div>
<div class="col-md-4 mb-3">
<a href="{{ url_for('user_server_data', guild_id=g.guild_id) }}" class="action-button">
<i class="fas fa-chart-bar"></i> View Statistics
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% include 'footer.html' %}
</body>
</html>