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
265 lines
9.4 KiB
HTML
265 lines
9.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Your Won Giveaways - {{ guild_name }}</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;
|
|
}
|
|
|
|
.giveaways-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;
|
|
}
|
|
|
|
.giveaways-header {
|
|
text-align: center;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.giveaways-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);
|
|
}
|
|
|
|
.giveaways-subtitle {
|
|
color: #a0a0a0;
|
|
font-size: 1.1rem;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.gift-icon {
|
|
font-size: 3rem;
|
|
color: #ffd700;
|
|
margin-bottom: 1rem;
|
|
animation: bounce 2s infinite;
|
|
text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
|
|
}
|
|
|
|
@keyframes bounce {
|
|
0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
|
|
40% { transform: translateY(-10px); }
|
|
60% { transform: translateY(-5px); }
|
|
}
|
|
|
|
.table-container {
|
|
background: rgba(40, 40, 56, 0.9);
|
|
border-radius: 15px;
|
|
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.table {
|
|
margin-bottom: 0;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.table thead th {
|
|
background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
|
|
color: #f7fafc;
|
|
border: none;
|
|
padding: 1rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.table tbody tr {
|
|
background: rgba(45, 55, 72, 0.6);
|
|
transition: all 0.3s ease;
|
|
border: none;
|
|
}
|
|
|
|
.table tbody tr:hover {
|
|
background: rgba(74, 85, 104, 0.8);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.table tbody td {
|
|
padding: 1rem;
|
|
vertical-align: middle;
|
|
border: none;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.status-badge {
|
|
font-size: 0.9rem;
|
|
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-warning-custom {
|
|
background: linear-gradient(135deg, #ffa500, #ff8c00);
|
|
color: white;
|
|
box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
|
|
}
|
|
|
|
.redeem-btn {
|
|
background: linear-gradient(135deg, #4299e1, #3182ce);
|
|
border: none;
|
|
border-radius: 25px;
|
|
padding: 0.5rem 1.5rem;
|
|
color: #ffffff;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
font-size: 0.9rem;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
|
|
}
|
|
|
|
.redeem-btn:hover {
|
|
background: linear-gradient(135deg, #3182ce, #2c5282);
|
|
color: #ffffff;
|
|
text-decoration: none;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 20px rgba(66, 153, 225, 0.4);
|
|
}
|
|
|
|
.back-button {
|
|
background: linear-gradient(135deg, #4a5568, #2d3748);
|
|
border: none;
|
|
border-radius: 25px;
|
|
padding: 0.75rem 2rem;
|
|
color: #f7fafc;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
transition: all 0.3s ease;
|
|
margin-top: 2rem;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.back-button:hover {
|
|
background: linear-gradient(135deg, #2d3748, #1a202c);
|
|
color: #f7fafc;
|
|
text-decoration: none;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.no-giveaways {
|
|
text-align: center;
|
|
padding: 3rem;
|
|
color: #a0aec0;
|
|
}
|
|
|
|
.no-giveaways-icon {
|
|
font-size: 4rem;
|
|
color: #4a5568;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
.giveaways-title {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.giveaways-container {
|
|
padding: 1rem;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.table thead th,
|
|
.table tbody td {
|
|
padding: 0.75rem 0.5rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
}
|
|
</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="giveaways-container">
|
|
<div class="giveaways-header">
|
|
<i class="fas fa-gift gift-icon"></i>
|
|
<h1 class="giveaways-title">Your Won Giveaways</h1>
|
|
<p class="giveaways-subtitle">{{ guild_name }} • View and redeem your prizes</p>
|
|
</div>
|
|
|
|
{% if won_giveaways and won_giveaways|length > 0 %}
|
|
<div class="table-container">
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col"><i class="fas fa-tag"></i> Name</th>
|
|
<th scope="col"><i class="fas fa-gamepad"></i> Platform</th>
|
|
<th scope="col"><i class="fas fa-info-circle"></i> Status</th>
|
|
<th scope="col" class="text-center"><i class="fas fa-cog"></i> Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for giveaway in won_giveaways %}
|
|
<tr>
|
|
<td><strong>{{ giveaway.name }}</strong></td>
|
|
<td>{{ giveaway.platform }}</td>
|
|
<td>
|
|
{% if giveaway.aktiv %}
|
|
<span class="badge badge-success-custom status-badge">
|
|
<i class="fas fa-check"></i> Redeemed
|
|
</span>
|
|
{% else %}
|
|
<span class="badge badge-warning-custom status-badge">
|
|
<i class="fas fa-hourglass-half"></i> Pending
|
|
</span>
|
|
{% endif %}
|
|
</td>
|
|
<td class="text-center">
|
|
<a href="{{ url_for('redeem_giveaway', guild_id=guild_id, uuid=giveaway.uuid) }}" class="redeem-btn">
|
|
<i class="fas fa-{{ 'eye' if giveaway.aktiv else 'download' }}"></i>
|
|
{{ 'View Key' if giveaway.aktiv else 'Redeem' }}
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% else %}
|
|
<div class="no-giveaways">
|
|
<i class="fas fa-gift-card no-giveaways-icon"></i>
|
|
<h3>No Giveaways Won Yet</h3>
|
|
<p>You haven't won any giveaways on this server yet. Keep participating to win amazing prizes!</p>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="text-center">
|
|
<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>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|