Files
Discord-ai-chatbot/templates/user_server_data.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

294 lines
8.9 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Server User Data - Multus Bot</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, #0c1426 0%, #1a1f2e 25%, #2d3748 75%, #0c1426 100%);
min-height: 100vh;
color: #e2e8f0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.main-container {
background: rgba(26, 31, 46, 0.8);
backdrop-filter: blur(15px);
border: 1px solid rgba(102, 126, 234, 0.2);
border-radius: 20px;
margin: 2rem auto;
max-width: 900px;
padding: 2rem;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.header-section {
text-align: center;
margin-bottom: 2rem;
padding-bottom: 1.5rem;
border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}
.header-title {
color: #e2e8f0;
font-size: 2rem;
font-weight: 700;
margin-bottom: 0.5rem;
display: flex;
align-items: center;
justify-content: center;
gap: 1rem;
}
.user-icon {
color: #667eea;
font-size: 2rem;
}
.server-info {
color: #a0aec0;
font-size: 1.1rem;
}
.data-section {
margin-top: 2rem;
}
.section-title {
color: #e2e8f0;
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 1.5rem;
display: flex;
align-items: center;
gap: 0.75rem;
}
.section-icon {
color: #667eea;
font-size: 1.5rem;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
}
.stat-card {
background: rgba(45, 55, 72, 0.6);
border: 1px solid rgba(102, 126, 234, 0.2);
border-radius: 15px;
padding: 1.5rem;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.stat-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, #667eea, #764ba2);
transform: scaleX(0);
transition: transform 0.3s ease;
}
.stat-card:hover::before {
transform: scaleX(1);
}
.stat-card:hover {
transform: translateY(-3px);
box-shadow: 0 10px 25px rgba(102, 126, 234, 0.1);
border-color: rgba(102, 126, 234, 0.4);
}
.stat-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.5rem;
}
.stat-label {
color: #a0aec0;
font-size: 0.9rem;
font-weight: 500;
}
.stat-icon {
color: #667eea;
font-size: 1.2rem;
}
.stat-value {
color: #e2e8f0;
font-size: 1.8rem;
font-weight: 700;
}
.permission-badge {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 1rem;
border-radius: 50px;
font-size: 0.9rem;
font-weight: 600;
margin-top: 0.5rem;
}
.permission-user {
background: rgba(56, 178, 172, 0.2);
color: #38b2ac;
border: 1px solid rgba(56, 178, 172, 0.3);
}
.permission-mod {
background: rgba(102, 126, 234, 0.2);
color: #667eea;
border: 1px solid rgba(102, 126, 234, 0.3);
}
.permission-admin {
background: rgba(245, 101, 101, 0.2);
color: #f56565;
border: 1px solid rgba(245, 101, 101, 0.3);
}
.permission-owner {
background: rgba(237, 137, 54, 0.2);
color: #ed8936;
border: 1px solid rgba(237, 137, 54, 0.3);
}
.back-button {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border: none;
color: white;
padding: 0.75rem 1.5rem;
border-radius: 10px;
font-weight: 600;
transition: all 0.3s ease;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 0.5rem;
}
.back-button:hover {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
color: white;
text-decoration: none;
}
@media (max-width: 768px) {
.main-container {
margin: 1rem;
padding: 1.5rem;
}
.header-title {
font-size: 1.5rem;
flex-direction: column;
gap: 0.5rem;
}
.stats-grid {
grid-template-columns: 1fr;
}
}
</style>
</head>
<body>
{% include 'navigation.html' %}
<div class="main-container">
<div class="header-section">
<h1 class="header-title">
<i class="fas fa-user user-icon"></i>
{{ user_info['username'] }}'s Server Data
</h1>
<p class="server-info">Server ID: {{ guild_id }}</p>
</div>
<div class="data-section">
<h2 class="section-title">
<i class="fas fa-chart-bar section-icon"></i>
Server Statistics
</h2>
<div class="stats-grid">
<div class="stat-card">
<div class="stat-header">
<span class="stat-label">Points</span>
<i class="fas fa-coins stat-icon"></i>
</div>
<div class="stat-value">{{ user_data['points'] }}</div>
</div>
<div class="stat-card">
<div class="stat-header">
<span class="stat-label">Experience</span>
<i class="fas fa-star stat-icon"></i>
</div>
<div class="stat-value">{{ user_data['xp'] }} XP</div>
</div>
<div class="stat-card">
<div class="stat-header">
<span class="stat-label">Level</span>
<i class="fas fa-trophy stat-icon"></i>
</div>
<div class="stat-value">{{ user_data['level'] }}</div>
</div>
<div class="stat-card">
<div class="stat-header">
<span class="stat-label">Permission</span>
<i class="fas fa-shield-alt stat-icon"></i>
</div>
<div class="stat-value" style="font-size: 1.2rem;">
<span class="permission-badge permission-{% if user_data['permission'] == 10 %}owner{% elif user_data['permission'] == 8 %}admin{% elif user_data['permission'] == 5 %}mod{% else %}user{% endif %}">
{% if user_data['permission'] == 10 %}
<i class="fas fa-gem"></i>
Owner
{% elif user_data['permission'] == 8 %}
<i class="fas fa-crown"></i>
Admin
{% elif user_data['permission'] == 5 %}
<i class="fas fa-hammer"></i>
Moderator
{% else %}
<i class="fas fa-user"></i>
User
{% endif %}
</span>
</div>
</div>
</div>
</div>
<div class="text-center mt-4">
<a href="{{ url_for('user_dashboard', guild_id=guild_id) }}" class="back-button">
<i class="fas fa-arrow-left"></i>
Back to Dashboard
</a>
</div>
</div>
{% include 'footer.html' %}
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.2/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>