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:
SimolZimol
2024-09-12 16:26:26 +02:00
parent bea9a109e1
commit 60609fcb1a
4 changed files with 83 additions and 100 deletions

View File

@@ -1,63 +1,45 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Redeem Giveaway</title>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<style>
.redeem-card {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 20px;
border-radius: 10px;
background-color: #f8f9fa;
}
.claim-btn {
background-color: #28a745;
color: white;
}
.claim-btn:hover {
background-color: #218838;
}
.key-display {
font-size: 1.5rem;
color: #007bff;
}
</style>
</head>
<body>
{% include 'navigation.html' %}
<div class="container mt-5">
<h1 class="text-center">Giveaway Prize</h1>
<p class="text-center text-muted">Congratulations! You've won <strong>{{ giveaway.name }}</strong> on <strong>{{ giveaway.platform }}</strong>.</p>
<p class="text-center">Congratulations! You have won the giveaway for <strong>{{ giveaway.name }}</strong> on
<strong>{{ giveaway.platform }}</strong>.</p>
<div class="redeem-card mx-auto">
{% if key %}
<!-- Wenn der Key aufgedeckt wurde -->
<h5 class="text-center">Your Game Key</h5>
<p class="text-center key-display">{{ key }}</p>
<div class="text-center">
<a href="{{ url_for('user_giveaways') }}" class="btn btn-primary mt-4">Back to Giveaways</a>
{% if key %}
<!-- Wenn der Key aufgedeckt wurde -->
<div class="card mt-4">
<div class="card-body">
<h5 class="card-title">Your Key</h5>
<p class="card-text">{{ key }}</p>
</div>
{% else %}
<!-- Wenn der Key noch nicht aufgedeckt wurde -->
<h5 class="text-center">Claim Your Key</h5>
<p class="text-center">Do you want to reveal your game key? Once revealed, it will be marked as claimed and cannot be undone.</p>
<div class="text-center">
</div>
<a href="{{ url_for('user_giveaways') }}" class="btn btn-primary mt-4">Back to Giveaways</a>
{% else %}
<!-- Wenn der Key noch nicht aufgedeckt wurde -->
<div class="card mt-4">
<div class="card-body">
<h5 class="card-title">Claim Your Key</h5>
<p class="card-text">Do you want to reveal your game key? Once revealed, it will be marked as claimed and cannot be undone.</p>
<form method="POST">
<button type="submit" class="btn claim-btn">Reveal Key</button>
<button type="submit" class="btn btn-success">Reveal Key</button>
</form>
</div>
<div class="text-center mt-3">
<a href="{{ url_for('user_giveaways') }}" class="btn btn-secondary">Back to Giveaways</a>
</div>
{% endif %}
</div>
<a href="{{ url_for('user_giveaways') }}" class="btn btn-secondary mt-4">Back to Giveaways</a>
{% endif %}
</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>