new file: templates/navigation.html
modified: templates/redeem_giveaway.html modified: templates/user_dashboard.html modified: templates/user_giveaways.html
This commit is contained in:
@@ -1,41 +1,24 @@
|
||||
<!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>
|
||||
{% include 'navigation.html' %}
|
||||
|
||||
<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>
|
||||
<p class="text-center">Here you can view the giveaways you've won.</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">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<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>
|
||||
@@ -44,15 +27,12 @@
|
||||
</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>
|
||||
<p class="text-center">You haven't won any giveaways yet.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user