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
323 lines
10 KiB
HTML
323 lines
10 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<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://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>
|
|
<body>
|
|
{% include 'navigation.html' %}
|
|
|
|
<div class="main-container">
|
|
<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 %}
|
|
<div class="success-section">
|
|
<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-info-circle"></i>
|
|
Your game key has been successfully redeemed! You can access it anytime from your giveaways page.
|
|
</p>
|
|
</div>
|
|
{% else %}
|
|
<div class="redeem-section">
|
|
<i class="fas fa-gift-card redeem-icon"></i>
|
|
<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 %}
|
|
|
|
<div class="text-center mt-4">
|
|
{% if giveaway.guild_id %}
|
|
<a href="{{ url_for('user_giveaways', guild_id=giveaway.guild_id) }}" class="back-button">
|
|
{% elif guild_id %}
|
|
<a href="{{ url_for('user_giveaways', guild_id=guild_id) }}" class="back-button">
|
|
{% else %}
|
|
<a href="{{ url_for('user_dashboard') }}" class="back-button">
|
|
{% endif %}
|
|
<i class="fas fa-arrow-left"></i>
|
|
Back to Giveaways
|
|
</a>
|
|
</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>
|
|
|
|
{% 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>
|