modified: templates/admin_giveaways.html modified: templates/redeem_giveaway.html modified: templates/user_giveaways.html
59 lines
1.9 KiB
HTML
59 lines
1.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>Your Giveaways</title>
|
|
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
|
|
<style>
|
|
.giveaway-card {
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.giveaway-card:hover {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.no-giveaway {
|
|
background-color: #f8f9fa;
|
|
padding: 40px;
|
|
border-radius: 10px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container mt-5">
|
|
<h1 class="text-center">Your Giveaways</h1>
|
|
<p class="text-center text-muted">Here are the giveaways you've won. Click "Claim Your Key" to receive your prize.</p>
|
|
|
|
<div class="row mt-4">
|
|
{% if giveaways %}
|
|
{% for giveaway in giveaways %}
|
|
<div class="col-md-4">
|
|
<div class="card giveaway-card mb-4">
|
|
<div class="card-body text-center">
|
|
<h5 class="card-title">{{ giveaway.name }}</h5>
|
|
<p class="card-text">Platform: {{ giveaway.platform }}</p>
|
|
<a href="{{ url_for('redeem_giveaway', uuid=giveaway.uuid) }}" class="btn btn-primary">Claim Your Key</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
{% else %}
|
|
<div class="col-12">
|
|
<div class="no-giveaway">
|
|
<h3>No Giveaways Won</h3>
|
|
<p>It looks like you haven't won any giveaways yet. Keep participating and good luck!</p>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|