modified: templates/redeem_giveaway.html
modified: templates/user_server_data.html
This commit is contained in:
@@ -3,25 +3,312 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Redeem Giveaway</title>
|
<title>Redeem Giveaway - Multus Bot</title>
|
||||||
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
|
<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: 800px;
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
.giveaway-title {
|
||||||
|
color: #e2e8f0;
|
||||||
|
font-size: 2.2rem;
|
||||||
|
font-weight: 700;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.giveaway-icon {
|
||||||
|
color: #48bb78;
|
||||||
|
font-size: 2.5rem;
|
||||||
|
animation: pulse 2s infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes pulse {
|
||||||
|
0%, 100% { transform: scale(1); }
|
||||||
|
50% { transform: scale(1.1); }
|
||||||
|
}
|
||||||
|
|
||||||
|
.giveaway-name {
|
||||||
|
background: linear-gradient(135deg, #48bb78, #38a169);
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
background-clip: text;
|
||||||
|
font-weight: 800;
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-info {
|
||||||
|
background: rgba(45, 55, 72, 0.6);
|
||||||
|
border: 1px solid rgba(72, 187, 120, 0.2);
|
||||||
|
border-radius: 10px;
|
||||||
|
padding: 1rem;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-icon {
|
||||||
|
color: #48bb78;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-text {
|
||||||
|
color: #e2e8f0;
|
||||||
|
font-size: 1.1rem;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.success-section {
|
||||||
|
background: linear-gradient(135deg, rgba(72, 187, 120, 0.1), rgba(56, 161, 105, 0.1));
|
||||||
|
border: 1px solid rgba(72, 187, 120, 0.3);
|
||||||
|
border-radius: 15px;
|
||||||
|
padding: 2rem;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.success-icon {
|
||||||
|
color: #48bb78;
|
||||||
|
font-size: 4rem;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
animation: bounce 1s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes bounce {
|
||||||
|
0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
|
||||||
|
40% { transform: translateY(-10px); }
|
||||||
|
60% { transform: translateY(-5px); }
|
||||||
|
}
|
||||||
|
|
||||||
|
.key-title {
|
||||||
|
color: #48bb78;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
font-weight: 700;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.key-display {
|
||||||
|
background: rgba(45, 55, 72, 0.8);
|
||||||
|
border: 2px solid rgba(72, 187, 120, 0.4);
|
||||||
|
border-radius: 10px;
|
||||||
|
padding: 1rem;
|
||||||
|
font-family: 'Courier New', monospace;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
color: #e2e8f0;
|
||||||
|
letter-spacing: 2px;
|
||||||
|
word-break: break-all;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.copy-button {
|
||||||
|
background: linear-gradient(135deg, #48bb78, #38a169);
|
||||||
|
border: none;
|
||||||
|
color: white;
|
||||||
|
padding: 0.5rem 1rem;
|
||||||
|
border-radius: 5px;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
margin-top: 1rem;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.copy-button:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 5px 15px rgba(72, 187, 120, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.safety-notice {
|
||||||
|
color: #a0aec0;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
margin-top: 1rem;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
.redeem-section {
|
||||||
|
text-align: center;
|
||||||
|
padding: 2rem;
|
||||||
|
background: rgba(45, 55, 72, 0.4);
|
||||||
|
border-radius: 15px;
|
||||||
|
border: 1px solid rgba(102, 126, 234, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.redeem-icon {
|
||||||
|
color: #667eea;
|
||||||
|
font-size: 4rem;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.redeem-title {
|
||||||
|
color: #e2e8f0;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
font-weight: 600;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.redeem-description {
|
||||||
|
color: #a0aec0;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.redeem-button {
|
||||||
|
background: linear-gradient(135deg, #667eea, #764ba2);
|
||||||
|
border: none;
|
||||||
|
color: white;
|
||||||
|
padding: 1rem 2rem;
|
||||||
|
border-radius: 10px;
|
||||||
|
font-size: 1.1rem;
|
||||||
|
font-weight: 600;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.redeem-button:hover {
|
||||||
|
transform: translateY(-3px);
|
||||||
|
box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.back-button {
|
||||||
|
background: rgba(45, 55, 72, 0.6);
|
||||||
|
border: 1px solid rgba(102, 126, 234, 0.2);
|
||||||
|
color: #e2e8f0;
|
||||||
|
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.1);
|
||||||
|
color: #e2e8f0;
|
||||||
|
text-decoration: none;
|
||||||
|
border-color: rgba(102, 126, 234, 0.4);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.main-container {
|
||||||
|
margin: 1rem;
|
||||||
|
padding: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.giveaway-title {
|
||||||
|
font-size: 1.8rem;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.key-display {
|
||||||
|
font-size: 1rem;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{% include 'navigation.html' %}
|
{% include 'navigation.html' %}
|
||||||
<div class="container mt-5">
|
|
||||||
<h2>Redeem Giveaway - {{ giveaway.name }}</h2>
|
<div class="main-container">
|
||||||
<p><strong>Platform:</strong> {{ giveaway.platform }}</p>
|
<div class="header-section">
|
||||||
|
<h1 class="giveaway-title">
|
||||||
|
<i class="fas fa-gift giveaway-icon"></i>
|
||||||
|
<span class="giveaway-name">{{ giveaway.name }}</span>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<div class="platform-info">
|
||||||
|
<i class="fas fa-gamepad platform-icon"></i>
|
||||||
|
<span class="platform-text">Platform: {{ giveaway.platform }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% if key %}
|
{% if key %}
|
||||||
<div class="alert alert-success">
|
<div class="success-section">
|
||||||
<strong>Your Game Key:</strong> {{ key }}
|
<i class="fas fa-check-circle success-icon"></i>
|
||||||
|
<h2 class="key-title">🎉 Congratulations! Your Game Key:</h2>
|
||||||
|
<div class="key-display">
|
||||||
|
{{ key }}
|
||||||
|
<button class="copy-button" onclick="copyKey()">
|
||||||
|
<i class="fas fa-copy"></i> Copy Key
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<p class="safety-notice">
|
||||||
|
<i class="fas fa-exclamation-triangle"></i>
|
||||||
|
Keep this key safe! Save it somewhere secure as you won't be able to see it again.
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<p class="text-muted">This is your unique key. Keep it safe!</p>
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<form method="post">
|
<div class="redeem-section">
|
||||||
<button type="submit" class="btn btn-primary">Redeem Giveaway</button>
|
<i class="fas fa-gift-card redeem-icon"></i>
|
||||||
</form>
|
<h2 class="redeem-title">Ready to Redeem?</h2>
|
||||||
|
<p class="redeem-description">
|
||||||
|
Click the button below to claim your game key for {{ giveaway.name }}!
|
||||||
|
</p>
|
||||||
|
<form method="post">
|
||||||
|
<button type="submit" class="redeem-button">
|
||||||
|
<i class="fas fa-unlock"></i> Redeem Giveaway
|
||||||
|
</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<div class="text-center mt-4">
|
||||||
|
<a href="{{ url_for('user_giveaways') }}" class="back-button">
|
||||||
|
<i class="fas fa-arrow-left"></i>
|
||||||
|
Back to Giveaways
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function copyKey() {
|
||||||
|
const keyText = document.querySelector('.key-display').textContent.trim();
|
||||||
|
navigator.clipboard.writeText('{{ key }}').then(function() {
|
||||||
|
const button = document.querySelector('.copy-button');
|
||||||
|
const originalText = button.innerHTML;
|
||||||
|
button.innerHTML = '<i class="fas fa-check"></i> Copied!';
|
||||||
|
button.style.background = 'linear-gradient(135deg, #48bb78, #38a169)';
|
||||||
|
|
||||||
|
setTimeout(function() {
|
||||||
|
button.innerHTML = originalText;
|
||||||
|
button.style.background = 'linear-gradient(135deg, #48bb78, #38a169)';
|
||||||
|
}, 2000);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -3,22 +3,278 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Server User Data</title>
|
<title>Server User Data - Multus Bot</title>
|
||||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
|
<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-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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container mt-5">
|
{% include 'navigation.html' %}
|
||||||
<div class="text-center">
|
|
||||||
<h2>{{ user_info['username'] }}'s Data for Server ID {{ guild_id }}</h2>
|
<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>
|
||||||
|
|
||||||
<h3>Server-specific Data</h3>
|
<div class="data-section">
|
||||||
<ul class="list-group">
|
<h2 class="section-title">
|
||||||
<li class="list-group-item">Points: {{ user_data['points'] }}</li>
|
<i class="fas fa-chart-bar section-icon"></i>
|
||||||
<li class="list-group-item">XP: {{ user_data['xp'] }}</li>
|
Server Statistics
|
||||||
<li class="list-group-item">Level: {{ user_data['level'] }}</li>
|
</h2>
|
||||||
<li class="list-group-item">Permission: {{ user_data['permission'] }}</li>
|
|
||||||
</ul>
|
<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-{{ user_data['permission'] }}">
|
||||||
|
{% if user_data['permission'] == 'admin' %}
|
||||||
|
<i class="fas fa-crown"></i>
|
||||||
|
{% elif user_data['permission'] == 'owner' %}
|
||||||
|
<i class="fas fa-gem"></i>
|
||||||
|
{% else %}
|
||||||
|
<i class="fas fa-user"></i>
|
||||||
|
{% endif %}
|
||||||
|
{{ user_data['permission'].title() }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="text-center mt-4">
|
||||||
|
<a href="{{ url_for('user_dashboard') }}" class="back-button">
|
||||||
|
<i class="fas fa-arrow-left"></i>
|
||||||
|
Back to Dashboard
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user