modified: app.py

modified:   templates/admin_giveaways.html
	modified:   templates/redeem_giveaway.html
	modified:   templates/user_giveaways.html
This commit is contained in:
SimolZimol
2024-09-12 16:09:57 +02:00
parent 0ac3dc09aa
commit bea9a109e1
4 changed files with 132 additions and 181 deletions

View File

@@ -6,29 +6,50 @@
<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">Here you can view the giveaways you've won.</p>
<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">
<div class="card-body">
<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>
<a href="{{ url_for('redeem_giveaway', uuid=giveaway.uuid) }}" class="btn btn-primary">Claim Your Key</a>
</div>
</div>
</div>
{% endfor %}
{% else %}
<p class="text-center">You haven't won any giveaways yet.</p>
<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>