Files
Discord-ai-chatbot/templates/redeem_giveaway.html
SimolZimol bea9a109e1 modified: app.py
modified:   templates/admin_giveaways.html
	modified:   templates/redeem_giveaway.html
	modified:   templates/user_giveaways.html
2024-09-12 16:09:57 +02:00

64 lines
2.1 KiB
HTML

<!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>
<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>
<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>
</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">
<form method="POST">
<button type="submit" class="btn claim-btn">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>
</div>
</body>
</html>